/* gallery.css */

main {
    padding-top: 80px;
}

/* Hero banner */
.page-hero {
    background: linear-gradient(rgba(0, 77, 64, 0.82), rgba(0, 77, 64, 0.82)),
                url('gallery-hero-bg.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 130px 20px 90px;
    margin-bottom: 30px;
}

.page-hero h1 {
    font-size: 3.2rem;
    margin-bottom: 0.8rem;
}

.page-hero p {
    font-size: 1.35rem;
    opacity: 0.95;
}

/* Gallery grid */
.gallery-section {
    padding: 40px 0 80px;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: all 0.35s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
}

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

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

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: white;
    padding: 60px 20px 16px;
    font-size: 1.05rem;
    font-weight: 500;
    text-align: center;
}

/* CTA section */
.gallery-cta {
    background: #004d40;
    color: white;
    text-align: center;
    padding: 90px 20px;
}

.gallery-cta h2 {
    margin-bottom: 1.2rem;
}

.gallery-cta p {
    font-size: 1.3rem;
    margin-bottom: 2.2rem;
    opacity: 0.95;
}

/* Responsive */
@media (max-width: 768px) {
    .page-hero {
        padding: 110px 20px 70px;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .caption {
        font-size: 0.95rem;
        padding: 50px 16px 14px;
    }
}

