/* ==========================================
   GALLERY PAGE SPECIFIC STYLES
   Figma Specification & Design System
   ========================================== */

.gallery-page-body {
    background-color: #000000;
    color: #FFFFFF;
    font-family: 'Figtree', var(--font-body), sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    box-sizing: border-box;
}

.gallery-main {
    padding-top: 90px;
    width: 100%;
}

/* Top Hero Headline Banner */
.gallery-hero-banner {
    padding: 40px 24px 20px 24px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.gallery-hero-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-hero-headline {
    font-family: 'Figtree', var(--font-heading), sans-serif;
    font-style: normal;
    font-weight: 800;
    font-size: clamp(26px, 4vw, 50px);
    line-height: 1.15;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: -0.01em;
}

.gallery-hero-headline .mint-accent {
    color: #86D7D7;
    font-style: italic;
    font-weight: 800;
}

/* OUR MEDIA Section */
.gallery-media-section {
    padding: 20px 0 90px 0;
    width: 100%;
    box-sizing: border-box;
}

.gallery-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
}

.gallery-media-header {
    margin-bottom: 28px;
}

.gallery-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    width: 100%;
}

.gallery-section-title {
    font-family: 'Figtree', var(--font-heading), sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 26px;
    line-height: 1;
    letter-spacing: 0.06em;
    color: #FFFFFF;
    margin: 0;
    white-space: nowrap;
}

/* Dynamic CTA Star Divider Container */
.gallery-star-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.gallery-star-divider .cta-star-item {
    height: 40px;
    width: 40px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(84%) sepia(31%) saturate(735%) hue-rotate(124deg) brightness(97%) contrast(92%);
}

.gallery-section-desc {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.65);
    max-width: 960px;
    margin: 0;
}

/* Category Tabs Bar (Journey Tab System Specification) */
.gallery-tabs-container {
    width: 100%;
    margin-top: 24px;
}

.gallery-tabs {
    display: flex;
    gap: 4px;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
    margin-bottom: -1.5px;
}

.gallery-tab {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    padding: 8px 18px;
    border-radius: 0 28px 0 0;
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 11px;
    line-height: 127%;
    letter-spacing: 0.18em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gallery-tab .tab-flower-icon {
    height: 1.1em;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    transition: filter 0.2s ease;
    filter: brightness(0) invert(1);
}

.gallery-tab.active,
.gallery-tab:hover {
    background-color: #FEF08A;
    color: #000000;
    border-color: #FEF08A;
}

.gallery-tab.active .tab-flower-icon,
.gallery-tab:hover .tab-flower-icon {
    filter: brightness(0);
}

.gallery-tabs-divider {
    border: none;
    border-top: 1.5px solid rgba(255, 255, 255, 0.2);
    margin: 0 0 32px 0;
}

/* Main Featured Hero Video Card (The Big Video in Middle) */
.gallery-featured-wrapper {
    width: 100%;
    margin-bottom: 38px;
}

.featured-video-card {
    width: 100%;
    background-color: #090b0e;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    transition: border-color 0.3s ease;
}

.featured-media-container {
    width: 100%;
    position: relative;
    background-color: #000000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-media-img {
    width: 100%;
    height: auto;
    max-height: 720px;
    object-fit: contain;
    display: block;
}

.featured-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(134, 215, 215, 0.95);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    padding-left: 5px;
    cursor: pointer;
    box-shadow: 0 10px 35px rgba(134, 215, 215, 0.5);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 5;
}

.featured-media-container:hover .featured-play-btn {
    transform: translate(-50%, -50%) scale(1.12);
    background-color: #FFFFFF;
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.6);
}

.featured-video-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.featured-video-info {
    padding: 24px 30px;
    box-sizing: border-box;
}

.featured-tag {
    color: #86D7D7;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.featured-title {
    font-family: 'Figtree', sans-serif;
    font-size: clamp(20px, 2.5vw, 32px);
    font-weight: 900;
    color: #FFFFFF;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.featured-desc {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    max-width: 1050px;
}

/* Horizontal Scroll Gallery Cards Track */
.gallery-scroll-wrapper {
    width: 100%;
    position: relative;
}

