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

body {
    font-family: "Merriweather Sans", sans-serif;
    font-weight: 300;
    background-color: #D5ECD7;
    color: #222;
    line-height: 1.8;
}

/* Navigation */

header {
    position: sticky;
    top: 0;
    background-color: #D5ECD7;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: auto;
    padding: 12px 0;
    text-align: center;
}

nav a {
    color: #222;
    text-decoration: none;
    margin: 0 18px;
    font-size: 1rem;
    font-weight: 300;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1px;
    background-color: #222;
}

nav a:hover {
    color: #666;

}

.language-divider {
    margin: 0 12px;
    color: #888;
}

/* Main Content */

main {
    max-width: 1000px;
    margin: auto;
    padding: 15px 25px 40px;
}

h1 {
    font-size: 2.55rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 8px;
}

h2 {
    font-size: 1.35rem;
    font-weight: 150;
    line-height: 1;
    margin-bottom: 20px;
}

/* Homepage */

.hero {
    text-align: center;
}

.hero img {
    width: 875px;
    max-width: 100%;
    margin-bottom: 12px;
    height: auto;
}

/* Interior Pages */

.page-image {
    width: 350px;
    max-width: 100%;
    display: block;
    margin: 30px auto;
}

.biography-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Biography Page */

.biography-text {
    flex: 1;
    text-align: left;
}

.biography-photo {
    width: 500px;
    height: auto;
}

/* Gallery */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-item {
    text-align: center;
}

.gallery-grid img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.gallery-caption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
}

.gallery-grid img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    display: block;
    margin: 3% auto;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    cursor: pointer;
    user-select: none;
    z-index: 3000;
    padding: 20px;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Recordings */

.recording-item iframe {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 16 / 9;
    border: none;
}

.recording-caption {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #555;
}

/* Lessons */

.lesson-text {
    max-width: 750px;
    text-align: left;
}

.lesson-text p {
    margin-bottom: 2em;
}


/* Footer */

footer {
    text-align: center;
    padding: 30px;
    color: #666;
}

/* Mobile Optimisation */

@media (max-width: 768px) {

    .biography-layout {
        flex-direction: column;
    }

    .biography-photo {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

}

@media (max-width: 768px) {

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    nav a {
        margin: 0;
    }

}

@media (max-width: 768px) {

    .gallery-grid img {
        height: 220px;
    }

}

@media (max-width: 768px) {

    .lightbox-prev,
    .lightbox-next {
        font-size: 40px;
        padding: 15px;
    }

    .lightbox-caption {
        padding: 0 20px;
    }

}

@media (max-width: 768px) {

    body {
        font-size: 1.05rem;
    }

}