/* GRID */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(4px, 0.6vw, 10px);
}

/* ITEM */
.gallery-item {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #eee;
    position: relative;
    z-index: 1;
}

/* IMAGE */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: 0.7s;
    cursor: pointer;
}

/* OVERLAY + COUNT */
.gallery-item.more::after {
    content: attr(data-count);
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: clamp(16px, 2.5vw, 32px);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

/* HOVER */
.gallery-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}