/* =========================================================
   RESET
========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap");
@font-face {
  font-family: "GayaTrial";
  src: url(../fonts/gayatrial-regular.otf) format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "lettera";
  src:
    url(../fonts/LetteraTextLLSub-RegularSubset.woff2) format("woff2"),
    url(../fonts/LetteraTextLLSub-BoldSubset.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.font-lettera,
.font-lettera * {
  font-family: "lettera" !important;
}

.font-merriweather, a{
  font-family: "Merriweather", serif;
}

.font-gaya,
.font-gaya * {
  font-family: "GayaTrial" !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    background: #fff8f6;
    color: #222;
}


/* =========================================================
   GALLERY SECTION
========================================================= */

.gallery-section {
    width: 100%;

    padding:
        0
        0px
        60px;

    background: #fff8f6;
}

.gallery-container {
    width: 100%;

    /* max-width: 1250px; */

    margin: 0 auto;
}


/* =========================================================
   BANNER
========================================================= */

.gallery-banner {
    position: relative;

    width: 100%;

    height: 80vh;

    overflow: hidden;

    margin: 0 auto;

    isolation: isolate;
}


/* =========================================================
   BANNER IMAGE
========================================================= */

.gallery-banner-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center center;

    z-index: 1;
}


/* =========================================================
   DARK OVERLAY
========================================================= */

.gallery-banner-overlay {
    position: absolute;

    inset: 0;

    z-index: 2;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0.08) 40%,
            rgba(0, 0, 0, 0.48) 100%
        );

    pointer-events: none;
}


/* =========================================================
   BANNER CONTENT
========================================================= */

.gallery-banner-content {
    position: absolute;

    left: 0;
    right: 0;

    bottom: 60px;

    z-index: 5;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding:
        0
        20px;
}


/* =========================================================
   BANNER TITLE
========================================================= */

.gallery-banner-content h1 {
    margin: 0 0 22px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 48px;

    line-height: 1.12;

    font-weight: 700;

    color: #ffffff;

    text-align: center;

    letter-spacing: -0.5px;

    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.65);
}


/* =========================================================
   GALLERY NAVIGATION
   IMPORTANT:

   THIS IS THE ONLY NAVIGATION.

   It is directly inside the banner,
   below the title.

   NO SECOND NAVIGATION IS CREATED.
========================================================= */

.gallery-tabs {
    position: relative;

    width: auto;

    min-height: auto;

    padding: 0;

    margin: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    background: transparent;

    border: 0;

    border-radius: 0;

    box-shadow: none;
}


/* =========================================================
   COMMON TAB BUTTON
========================================================= */
.gallery-tab {
    position: relative;

    appearance: none;

    border: 0;

    outline: none;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 190px;

    height: 50px;

    padding:
        0
        20px;

    border-radius: 100px;

    font-family: "Merriweather", serif;    

    font-size: 17px;

    line-height: 1;

    font-weight: 700;

    white-space: nowrap;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}


/* =========================================================
   LAUNCH GALLERY
========================================================= */

.gallery-tab.launch-gallery-tab {
    background: #F27F57;
    color: #F5F3B3;
    border:1px solid #F5F3B3;
}

.gallery-tab.launch-gallery-tab.active{
box-shadow:inset 0px 0px 0px 3px #F5F3B3;
}


/* =========================================================
   INSTALLATION
========================================================= */

.gallery-tab.installation-tab {
    background: #F5F3B3;
    color: #B4332F;
    border:1px solid #B4332F;
}

.gallery-tab.installation-tab.active{
box-shadow:inset 0px 0px 0px 3px #B4332F;
}


/* =========================================================
   VIDEO
========================================================= */

.gallery-tab.video-tab {
    background: #850048;
    color: #FEF5F1;
    border:1px solid #FEF5F1;
}

.gallery-tab.video-tab.active{
box-shadow:inset 0px 0px 0px 3px #FEF5F1;
}

/* =========================================================
   TAB HOVER
========================================================= */

