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

html {
    scroll-behavior: smooth;
}

body {
    background: #f4f0e8;
    color: #181512;
    font-family: 'Inter', sans-serif;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 78px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 55px;
    background: rgba(244, 240, 232, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 31px;
    font-weight: 600;
    color: #181512;
    text-decoration: none;
    letter-spacing: 0.5px;
}

nav {
    display: flex;
    gap: 34px;
}

nav a,
.language a {
    color: #181512;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

nav a:hover,
.language a:hover,
.language .active {
    color: #9b6a3c;
}

.language {
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.hero {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    background: #181512;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.6s ease, transform 7s ease;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.placeholder {
    background: linear-gradient(135deg, #2b2520, #8a6a4b);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.20),
        rgba(0,0,0,0.25),
        rgba(0,0,0,0.50)
    );
}

.hero-overlay {
    position: absolute;
    z-index: 2;
    left: 55px;
    bottom: 70px;
    color: white;
}

.hero-overlay h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(54px, 8vw, 120px);
    font-weight: 500;
    line-height: 0.9;
}

.hero-overlay p {
    margin-top: 20px;
    font-size: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.content {
    max-width: 850px;
    margin: 0 auto;
    padding: 110px 28px;
    text-align: center;
}

.small-title {
    color: #9b6a3c;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
}

.content h2 {
    margin-top: 18px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 500;
    line-height: 1;
}

.content p {
    margin-top: 30px;
    font-size: 18px;
    line-height: 1.8;
    color: #4f4740;
}

footer {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 45px 55px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    font-size: 14px;
    color: #4f4740;
}

footer a {
    color: #181512;
    text-decoration: none;
}

footer a:hover {
    color: #9b6a3c;
}

@media (max-width: 800px) {
    .topbar {
        height: auto;
        padding: 22px;
        flex-direction: column;
        gap: 18px;
    }

    nav {
        gap: 20px;
    }

    .hero-overlay {
        left: 28px;
        bottom: 45px;
    }

    footer {
        padding: 35px 25px;
        flex-direction: column;
        text-align: center;
    }
}

.gallery-page {
    padding: 150px 55px 90px;
}

.gallery-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 70px;
}

.gallery-intro h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(55px, 8vw, 110px);
    font-weight: 500;
    line-height: 1;
    margin-top: 15px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: 0.4s;
}

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

.gallery-empty {
    text-align: center;
    color: #4f4740;
    font-size: 18px;
}

@media (max-width: 1000px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .gallery-page {
        padding: 140px 22px 70px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

.upload-page {
    max-width: 600px;
    margin: 150px auto;
    padding: 40px;
    background: #fffaf2;
    border: 1px solid rgba(0,0,0,0.08);
}

.upload-page h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 46px;
    margin-bottom: 25px;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.upload-form input {
    padding: 16px;
    background: white;
    border: 1px solid rgba(0,0,0,0.15);
}

.upload-form button {
    padding: 16px;
    border: none;
    background: #181512;
    color: white;
    cursor: pointer;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.upload-form button:hover {
    background: #9b6a3c;
}

.upload-message {
    margin-bottom: 20px;
    color: #9b6a3c;
}

#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;

    opacity: 0;
    visibility: hidden;

    transition: .3s;
}

#lightbox.show {
    opacity: 1;
    visibility: visible;
}

#lightbox img {
    max-width: 92%;
    max-height: 92%;
    object-fit: contain;

    box-shadow: 0 0 40px rgba(0,0,0,.6);
    border-radius: 8px;
}