.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 270px 133px 133px 66px; /* Reverted to original sizes */
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-item {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: #333;
}

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

.bento-item-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.bento-item:hover img {
    opacity: 0.7;
}

.bento-item .label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 26px;
    color: #2DAFB5;
    z-index: 1;
    transition: color 0.3s ease;
}

.bento-item:hover .label {
    color: #111;
}

.item1 { grid-column: span 7; }
.item2 { grid-column: span 5; }
.item3 { grid-column: span 5; grid-row: 2 / 3; }
.item4 { grid-column: span 7; grid-row: 2 / 4; }
.item5 { grid-column: span 5; grid-row: 3 / 4; }
.item6 { grid-column: span 12; grid-row: 4 / 5; }

.item6 img {
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, auto);
    }

    .bento-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        height: 200px;
    }

    .item6 {
        height: 100px;
    }

    .bento-item .label {
        font-size: 24px; /* Slightly smaller on mobile, but still larger than before */
    }
}