.gallery-scroll-track {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 22px;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0 20px 0;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-scroll-track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.gallery-card {
    width: 320px;
    flex-shrink: 0;
    cursor: pointer;
    background-color: transparent;
    border-radius: 8px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover {
    transform: translateY(-4px);
}

.gallery-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: #111111;
}

.gallery-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000000;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-card-img {
    transform: scale(1.06);
}

.gallery-card-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    border: 1.5px solid #86D7D7;
    color: #86D7D7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    padding-left: 3px;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.gallery-card:hover .gallery-card-play-overlay {
    opacity: 1;
    background-color: #86D7D7;
    color: #000000;
    transform: translate(-50%, -50%) scale(1.12);
}

.gallery-card-meta {
    padding-top: 12px;
}

.gallery-card-sub {
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.gallery-card-title {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-card.active-card .gallery-card-thumb {
    border-color: #86D7D7;
    box-shadow: 0 0 15px rgba(134, 215, 215, 0.4);
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .gallery-main {
        padding-top: 80px;
    }

    .gallery-container {
        padding: 0 20px;
    }

    .gallery-section-title {
        font-size: 22px;
    }

    .featured-play-btn {
        width: 64px;
        height: 64px;
        font-size: 22px;
    }

    .featured-video-info {
        padding: 18px 20px;
    }

    .gallery-card {
        width: 260px;
    }
}

/* ==========================================
   OUR ART Section Styling (Component 8 - Figma Frame 1000008341)
   ========================================== */
.gallery-art-section {
    background-color: #000000;
    padding: 64px 0 90px 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.gallery-art-header {
    margin-bottom: 32px;
}

/* Manual Horizontal Scroll Track for OUR ART */
.gallery-art-track-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    padding: 24px 0 18px 0;
    margin: 0 auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #86D7D7 rgba(255, 255, 255, 0.1);
}

/* Custom Scrollbar Styling */
.gallery-art-track-wrapper::-webkit-scrollbar {
    height: 6px;
}

.gallery-art-track-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    margin: 0 32px;
}

.gallery-art-track-wrapper::-webkit-scrollbar-thumb {
    background: #86D7D7;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.gallery-art-track-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a2ecec;
}

.gallery-art-track {
    display: flex;
    align-items: center;
    gap: 32px;
    width: max-content;
    padding: 0 32px;
}

.art-card {
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85);
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    background-color: #06090b;
}

.art-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: #86D7D7;
    box-shadow: 0 20px 48px rgba(134, 215, 215, 0.3);
}

.art-card-landscape {
    width: 360px;
    height: 250px;
}

.art-card-portrait {
    width: 330px;
    height: 460px;
}

.art-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================
   OUR ART Pop-Out Modal Overlay Styling (Liquid Glassmorphism)
   ========================================== */
.art-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 24px;
    box-sizing: border-box;
}

.art-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.art-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.art-modal-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.art-modal-imgbox {
    flex: 0 0 auto;
    max-width: 520px;
    max-height: 82vh;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(134, 215, 215, 0.25);
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.art-modal-img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.art-modal-infobox {
    flex: 1;
    max-width: 620px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.01) 100%), rgba(12, 18, 22, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.55);
    border-left: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 16px;
    padding: 36px 40px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1.5px 1.5px rgba(255, 255, 255, 0.5), inset 0 -1px 2px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(28px) saturate(220%);
    -webkit-backdrop-filter: blur(28px) saturate(220%);
}

.art-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 4px 8px;
}

.art-modal-close:hover {
    color: #86D7D7;
    transform: scale(1.2);
}

.art-infobox-grid {
    display: flex;
    gap: 36px;
    align-items: flex-start;
}

.art-meta-col {
    flex: 0 0 150px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.art-meta-group {
    display: flex;
    flex-direction: column;
}

.art-meta-label {
    font-family: 'Figtree', var(--font-heading), sans-serif;
    font-style: italic;
    font-weight: 800;
    font-size: 12.5px;
    letter-spacing: 0.08em;
    color: #FFFFFF;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.art-meta-val {
    font-family: 'Open Sans', var(--font-body), sans-serif;
    font-style: italic;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.art-desc-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.art-desc-text {
    font-family: 'Open Sans', var(--font-body), sans-serif;
    font-style: italic;
    font-size: 13.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    margin: 6px 0 0 0;
}

@media (max-width: 900px) {
    .art-modal-content {
        flex-direction: column !important;
        gap: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .art-infobox-grid {
        flex-direction: column;
        gap: 16px;
    }

    .art-meta-col {
        flex: 1;
    }

    .art-card-landscape {
        width: 290px;
        height: 200px;
    }

    .art-card-portrait {
        width: 270px;
        height: 380px;
    }
}