.image-gallery-section {
    background: #f8fafc;
}

.image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.image-gallery-item {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.image-gallery-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--light);
}

.image-gallery-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-gallery-item:hover .image-gallery-media img {
    transform: scale(1.04);
}

.image-gallery-item figcaption {
    padding: 16px 18px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.image-gallery-empty {
    margin: 0 auto;
    padding: 18px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 900px) {
    .image-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .image-gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .image-gallery-media img {
        transition: none;
    }
}
