/* ── Simple Gallery – frontend styles ─────────────────────────────────── */

.sg-gallery {
    display: grid;
    gap: 12px;
    margin: 1.5em 0;
}

/* Column presets */
.sg-cols-1 { grid-template-columns: repeat(1, 1fr); }
.sg-cols-2 { grid-template-columns: repeat(2, 1fr); }
.sg-cols-3 { grid-template-columns: repeat(3, 1fr); }
.sg-cols-4 { grid-template-columns: repeat(4, 1fr); }
.sg-cols-5 { grid-template-columns: repeat(5, 1fr); }
.sg-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media ( max-width: 600px ) {
    .sg-cols-3,
    .sg-cols-4,
    .sg-cols-5,
    .sg-cols-6 { grid-template-columns: repeat(2, 1fr); }
}

.sg-item {
    margin: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #f0f0f0;
    aspect-ratio: 1;
}

.sg-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.sg-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform .25s ease, opacity .25s ease;
    display: block;
}

.sg-item:hover img {
    transform: scale(1.04);
    opacity: .9;
}

.sg-empty {
    color: #888;
    font-style: italic;
}
