
/* =================================================
   GLOBAL BODY (REMOVE DUPLICATION IF ALREADY IN BASE.CSS)
================================================= */
body {
    font-family: 'Roboto', Arial, sans-serif;
    padding-top: 80px;
    color: #00204c;
    background: #ffffff;
    line-height: 1.7;
}

/* =================================================
   UNIFORM HERO (FIXED SIZE FOR ALL PAGES)
================================================= */
.gallery-hero {
    width: 100%;
    min-height: 65vh; /* SAME AS ALL PAGES */
    background:
        linear-gradient(rgba(0,32,76,0.75), rgba(0,32,76,0.75)),
        url('../image/galleryolive.webp') center/cover no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    color: #ffffff;
    padding: 0 20px;
}

.gallery-hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 15px;
}

.gallery-hero p {
    font-size: 16px;
    opacity: 0.9;
}

/* =================================================
   SECTION SPACING (CONSISTENT)
================================================= */
.section-padding {
    padding: 70px 0;
}

/* =================================================
   SAFE CONTAINER (CONSISTENT WIDTH SYSTEM)
================================================= */
.gallery-wrapper {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px; /* unified (was 40px → inconsistent) */
}

/* =================================================
   GALLERY GRID
================================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* =================================================
   GALLERY ITEM CARD
================================================= */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 320px; /* slightly unified (was 350 → inconsistent) */
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* =================================================
   OVERLAY
================================================= */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 32, 76, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.4s ease;
}

/* =================================================
   OVERLAY TEXT
================================================= */
.gallery-text {
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: 0.4s ease;
}

/* =================================================
   HOVER EFFECTS
================================================= */
.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-text {
    transform: translateY(0);
}

/* =================================================
   RESPONSIVE (UNIFIED SYSTEM)
================================================= */
@media (max-width: 992px) {
    .gallery-wrapper {
        padding: 0 20px;
    }

    .gallery-item img {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .gallery-item img {
        height: 240px;
    }

    .gallery-hero h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .gallery-item img {
        height: 200px;
    }
}
