/* 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;
}

.film-frame img {
    height: 275px;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.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;
    }
}
