/* =====================================================
   YUVA SATHI SANGATHAN - GALLERY PAGE STYLESHEET
   Matching the Reference Design System
   ===================================================== */

:root {
    --gal-navy: #0B2028;
    --gal-green: #075C38;
    --gal-green-light: #EBF3EE;
    --gal-orange: #F15A17;
    --gal-orange-light: #FFF2EB;
    --gal-cream-bg: #FAF9F3;
    --gal-white: #FFFFFF;
    --gal-text-dark: #0B2028;
    --gal-text-muted: #556872;
    --gal-border: #E8E5DD;
    --gal-border-light: #F0EDE5;
    
    --gal-font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --gal-font-hand: 'Caveat', cursive, sans-serif;
    
    --gal-radius-sm: 8px;
    --gal-radius-md: 14px;
    --gal-radius-lg: 18px;
    --gal-radius-xl: 24px;
    --gal-radius-pill: 9999px;
    
    --gal-shadow-card: 0 8px 24px rgba(11, 32, 40, 0.06);
    --gal-shadow-hover: 0 16px 36px rgba(11, 32, 40, 0.14);
}

/* Page Body Base */
.gallery-page-body {
    background-color: var(--gal-cream-bg);
    color: var(--gal-text-dark);
    font-family: var(--gal-font-main);
    overflow-x: hidden;
    position: relative;
}

/* Container Constraint - Matching 100% width 1440px site standard */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

/* Active Nav Indicator matching reference */
.desktop-nav .nav-link[href="gallery.html"].active,
.mobile-nav-drawer .nav-link[href="gallery.html"].active,
.desktop-nav .nav-link.active,
.mobile-nav-drawer .nav-link.active {
    color: var(--gal-orange) !important;
    position: relative;
    font-weight: 700;
}

.desktop-nav .nav-link[href="gallery.html"].active::after,
.desktop-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--gal-orange);
    border-radius: 2px;
}

/* =====================================================
   1. HERO SECTION
   ===================================================== */
.gallery-hero-section {
    position: relative;
    background-color: var(--gal-cream-bg);
    padding: 36px 0 28px;
    overflow: hidden;
}

/* Subtle botanical leaf decorations in margins */
.deco-leaf {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.75;
}

.deco-leaf-hero-left {
    top: 10px;
    left: -20px;
    width: 140px;
    height: auto;
}

.deco-leaf-hero-bottom-left {
    bottom: -15px;
    left: 20px;
    width: 120px;
    height: auto;
}

.deco-leaf-hero-right {
    top: 30px;
    right: -10px;
    width: 150px;
    height: auto;
}

.deco-leaf-grid-left {
    top: 35%;
    left: -25px;
    width: 130px;
    height: auto;
}

.deco-leaf-grid-right {
    top: 25%;
    right: -25px;
    width: 135px;
    height: auto;
}

.deco-leaf-loadmore-right {
    bottom: 22%;
    right: -20px;
    width: 130px;
    height: auto;
}

.gallery-hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 370px 1fr 180px;
    align-items: center;
    gap: 20px;
    min-height: 380px;
}

/* Left Hero Content */
.gallery-hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    z-index: 3;
}

.gal-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    color: var(--gal-text-muted);
    font-weight: 500;
}

.gal-breadcrumb .bullet {
    color: var(--gal-orange);
    font-size: 0.95rem;
}

.gal-breadcrumb a {
    color: var(--gal-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.gal-breadcrumb a:hover {
    color: var(--gal-orange);
}

.gal-breadcrumb .separator {
    color: #9AA7AF;
    font-size: 0.8rem;
}

.gal-breadcrumb .current {
    color: var(--gal-navy);
    font-weight: 600;
}

.gal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--gal-orange);
}

.gal-eyebrow::before {
    content: '•';
    color: var(--gal-orange);
    font-size: 1.1rem;
    line-height: 0;
}

.gallery-hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.12;
    color: var(--gal-navy);
    letter-spacing: -0.03em;
    margin: 0;
}

.gallery-hero-title .title-orange {
    color: var(--gal-orange);
    display: block;
}

