/* =========================================
   1. ΕΙΣΑΓΩΓΗ ΓΡΑΜΜΑΤΟΣΕΙΡΩΝ & ΒΑΣΙΚΕΣ ΡΥΘΜΙΣΕΙΣ
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&family=Roboto:wght@400;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    background-color: #f9f9f9;
    font-family: 'Roboto', sans-serif;
    color: #333333;
    margin: 0;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

h1, h2, h3 {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #222;
    margin-top: 40px;
    margin-bottom: 20px;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; border-bottom: 1px solid #eee; padding-bottom: 10px; }

hr {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 40px 0;
}

/* =========================================
   2. ΚΕΦΑΛΙΔΑ & ΠΛΟΗΓΗΣΗ (HEADER / NAV)
   ========================================= */
#main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px; 
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease; 
}

.header-logo .header-link {
    text-decoration: none; 
    color: inherit;
    display: block;
}

.site-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem; 
    margin: 0;
    font-weight: 600;
    color: #222;
    transition: font-size 0.3s ease;
}

.header-slim {
    padding: 10px 40px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.header-slim .site-title {
    font-size: 1.8rem;
}

.header-hidden {
    transform: translateY(-100%);
}

.main-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease-in-out;
}

.main-nav a:hover, .main-nav a.active {
    color: #000;
    border-bottom: 2px solid #bf9000;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}

/* =========================================
   3. ΚΥΡΙΟ ΠΕΡΙΕΧΟΜΕΝΟ & ΣΕΛΙΔΕΣ
   ========================================= */
.container {
    max-width: 1000px;
    margin: 40px auto 60px auto;
    background: #ffffff;
    padding: 40px 60px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
}

.bio-section {
    text-align: justify;
    margin-bottom: 40px;
}

.bio-section.english, .bio-section.french {
    font-style: italic;
    color: #555;
}

.portrait-img {
    max-height: 450px;
    width: auto;
    object-fit: contain;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* =========================================
   4. ΚΑΡΤΕΣ ΕΝΔΕΙΞΗΣ (GRIDS / INDEX)
   ========================================= */
.category-section {
    margin-bottom: 50px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: stretch;
}

.card {
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 15px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card a {
    text-decoration: none;
    color: inherit; /* Προσθήκη για διατήρηση του χρώματος του κειμένου */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card img, .exhibition-table img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.card h3 {
    font-size: 1.1rem;
    color: #444;
    margin: auto 0 0 0;
    text-transform: none;
}

/* =========================================
   5. ΛΙΣΤΕΣ, ΠΟΛΥΜΕΣΑ & ΚΟΥΜΠΙΑ
   ========================================= */
.exhibitions-list { list-style: none; padding: 0; }
.exhibition-item { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px dashed #e0e0e0; }
.exhibition-item strong { color: #000; }
.read-more { display: block; margin-top: 5px; font-size: 0.85rem; color: #777; text-decoration: none; }
.read-more:hover { text-decoration: underline; color: #333; }

.media-section { margin-top: 50px; text-align: center; }

.media-grid, .gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px; 
    margin-top: 30px; 
    align-items: stretch;
}

.media-item {
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 15px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.media-section > .media-item {
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.media-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Η διόρθωση για τις εικόνες των έργων: Διατήρηση φυσικών αναλογιών */
.media-item img { 
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 450px; /* Μέγιστο ύψος για να μην ξεφεύγουν */
    object-fit: contain; /* Δεν κόβει την εικόνα, την εμφανίζει ολόκληρη */
    border-radius: 8px;
    margin: 0 auto 15px auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border: none; 
    padding: 0; 
    cursor: pointer; 
}

.media-item h3 {
    font-size: 1.1rem;
    color: #444;
    margin: auto 0 5px 0;
    text-transform: none;
    border: none;
}

.media-item .caption {
    font-size: 0.85rem;
    color: #777;
    margin: 0;
}

.interviews-container { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin: 40px 0; }
.btn-interview {
    display: inline-block;
    padding: 12px 20px;
    border: 2px solid #bf9000;
    color: #bf9000;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.2s;
}
.btn-interview:hover { background-color: #bf9000; color: #fff; }

/* =========================================
   6. LIGHTBOX (Διόρθωση μεγέθους για στενές εικόνες)
   ========================================= */
.lightbox {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9); align-items: center; justify-content: center; user-select: none;
}
.lightbox-content { 
    max-width: 85vw; 
    max-height: 85vh; 
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px; 
    box-shadow: 0 0 30px rgba(0,0,0,0.5); 
    border: 3px solid #fff; 
}
.close, .prev, .next { position: absolute; color: #fff; font-size: 50px; cursor: pointer; transition: 0.2s; z-index: 2100; }
.close { top: 20px; right: 30px; font-size: 60px; }
.prev { left: 30px; top: 50%; transform: translateY(-50%); }
.next { right: 30px; top: 50%; transform: translateY(-50%); }
.close:hover, .prev:hover, .next:hover { color: #bf9000; }

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 0.85rem;
    border-top: 1px solid #e0e0e0;
    margin-top: 40px;
}

/* =========================================
   8. RESPONSIVE DESIGN (ΚΙΝΗΤΑ & TABLETS)
   ========================================= */
@media (max-width: 768px) {
    #main-header {
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    .header-slim {
        padding: 10px 20px !important;
    }

    .hamburger {
        display: flex;
    }

    .prev, .next {
        display: none !important;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 20px 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        margin: 10px 0;
        font-size: 1rem;
        border: none;
    }

    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .container {
        padding: 20px 20px;
        margin-top: 20px;
    }

    .grid-container {
        gap: 15px; 
    }

    /* Αναγκαστική διάταξη σε 1 στήλη (αγνοώντας τα inline styles) */
    .grid-container,
    .media-grid, 
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }

    /* Μετατροπή παλιών πινάκων (tables) σε block στοιχεία για να μπαίνουν το ένα κάτω από το άλλο */
    .exhibition-table, 
    .exhibition-table tbody, 
    .exhibition-table tr, 
    .exhibition-table td {
        display: block;
        width: 100%;
    }

    .exhibition-table td {
        padding: 0;
        margin-bottom: 15px;
    }
}