/* Film Reel Photo Carousel Styles */

.film-reel-container {
    width: 100%;
    height: 400px;
    background-color: #1a1a1a;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.film-reel-wrapper {
    position: absolute;
    width: max-content;
    height: 100%;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.sprocket-strip {
    position: absolute;
    height: 30px;
    background-color: #1a1a1a;
    z-index: 10;
}

.sprocket-strip.top {
    top: 0;
}

.sprocket-strip.bottom {
    bottom: 0;
}

.sprocket-holes {
    display: flex;
    gap: 10px;
    align-items: center;
    height: 100%;
}

.sprocket-hole {
    width: 8px;
    height: 8px;
    background-color: #000;
    border: 1px solid #333;
    border-radius: 2px;
    flex-shrink: 0;
}

.film-strip {
    position: absolute;
    top: 30px;
    left: 0;
    height: 335px;
    display: flex;
    gap: 20px;
}

.film-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 8px;
    box-shadow:
        inset 0 0 0 3px #1a1a1a,
        inset 0 0 0 4px #444,
        0 2px 8px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    position: relative;
}

.film-frame img {
    height: 275px;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    /* 1920s Film Effect - DISABLED - Uncomment to enable */
    /* filter: sepia(0.8) contrast(1.2) brightness(0.95); */
    /* animation: film-flicker 3s infinite; */
    /* Vignette - DISABLED - Uncomment and add to box-shadow above */
    /* inset 0 0 80px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(0, 0, 0, 0.3) */
    position: relative;
    z-index: 1;
}

/* Film grain overlay - DISABLED - Uncomment to enable */
/*
.film-frame::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: calc(100% - 30px);
    height: 275px;
    border-radius: 6px;
    pointer-events: none;
    z-index: 2;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.4"/></svg>');
    background-size: 200px 200px;
    opacity: 0.3;
    mix-blend-mode: overlay;
}
*/

/* Scratches and dust overlay - DISABLED - Uncomment to enable */
/*
.film-frame::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: calc(100% - 30px);
    height: 275px;
    border-radius: 6px;
    pointer-events: none;
    z-index: 3;
    background-image:
        linear-gradient(0deg, transparent 0%, rgba(255,255,255,0.15) 5%, transparent 10%),
        linear-gradient(0deg, transparent 0%, rgba(0,0,0,0.3) 1%, transparent 2%),
        linear-gradient(0deg, transparent 0%, rgba(255,255,255,0.1) 1%, transparent 2%),
        radial-gradient(circle at 20% 30%, rgba(0,0,0,0.4) 1%, transparent 1%),
        radial-gradient(circle at 60% 70%, rgba(0,0,0,0.3) 0.5%, transparent 0.5%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.2) 0.5%, transparent 0.5%);
    background-size:
        100% 100%,
        3px 100%,
        2px 100%,
        100% 100%,
        100% 100%,
        100% 100%;
    background-position:
        0 0,
        23% 0,
        67% 0,
        0 0,
        0 0,
        0 0;
    background-repeat: no-repeat;
    opacity: 0.4;
    animation: film-scratch 0.5s infinite;
}
*/

/* Vintage film animations - DISABLED - Uncomment to enable */
/*
@keyframes film-scratch {
    0% { opacity: 0.4; }
    50% { opacity: 0.3; }
    100% { opacity: 0.4; }
}

@keyframes film-flicker {
    0% { opacity: 1; }
    10% { opacity: 0.98; }
    20% { opacity: 1; }
    30% { opacity: 0.96; }
    35% { opacity: 0.95; }
    40% { opacity: 1; }
    50% { opacity: 0.97; }
    60% { opacity: 1; }
    70% { opacity: 0.99; }
    80% { opacity: 0.98; }
    90% { opacity: 1; }
    100% { opacity: 1; }
}
*/

.photo-attribution {
    margin-top: 10px;
    color: #ccc;
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
    max-width: 300px;
    font-family: var(--body-font);
}

/* Single unified animation - duration and distance set via inline styles in JS */
@keyframes scroll-reel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(var(--scroll-distance, -50%));
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .film-reel-container {
        height: 300px;
    }

    .film-strip {
        height: 240px;
    }

    .film-frame img {
        height: 180px;
    }

    .sprocket-strip {
        height: 25px;
    }
}
