/* --- THE DARK ROOM BACKGROUND --- */
.projector-container {
    max-width: 850px;
    margin: 40px auto;
    background: transparent; /* Sitting in the dark room */
    padding: 0;
}

/* --- THE SEAFOAM GREEN METAL SCREEN CASE --- */
/* This acts as the heavy metal bar at the top that houses the rolled-up screen */
.projector-viewport::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 24px;
    /* A metallic seafoam green gradient with built-in highlights */
    background: linear-gradient(to bottom, #7fa99b 0%, #578374 40%, #3b5c50 85%, #233931 100%);
    border-bottom: 2px solid #1a2923;
    box-shadow: 0 4px 6px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    z-index: 20; /* Sits on top of everything */
    border-radius: 4px 4px 0 0;
}

/* --- THE WHITE/GRAY BEADED SCREEN --- */
.projector-viewport {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
    padding-top: 24px; /* Makes room for the seafoam case bar at the top */
    box-sizing: border-box;
    
    /* Vintage matte-white screen color with a slight warm-gray tint */
    background-color: #eaddca; 
    /* Subtle radial gradient to simulate the projector bulb's hot-spot reflecting on white fabric */
    background-image: radial-gradient(circle at center, #ffffff 0%, #e2dacb 60%, #cebeaa 100%);
    
    /* The stark black masking border painted on the edges of physical screens */
    border-left: 20px solid #111;
    border-right: 20px solid #111;
    border-bottom: 25px solid #111; 
    
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

/* --- THE IMAGE CAST ONTO THE WHITE SCREEN --- */
.projector-slide img {
    max-width: 95%;
    max-height: 85%;
    object-fit: contain;
    
    /* Using 'mix-blend-mode: multiply' lets the white image light beautifully 
       interact with the texture and shading of the screen underneath */
    mix-blend-mode: multiply;
    
    /* Slight lens blur and high contrast to feel like a powerful bulb projection */
    filter: blur(0.3px) contrast(1.1) brightness(1.05);
    
    /* Faint light halo bleeding slightly onto the matte screen */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* --- THE VINTAGE SCREEN PULL-HANDLE --- */
/* This creates the classic metal loop handle centered on the bottom black border */
.projector-viewport::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 14px;
    /* Cast aluminum / steel look */
    background: linear-gradient(to bottom, #999 0%, #ccc 50%, #666 100%);
    border: 1px solid #444;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 3px rgba(0,0,0,0.6);
    z-index: 20;
    cursor: pointer;
}

/* --- THE MECHANICAL SHUTTER --- */
/* Kept black so when it drops, it feels like the projector light source was cut off */
.projector-shutter {
    position: absolute;
    top: 24px; /* Starts right below the seafoam casing */
    left: 0;
    width: 100%;
    height: calc(100% - 24px);
    background: #000;
    transform: translateY(-100%);
    pointer-events: none;
    z-index: 15;
}
.projector-shutter.trigger-shutter {
    animation: shutterCut 0.4s ease-in-out forwards;
}
@keyframes shutterCut {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0%); }
    100% { transform: translateY(100%); }
}

/* --- CAPTION & CONTROLS --- */
.projector-caption {
    color: #222;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    margin-top: 15px;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    font-weight: bold;
    border: 1px dashed #999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.projector-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 0 20px;
}

.projector-btn {
    background: #2a2a2a;
    color: #bbb;
    border: 1px solid #444;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
}

.projector-btn:hover {
    background: #578374; /* Matches the seafoam case on hover! */
    color: #fff;
    border-color: #7fa99b;
}