/* Lightbox galleries: the ACF photo archive on philanthropies and native [gallery] on pages. */

.fixed-gallery-grid,
.entry-content .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    align-items: start;
}

.gallery-image { display: flex; flex-direction: column; margin: 0; }

.gallery-image-wrapper,
.entry-content .gallery-icon {
    display: block;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

.gallery-image-wrapper img,
.entry-content .gallery-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-caption,
.entry-content .gallery-caption {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: #666;
    text-align: center;
}

.entry-content .gallery-item { margin: 0; }

@media (max-width: 480px) {
    .fixed-gallery-grid,
    .entry-content .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .gallery-image-wrapper,
    .entry-content .gallery-icon { height: 160px; }
}
