/* ===================================================
   DYORE EXPERIENCES - GALLERY PAGE STYLESHEET
   Scoped component styles for dyore-gallery.html
   (All base, typography, layout, header, map & footer
    styles are globally inherited from style.css)
   =================================================== */

/* ==========================================
   PAGE MAIN WRAPPER
   ========================================== */
.gallery-main-content {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================
   1. GALLERY 4-COLUMN SPLIT HERO BANNER
   ========================================== */
.gallery-hero-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 650px;
    max-height: 960px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-dark);
}

/* 4-Column Image Grid */
.gallery-hero-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: rgba(255, 255, 255, 0.95);
    gap: 1.5px;
    /* Clean crisp vertical white separator line between columns */
    z-index: 1;
}

.gallery-hero-col {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--color-dark);
}

.gallery-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-hero-banner:hover .gallery-hero-img {
    transform: scale(1.035);
}

/* Atmospheric Multi-layer Contrast Overlay */
.gallery-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(21, 19, 18, 0.32) 0%,
            rgba(21, 19, 18, 0.12) 40%,
            rgba(21, 19, 18, 0.38) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Center Content (Title & Button) */
.gallery-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.gallery-hero-title {
    font-family: var(--font-primary, 'Montserrat', sans-serif);
    font-size: 52px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-white);
    margin: 0 0 26px 0;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

/* BOOK NOW Button */
.gallery-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary, 'Montserrat', sans-serif);
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-dark);
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 13px 40px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.gallery-hero-btn:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
}

/* ==========================================
   2. FULL-WIDTH GALLERY GRID SECTION (FIGMA SPEC)
   Figma Exact Specs:
   - Big Size Image: Width 927px, Height 544px (span 2)
   - Small Size Image: Width 451px, Height 544px (span 1)
   - Uniform Gap: 25px (horizontal & vertical)
   - Max-Width: 1403px (451 * 3 + 25 * 2)
   ========================================== */
.gallery-showcase-section {
    position: relative;
    width: 100%;
    background-color: var(--color-white);
    padding: 100px 20px 150px;
    box-sizing: border-box;
}

.gallery-grid-container {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    box-sizing: border-box;
}

