/**
 * Login Gallery Slideshow
 * Fullscreen slideshow with Ken Burns effect and crossfade transitions
 * Version: 1.0.0
 */

/* Make gallery fullscreen */
.ce_gallery.login-gallery {
/*    position: fixed;
    top: 0;
    left: 0;*/
    width: 100%;
    /*height: 100vh;*/
    height: 100%;
    margin: 0 !important;
    padding: 0;
    overflow: hidden;
    z-index: -1; /* Behind content */
    grid-row: 1/5;
    border-radius: 10px;
}

.ce_gallery.login-gallery ul {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ce_gallery.login-gallery li {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: 0;
}

/* Active slide - only active slides are visible */
.ce_gallery.login-gallery li.active {
    opacity: 1;
    z-index: 2;
}

/* Make images fullscreen */
.ce_gallery.login-gallery figure {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.ce_gallery.login-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Default state for outgoing/inactive images */
    transform: scale(1) rotate(0);
}

/* Ken Burns Effect - Zoom + Rotate (inspired by CodePen) */
/* Images zoom in from large/rotated to normal size/rotation */
.ce_gallery.login-gallery li.active img {
    animation: kenBurnsZoomRotate 6s ease-in-out forwards;
}

@keyframes kenBurnsZoomRotate {
    0% {
        transform: scale(1.4) rotate(12deg);
    }
    100% {
        transform: scale(1) rotate(0);
    }
}

/* Optional: Dark overlay for better readability of login form */
.ce_gallery.login-gallery::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(0, 0, 0, 0.25);*/
    z-index: 3;
    pointer-events: none;
}

/* Ensure content is above gallery */
.login-content,
#main,
#container {
    position: relative;
    z-index: 10;
}

/* Optional: Slide indicators (dots) */
.gallery-indicators {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 10px;
}

.gallery-indicators .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.gallery-indicators .dot.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.gallery-indicators .dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Mobile optimization - Hide gallery on mobile devices */
@media (max-width: 768px) {
    .ce_gallery.login-gallery {
        display: none;
    }

    .gallery-indicators {
        display: none;
    }
}

/* Smooth loading transition */
.ce_gallery.login-gallery {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Preload hint for better performance */
.ce_gallery.login-gallery li {
    will-change: opacity;
}

.ce_gallery.login-gallery img {
    will-change: transform;
}
