/* =========================================================
   COMMON PREMIUM STACKED ROOM CAROUSEL
========================================================= */

.suite-gallery-section {
    position: relative;
    padding: 60px 20px;
    margin: 0;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 48%,
            rgba(171, 138, 98, 0.14),
            transparent 38%
        ),
        linear-gradient(
            180deg,
            #faf8f4 0%,
            #f4f0e9 100%
        );
}


/* Decorative top line */

.suite-gallery-section::before {
    content: "";

    position: absolute;
    top: 0;
    left: 50%;

    width: 1px;
    height: 65px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(171, 138, 98, 0.7)
        );
}


/* =========================================================
   HEADING
========================================================= */

.suite-gallery-heading {
    position: relative;
    z-index: 5;

    max-width: 760px;

    margin: 0 auto 48px;

    padding: 0 15px;

    text-align: center;
}


.suite-gallery-subtitle {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 14px;

    margin-bottom: 18px;

    font-family: "Jost", sans-serif;

    font-size: 13px;
    font-weight: 500;

    letter-spacing: 3px;
    text-transform: uppercase;

    color: #ab8a62;
}


.suite-gallery-subtitle::before,
.suite-gallery-subtitle::after {
    content: "";

    width: 35px;
    height: 1px;

    background: #ab8a62;
}


.suite-gallery-heading h2 {
    margin-bottom: 20px;

    font-family: "Gilda Display", serif;

    font-size: 58px;
    line-height: 1.08;
    font-weight: 400;

    color: #1b1b1b;
}


.suite-gallery-heading p {
    max-width: 600px;

    margin: 0 auto;

    font-size: 17px;
    line-height: 1.8;

    color: #747474;
}


/* =========================================================
   CAROUSEL
========================================================= */

.suite-stack-carousel {
    position: relative;

    max-width: 1260px;

    margin: 0 auto;
}


.suite-stack-stage {
    position: relative;

    width: 100%;
    height: 540px;

    perspective: 1800px;
    transform-style: preserve-3d;
}


/* =========================================================
   CARDS
========================================================= */

.suite-stack-card {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 72%;
    height: 480px;

    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, 0.45);

    border-radius: 14px;

    background: #1b1b1b;

    box-shadow:
        0 25px 70px rgba(30, 24, 18, 0.15);

    opacity: 0;

    pointer-events: none;

    transform:
        translate(-50%, -50%)
        scale(0.7);

    transition:
        transform 0.9s cubic-bezier(.22, 1, .36, 1),
        opacity 0.7s ease,
        filter 0.7s ease,
        box-shadow 0.7s ease;

    will-change:
        transform,
        opacity;
}


.suite-stack-card img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: inherit;

    transition:
        transform 1.2s cubic-bezier(.22, 1, .36, 1);
}


/* Inner premium frame */

.suite-stack-card::before {
    content: "";

    position: absolute;
    inset: 12px;

    z-index: 3;

    border:
        1px solid rgba(255, 255, 255, 0.22);

    border-radius: 8px;

    pointer-events: none;

    opacity: 0;

    transition:
        opacity 0.5s ease;
}


/* Image overlay */

.suite-stack-card::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        rgba(15, 15, 15, 0);

    pointer-events: none;

    transition:
        background 0.7s ease;
}


/* =========================================================
   ACTIVE CARD
========================================================= */

.suite-stack-card.is-active {
    z-index: 10;

    opacity: 1;

    pointer-events: auto;

    transform:
        translate(-50%, -50%)
        translateZ(90px)
        scale(1);

    box-shadow:
        0 48px 110px rgba(20, 18, 15, 0.30),
        0 18px 45px rgba(20, 18, 15, 0.18);
}


.suite-stack-card.is-active::before {
    opacity: 1;
}


.suite-stack-card.is-active img {
    transform:
        scale(1.025);
}


/* =========================================================
   PREVIOUS CARD
========================================================= */

.suite-stack-card.is-prev {
    z-index: 5;

    opacity: 0.66;

    pointer-events: auto;

    cursor: pointer;

    transform:
        translate(-78%, -50%)
        translateZ(-150px)
        rotateY(12deg)
        scale(0.83);

    filter:
        brightness(0.66)
        saturate(0.82);
}


.suite-stack-card.is-prev::after {
    background:
        rgba(15, 15, 15, 0.23);
}


/* =========================================================
   NEXT CARD
========================================================= */