/* Big Image Card (Figma: W: 927px, H: 544px) */
.gallery-grid-item.col-big {
    grid-column: span 2;
    height: 544px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #f7f7f7;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Small Image Card (Figma: W: 451px, H: 544px) */
.gallery-grid-item.col-small {
    grid-column: span 1;
    height: 544px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #f7f7f7;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

/* Image Element */
.gallery-grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-grid-item:hover .gallery-grid-img {
    transform: scale(1.035);
}

/* ==========================================
   3. RESPONSIVE MEDIA QUERIES
   ========================================== */
@media screen and (max-width: 1200px) {
    .gallery-showcase-section {
        padding: 30px 20px 80px;
    }

    .gallery-grid-container {
        gap: 18px;
    }

    .gallery-grid-item.col-big,
    .gallery-grid-item.col-small {
        height: 440px;
    }
}

@media screen and (max-width: 992px) {
    .gallery-hero-title {
        font-size: 42px;
        margin-bottom: 22px;
    }

    .gallery-hero-btn {
        font-size: 12.5px;
        padding: 12px 32px;
    }

    .gallery-grid-container {
        gap: 16px;
    }

    .gallery-grid-item.col-big,
    .gallery-grid-item.col-small {
        height: 380px;
    }
}

@media screen and (max-width: 768px) {
    .gallery-hero-banner {
        height: 80vh;
        min-height: 520px;
    }

    .gallery-hero-title {
        font-size: 32px;
        letter-spacing: 0.04em;
        margin-bottom: 18px;
    }

    .gallery-hero-grid {
        gap: 1px;
    }

    .gallery-showcase-section {
        padding: 20px 16px 60px;
    }

    .gallery-grid-container {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .gallery-grid-item.col-big,
    .gallery-grid-item.col-small {
        grid-column: span 1 !important;
        height: 320px;
    }
}

@media screen and (max-width: 480px) {
    .gallery-hero-banner {
        height: 75vh;
        min-height: 460px;
    }

    .gallery-hero-title {
        font-size: 26px;
    }

    .gallery-hero-btn {
        font-size: 11.5px;
        padding: 10px 26px;
    }

    .gallery-grid-item.col-big,
    .gallery-grid-item.col-small {
        height: 270px;
    }
}


/* ==========================================
   4. OFFERS CTA BANNER BACKGROUND (PAGE SPECIFIC)
   ========================================== */
.offers-cta-section {
    background-image: url('https://dyorexperiences.in/wp-content/uploads/2026/08/Frame-1000003698.png') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ==========================================
   5. VIDEO GALLERY CAROUSEL SECTION
   ========================================== */
.video-gallery-section {
    position: relative;
    width: 100%;
    background-color: var(--color-white);
    padding: 0px 0 130px 0;
    overflow: hidden;
    box-sizing: border-box;
}

.video-gallery-header-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 48px;
    padding: 0 20px;
}

.video-gallery-emblem {
    width: 37px;
    height: auto;
    margin-bottom: 14px;
    /* Magenta tint to match brand accent */
    filter: invert(13%) sepia(85%) saturate(5200%) hue-rotate(330deg) brightness(85%) contrast(105%);
}

.video-gallery-subtitle {
    font-family: var(--font-primary, 'Montserrat', sans-serif);
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.video-gallery-title {
    font-family: var(--font-primary, 'Montserrat', sans-serif);
    font-size: 38px;
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 1.25;
    text-transform: uppercase;
    color: var(--color-dark);
    margin: 0;
    text-align: center;
    max-width: 900px;
}

/* Carousel Viewport & Infinite Track */
.video-gallery-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0 20px;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.video-gallery-viewport.is-dragging {
    cursor: grabbing;
}

.video-gallery-viewport:active {
    cursor: grabbing;
}

.video-gallery-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
    transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Individual Video Cards */
.video-card {
    flex: 0 0 350px;
    width: 350px;
    height: 520px;
    position: relative;
    overflow: hidden;
    background-color: #000000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.video-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
}

/* Responsive Media Queries for Video Gallery */
@media screen and (max-width: 1024px) {
    .video-gallery-title {
        font-size: 30px;
    }

    .video-card {
        flex: 0 0 300px;
        width: 300px;
        height: 460px;
    }
}

@media screen and (max-width: 768px) {
    .video-gallery-section {
        padding: 40px 0 45px 0 !important;
    }

    .video-gallery-header-stack {
        margin-bottom: 28px;
        padding: 0 16px;
    }

    .video-gallery-title {
        font-size: 24px;
        line-height: 1.3;
    }

    .video-gallery-viewport {
        padding: 10px 24px 20px;
    }

    .video-gallery-track {
        gap: 20px;
    }

    .video-card {
        flex: 0 0 calc(100vw - 48px);
        width: calc(100vw - 48px);
        max-width: 420px;
        height: 520px;
        border-radius: 12px;
    }
}

@media screen and (max-width: 480px) {
    .video-gallery-header-stack {
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .video-gallery-title {
        font-size: 20px;
        line-height: 1.3;
    }

    .video-gallery-subtitle {
        font-size: 11px;
        letter-spacing: 0.12em;
    }

    .video-gallery-viewport {
        padding: 10px 16px 0px;
    }

    .video-gallery-track {
        gap: 16px;
    }

    .video-card {
        flex: 0 0 calc(100vw - 32px);
        width: calc(100vw - 32px);
        max-width: 360px;
        height: 490px;
        border-radius: 10px;
    }
}


.page-template-gallery .video-gallery-section {
    padding-top: 150px;
    padding-bottom: 50px;
}