.gallery-hero-desc {
    font-size: 0.96rem;
    line-height: 1.55;
    color: var(--gal-text-muted);
    margin: 0;
    max-width: 340px;
}

/* Center Hero Visual Banner (Photo with Organic Edges) */
.gallery-hero-center {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
}

.hero-handwritten-left {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%) rotate(-3deg);
    z-index: 5;
    text-align: right;
    pointer-events: none;
}

.script-phrase-green {
    font-family: var(--gal-font-hand);
    font-size: 1.65rem;
    font-weight: 700;
    color: #075C38;
    line-height: 1.05;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.script-underline-orange {
    width: 105px;
    height: 12px;
    margin-top: 4px;
    display: block;
}

.gallery-hero-image-frame {
    position: relative;
    width: 100%;
    max-width: 530px;
    height: 310px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(11, 32, 40, 0.12);
}

.hero-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-hero-image-frame:hover .hero-photo-img {
    transform: scale(1.03);
}

/* Right Hero Callout & Camera Icon */
.gallery-hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    padding-left: 10px;
}

.hero-handwritten-right {
    position: relative;
}

.hero-handwritten-right .script-phrase-green {
    align-items: flex-start;
    font-size: 1.45rem;
    transform: rotate(2deg);
}

.hero-handwritten-right .script-underline-orange {
    width: 75px;
    margin-left: 0;
}

.hero-camera-doodle {
    width: 68px;
    height: auto;
    margin-top: 4px;
    margin-left: 14px;
    opacity: 0.88;
    animation: floatCamera 4s ease-in-out infinite;
}

@keyframes floatCamera {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(2deg); }
}

/* =====================================================
   2. GALLERY FILTER & SEARCH BAR
   ===================================================== */
.gallery-filter-section {
    position: relative;
    z-index: 5;
    padding: 12px 0 24px;
}

.filter-bar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
}

.filter-pills-list {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.filter-pill-btn {
    appearance: none;
    border: 1px solid var(--gal-border);
    background-color: var(--gal-white);
    color: var(--gal-navy);
    font-family: var(--gal-font-main);
    font-size: 0.83rem;
    font-weight: 500;
    padding: 7px 13px;
    border-radius: var(--gal-radius-pill);
    cursor: pointer;
    transition: all 0.22s ease;
    white-space: nowrap;
}

.filter-pill-btn:hover {
    border-color: var(--gal-green);
    color: var(--gal-green);
    background-color: #F6F9F7;
    transform: translateY(-1px);
}

.filter-pill-btn.active {
    background-color: var(--gal-green);
    border-color: var(--gal-green);
    color: var(--gal-white);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(7, 92, 56, 0.25);
}

/* Search Box on the Right */
.filter-search-wrap {
    position: relative;
    min-width: 190px;
    max-width: 220px;
    flex-shrink: 0;
}

.filter-search-input {
    width: 100%;
    padding: 8px 14px 8px 36px;
    font-family: var(--gal-font-main);
    font-size: 0.86rem;
    color: var(--gal-navy);
    background-color: var(--gal-white);
    border: 1px solid var(--gal-border);
    border-radius: var(--gal-radius-pill);
    outline: none;
    transition: all 0.2s ease;
}

.filter-search-input::placeholder {
    color: #94A3B8;
}

.filter-search-input:focus {
    border-color: var(--gal-green);
    box-shadow: 0 0 0 3px rgba(7, 92, 56, 0.12);
}

.search-icon-inside {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #94A3B8;
    pointer-events: none;
}

/* =====================================================
   3. MASONRY GALLERY GRID (24-Column Asymmetric)
   ===================================================== */
.gallery-grid-section {
    position: relative;
    padding: 10px 0 44px;
    z-index: 3;
}

.gallery-masonry-grid {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 18px;
    width: 100%;
}

/* Base Card Styling */
.gallery-card {
    position: relative;
    border-radius: var(--gal-radius-lg);
    overflow: hidden;
    box-shadow: var(--gal-shadow-card);
    cursor: pointer;
    background-color: #E2E8F0;
    transition: transform 0.35s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.35s ease;
    outline: none;
}

.gallery-card:hover,
.gallery-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--gal-shadow-hover);
}