.gallery-tab:hover {
    transform: translateY(-2px);

    box-shadow:
        0 5px 12px rgba(0, 0, 0, 0.18);

    filter: brightness(1.04);
}

/* =========================================================
   ACTIVE TAB
========================================================= */

.gallery-tab.active {
    transform: translateY(0);
}


/* =========================================================
   REMOVE OLD UNDERLINE
========================================================= */

.gallery-tab::after {
    display: none !important;

    content: none;
}


/* =========================================================
   GALLERY CONTENT
========================================================= */

.gallery-content {
    width: 100%;

    padding-top: 48px;
}

.gallery-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 180px;
    padding: 24px 20px;
    color: #850048;
    font-size: 16px;
    font-weight: 700;
    font-family: "Merriweather", serif;
    transition: opacity 0.25s ease, max-height 0.25s ease, padding 0.25s ease, margin 0.25s ease;
}

.gallery-loader.hidden {
    opacity: 0;
    max-height: 0;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
}

.gallery-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(133, 0, 72, 0.2);
    border-top-color: #850048;
    border-radius: 50%;
    animation: gallery-spin 0.8s linear infinite;
}

.gallery-go-top {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 46px;
    padding: 14px 100px;
    margin: 50px auto 0;
    border: 0;
    border-radius: 999px;
    background: #F27F57;
    border:1px solid #7B1647;
    color: #F5F3B3;
    font-family: "Merriweather", serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    /* box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16); */
    transition: transform 0.25s ease, filter 0.25s ease;
}

.gallery-go-top:hover {
    transform: translateY(-2px);
    filter: brightness(1.02);
}

@keyframes gallery-spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   TAB PANELS
========================================================= */

.gallery-panel {
    display: none;

    width: 100%;

    animation:
        galleryFadeIn
        0.35s
        ease;
}

.gallery-panel.active {
    display: block;
}


/* =========================================================
   PANEL ANIMATION
========================================================= */

@keyframes galleryFadeIn {

    from {
        opacity: 0;

        transform:
            translateY(8px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}

.mx-1440{
    max-width:1440px;
    width:100%;
    margin: 0 auto;
}

.mx-width{
    width:90%;
    margin: 0 auto;
}


/* =========================================================
   INSTALLATION GRID
========================================================= */

.masonry-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 14px;

    width: 100%;

    align-items: start;
}


/* =========================================================
   MASONRY ITEM
========================================================= */

.masonry-item {
    position: relative;

    width: 100%;

    overflow: hidden;

    background: #f5ebe7;

    cursor: pointer;

    line-height: 0;
}


/* =========================================================
   INSTALLATION - disable hover, overlay and downloads
========================================================= */
.masonry-item.installation-item {
    cursor: default;
}

.masonry-item.installation-item .image-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.masonry-item.installation-item:hover img {
    transform: none !important;
}

/* Floating download icon on image cards (bottom-right) */
.image-download-floating {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* background: rgba(255,255,255,0.97); */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    /* box-shadow: 0 6px 18px rgba(0,0,0,0.12); */
    transition: transform 0.15s ease, background 0.15s ease;
    z-index: 6;
}

.image-download-floating svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* .image-download-floating:hover {
    transform: translateY(-3px);
    background: #fff;
} */


/* =========================================================
   MASONRY IMAGE
========================================================= */

.masonry-item img {
    display: block;

    width: 100%;

    height: auto;

    max-width: 100%;

    transition:
        transform 0.5s ease;
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.image-overlay {
    position: absolute;

    inset: 0;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(
            0,
            0,
            0,
            0.45
        );

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}


/* =========================================================
   SHOW IMAGE OVERLAY
========================================================= */

.masonry-item:hover .image-overlay {
    opacity: 1;

    visibility: visible;
}


/* =========================================================
   IMAGE ZOOM
========================================================= */

.masonry-item:hover img {
    transform: scale(1.04);
}


/* =========================================================
   DOWNLOAD BUTTON
========================================================= */

.download-btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding:
        11px
        18px;

    border-radius: 5px;

    background: #ffffff;

    color: #222;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    line-height: normal;

    transform:
        translateY(10px);

    transition:
        transform 0.3s ease,
        background 0.25s ease,
        color 0.25s ease;
}


/* =========================================================
   DOWNLOAD BUTTON APPEAR
========================================================= */

.masonry-item:hover .download-btn {
    transform:
        translateY(0);
}


/* =========================================================
   DOWNLOAD HOVER
========================================================= */

.download-btn:hover {
    background: #df725c;

    color: #ffffff;
}


/* =========================================================
   DOWNLOAD SVG
========================================================= */

.download-btn svg {
    display: block;

    width: 17px;

    height: 17px;

    fill: none;

    stroke: currentColor;

    stroke-width: 2;

    stroke-linecap: round;

    stroke-linejoin: round;

    flex-shrink: 0;
}


/* =========================================================
   DISABLED DOWNLOAD
========================================================= */

.download-btn.disabled {
    cursor: not-allowed;

    opacity: 0.7;

    transform: none;
}


/* =========================================================
   LAUNCH GALLERY - COLUMN MASONRY
========================================================= */

.masonry-columns {
    width: 100%;

    column-count: 3;

    column-gap: 14px;
}


.masonry-columns .masonry-item {
    display: inline-block;

    width: 100%;

    margin:
        0
        0
        14px;

    break-inside: avoid;

    -webkit-column-break-inside: avoid;

    -moz-column-break-inside: avoid;
}


/* =========================================================
   IMAGE GRID
========================================================= */

.images-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 18px;
}


