/* ============================================================
   NEELA GALLERY WIDGETS — gallery-widgets.css v3.0
   ============================================================ */

/* ── GALLERY HERO V3 DUAL COLUMN LAYOUT ─────────────────── */
.ngw-hero--v3 {
    padding: clamp(4rem, 7vw, 6.5rem) 0;
    background: linear-gradient(135deg, var(--neela-cream, #FFFDF8) 0%, rgba(201, 162, 75, 0.08) 50%, rgba(125, 31, 61, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.ngw-hero--v3 .ngw-hero__inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.ngw-hero__content {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ngw-hero__heading {
    font-family: var(--neela-font-heading);
    font-size: clamp(2.4rem, 4.8vw, 3.6rem);
    font-weight: 700;
    color: var(--neela-maroon, #7D1F3D) !important;
    line-height: 1.2;
    margin: 0 0 1.25rem 0;
    text-shadow: none !important;
}

.ngw-hero__desc {
    font-family: var(--neela-font-body);
    font-size: 1.05rem;
    color: var(--neela-text-muted, #6B5A5F) !important;
    line-height: 1.75;
    margin: 0 0 1.75rem 0;
    max-width: 58ch;
    text-shadow: none !important;
}

.ngw-hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.ngw-hero__ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.ngw-hero__image-wrap {
    position: relative;
}

.ngw-hero__img-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(125, 31, 61, 0.18);
    border: 3px solid rgba(201, 162, 75, 0.3);
    aspect-ratio: 4 / 4.5;
}

.ngw-hero__img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ngw-hero__badge {
    position: absolute;
    bottom: 1.5rem;
    right: -1.25rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(201, 162, 75, 0.4);
    padding: 1rem 1.4rem;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(125, 31, 61, 0.18);
}

@media (max-width: 991px) {
    .ngw-hero--v3 .ngw-hero__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .ngw-hero__content {
        align-items: center;
        text-align: center;
    }
    .ngw-hero__badge {
        right: 1rem;
        bottom: 1rem;
    }
}

/* ── FILTER TABS ───────────────────────────────────────────── */
.ngw-filters {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.ngw-filter-btn {
    padding: 0.55rem 1.35rem;
    border-radius: 30px;
    border: 1.5px solid rgba(125, 31, 61, 0.2);
    background: rgba(255, 255, 255, 0.9);
    font-family: var(--neela-font-nav);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--neela-maroon, #7D1F3D);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 3px 10px rgba(125, 31, 61, 0.05);
}

.ngw-filter-btn.is-active,
.ngw-filter-btn:hover {
    background: linear-gradient(135deg, var(--neela-maroon, #7D1F3D) 0%, var(--neela-violet, #4A1942) 100%);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(125, 31, 61, 0.3);
}

/* ── LUXURY GALLERY GRID & CARDS ───────────────────────────── */
.ngw-grid {
    display: grid !important;
    grid-template-columns: repeat(var(--ngw-cols, 4), 1fr) !important;
    gap: 1.5rem !important;
}

.ngw-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid rgba(201, 162, 75, 0.25);
    box-shadow: 0 10px 30px rgba(125, 31, 61, 0.08);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    opacity: 1 !important;
    visibility: visible !important;
}

.ngw-item[style*="display: block"],
.ngw-item:not([style*="display: none"]):not([style*="display:none"]) {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.ngw-item[style*="display: none"],
.ngw-item[style*="display:none"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.ngw-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(125, 31, 61, 0.18);
    border-color: rgba(201, 162, 75, 0.6);
}

@media (max-width: 1024px) {
    .ngw-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.25rem !important;
    }
}

@media (max-width: 768px) {
    .ngw-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.85rem !important;
    }
    .ngw-filters {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        padding: 0.35rem 0.25rem !important;
        gap: 0.45rem !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        margin-bottom: 1.75rem !important;
    }
    .ngw-filters::-webkit-scrollbar {
        display: none !important;
    }
    .ngw-filter-btn {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        padding: 0.45rem 1.1rem !important;
        font-size: 0.75rem !important;
        border-radius: 25px !important;
    }
    .ngw-item {
        border-radius: 14px !important;
    }
    .ngw-item img {
        aspect-ratio: 1 / 1 !important;
    }
    .ngw-overlay {
        padding: 0.85rem !important;
    }
    .ngw-overlay h3 {
        font-size: 0.88rem !important;
    }
}

@media (max-width: 480px) {
    .ngw-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
    }
}

.ngw-item img {
    width: 100%;
    aspect-ratio: 4 / 3.5;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.ngw-item:hover img {
    transform: scale(1.08);
}

.ngw-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(125, 31, 61, 0.88) 100%);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #ffffff;
}

.ngw-item:hover .ngw-overlay {
    opacity: 1;
}

.ngw-overlay__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neela-gold, #C9A24B) 0%, #E6C575 100%);
    color: var(--neela-maroon, #7D1F3D);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   GSAP & FRAMER REVEAL ANIMATIONS (GALLERY PAGE WIDGETS)
   ============================================================ */

.gsap-reveal-eyebrow,
.gsap-reveal-heading,
.gsap-reveal-divider,
.gsap-reveal-text,
.gsap-reveal-pills,
.gsap-hero-ctas,
.gsap-mv-card,
.ngw-item {
    opacity: 0;
    transform: translateY(35px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: opacity, transform;
}

.is-in-view .gsap-reveal-eyebrow,
.is-in-view .gsap-reveal-heading,
.is-in-view .gsap-reveal-divider,
.is-in-view .gsap-reveal-text,
.is-in-view .gsap-reveal-pills,
.is-in-view .gsap-hero-ctas,
.is-in-view .gsap-mv-card,
.is-in-view .ngw-item,
.is-revealed .gsap-reveal-eyebrow,
.is-revealed .gsap-reveal-heading,
.is-revealed .gsap-reveal-divider,
.is-revealed .gsap-reveal-text,
.is-revealed .gsap-reveal-pills,
.is-revealed .gsap-hero-ctas,
.is-revealed .gsap-mv-card,
.is-revealed .ngw-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}