.gallery-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.2, 0, 0.2, 1);
}

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

/* Dark Gradient Overlay for Text Readability */
.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(11, 32, 40, 0) 38%, 
        rgba(11, 32, 40, 0.45) 68%, 
        rgba(11, 32, 40, 0.92) 100%
    );
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 18px;
    pointer-events: none;
    transition: background 0.3s ease;
}

.gallery-card:hover .gallery-card-overlay {
    background: linear-gradient(180deg, 
        rgba(11, 32, 40, 0) 30%, 
        rgba(11, 32, 40, 0.52) 64%, 
        rgba(11, 32, 40, 0.96) 100%
    );
}

.gallery-card-meta {
    color: var(--gal-white);
    max-width: 82%;
}

.gallery-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gal-white);
    margin: 0;
    line-height: 1.22;
}

.gallery-card-subtitle {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 3px 0 0;
    line-height: 1.25;
    font-weight: 400;
}

/* Circular Arrow Action Button */
.gallery-card-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    background: rgba(11, 32, 40, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gal-white);
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.gallery-card:hover .gallery-card-arrow {
    background: var(--gal-orange);
    border-color: var(--gal-orange);
    transform: scale(1.08) translateX(2px);
}

/* Asymmetric 24-Column Grid Spans & Heights matching the Reference */

/* Row 1 (Total 24 cols): Lokmanthan (7) + Tree (5) + Creative (5) + Youth Club (7) */
.span-row1-col1 {
    grid-column: span 7;
    height: 300px;
}

.span-row1-col2 {
    grid-column: span 5;
    height: 300px;
}

.span-row1-col3 {
    grid-column: span 5;
    height: 300px;
}

.span-row1-col4 {
    grid-column: span 7;
    height: 300px;
}

/* Row 2 (Total 24 cols): Health Camp (7) + Arunima (7) + Swachh Rakhenge (10 - Wide) */
.span-row2-col1 {
    grid-column: span 7;
    height: 270px;
}

.span-row2-col2 {
    grid-column: span 7;
    height: 270px;
}

.span-row2-col3 {
    grid-column: span 10;
    height: 270px;
}

/* Row 3 (Total 24 cols): 4 Equal Cards (6 cols each) */
.span-row3-col1,
.span-row3-col2,
.span-row3-col3,
.span-row3-col4 {
    grid-column: span 6;
    height: 240px;
}

/* Row 4 (Total 24 cols): 4 Equal Cards (6 cols each) */
.span-row4-col1,
.span-row4-col2,
.span-row4-col3,
.span-row4-col4 {
    grid-column: span 6;
    height: 240px;
}

/* Default / Additional loaded items span */
.span-standard {
    grid-column: span 6;
    height: 240px;
}

/* No Results State */
.gallery-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #FFFFFF;
    border-radius: var(--gal-radius-lg);
    border: 1px dashed var(--gal-border);
}

.gallery-empty-state i {
    font-size: 2.8rem;
    color: var(--gal-orange);
    margin-bottom: 12px;
}

.gallery-empty-state h3 {
    font-size: 1.3rem;
    color: var(--gal-navy);
    margin-bottom: 6px;
}

.gallery-empty-state p {
    color: var(--gal-text-muted);
    margin-bottom: 16px;
}

.btn-reset-filters {
    appearance: none;
    background: var(--gal-green);
    color: #FFFFFF;
    border: none;
    padding: 9px 20px;
    border-radius: var(--gal-radius-pill);
    font-family: var(--gal-font-main);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-reset-filters:hover {
    opacity: 0.9;
}

/* =====================================================
   4. LOAD MORE BUTTON
   ===================================================== */
.gallery-loadmore-wrap {
    text-align: center;
    padding: 10px 0 54px;
    position: relative;
    z-index: 3;
}

.btn-load-more {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 28px;
    font-family: var(--gal-font-main);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gal-navy);
    background-color: var(--gal-white);
    border: 1px solid var(--gal-border);
    border-radius: var(--gal-radius-pill);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(11, 32, 40, 0.04);
    transition: all 0.24s ease;
}

