/* Banner Grid Plugin - front-end grid styles (Gnuboard / WordPress 공용) */
.bg-grid-wrap {
    width: 100%;
    box-sizing: border-box;
}
.bg-grid {
    display: grid;
    grid-template-columns: repeat(var(--bg-cols, 4), 1fr);
    gap: var(--bg-gap, 10px);
    max-width: 1200px;
    margin: 16px auto;
    padding: 0 16px;
    box-sizing: border-box;
}
.bg-grid .bg-item {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: #f2f2f2;
    line-height: 0;
}
.bg-grid .bg-item img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: var(--bg-aspect, 3 / 1);
    object-fit: cover;
    transition: transform .25s ease;
}
.bg-grid a.bg-item:hover img {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .bg-grid {
        grid-template-columns: repeat(var(--bg-mobile-cols, 2), 1fr);
        gap: calc(var(--bg-gap, 10px) * 0.7);
        padding: 0 10px;
        margin: 10px auto;
    }
}