.image-card {
    position: relative;

    overflow: hidden;

    aspect-ratio: 1 / 1;

    background: #eee;

    cursor: pointer;

    line-height: 0;
}


.image-card img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.45s ease;
}


.image-card:hover img {
    transform:
        scale(1.05);
}


/* =========================================================
   VIDEOS
========================================================= */

.videos-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 20px;

    width: 100%;
}


.video-card {
    position: relative;

    overflow: hidden;

    background: #111;

    border-radius: 4px;
}


.video-card video {
    display: block;

    width: 100%;

    aspect-ratio: 16 / 9;

    object-fit: cover;
}


/* =========================================================
   NO IMAGES
========================================================= */

.gallery-no-images {
    width: 100%;

    padding: 50px;

    text-align: center;

    color: #777;

    font-size: 16px;
}


/* =========================================================
   TABLET
========================================================= */
@media (max-width: 1024px) {
    .gallery-modal .modal-figure{
        padding:40px;
    }

    .gallery-section {
        padding:
            0
            0px
            70px;
    }


    /* Banner */

    /* .gallery-banner {
        height: 450px;
    } */


    /* Title */

    /* .gallery-banner-content {
        bottom: 38px;
    } */


    .gallery-banner-content h1 {
        font-size: 40px;

        margin-bottom: 20px;
    }


    /* Buttons */

    .gallery-tab {
        min-width: 110px;

        /* height: 36px; */

        padding:
            0
            16px;

        font-size: 12px;
    }


    /* Content */

    .gallery-content {
        padding-top: 40px;
    }


    /* Installation */

    .masonry-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 12px;
    }


    /* Launch Gallery */

    .masonry-columns {
        column-count: 2;

        column-gap: 12px;
    }


    .masonry-columns .masonry-item {
        margin-bottom: 12px;
    }


    /* Images */

    .images-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {
    .gallery-modal div.modal-inner{
        /* min-height:280px; */
        height:auto;
    }
    .gallery-modal div.modal-figure{
        padding:50px 20px 20px;
    }
    .gallery-modal .modal-close, .gallery-modal .modal-download-icon, .gallery-modal .modal-play {
        top:0px;
    }

    .gallery-section {
        padding:
            0
            0px
            55px;
    }


    /* =====================================================
       BANNER
    ===================================================== */

    .gallery-banner {
        height: 450px;
    }


    /* =====================================================
       BANNER CONTENT
    ===================================================== */

    .gallery-banner-content {
        bottom: 40px;

        padding:
            0
            12px;
    }


    /* =====================================================
       TITLE
    ===================================================== */

    .gallery-banner-content h1 {
        font-size: 30px;

        line-height: 1.15;

        letter-spacing: 0;

        margin-bottom: 17px;
    }


    /* =====================================================
       BUTTON NAVIGATION
    ===================================================== */

    .gallery-tabs {
        column-gap: 6px;
        row-gap: 12px;
        flex-wrap: wrap;
        width: 100%;
    }

      .gallery-active-title{
        font-size:24px !important;
    }
    .gallery-tab{
    width:170px;
    }


    .gallery-tab {
        min-width: 0;

        height: 34px;

        padding:
            0
            12px;

        font-size: 11px;
    }


    /* =====================================================
       CONTENT
    ===================================================== */

    .gallery-content {
        padding-top: 35px;
    }


    /* =====================================================
       INSTALLATION
    ===================================================== */

    .masonry-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 8px;
    }


    /* =====================================================
       LAUNCH GALLERY
    ===================================================== */

    .masonry-columns {
        column-count: 2;

        column-gap: 8px;
    }


    .masonry-columns .masonry-item {
        margin-bottom: 8px;
    }


    /* =====================================================
       VIDEOS
    ===================================================== */

    .videos-grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }


    /* =====================================================
       DOWNLOAD
    ===================================================== */

    .download-btn {
        padding:
            9px
            13px;

        font-size: 12px;
    }


    .download-btn svg {
        width: 15px;

        height: 15px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    /* .gallery-banner {
        height: 285px;
    } */


    /* .gallery-banner-content {
        bottom: 23px;

        padding:
            0
            8px;
    } */


    .gallery-banner-content h1 {
        font-size: 24px;

        margin-bottom: 14px;
    }


    .gallery-tabs {
        gap: 4px;
    }


    .gallery-tab {
        height: 31px;

        padding:
            0
            9px;

        font-size: 10px;
    }


    .gallery-content {
        padding-top: 30px;
    }


    .masonry-grid {
        grid-template-columns: 1fr;
    }


    .masonry-columns {
        column-count: 1;

        column-gap: 0;
    }


    .masonry-columns .masonry-item {
        margin-bottom: 10px;
    }


    .images-grid {
        grid-template-columns: 1fr;
    }

    

}