.btn-load-more i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.btn-load-more:hover {
    border-color: var(--gal-green);
    color: var(--gal-green);
    box-shadow: 0 6px 18px rgba(7, 92, 56, 0.12);
    transform: translateY(-2px);
}

.btn-load-more:hover i {
    transform: translateY(2px);
}

/* =====================================================
   5. CTA SECTION (Be a Part of Many More Moments)
   ===================================================== */
.gallery-cta-section {
    position: relative;
    padding: 10px 0 80px;
    z-index: 3;
}

.gallery-cta-banner {
    position: relative;
    background: linear-gradient(90deg, #F0F5F1 0%, #FAF9F3 50%, #FAF9F3 100%);
    border-radius: var(--gal-radius-xl);
    border: 1px solid #E5ECE6;
    box-shadow: 0 12px 36px rgba(11, 32, 40, 0.06);
    overflow: hidden;
    display: grid;
    grid-template-columns: 380px 1fr 200px;
    align-items: center;
    min-height: 190px;
}

/* Left Sunset Photo */
.cta-sunset-wrapper {
    position: relative;
    height: 100%;
    min-height: 190px;
    overflow: hidden;
}

.cta-sunset-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 68%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 68%, rgba(0,0,0,0) 100%);
}

/* Center CTA Content */
.cta-center-content {
    padding: 24px 20px 24px 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta-text-group {
    max-width: 320px;
}

.cta-heading {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--gal-navy);
    line-height: 1.2;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.cta-desc {
    font-size: 0.88rem;
    color: var(--gal-text-muted);
    line-height: 1.45;
    margin: 0;
}

.btn-cta-involved {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--gal-green);
    color: var(--gal-white);
    font-family: var(--gal-font-main);
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--gal-radius-pill);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(7, 92, 56, 0.25);
    transition: all 0.25s ease;
}

.btn-cta-involved:hover {
    background-color: #05482b;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(7, 92, 56, 0.32);
}

.btn-cta-involved i {
    font-size: 1.05rem;
    transition: transform 0.2s ease;
}

.btn-cta-involved:hover i {
    transform: translateX(3px);
}

/* Right Handwritten Script */
.cta-right-script {
    padding-right: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
}

.cta-handwritten-text {
    font-family: var(--gal-font-hand);
    font-size: 1.55rem;
    font-weight: 700;
    color: #075C38;
    line-height: 1.05;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transform: rotate(2deg);
}

.cta-script-underline {
    width: 90px;
    height: 10px;
    margin-top: 3px;
    margin-right: -4px;
}

.cta-sparkle-rays {
    position: absolute;
    top: -10px;
    right: 18px;
    width: 22px;
    height: 22px;
}

/* =====================================================
   6. LIGHTBOX MODAL (Accessible interactive preview)
   ===================================================== */
.gallery-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(11, 32, 40, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 24px;
}

.gallery-lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content-box {
    position: relative;
    max-width: 900px;
    width: 100%;
    background: #FFFFFF;
    border-radius: var(--gal-radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}

.gallery-lightbox-modal.active .lightbox-content-box {
    transform: scale(1);
}

.lightbox-img-wrap {
    width: 100%;
    max-height: 520px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-active-img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    display: block;
}

.lightbox-footer-info {
    padding: 16px 24px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.lightbox-meta-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gal-navy);
    margin: 0 0 4px;
}

.lightbox-meta-subtitle {
    font-size: 0.9rem;
    color: var(--gal-text-muted);
    margin: 0;
}

.lightbox-badge-category {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: var(--gal-radius-pill);
    background: var(--gal-green-light);
    color: var(--gal-green);
}

