
/* ==============================
   GALLERY PAGE
============================== */

.gallery-page {
    width: 100%;
    min-height: 70vh;
}

/* Hero section */
.gallery-hero {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(
        135deg,
        #123b65,
        #176b87
    );
    color: #fff;
}

.gallery-hero-content {
    max-width: 750px;
}

.gallery-subtitle {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ffd166;
}

.gallery-hero h1 {
    margin: 0 0 15px;
    font-size: 44px;
    font-weight: 700;
}

.gallery-hero p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: #e8f1f7;
}

/* Gallery section */
.gallery-section {
    max-width: 1200px;
    margin: auto;
    padding: 65px 25px;
}

.gallery-heading {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-heading h2 {
    margin: 0 0 12px;
    font-size: 30px;
    color: #173b5e;
}

.gallery-heading p {
    margin: 0;
    color: #777;
    font-size: 16px;
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Individual gallery card */
.gallery-card {
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
}

/* Image */
.gallery-image {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Image title overlay */
.gallery-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 35px 18px 18px;
    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.8)
    );
}

.gallery-overlay h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

/* Empty gallery message */
.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f5f7fa;
    border-radius: 12px;
}

.gallery-empty h3 {
    color: #173b5e;
    margin-bottom: 10px;
}

.gallery-empty p {
    color: #777;
}

/* ==============================
   RESPONSIVE DESIGN
============================== */

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

    .gallery-hero h1 {
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    .gallery-hero {
        min-height: 230px;
        padding: 45px 18px;
    }

    .gallery-hero h1 {
        font-size: 30px;
    }

    .gallery-hero p {
        font-size: 15px;
    }

    .gallery-section {
        padding: 45px 15px;
    }

    .gallery-heading h2 {
        font-size: 24px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-image {
        height: 240px;
    }
}
