.gallery-overview {
    background: var(--light-color);
    padding: 80px 0;
}

section.gallery-overview.gallery-page {
    margin-top: var(--header-offset);
    padding: 50px 0 80px;
}

.gallery-page h1 {
    text-align: center;
    margin-bottom: 20px;
}

.gallery-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

.gallery-empty {
    text-align: center;
    color: var(--secondary-color);
    font-size: 1.05rem;
}

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

.gallery-item {
    background: #ffffff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(232, 195, 195, 0.3);
    margin: 0;
}

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

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

.gallery-item figcaption {
    padding: 16px 18px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--secondary-color);
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 260px;
    }
}
