﻿/* =====================================================
   SAFE WRAPPER (prevents CSS conflicts with whole site)
===================================================== */
.gallery-page {
    font-family: 'Segoe UI';
}

    /* =====================================================
   HERO SECTION
===================================================== */
    .gallery-page .gallery-hero {
        height: 90vh;
        background: url('/Content/Image/modernveget.jpg') center/cover no-repeat;
    }

    .gallery-page .hero-overlay {
        background: rgba(0,0,0,.6);
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .gallery-page .hero-content h1 {
        color: #fff;
        font-size: 60px;
        font-weight: 700;
    }

    .gallery-page .hero-content p {
        color: #ddd;
        font-size: 22px;
        margin: 15px 0;
        line-height: 1.6;
    }

    .gallery-page .hero-btn {
        background: #28a745;
        padding: 12px 28px;
        color: #fff;
        text-decoration: none;
        border-radius: 30px;
        font-size: 18px;
    }

    /* =====================================================
   HALF BACKGROUND GALLERY SECTION
===================================================== */
    .gallery-page .gallery-section {
        position: relative;
        padding: 120px 60px;
        background: #f4f6f8;
        overflow: hidden;
    }

        /* LEFT HALF BACKGROUND IMAGE */
        .gallery-page .gallery-section::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            width: 40%;
            height: 100%;
            background: url('/Content/Image/gallery-bg2.jpg') center/cover no-repeat;
        }

    /* =====================================================
   CENTERED TITLE
===================================================== */
    .gallery-page .section-title {
        position: relative;
        z-index: 2;
        text-align: center;
        font-size: 42px;
        margin-bottom: 60px;
    }

        .gallery-page .section-title span {
            display: block;
            font-size: 22px;
            color: #28a745;
            margin-top: 10px;
        }

    /* =====================================================
   WHITE CARD GALLERY GRID
===================================================== */
    .gallery-page .gallery-container {
        position: relative;
        z-index: 2;
        background: #fff;
        padding: 40px;
        border-radius: 18px;
        box-shadow: 0 20px 60px rgba(0,0,0,.08);
        display: grid;
        grid-template-columns: repeat(3,1fr);
        gap: 25px;
    }

    /* IMAGE CARDS */
    .gallery-page .gallery-card {
        overflow: hidden;
        border-radius: 12px;
        cursor: pointer;
    }

        .gallery-page .gallery-card img {
            width: 100%;
            height: 230px;
            object-fit: cover;
            transition: .4s;
        }

        .gallery-page .gallery-card:hover img {
            transform: scale(1.08);
        }

    /* =====================================================
   IMAGE MODAL
===================================================== */
    .gallery-page .gallery-modal {
        display: none;
        position: fixed;
        z-index: 9999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,.9);
        padding-top: 60px;
    }

    .gallery-page .gallery-modal-content {
        margin: auto;
        display: block;
        width: 70%;
        max-width: 800px;
    }

    .gallery-page .gallery-close {
        position: absolute;
        top: 20px;
        right: 35px;
        color: #fff;
        font-size: 40px;
        cursor: pointer;
    }

/* =====================================================
   RESPONSIVE DESIGN
===================================================== */

/* Tablet */
@media(max-width:992px) {
    .gallery-page .gallery-section::before {
        width: 100%;
        height: 260px;
    }

    .gallery-page .section-title {
        text-align: center;
        margin-top: 220px;
    }
}

/* Mobile */
@media(max-width:768px) {
    .gallery-page .gallery-container {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:500px) {
    .gallery-page .gallery-container {
        grid-template-columns: 1fr;
    }
}
