/* ==============================
   BENTO GRID - DESKTOP
================================ */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 220px;
    gap: 15px;
    width: 100%;
}

.bento-item {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #111;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.bento-item:hover img {
    transform: scale(1.07);
}

/* Bento placements */

.bento-1 {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-2,
.bento-3,
.bento-4,
.bento-5,
.bento-7,
.bento-8 {
    grid-column: span 1;
}

.bento-6,
.bento-9 {
    grid-column: span 2;
}

/* Overlay */

/* Overlay disabled - no content hover */
.bento-info { display: none; }

/* ==============================
   TABLET
================================ */

@media (max-width: 991px) {
    .bento-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 210px;
        gap: 12px;
    }

    .bento-1 {
        grid-column: span 2;
        grid-row: span 2;
    }

    .bento-6,
    .bento-9 {
        grid-column: span 2;
        grid-row: span 1;
    }

    .bento-2,
    .bento-3,
    .bento-4,
    .bento-5,
    .bento-7,
    .bento-8 {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* ==============================
   MOBILE
================================ */

@media (max-width: 576px) {

    .bento-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 145px;
        gap: 9px;
    }

    .bento-item {
        border-radius: 10px;
    }

    /* Featured image */
    .bento-1 {
        grid-column: span 2;
        grid-row: span 2;
    }

    /* Wide images */
    .bento-6,
    .bento-9 {
        grid-column: span 2;
        grid-row: span 1;
    }

    /* Small images */
    .bento-2,
    .bento-3,
    .bento-4,
    .bento-5,
    .bento-7,
    .bento-8 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Always show text on mobile */
    .bento-info {
        opacity: 1;
        padding: 12px;
        background: linear-gradient(
            transparent,
            rgba(0,0,0,.8)
        );
    }

    .bento-info h5 {
        font-size: 12px;
        line-height: 1.3;
        margin-bottom: 3px;
    }

    .bento-info p {
        font-size: 10px;
        line-height: 1.3;
        margin: 0;
    }
}

/* Extra small mobile */
@media (max-width: 360px) {
    .bento-grid {
        grid-auto-rows: 125px;
        gap: 7px;
    }

    .bento-info {
        padding: 8px;
    }

    .bento-info h5 {
        font-size: 11px;
    }

    .bento-info p {
        font-size: 9px;
    }
}