/* =========================================================================
   1. ALAPBEÁLLÍTÁSOK & TIPOGRÁFIA
   ========================================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #dfdbd3; /* Elegáns, meleg szürkés-bézs alapháttér */
    color: #2c2a27; /* Sötét, meleg tónusú szövegszín a jó olvashatóságért */
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #1c1b19; /* Mély sötét árnyalat a címeknek */
}

/* Főcímek stílusa a Biográfia és Kapcsolat oldalakon */
.page-title {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 0.5rem;
    color: #1c1b19;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background-color: #8c887d; /* Finom, tompa vonal */
}

/* =========================================================================
   2. ELRENDEZÉSI KONTÉNER (Dobozozott nézet)
   ========================================================================= */
.container {
    max-width: 1100px; /* Az oldal maximális szélessége */
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 2.5rem;
    padding-left: 2.5rem;
}

/* A középső, világosabb konténer doboza */
.content-wrapper {
    background-color: #f6f5f1; /* ~15%-kal világosabb galéria-krém szín */
    padding-top: 4rem;
    padding-bottom: 4rem;
    border-left: 1px solid #d0cbc0; /* Finom elválasztó keret kétoldalt */
    border-right: 1px solid #d0cbc0;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.04); /* Nagyon lágy árnyék */
}

/* =========================================================================
   3. FEJLÉC ÉS NAVIGÁCIÓ (Finomabb, elegáns sötét árnyalat)
   ========================================================================= */
.site-header {
    background-color: #1c1b19; /* Meleg tónusú mély faszén-bronz fejléc */
    border-bottom: 1px solid #2d2b28;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Fejléc szövegei világosak maradnak a kontraszt miatt */
.logo a {
    text-decoration: none;
    color: #e0e0e0;
}

.logo h1 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
}

.logo span {
    font-size: 0.8rem;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: #b8b8b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    color: #ffffff;
}

/* Nyelvválasztó linkek */
.lang-switcher a {
    color: #7c7c7c;
    text-decoration: none;
    margin-left: 10px;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.lang-switcher a.active, .lang-switcher a:hover {
    color: #ffffff;
    font-weight: 500;
}

/* =========================================================================
   4. GALÉRIA SZEKCIÓ (Masonry + Világos Hover)
   ========================================================================= */
/* Puzzle-szerű Masonry rács hasábolással (4 oszlopos elrendezés) */
.gallery-grid {
    column-count: 4;
    column-gap: 2rem; /* Rés az oszlopok között */
}

.gallery-item {
    display: block; /* A Chrome/Edge hasábolási hibájának javításához */
    width: 100%;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: #ebeae6;
    
    /* Törésgátló szabályok */
    break-inside: avoid;
    -webkit-column-break-inside: avoid; 
    page-break-inside: avoid;
    
    border: 1px solid #e0ded8; /* Halvány keret a képek körül */
    transition: opacity 0.4s ease; /* Lágy átmenet a szűréskor */
}

.image-container {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Világos tónusú információs panel hover esetén */
.item-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(246, 245, 241, 0.96); /* Krém színű áttetsző réteg */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.gallery-item:hover .item-info {
    opacity: 1;
}

/* Szövegek a lebegő panelen belül */
.item-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #1c1b19;
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
}

.item-description {
    font-size: 0.85rem;
    color: #5a5752;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    font-weight: 300;
    max-width: 95%;
}

.item-specs {
    font-size: 0.75rem;
    color: #8c887d;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.empty-message {
    color: #8c887d;
    font-style: italic;
    font-size: 0.95rem;
}

/* =========================================================================
   5. BIOGRÁFIA SZEKCIÓ
   ========================================================================= */
.bio-container {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.bio-text {
    flex: 1.2;
}

.bio-text p {
    margin-bottom: 1.5rem;
    color: #4a4742;
}

.bio-image {
    flex: 0.8;
}

.bio-image img {
    width: 100%;
    filter: grayscale(10%);
    border: 1px solid #d5d1c7;
    display: block;
}

/* =========================================================================
   6. KAPCSOLAT SZEKCIÓ
   ========================================================================= */
.contact-container {
    display: flex;
    gap: 4rem;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-info p {
    color: #4a4742;
}

.contact-details {
    list-style: none;
    margin-top: 2rem;
}

.contact-details li {
    margin-bottom: 1rem;
    color: #2c2a27;
}

/* Beviteli mezők világos galéria-esztétikához igazítva */
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    background-color: #faf9f6;
    border: 1px solid #d5d1c7;
    color: #1c1b19;
    margin-bottom: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #8c887d;
}

/* Gomb sötét színben */
.btn {
    background-color: #1c1b19;
    color: #f6f5f1;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #3e3b37;
    color: #ffffff;
}

/* =========================================================================
   7. LÁBLÉC (A külső bézs háttéren fekszik)
   ========================================================================= */
.site-footer {
    border-top: 1px solid #d0cbc0;
    background-color: #dfdbd3;
}

.site-footer .container {
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
    color: #7c776e;
    font-size: 0.85rem;
}

/* =========================================================================
   8. NAGYÍTÓ (Lightbox - sötét marad a fókusz megtartásához)
   ========================================================================= */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.96);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    cursor: zoom-out;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: default;
}

#lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border: 1px solid #222;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}

#lightbox-caption {
    margin-top: 1.5rem;
    text-align: center;
    color: #fff;
    max-width: 600px;
}

#lightbox-caption h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.lightbox-desc {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.lightbox-specs {
    font-size: 0.85rem;
    color: #888;
    letter-spacing: 0.5px;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: #888;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    z-index: 1010;
}

.lightbox-close:hover {
    color: #fff;
}

/* =========================================================================
   9. MOBIL ÉS TABLET OPTIMALIZÁLÁS (Reszponzivitás)
   ========================================================================= */
@media (max-width: 1024px) {
    .gallery-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .main-nav ul {
        gap: 1.5rem;
    }

    .content-wrapper {
        padding-top: 2rem;
        padding-bottom: 2rem;
        border-left: none;
        border-right: none;
    }

    .gallery-grid {
        column-count: 2;
        column-gap: 2rem;
    }

    .bio-container, .contact-container {
        flex-direction: column;
        gap: 2.5rem;
    }

    .bio-image {
        max-width: 100%;
        order: -1;
    }
}

@media (max-width: 500px) {
    .gallery-grid {
        column-count: 1;
        column-gap: 1.5rem;
    }

    .item-info {
        padding: 1rem;
    }
    
    .item-title {
        font-size: 1.15rem;
    }
    
    .item-description {
        font-size: 0.85rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1.5rem;
        font-size: 2.5rem;
    }
}

/* =========================================================================
   10. GALÉRIA DINAMIKUS SZŰRŐ GOMBOK
   ========================================================================= */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3.5rem;
    border-bottom: 1px solid #e3ded4;
    padding-bottom: 1.5rem;
}

.filter-btn {
    background: none;
    border: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #7c776e;
    cursor: pointer;
    padding: 0.5rem 1.2rem;
    transition: color 0.3s ease;
    position: relative;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: #1c1b19;
    transition: width 0.3s ease, left 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    color: #1c1b19;
}

.filter-btn.active::after {
    width: 60%;
    left: 20%;
}

/* =========================================================================
   11. TÁRLATOK (EXHIBITIONS) SZEKCIÓ (Elegánsan átdolgozott elválasztás)
   ========================================================================= */
.exhibitions-section {
    margin-top: 5rem; /* Jelentős elválasztás a biográfia szövegtől */
    border-top: 1px solid #d5d1c7;
    padding-top: 4rem;
}

/* Szellős, vékonyított alcím a tárlatok fejezetnek */
.exhibitions-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #5c5852;
    margin-bottom: 2.5rem;
}

.exhibitions-list {
    display: flex;
    flex-direction: column;
}

/* Finom, pontozott elválasztóvonalak a tárlat tételek között */
.exhibition-item {
    display: flex;
    align-items: flex-start;
    gap: 3rem; /* Térköz az évszám és a részletek között */
    padding-top: 1.8rem; /* Egyenletes levegősség felül */
    padding-bottom: 1.8rem; /* Egyenletes levegősség alul */
    border-bottom: 1px dotted #cfcac0; /* Lágy, nem tolakodó pontozott elválasztás */
}

.exhibition-item:first-child {
    padding-top: 0; /* Az első tétel ne kapjon felesleges felső térközt */
}

.exhibition-item:last-child {
    border-bottom: none;
    padding-bottom: 0; /* Az utolsó tétel alól eltávolítjuk a vonalat és térközt */
}

.exhibition-year {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: #8c887d;
    min-width: 60px; /* Biztosítja az évszámok precíz függőleges igazítását */
}

.exhibition-details {
    flex: 1;
}

/* A kiállítás dőlt, talpas betűs kiemelése */
.exhibition-name {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.25rem;
    font-weight: 400;
    color: #1c1b19;
    margin-bottom: 0.25rem;
}

.exhibition-meta {
    font-size: 0.9rem;
    color: #5a5752;
    font-weight: 300;
}

/* Tárlatok mobil elrendezése */
@media (max-width: 600px) {
    .exhibition-item {
        flex-direction: column;
        gap: 0.5rem;
        padding-top: 1.2rem;
        padding-bottom: 1.2rem;
    }
    
    .exhibition-year {
        min-width: auto;
    }
}
/* Visszajelző üzenetek az űrlapnál */
.form-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.form-message.success {
    background-color: #e2f0d9;
    color: #385723;
    border-color: #c5e0b4;
}

.form-message.error {
    background-color: #fce4d6;
    color: #c65911;
    border-color: #f8cbad;
}