/* --- GALLERY --- */
.gallery { padding: 60px 0; }
.gallery h2 { text-align:center; margin-bottom:40px; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

/* --- PHOTO CARD --- */
.photo-card {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: #222;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.photo-card::before {
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.35);
    transition:0.3s;
}

.photo-card:hover::before {
    background:rgba(0,0,0,0.55);
}

/* --- MODAL --- */
.foto-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

/* OVERRIDE ALLE IMG CSS VAN JE SITE */
.foto-modal img {
    all: unset;
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    display: block;
}

/* CLOSE BUTTON */
.foto-modal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* ARROWS */
.foto-modal .arrow {
    position: absolute;
    top: 50%;
    font-size: 50px;
    color: white;
    cursor: pointer;
    user-select: none;
}

.foto-modal .arrow.left { left: 30px; }
.foto-modal .arrow.right { right: 30px; }