/* --- Global Styles & Variables (Adopted from user theme) --- */
:root {
    --bg-color: #FFF1CA;          /* Warm, light cream canvas */
    --text-color: #2D4F2B;        /* Dark forest green for main text */
    --dark-bg: #FFB823;           /* Dark forest green for dark sections */
    --accent-blue: #FFB823;       /* Golden Yellow (Primary Accent) */
    --accent-magenta: #708A58;    /* Olive Green (Secondary Accent) */
    --font-heading: 'DM Serif Display', serif;
    --font-body: 'Work Sans', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Work+Sans:wght@300;400;700&display=swap');
@font-face {
  font-family: 'header';
  src: url('../assets/Fonts/Snowman\ Stayhome.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--dark-bg);
    line-height: 1.2;
}

/* --- Header --- */
.header {
    background-color: var(--dark-bg);
    color: var(--bg-color);
    padding: 3rem 0;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.header h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    color: #2D4F2B;
    letter-spacing: 2px;
    font-family: header;
    font-size: 80PX;
}

.header p {
    font-size: 1.25rem;
    font-weight: 300;
    color: #2D4F2B;
    margin-top: 0.5rem;
}

/* --- Gallery Grid Layout --- */
.gallery-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* --- Gallery Item Styling (Sexy Look) --- */
.gallery-item {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    /* Ensure the item has a fixed aspect ratio for a uniform grid */
    aspect-ratio: 4 / 5; 
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Cover the container without distortion */
    display: block;
    transition: opacity 0.4s ease;
}

/* --- Overlay for Alt Text (Modern effect) --- */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(45, 79, 43, 0.85), rgba(45, 79, 43, 0)); /* Dark Green Gradient */
    color: white;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.gallery-overlay h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: white;
    font-weight: 500;
    margin: 0;
    text-transform: capitalize;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .gallery-section {
        padding: 2rem 1rem;
    }
    .gallery-grid {
        /* ग्रिड टेम्पलेट को बदलकर 2 कॉलम करें */
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; /* मोबाइल पर गैप थोड़ा कम कर सकते हैं */
        padding: 10px;
    }
    
    /* मोबाइल पर इमेज की ऊँचाई एडजस्ट कर सकते हैं (वैकल्पिक) */
    .gallery-item img {
        height: auto; 
    }
    .gallery-item {
        aspect-ratio: 2.4 / 3;
    }
}

/* LIGHTBOX POPUP — independent, no effect on gallery */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 999999;
    text-align: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    margin-top: 50px;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    cursor: pointer;
}

.nav {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 60px;
    cursor: pointer;
    padding: 10px;
}

.prev { left: 20px; }
.next { right: 20px; }

/* Mobile swipe */
.lightbox {
    touch-action: pan-y;
}
