/* Horizontal Parallax Gallery Styles (Copied from About Us) */
/* Reverting to Flexbox/Pinning Model */

.mpl-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #F9F5F6;
    /* Match Contact Page BG */
}

.gallery-wrapper {
    display: flex;
    /* Flexbox is back */
    height: 100%;
    width: max-content;
    align-items: center;
    padding: 0 5vw;
    will-change: transform;
}

.gallery-item {
    position: relative;
    margin: 0 1vw;
    flex-shrink: 0;
    perspective: 1000px;
    z-index: 1;
    /* Reset base z-index */
}

/* Base Sizes */
.item-big {
    height: 60vh;
    width: 30vw;
    z-index: 1;
}

.item-normal {
    height: 40vh;
    width: 25vw;
    z-index: 2;
}

.item-small {
    height: 20vh;
    width: 15vw;
    z-index: 3;
}

/* Image Wrapper */
.gallery-img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    clip-path: inset(0 0% 0 0%);
    /* Set to visible by default, GSAP will override if needed */
    border-radius: 2px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: filter 0.8s ease, opacity 0.8s ease;
    cursor: pointer;
}

.gallery-img.is-colored,
.gallery-img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Layers (Relative via Margins/Transforms in Flex) */
.layer-back {
    z-index: 1;
    transform: scale(0.9);
    margin-bottom: 15vh;
    opacity: 0.9;
}

.layer-mid {
    z-index: 2;
    margin-top: 5vh;
}

.layer-front {
    z-index: 3;
    transform: scale(1.1);
    margin-top: 20vh;
}

/* Parallax Text */
.parallax-text {
    position: absolute;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    line-height: 0.8;
    color: #fff;
    mix-blend-mode: difference;
    white-space: nowrap;
    will-change: transform;
    pointer-events: auto;
    text-transform: uppercase;
    z-index: 10;
    /* Original Z-Index */
}

/* Text Sizes */
.text-giant {
    font-size: 35vh !important;
    letter-spacing: -2vh;
    opacity: 0.9;
}

.text-large {
    font-size: 25vh !important;
    letter-spacing: -1vh;
}

.text-medium {
    font-size: 20vh !important;
}

.parallax-text.huge {
    font-size: 35vh !important;
}

/* Responsive */
@media (max-width: 768px) {

    .text-giant,
    .parallax-text.huge {
        font-size: 15vh !important;
    }

    .item-big {
        width: 70vw;
        height: auto;
        aspect-ratio: 2/3;
    }

    .item-normal {
        width: 50vw;
        height: auto;
        aspect-ratio: 2/3;
    }

    .item-small {
        width: 30vw;
        height: auto;
        aspect-ratio: 2/3;
    }
}