/* =========================
   FOTOGALLERIJ
========================= */

.gallery-main {
    padding: 120px 5% 60px;
}

/* Titel */
.gallery-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.gallery-header h1 {
    font-size: 2.4rem;
    color: #0b5c81;
    margin-bottom: 15px;
    font-weight: 700;
}

.gallery-header p {
    color: #555;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Grid galerij */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Foto kaart */
.photo-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    background: #000;
    cursor: default;
}

/* Afbeelding */
.photo-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Hover zoom */
.photo-card:hover img {
    transform: scale(1.08);
}

/* Overlay tekst */
.photo-card figcaption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.05)
    );
}

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

/* Tablet */
@media (max-width: 960px) {
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-card img {
        height: 240px;
    }
}

/* Smartphone */
@media (max-width: 600px) {
    .photo-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-header h1 {
        font-size: 2rem;
    }

    .photo-card img {
        height: 220px;
    }
}
