*,
*::before,
*::after {
    box-sizing: border-box;
}


@font-face {
    font-family: "U001";
    src: url("../fonts/u001-reg.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "U001";
    src: url("../fonts/u001-ita.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: "U001";
    src: url("../fonts/u001-bol.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
}

/* ---------- VARIABLES ---------- */

:root {
    --font-family: "U001", sans-serif;

    --font-size-body: 26px;
    --font-size-caption: 18px;
    --font-size-quote: 22px;

    --line-height: 1.3;

    --font-weight-regular: 400;

    --background: #E0E0E0;
    --text-color: #000;

    --color-nav: #027F00;
    --color-menu: #6795DB;

    --sidebar-width: 20rem;
    --gallery-width: var(--sidebar-width);
    --content-max-width: 722px;
    --spacing: 1rem;
    --header-height: 3.625rem;
    --nav-height: 6.375rem;
    --sticky-offset: calc(var(--header-height) + var(--nav-height));
}


/* ---------- GENERAL ---------- */

html {
    font-size: 16px;
}

body {
    margin: 0;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    font-family: var(--font-family);
    font-size: var(--font-size-body);
    line-height: var(--line-height);
    font-weight: var(--font-weight-regular);
    color: var(--text-color);
    background: var(--background);
    font-synthesis: none;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

figure {
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

figure.figure--fixed {
    flex: 0 0 auto;
    width: var(--gallery-width);
    margin-left: auto;
}

figcaption {
    font-size: var(--font-size-caption);
}

.content a,
h2 a,
figcaption a {
    color: #F61300;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-gallery {
    flex-basis: 100%;
    column-count: 3;
    column-gap: 0.75rem;
}

.page-gallery figure {
    break-inside: avoid;
    margin-bottom: 0.75rem;
}

/* ---------- TYPOGRAPHY ---------- */

p {
    margin: 0;
    overflow-wrap: anywhere;
}

.quote {
    font-size: var(--font-size-quote);
}

h1 {
    margin: 0;
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    font-synthesis: none;
    overflow-wrap: anywhere;
}

h2,
h3 {
    margin: 0;
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    font-synthesis: none;
    overflow-wrap: anywhere;
    color:#027F00;
}

h2 a:hover,
h2 a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

p a:hover,
p a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}



/* ---------- HEADER ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;

    background: var(--background);

    text-align: center;
    padding: 1rem 1rem 1rem;
}

.site-title {
    font-size: var(--font-size-body);
    line-height: 1;
}

.site-title a {
    text-decoration: none;
}


/* ---------- NAV ---------- */

.site-nav {
    position: sticky;
    top: var(--header-height);
    z-index: 10;
    background: var(--background);

    width: calc(var(--sidebar-width) + 1rem);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;

    padding: 0 1rem 1rem;
}

.site-nav a {
    color: var(--color-nav);
    font-weight: var(--font-weight-regular);
    line-height: 1;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

@media (min-width: 577px) {

    .page-images .site-nav,
    .page-images .menu {
        position: static;
    }
}


/* ---------- FOOTER ---------- */

.site-footer {
    padding: 1rem 1rem 1rem;
    text-align: left;
    font-size: var(--font-size-caption);
}

.site-footer a {
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.copyright-mark {
    font-size: 1.5em;
    vertical-align: -0.3em;
}

.lang-switch {
    display: inline;
}

.lang-switch .lang-option {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    display: inline;
    font: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.lang-switch .lang-option.lang-active {
    text-decoration: underline;
    text-underline-offset: 0.3em;
}

/* ---------- LAYOUT ---------- */

.layout {
    flex: 1 0 auto;

    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;

    padding: 0 1rem 1rem;
}

.gallery {
    flex: 0 0 var(--gallery-width);
    margin-left: auto;
    align-self: flex-start;

    position: sticky;
    top: var(--sticky-offset);

    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content-area {
    flex: 1 1 0;
    min-width: 0;

    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.content {
    flex: 1 1 496px;
    max-width: var(--content-max-width);
    min-width: 496px;
}

.content > * + * {
    margin-top: 1.5rem;
}

/* ---------- LIGHTBOX ---------- */

.gallery img,
.page-gallery img {
    cursor: pointer;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 3rem;

    background: rgba(0, 0, 0, 0.60);
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    cursor: default;
}

/* ---------- MENU ---------- */
.menu {
    flex: 0 0 var(--sidebar-width);
    align-self: flex-start;
    min-width: 0;

    position: sticky;
    top: var(--sticky-offset);

    display: flex;
    flex-direction: column;
}

.menu-item {
    background: var(--background);
    padding-bottom: 0.25rem;
}

.menu-item summary {
    color: var(--color-menu);
    font-weight: var(--font-weight-regular);
    cursor: pointer;
    list-style: none;
    line-height: 1;
}

.menu-item summary:hover,
.menu-item[open] summary {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.menu-item summary::-webkit-details-marker {
    display: none;
}

.menu-item summary::marker {
    content: "";
}

.menu-item .menu-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;

    padding-top: 0.5rem;

    color: var(--color-menu);
    font-weight: var(--font-weight-regular);
    line-height: 1;
}

/* ---------- TABLET / PHONE ---------- */

@media (max-width: 900px) {

    .layout {
        flex-direction: column;
    }

    .content-area {
        width: 100%;
    }

    .gallery {
        flex: 0 0 auto;
        width: var(--gallery-width);
    }

    .content {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
    }

    .site-nav {
        width: 100%;
    }

    .gallery {
        position: static;
    }

    .menu {
        flex: 0 0 auto;
        width: 100%;
    }

            .page-gallery {
        column-count: 2;
    }
}


/* ---------- PHONE (header wraps to two lines) ----------*/

@media (max-width: 576px) {

    :root {
        --header-height: 5.25rem;
        --font-size-body: 18px;
        --font-size-quote: 16px;
        --font-size-caption: 14px;
    }

      .menu,
      .site-nav {
        position: static;
    }

        .page-gallery {
        column-count: 1;
    }

    .lang-switch {
        display: block;
        margin-top: 0.25rem;
        white-space: nowrap;
        overflow-wrap: normal;
    }

}