/* Lightbox Navigation & Close Buttons */
.lightbox-btn-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #FFFFFF;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.lightbox-btn-close:hover {
    background: var(--gal-orange);
    transform: scale(1.08);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    color: var(--gal-navy);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lightbox-nav-btn:hover {
    background: #FFFFFF;
    color: var(--gal-green);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-nav-prev { left: 16px; }
.lightbox-nav-next { right: 16px; }

/* =====================================================
   7. RESPONSIVE MEDIA QUERIES
   ===================================================== */

/* Tablet Screens (1024px and below) */
@media (max-width: 1024px) {
    .gallery-hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .gallery-hero-right {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding-top: 10px;
    }

    .hero-handwritten-left {
        display: none;
    }

    .gallery-masonry-grid {
        grid-template-columns: repeat(12, 1fr);
    }

    .span-row1-col1 { grid-column: span 6; height: 260px; }
    .span-row1-col2 { grid-column: span 6; height: 260px; }
    .span-row1-col3 { grid-column: span 6; height: 260px; }
    .span-row1-col4 { grid-column: span 6; height: 260px; }

    .span-row2-col1 { grid-column: span 6; height: 250px; }
    .span-row2-col2 { grid-column: span 6; height: 250px; }
    .span-row2-col3 { grid-column: span 12; height: 250px; }

    .span-row3-col1, .span-row3-col2, .span-row3-col3, .span-row3-col4,
    .span-row4-col1, .span-row4-col2, .span-row4-col3, .span-row4-col4,
    .span-standard {
        grid-column: span 6;
        height: 230px;
    }

    .gallery-cta-banner {
        grid-template-columns: 300px 1fr;
    }

    .cta-right-script {
        display: none;
    }
}

/* Mobile Screens (768px and below) */
@media (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .gallery-hero-section {
        padding: 20px 0 20px;
    }

    .gallery-hero-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-hero-left {
        max-width: 100%;
        text-align: left;
    }

    .gallery-hero-title {
        font-size: 2.2rem;
    }

    .gallery-hero-center {
        min-height: auto;
    }

    .gallery-hero-image-frame {
        max-width: 100%;
        height: 250px;
    }

    .gallery-hero-right {
        display: none;
    }

    /* Filter Bar on Mobile */
    .filter-bar-container {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .filter-pills-list {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filter-pills-list::-webkit-scrollbar {
        display: none;
    }

    .filter-search-wrap {
        min-width: 100%;
        max-width: 100%;
    }

    /* 2-Column Grid on Mobile */
    .gallery-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .span-row1-col1, .span-row1-col2, .span-row1-col3, .span-row1-col4,
    .span-row2-col1, .span-row2-col2,
    .span-row3-col1, .span-row3-col2, .span-row3-col3, .span-row3-col4,
    .span-row4-col1, .span-row4-col2, .span-row4-col3, .span-row4-col4,
    .span-standard {
        grid-column: span 1;
        height: 200px;
    }

    .span-row2-col3 {
        grid-column: span 2;
        height: 200px;
    }

    .gallery-card-overlay {
        padding: 12px;
    }

    .gallery-card-title {
        font-size: 0.92rem;
    }

    .gallery-card-subtitle {
        font-size: 0.72rem;
    }

    .gallery-card-arrow {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    /* CTA Section Mobile */
    .gallery-cta-banner {
        grid-template-columns: 1fr;
    }

    .cta-sunset-wrapper {
        min-height: 180px;
        height: 180px;
    }

    .cta-sunset-img {
        -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 100%);
    }

    .cta-center-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 16px;
        gap: 16px;
    }

    .cta-heading {
        font-size: 1.35rem;
    }
}

/* Small Mobile Screens (480px and below) */
@media (max-width: 480px) {
    .gallery-hero-title {
        font-size: 1.85rem;
    }

    .gallery-masonry-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .span-row1-col1, .span-row1-col2, .span-row1-col3, .span-row1-col4,
    .span-row2-col1, .span-row2-col2, .span-row2-col3,
    .span-row3-col1, .span-row3-col2, .span-row3-col3, .span-row3-col4,
    .span-row4-col1, .span-row4-col2, .span-row4-col3, .span-row4-col4,
    .span-standard {
        grid-column: span 1;
        height: 220px;
    }
}
