/* Image Animation Scroll Widget Styles */

.wml-image-animation-scroll {
    width: 100%;
    overflow-x: hidden;
}

/* Hero Section */
.wml-ias-hero-section {
    position: relative;
    width: 100vw;
    height: 100svh;
    background: #000;
}

/* Heading */
.wml-ias-heading {
    position: absolute;
    font-weight: 900;
    font-size: clamp(2rem, 10vw, 5rem);
    color: #fff;
    inset: 0;
    width: fit-content;
    height: fit-content;
    margin: auto;
    z-index: 1;
    text-align: center;
}

/* Mini Gallery */
.wml-ias-mini-gallery {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform;
    /* Ensure gallery stays behind slides when scaling up */
    z-index: 2;
}

.wml-ias-mini-gallery picture {
    position: absolute;
    display: block;
    width: 100%;
    max-width: 200px;
    height: 250px;
    overflow: hidden;
    transform: scale(.5);
    will-change: transform;
}

.wml-ias-mini-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Double Image Container */
.wml-ias-double-image {
    position: absolute;
    margin: auto;
    inset: 0;
    width: 100%;
    max-width: 1000px;
    height: 500px;
    /* Container itself scales up */
    transform: scale(0);
    will-change: transform;
    z-index: 3;
}

/* Individual Slide (contains 2 pairs) */
.wml-ias-double-image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    /* Flex to show left/right pairs */
    opacity: 0;
    /* Hidden by default */
    will-change: opacity;
}

/* Pictures in the slide */
.wml-ias-double-image-slide picture {
    position: relative;
    flex: 1;
    /* Split width 50/50 */
    height: 100%;
    display: block;
    overflow: hidden;
    /* Important for reveal */
}

.wml-ias-double-image-slide picture img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    will-change: transform;
}

/* Bottom image stays in place */
.wml-ias-double-image-slide picture img.bottom-img {
    z-index: 1;
}

/* Top images overlay and will animate */
.wml-ias-double-image-slide picture img.top-move,
.wml-ias-double-image-slide picture img.bottom-move {
    z-index: 2;
}

/* About Section */
.wml-ias-about-section {
    position: relative;
    width: 100vw;
    height: 100svh;
    background: #000;
}

.wml-ias-about-content {
    position: relative;
    margin: auto;
    width: 100%;
    max-width: 1000px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wml-ias-about-content h2 {
    color: #fff;
    font-size: clamp(2rem, 10vw, 5rem);
    font-weight: 900;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .wml-ias-about-content h2 {
        font-size: clamp(1rem, 5vw, 2rem);
    }

    .wml-ias-double-image {
        height: 300px;
        max-width: 90%;
    }

    .wml-ias-mini-gallery picture {
        max-width: 120px;
        height: 150px;
    }
}