/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #222;
    background-color: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* --- Header Section --- */
header {
    padding: 40px 20px 20px;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
}

.logo-container img {
    max-height: 60px;
    margin-bottom: 15px;
}

.logo-text {
    font-size: 1.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.logo-text .brand-main {
    font-weight: 400;
}

.logo-text .brand-sub {
    font-weight: 700;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

nav ul li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

nav ul li a:hover,
nav ul li a.active {
    color: #000;
    border-bottom: 1px solid #000;
}

/* --- Main Content Layout --- */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 60vh;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    background-color: #f4f4f4;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    padding: 12px 25px;
    background-color: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    align-self: flex-start;
}

.contact-form button:hover {
    background-color: #444;
}

/* --- Footer Section --- */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    border-top: 1px solid #eaeaea;
    font-size: 0.85rem;
    color: #666;
}

footer a {
    color: #222;
    text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    nav ul {
        gap: 10px 15px;
    }
    
    footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .insta-icon {
        width: 16px;
        height: 16px;
        display: block;
        flex: 0 0 auto;
        object-fit: contain;
        max-width: 100%;
    }
}

/* --- Carousel Section --- */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 40px auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-track img {
    width: 300px;
    height: auto;
    margin: 0 10px;
    border-radius: 6px;
    cursor: pointer;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 22px;
    border-radius: 4px;
    z-index: 10;
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.6);
}

@media (max-width: 768px) {
    .carousel-container {
        max-width: 320px;
    }

    .carousel-track img {
        width: 300px;
        margin: 0 10px;
    }
}

/* --- Language Switcher (Desktop Default) --- */
.lang-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.lang-switch button {
    background: #ffffff;
    border: 1px solid #ccc;
    padding: 6px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 4px;
    min-width: 50px;
    text-align: center;
    transition: background 0.2s, border-color 0.2s;
}

.lang-switch button:hover {
    background: #f2f2f2;
    border-color: #999;
}

/* --- Language Switcher (Mobile Override) --- */
@media (max-width: 768px) {
    .lang-switch {
        position: static;          /* stops overlapping the logo */
        margin-top: 10px;          /* spacing below logo */
        display: flex;
        justify-content: center;   /* center horizontally */
        gap: 10px;
    }
}

/* Exhibitions table */
.exhibitions-category {
    text-align: center;
    margin: 40px 0 20px;
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.exhibitions-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px;
    border-collapse: collapse;
}

.exhibitions-table td {
    padding: 10px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #eaeaea;
}

.exhibitions-table a {
    color: #000;
    text-decoration: underline;
}

.exhibitions-table a:hover {
    color: #444;
}

/* Insta Footer settings */
.insta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.insta-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    object-fit: contain;
    max-width: 100%;
}

footer a[target="_blank"]::after {
    content: " ↗";
    font-size: 0.75em;
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 22px;
    border: none;
    cursor: pointer;
    display: none; /* JS controls visibility */
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: bottom 0.3s ease, opacity 0.3s ease;
}

/* Lifted state */
.back-to-top.lifted {
    bottom: 80px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .back-to-top {
        bottom: 18px;
        right: 18px;
        width: 36px;
        height: 36px;
        font-size: 18px;
        /* IMPORTANT: do NOT hide it */
        display: flex !important;
    }

    .back-to-top.lifted {
        bottom: 70px;
    }
}

