:root {
    --bg-color: #0f0f0f;
    --text-color: #f3f3f3;
    --card-bg: #1a1a1a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    padding: 40px 20px;
}

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

.gallery-header {
    margin-bottom: 60px;
    text-align: center;
}

.gallery-header h1 {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.gallery-header p {
    color: #888;
    font-size: 1rem;
}

/* Asztali nézet: Aszimmetrikus galéria hatás */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.gallery-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

/* Eltolás az Awwwards-jellegű érzetért asztali gépen */
.gallery-item:nth-child(even) {
    transform: translateY(80px);
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background-color: #222;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .image-wrapper img {
    transform: scale(1.03);
}

.image-info {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #aaa;
}

/* ==========================================
   LIGHTBOX (TELJES KÉPERNYŐS NÉZET) STÍLUSOK
   ========================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px 40px 40px;
}

/* Teljesen kitölti az oldalt arányosan, levágás nélkül */
.lightbox-content img {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-caption {
    margin-top: 15px;
    color: #bbb;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* Vezérlőgombok */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 1010;
    transition: opacity 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 0.7;
}

.lightbox-close {
    top: 20px;
    right: 25px;
    font-size: 2.5rem;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    padding: 20px;
}

.lightbox-prev {
    left: 15px;
}

.lightbox-next {
    right: 15px;
}

/* Mobil nézet optimizálás */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gallery-item:nth-child(even) {
        transform: translateY(0);
    }

    body {
        padding: 20px 15px;
    }

    .lightbox-content {
        padding: 50px 15px 30px 15px;
    }

    .lightbox-content img {
        max-height: calc(100vh - 100px);
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 10px;
        font-size: 1.5rem;
    }
}
