/* file: /css/storybot-grid-slideshow-style.css */

/* Slideshow container styling */
.storybot-slideshow {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Individual slide styling */
.storybot-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 15s ease-in-out; /* Match Ken Burns animation duration */
}

.storybot-slideshow .slide.active {
    opacity: 1;
}

/* Zoomed styling */
.storybot-slideshow .slide.zoomed {
    cursor: grab;
}

/* Enlarging icon */
.storybot-slideshow .enlarge-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 1.2em;
    color: #fff;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.storybot-slideshow .enlarge-icon:hover {
    opacity: 1;
}

.storybot-slideshow {
    position: relative;
}

/* Navigation controls */
.prev, .next {
    position: absolute;
    top: 50%;
    font-size: 2em;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    cursor: pointer;
    user-select: none;
    border: none;
    z-index: 1000;
    pointer-events: auto;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

/* Hide prev/next outside fullscreen */
.storybot-slideshow :not(:fullscreen) .prev,
.storybot-slideshow :not(:fullscreen) .next {
    display: none;
}


/* Enhanced Ken Burns Animations */
@keyframes kenBurnsZoomIn {
    0% { transform: scale(1.0); }
    100% { transform: scale(1.12); }
}

@keyframes kenBurnsPanLeft {
    0% { transform: scale(1.1) translateX(0); }
    100% { transform: scale(1.1) translateX(-4%); }
}

@keyframes kenBurnsPanRight {
    0% { transform: scale(1.1) translateX(0); }
    100% { transform: scale(1.1) translateX(4%); }
}

@keyframes kenBurnsPanUp {
    0% { transform: scale(1.1) translateY(0); }
    100% { transform: scale(1.1) translateY(-4%); }
}

@keyframes kenBurnsPanDown {
    0% { transform: scale(1.1) translateY(0); }
    100% { transform: scale(1.1) translateY(4%); }
}

/* Apply animations without resetting */
.storybot-slideshow .slide.kenBurnsZoomIn {
    animation: kenBurnsZoomIn 15s ease-in-out forwards;
}

.storybot-slideshow .slide.kenBurnsPanLeft {
    animation: kenBurnsPanLeft 15s ease-in-out forwards;
}

.storybot-slideshow .slide.kenBurnsPanRight {
    animation: kenBurnsPanRight 15s ease-in-out forwards;
}

.storybot-slideshow .slide.kenBurnsPanUp {
    animation: kenBurnsPanUp 15s ease-in-out forwards;
}

.storybot-slideshow .slide.kenBurnsPanDown {
    animation: kenBurnsPanDown 15s ease-in-out forwards;
}


@media (max-width: 768px) {

.storybot-slideshow {
    height: 200px;
}

.prev, .next {
    display: none !important;
}

.storybot-slideshow .enlarge-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 1.0em;
    color: #fff;
}


}