/* Modern Gallery / Bento Grid */

.galeri-section {
    position: relative;
    z-index: 2;
    padding: 60px 1rem;
}

.gallery-container {
    max-width: 500px;
    margin: 0 auto;
}

.gallery-title {
    font-family: var(--sacramento);
    font-size: 2.8rem;
    color: var(--heading-text-color);
    margin-bottom: 0.5rem;
}

.gallery-subtitle {
    font-size: 0.95rem;
    color: var(--main-text-color);
    opacity: 0.7;
    margin-bottom: 2rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* Make every 3rd item span full width for variety */
.bento-item:nth-child(5n+1) {
    grid-column: span 2;
}

.bento-item {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.bento-img-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 1 / 1;
}

.bento-item:nth-child(5n+1) .bento-img-wrapper {
    aspect-ratio: 16 / 9;
}

.bento-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bento-img-wrapper:hover img,
.bento-img-wrapper:active img {
    transform: scale(1.08);
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 14px;
    pointer-events: none;
}

.bento-img-wrapper:hover .bento-overlay,
.bento-img-wrapper:active .bento-overlay {
    opacity: 1;
}

.bento-overlay i {
    font-size: 2rem;
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
