/* Galéria grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 32px 32px 24px 32px; /* felső, jobb, alsó, bal */
    /* vagy rövidebben: padding: 48px 32px; ha a bal/jobb ugyanaz */
    box-sizing: border-box; /* ez fontos, hogy padding jól számítson! */
    max-width: 1400px;      /* opcionális, hogy ne legyen túl széles nagy monitoron */
    margin: 0 auto;         /* középre igazítás */
}


/* Képek igazítása, animáció */
.gallery-item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 12px #0002;
    cursor: pointer;
    transition: transform 0.2s;
}
.gallery-item img:hover {
    transform: scale(1.04);
}

/* Modal popup stílus */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85);
    justify-content: center; align-items: center;
    flex-direction: column;
}
.gallery-modal.open { display: flex; }
.gallery-modal-content {
    max-width: 80vw; max-height: 80vh;
    border-radius: 14px;
    box-shadow: 0 4px 24px #0005;
}
.gallery-close {
    position: absolute; top: 32px; right: 40px;
    font-size: 44px; color: #fff; cursor: pointer;
}

/* Mobilbarát! */
@media (max-width: 900px) {
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
	padding: 32px 32px 24px 32px; /* felső, jobb, alsó, bal */
}
@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
    .gallery-item img { aspect-ratio: 1/1; }
	padding: 32px 32px 24px 32px; /* felső, jobb, alsó, bal */	
}