.gallery-active-title-container {
    text-align: center;
    padding: 60px 0 12px 0;
}

.gallery-active-title {
    color: #850048; 
    font-size: 40px;
    font-weight: 700;
    margin: 0;
    font-family: "Merriweather", serif;
}

/* =========================================================
   LIGHTBOX / MODAL
   Fixed-size centered modal so all images appear in the
   same sized frame. Top-left close icon, top-right
   download icon (icon-only). Image uses object-fit:contain
========================================================= */

.gallery-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    padding: 24px;
}

.gallery-modal.open {
    display: flex;
}

.gallery-modal .modal-inner {
    position: relative;
    width: min(1100px, 96vw);
    height: min(700px, 90vh);
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.45);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal .modal-figure {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding:50px 80px 40px;
}

.gallery-modal .modal-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.gallery-modal .modal-close,
.gallery-modal .modal-download-icon,
.gallery-modal .modal-play {
    position: absolute;
    top: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* background: rgba(255,255,255,0.98); */
    color: #6a1738;
    text-decoration: none;
    /* box-shadow: 0 6px 18px rgba(0,0,0,0.12); */
    z-index: 4;
}

.gallery-modal .modal-close {
    left: 10px;
}

.gallery-modal .modal-download-icon {
    right: 10px;
}

.gallery-modal .modal-play {
    right: 68px;
}

.gallery-modal .modal-close svg,
.gallery-modal .modal-download-icon svg,
.gallery-modal .modal-play svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}



.videos-grid:has(.video-card:only-child) {
    grid-template-columns: minmax(0, 1200px);
    justify-content: center;
}