/**
 * Gallery Slideshow Module Styles
 */

.mod-gallery-slideshow {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.gallery-slideshow-container {
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 0;
}

.gallery-image-container {
    position: relative;
    flex: 1 0 0;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1 / 1;
}

.gallery-image-container img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.gallery-no-images,
.gallery-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 400px;
    padding: 2rem;
    text-align: center;
    color: #666;
    font-size: 1.125rem;
}

/* Mobile Layout (below 768px) */
@media (max-width: 767px) {
    .mod-gallery-slideshow {
        padding: 0;
        margin: 0;
        min-height: auto;
    }

    .gallery-slideshow-container {
        padding: 0;
        margin: 0;
        align-items: stretch;
        aspect-ratio: 1 / 1;
    }

    .gallery-wrapper {
        flex-direction: column;
        align-items: stretch;
        height: auto;
    }

    .gallery-image-container {
        width: 100vw;
        height: auto;
        aspect-ratio: 1 / 1;
        flex: none;
        min-width: 100vw;
        max-width: 100vw;
        max-height: 100vw;
    }
}

/* Animation classes for JavaScript-based transitions */
.gallery-image-fade-enter {
    opacity: 0;
}

.gallery-image-fade-enter-active {
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

.gallery-image-fade-exit {
    opacity: 1;
}

.gallery-image-fade-exit-active {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
