/* ══════════════════════════════════════════
   MAULI BIRD NETTING — gallery.css
   Fully responsive, full-image display
   ══════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
    --primary:      #1a6fc4;
    --primary-dark: #1558a0;
    --dark:         #1a202c;
    --gray:         #718096;
}

/* ── BASE ── */
body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: var(--dark);
    margin: 0;
}

/* ══════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════ */
.navbar {
    background: #fff;
    box-shadow: 0 2px 24px rgba(26,111,196,.1);
    padding: .65rem 0;
    position: sticky;
    top: 0;
    z-index: 1050;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-svg-wrap { flex-shrink: 0; }

.brand-name {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--dark);
    line-height: 1.1;
    font-family: 'Nunito', sans-serif;
}
.brand-name span { color: var(--primary); }

.brand-tagline {
    font-size: .56rem;
    color: var(--gray);
    font-family: 'Inter', sans-serif;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: .84rem;
    color: var(--dark) !important;
    padding: .5rem .85rem !important;
    letter-spacing: .2px;
    transition: color .2s;
}
.navbar-nav .nav-link:hover { color: var(--primary) !important; }

.nav-call-btn {
    background: var(--primary);
    color: #fff !important;
    border-radius: 50px;
    padding: .46rem 1.3rem !important;
    font-size: .81rem !important;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(26,111,196,.32);
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .2s;
}
.nav-call-btn:hover { opacity: .88; }

/* Navbar social icons */
.nav-social-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}
.nav-social-icons a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    text-decoration: none;
    transition: transform .2s, opacity .2s;
}
.nav-social-icons a:hover { transform: scale(1.12); opacity: .85; }
.nav-social-fb    { background: #1877f2; color: #fff !important; }
.nav-social-insta { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff !important; }
.nav-social-wa    { background: #25d366; color: #fff !important; }

.navbar-toggler:focus { box-shadow: none; }

/* Mobile navbar */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem 0 .5rem;
        border-top: 1px solid #f0f0f0;
        margin-top: .5rem;
    }
    .navbar-nav { gap: 0 !important; }
    .navbar-nav .nav-link {
        padding: .6rem 0 !important;
        border-bottom: 1px solid #f5f5f5;
    }
    .nav-call-btn { margin: .75rem 0 .5rem; width: fit-content; }
    .nav-social-icons { margin-left: 0; margin-top: .5rem; justify-content: flex-start; }
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.gal-hero {
    background: linear-gradient(135deg,#fff7ed 0%,#ffedd5 60%,#fed7aa 100%);
    padding: 3rem 0 2.5rem;
    text-align: center;
    border-bottom: 2px solid rgba(232,93,4,.12);
}
.gal-hero-tag {
    display: inline-block;
    background: rgba(232,93,4,.1);
    color: var(--primary);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: .35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}
.gal-hero h1 {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(1.6rem, 5vw, 2.8rem);
    color: var(--dark);
    margin-bottom: .6rem;
}
.gal-hero h1 span { color: var(--primary); }
.gal-hero p {
    color: var(--gray);
    font-size: clamp(.875rem, 2.5vw, 1rem);
    max-width: 560px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════
   FILTER TABS
   ══════════════════════════════════════════ */
.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2rem 0 1.2rem;
}
.filter-btn {
    background: #fff;
    border: 2px solid #e2e8f0;
    color: var(--dark);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: .82rem;
    padding: .4rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

@media (max-width: 480px) {
    .filter-btn { font-size: .75rem; padding: .35rem .8rem; }
}

/* ══════════════════════════════════════════
   STATS BAR
   ══════════════════════════════════════════ */
.gal-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.5rem 0 2rem;
}
.gal-stat { text-align: center; }
.gal-stat-num {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    color: var(--primary);
    line-height: 1;
}
.gal-stat-label {
    font-size: .72rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: .2rem;
}

@media (max-width: 480px) {
    .gal-stats { gap: 1rem; }
}

/* ══════════════════════════════════════════
   GALLERY GRID — CSS Grid, fully responsive
   ══════════════════════════════════════════ */

/* Default: auto-fill, min 240px → ~4 cols on wide screens */
.gal-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    width: 100%;
}

/* ── CARD ── */
.gal-masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: #eef2f7;           /* neutral bg shows during image load */
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    /* no fixed height — card grows with image */
}

