/*
    STEVE & CO. 
    steveandco.shop
    build: Light of Day v 0.0.0
    stylesheet development 
    © e]O eYeOpeners.design mmxxv - mmxxvi

    Rotator - Green - v 0.0.2
*/

/*
    CHANGE LOG >
    2025-12-10: creation; add animation; -wm
*/

.slide-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.description {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    line-height: 1.5;
}

.gallery-container {
    position: relative;
    width: 500px;
    height: 400px;
    margin: 0 auto 40px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #2c5e2e;
    float: left;
    margin-right: 3em;
}

/* Rotating figures */
.gallery-figure-rotator {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-figure-65 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.gallery-figure-65.active {
    opacity: 1;
}

/* Image container with fixed size and clipping */
.gallery-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background-color: #1e3e1f;
}

.gallery-figure-65 a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-figure-65 picture, 
.gallery-figure-65 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top right;
}

/* Static caption container */
.caption-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(44, 94, 46, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.gallery-figure-65 figcaption {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out 0.3s, transform 1s ease-out 0.3s;
    }

/* Caption animation */
.gallery-figure-65.active figcaption {
    opacity: 1;
    transform: translateY(0);
    animation: textGlow 3s ease-in-out infinite alternate;
    }

    @keyframes textGlow {
    0% {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5), 
                        0 0 5px rgba(255, 255, 255, 0.2);
    }
    100% {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5), 
                        0 0 10px rgba(255, 255, 255, 0.4),
                        0 0 15px rgba(255, 255, 255, 0.2);
    }
}

.figure-rotator figcaption {
    text-transform: capitalize;
}

/* Controls info */
.controls-info {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-style: italic;
}

@media (max-width: 600px) {
    .gallery-container {
        width: 100%;
        height: 350px;
    }
    
    .image-container {
        height: 270px;
    }
    
    .caption-container {
        height: 80px;
    }
}

/* Zoom effect on image entry */
.gallery-figure-65.active img {
    animation: gentleZoom 20s linear infinite alternate;
}

@keyframes gentleZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

