/* ==========================================================================
   Gallery Page Specific Styles (True Edge-to-Edge & Light Theme)
   Mobile Responsive Edition with Right Menu Toggle
   ================================================================---------- */

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

html, body {
    height: 100%;
    overflow-x: hidden;
    background-color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #4a4a4a;
}

/* 1. Header & Mobile Navigation (Menu Button on Right) */
header {
    background: rgba(255, 255, 255, 0.98);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

.logo img {
    height: 65px;
    width: auto;
    display: block;
}

.menu-toggle {
    display: none;
    font-size: 2.2rem;
    color: #2c4c3b;
    cursor: pointer;
    user-select: none;
    order: 2;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    text-decoration: none;
    color: #2c4c3b;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-menu li a:hover, 
.nav-menu li a.active {
    color: #c59b6d;
}

/* 2. Edge-to-Edge Wrapper */
.gallery-edge-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 60px 5%;
    margin: 0;
    box-sizing: border-box;
    flex: 1; 
}

.bg-light-alt {
    background-color: #f9fbf9;
}

/* 3. Page Specific Hero Banner */
.gallery-hero {
    background: linear-gradient(135deg, rgba(10, 25, 15, 0.7), rgba(44, 76, 59, 0.8)), 
                url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhL4Ewc5xWofpeYl_wRJh7JSigXwcnSKdjCQncjZILavj8OQrkiTON2GonmEtmT1Jh3QuqBcPW5oIMccydCRYjWsPfHrDFhQQ_ylT7mI1u3hAWM2Toh3Vss0X19DGMG7RhTfLB28ALkeRe7-rRlLj2_0MLjYRIjpzyChC5hu8yjHEDlOg2XSPVNJw-WGs7R/s1600/1000307034.png') no-repeat center center/cover;
    color: #ffffff;
    text-align: center;
    width: 100%;
}

.gallery-hero .gallery-edge-wrapper {
    padding: 100px 5%;
    flex: none;
}

.gallery-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.gallery-hero p {
    font-size: 1.3rem;
    max-width: 750px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* 4. Section Headers */
.section-header-center {
    text-align: center;
    margin-bottom: 50px;
}

.section-header-center h3 {
    color: #c59b6d;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 700;
}

.section-header-center h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #2c4c3b;
    margin-bottom: 20px;
}

.section-header-center p {
    color: #666;
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto;
}

/* 5. 4-Column Modern Gallery Grid */
.gallery-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.gallery-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(44, 76, 59, 0.1);
}

.gallery-img-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}

.gallery-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.gallery-caption {
    padding: 20px;
    text-align: center;
}

.gallery-caption h3 {
    color: #2c4c3b;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.gallery-caption p {
    color: #c59b6d;
    font-size: 0.95rem;
    font-weight: 600;
}

/* 6. Footer */
footer {
    background-color: #f4f6f4;
    color: #666;
    text-align: center;
    border-top: 4px solid #c59b6d;
    width: 100%;
}

footer .gallery-edge-wrapper {
    padding: 40px 5%;
    flex: none;
}

/* 7. Responsive Adjustments */
@media (max-width: 1300px) {
    .gallery-grid-modern {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .menu-toggle { display: block; }
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
    .nav-menu.active {
        max-height: 400px;
        padding: 20px 0;
    }

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

@media (max-width: 650px) {
    .gallery-grid-modern {
        grid-template-columns: 1fr;
    }
}