* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* * ==========================================
         * ROOT VARIABLES (LOCKED - NO CHANGES)
         * ========================================== */

:root {
    /* Colors */
    --satya-blue: #0047AB;
    --satya-blue-dark: #002A66;
    --satya-gold: #C5A059;
    /* Backgrounds */
    /* --bg-body: #FFFFFF; */
    --bg-body: #eef1f4;
    --bg-glass: rgba(255, 255, 255, 0.95);
    /* Text */
    --text-main: #0B0F19;
    --text-grey: #4B5563;
    /* Dimensions */
    --nav-height: 95px;
    --grey: #525252;
}


/* * ==========================================
         * GLOBAL RESET & TYPOGRAPHY
         * ========================================== */

html {
    background-color: #ffffff;
    /* FORCE WHITE BASE */
    height: 100%;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
    margin: 0;
}

@media(max-width:750px) {

    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }
}


/* ... existing styles ... */


/* * ==========================================
         * SCROLL FIX (Essential)
         * ========================================== */

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
    /* Disable native smooth scroll to fix jerkiness */
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}


/* Added Global Heading Styles */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-grey);
    font-size: 1rem;
    line-height: 1.7;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}



/* NEW HERO SECTION */
#gallery-hero {
    position: relative;
    height: 40vh;
    /* Reduced height as requested */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/backgrounds/gal-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    filter: grayscale(20%);
}

.hero-title {
    position: relative;
    z-index: 2;
    font-family: 'Syne', sans-serif;
    /* Halved the font size approx */
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.hero-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--satya-gold);
    margin: 10px auto 0;
}

/* GALLERY GRID SECTION */
#gallery-grid {
    padding: 40px 5%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Content Block */
.gallery-intro-text {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.g-tag {
    font-family: 'Rajdhani', sans-serif;
    color: var(--satya-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    display: block;
    margin-bottom: 10px;
}

.g-main-title {
    font-family: 'Syne', sans-serif;
    /* Reduced title size here too */
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.g-desc {
    font-size: 15px;
    color: var(--text-grey);
    line-height: 1.6;
}

/* Grid Container */
.gallery-container {
    display: grid;
    /* 5 Columns for Desktop */
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    /* Sharp Edges as requested */
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    aspect-ratio: 1 / 1;
    background: #e0e0e0;
    display: block;
    /* Visible by default */
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 71, 171, 0.6);
    opacity: 0;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.zoom-icon {
    font-size: 30px;
    color: white;
    transform: scale(0);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover .zoom-icon {
    transform: scale(1);
}

/* LIGHTBOX */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

#lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 0;
    /* Match sharp style */
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s;
}

#lightbox.active .lightbox-img {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: var(--satya-gold);
    transform: rotate(90deg);
}

/* RESPONSIVE */
@media (max-width: 1400px) {
    .gallery-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .gallery-container {
        grid-template-columns: repeat(3, 1fr);
    }

    #gallery-grid {
        padding: 60px 30px;
    }
}

@media (max-width: 768px) {
    #gallery-grid {
        padding: 40px 20px;
    }

    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .g-main-title {
        font-size: 28px;
    }

    .hero-title {
        font-size: 28px;
    }
}