.suite-stack-card.is-next {
    z-index: 5;

    opacity: 0.66;

    pointer-events: auto;

    cursor: pointer;

    transform:
        translate(-22%, -50%)
        translateZ(-150px)
        rotateY(-12deg)
        scale(0.83);

    filter:
        brightness(0.66)
        saturate(0.82);
}


.suite-stack-card.is-next::after {
    background:
        rgba(15, 15, 15, 0.23);
}


/* =========================================================
   BACK CARDS
========================================================= */

.suite-stack-card.is-prev-2 {
    z-index: 2;

    opacity: 0.28;

    transform:
        translate(-91%, -50%)
        translateZ(-300px)
        rotateY(16deg)
        scale(0.68);

    filter:
        brightness(0.55);
}


.suite-stack-card.is-next-2 {
    z-index: 2;

    opacity: 0.28;

    transform:
        translate(-9%, -50%)
        translateZ(-300px)
        rotateY(-16deg)
        scale(0.68);

    filter:
        brightness(0.55);
}


/* =========================================================
   CONTROLS
========================================================= */

.suite-stack-controls {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 22px;

    margin-top: 12px;
}


.suite-stack-arrow {
    width: 52px;
    height: 52px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1px solid rgba(27, 27, 27, 0.16);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.56);

    color: #1b1b1b;

    font-size: 15px;

    box-shadow:
        0 10px 28px rgba(20, 18, 15, 0.08);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    cursor: pointer;

    transition:
        background 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease,
        transform 0.35s ease;
}


.suite-stack-arrow:hover {
    background: #ab8a62;

    color: #ffffff;

    border-color: #ab8a62;

    transform:
        translateY(-2px)
        scale(1.04);
}


/* =========================================================
   COUNTER
========================================================= */

.suite-stack-counter {
    min-width: 100px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    font-family: "Jost", sans-serif;
}


.suite-stack-counter .current {
    font-size: 18px;
    font-weight: 500;

    color: #ab8a62;
}


.suite-stack-counter .total {
    font-size: 14px;

    color: #999999;
}


.counter-line {
    width: 28px;
    height: 1px;

    background:
        rgba(27, 27, 27, 0.25);
}


/* Remove footer spacing */

.suite-gallery-section + .offcanvas {
    margin-top: 0;
}


#footer {
    margin-top: 0;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .suite-gallery-section {
        padding:
            75px 0 28px;
    }


    .suite-gallery-heading {
        margin-bottom:
            38px;
    }


    .suite-gallery-heading h2 {
        font-size:
            48px;
    }


    .suite-stack-stage {
        height:
            470px;
    }


    .suite-stack-card {
        width:
            78%;

        height:
            415px;
    }


    .suite-stack-card.is-prev {
        transform:
            translate(-70%, -50%)
            scale(0.82);
    }


    .suite-stack-card.is-next {
        transform:
            translate(-30%, -50%)
            scale(0.82);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .suite-gallery-section {
        padding:
            60px 0 22px;
    }


    .suite-gallery-heading {
        margin-bottom:
            30px;
    }


    .suite-gallery-subtitle {
        font-size:
            11px;

        letter-spacing:
            2px;
    }


    .suite-gallery-subtitle::before,
    .suite-gallery-subtitle::after {
        width:
            22px;
    }


    .suite-gallery-heading h2 {
        font-size:
            38px;

        line-height:
            1.15;
    }


    .suite-gallery-heading p {
        font-size:
            15px;

        line-height:
            1.7;
    }


    .suite-stack-stage {
        height:
            365px;
    }


    .suite-stack-card {
        width:
            84%;

        height:
            325px;

        border-radius:
            10px;
    }


    .suite-stack-card.is-active {
        transform:
            translate(-50%, -50%)
            scale(1);
    }


    .suite-stack-card.is-prev {
        opacity:
            0.4;

        transform:
            translate(-62%, -50%)
            scale(0.82);
    }


    .suite-stack-card.is-next {
        opacity:
            0.4;

        transform:
            translate(-38%, -50%)
            scale(0.82);
    }


    .suite-stack-card.is-prev-2,
    .suite-stack-card.is-next-2 {
        opacity: 0;
    }


    .suite-stack-controls {
        margin-top:
            8px;
    }


    .suite-stack-arrow {
        width:
            50px;

        height:
            50px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .suite-gallery-section {
        padding-bottom:
            18px;
    }


    .suite-gallery-heading h2 {
        font-size:
            33px;
    }


    .suite-stack-stage {
        height:
            315px;
    }


    .suite-stack-card {
        width:
            88%;

        height:
            280px;
    }

}