/* ==========================================
   GALLERY PAGE STYLES
   ========================================== */

.gallery-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.gallery-header p {
    color: #666;
    font-size: 1.1rem;
}

/* RESZPONZÍV KÉPRÁCS (GRID) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    aspect-ratio: 1 / 1;
    cursor: pointer;
    background-color: #f0f0f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.9);
}

/* LIGHTBOX POPUP ÉS LÉPTETŐK */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-modal img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(255,255,255,0.15);
    object-fit: contain;
    user-select: none;
}

.lightbox-counter {
    color: #fff;
    margin-top: 12px;
    font-size: 0.95rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 2010;
}

.lightbox-close:hover {
    color: #bfa15f;
}

/* LÉPTETŐ NYILAK */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s, color 0.3s;
    z-index: 2010;
}

.lightbox-nav:hover {
    background: #fff;
    color: #111;
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}

/* MOBIL RESZPONZIVITÁS */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}