/* Gallery page layout matches Home */
.gallery-section .section-inner {
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.gallery-subtext {
    text-align: center;
    margin-bottom: 18px;
    color: var(--muted);
}

/* Grid: responsive, centered, consistent spacing */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
    max-width: var(--maxw);
    margin: 18px auto 0;
}

/* Each clickable item */
.gallery-item {
    text-decoration: none;
}

/* Thumbnail “card” look */
.thumbnail-wrapper {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
    background: #fff;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
        
    display: block;
}

.gallery-item:hover .thumbnail-wrapper {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

/* Optional: tiny “focus ring” for accessibility */
.gallery-item:focus-visible .thumbnail-wrapper {
    outline: 3px solid rgba(172, 151, 66, 0.45);
    /* gold-ish */
    outline-offset: 3px;
}

/* GLightbox caption typography to match site */
.glightbox-clean .gslide-title,
.glightbox-clean .gslide-desc,
.glightbox-clean .gdesc-inner {
    font-family: var(--font-body, "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
    color: #111;
}

.glightbox-clean .gslide-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.glightbox-clean .gslide-desc {
    font-weight: 300;
    line-height: 1.6;
}

.glightbox-clean .gdesc-inner {
    padding: 14px 16px;
}

/* Mobile tightening */
@media (max-width: 768px) {
    .gallery-grid {
        gap: 12px;
    }
}