/* ── IMAGE — always shows the FULL image, no cropping ── */
.gal-masonry-item img {
    display: block;
    width: 100%;
    height: auto;                  /* natural height */
    object-fit: contain;           /* never crop */
    aspect-ratio: 4 / 3;           /* uniform card height; letterbox fills with bg */
    background: #eef2f7;
    transition: transform .4s ease;
}

.gal-masonry-item:hover img {
    transform: scale(1.04);
}

/* ── BADGE ── */
.cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    font-size: .63rem;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    padding: .2rem .6rem;
    border-radius: 50px;
    z-index: 2;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* ── HOVER OVERLAY ── */
.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.68) 0%, transparent 55%);
    opacity: 0;
    transition: opacity .3s;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
}
.gal-masonry-item:hover .overlay { opacity: 1; }

.overlay-text {
    color: #fff;
    font-size: .76rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    padding: .65rem .85rem;
    width: 100%;
}

/* ── HIDDEN (filter) ── */
.gal-masonry-item.hidden { display: none; }

/* ══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS — GRID
   ══════════════════════════════════════════ */

/* Tablet landscape (≤1024px): 3 cols */
@media (max-width: 1024px) {
    .gal-masonry {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

/* Tablet portrait (≤768px): 2 cols */
@media (max-width: 768px) {
    .gal-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    /* Slightly taller aspect on tablet for better image framing */
    .gal-masonry-item img {
        aspect-ratio: 3 / 2;
    }
}

/* Large phones (≤600px): 2 cols, shorter aspect */
@media (max-width: 600px) {
    .gal-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .gal-masonry-item img {
        aspect-ratio: 1 / 1;       /* square cards fit two across nicely */
    }
    .cat-badge { font-size: .6rem; }
    .overlay-text { font-size: .7rem; }
}

/* Small phones (≤420px): 1 col, wide aspect */
@media (max-width: 420px) {
    .gal-masonry {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .gal-masonry-item img {
        aspect-ratio: 16 / 9;      /* full-width, cinematic on phone */
    }
}

/* ══════════════════════════════════════════
   CTA STRIP
   ══════════════════════════════════════════ */
.cta-strip {
    background: var(--primary);
    color: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    margin: 2.5rem 0 3rem;
}
.cta-strip h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    margin-bottom: .4rem;
}
.cta-strip p {
    opacity: .9;
    font-size: clamp(.85rem, 2.5vw, .95rem);
    margin-bottom: 1.25rem;
}
.btn-cta-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--primary);
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: .9rem;
    padding: .65rem 1.6rem;
    border-radius: 50px;
    text-decoration: none;
    transition: opacity .2s;
}
.btn-cta-white:hover { opacity: .88; }

@media (max-width: 480px) {
    .cta-strip { padding: 1.5rem 1rem; border-radius: 14px; }
}

/* ══════════════════════════════════════════
   LIGHTBOX  (#lb — primary)
   ══════════════════════════════════════════ */
#lb {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.93);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
#lb.open { display: flex; }

/* Full image — never crop in lightbox */
#lbImg {
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    display: block;
}

.lb-close,
.lb-prev,
.lb-next {
    position: fixed;
    background: rgba(255,255,255,.18);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .2s;
    z-index: 10000;
}
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover { background: rgba(255,255,255,.35); }

.lb-close { top: 1rem; right: 1rem; }
.lb-prev  { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1rem; top: 50%; transform: translateY(-50%); }

.lb-caption {
    position: fixed;
    bottom: 1.4rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: .82rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    background: rgba(0,0,0,.55);
    padding: .35rem 1.1rem;
    border-radius: 50px;
    white-space: nowrap;
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Lightbox on mobile */
@media (max-width: 600px) {
    #lbImg {
        max-width: 98vw;
        max-height: 82vh;
        border-radius: 6px;
    }
    .lb-prev { left: .35rem; }
    .lb-next { right: .35rem; }
    .lb-close { top: .5rem; right: .5rem; }
    .lb-close,
    .lb-prev,
    .lb-next { width: 38px; height: 38px; font-size: .95rem; }
}

/* ══════════════════════════════════════════
   SECONDARY LIGHTBOX  (#lightbox — inline)
   Overrides inline styles with !important
   ══════════════════════════════════════════ */
#lightbox {
    align-items: center !important;
    justify-content: center !important;
}
#lightboxImg {
    max-width: 92vw !important;
    max-height: 88vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 10px !important;
}

@media (max-width: 600px) {
    #lightboxImg {
        max-width: 98vw !important;
        max-height: 80vh !important;
        border-radius: 6px !important;
    }
}