:root {
    --font-size-decreased: 1.4rem;
    --font-size-normal: 1.6rem;
    --font-size-large: 2rem;
    --font-size-xl: 2.4rem;
    --font-size-xxl: 3.6rem;
    --font-size-xxxl: 4.5rem;

    --spacer-s: 1.6rem;
    --spacer-xxxs: .2rem;
    --spacer-xxs: calc(var(--spacer-s) / 4);
    --spacer-xs: calc(var(--spacer-s) / 2);
    --spacer-m: calc(var(--spacer-s) * 2);
    --spacer-l: calc(var(--spacer-s) * 3);
    --spacer-xl: calc(var(--spacer-s) * 4);
    --spacer-xxl: calc(var(--spacer-s) * 6);
}

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

html {
    font: 300 10px "Roboto", sans-serif;
    margin: 0;
    padding: 0;
}

body {
    --header-size: 32rem;

    background: white url("/images/header.jpg") no-repeat center top / auto var(--header-size);
    color: #000;
    font-size: var(--font-size-normal);
    margin: 0;
    padding: calc(var(--header-size) + var(--spacer-xxs)) 0 0 0;
}

@media (max-width: 1000px) {
    body {
        --header-size: 25rem;
    }
}

@media (max-width: 800px) {
    body {
        --header-size: 20rem;
    }
}

@media (max-width: 600px) {
    body {
        --header-size: 16rem;
    }
}

main {
    position: relative;
}

h1,
h2,
h3 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    margin: 0;
}

h1 {
    font-size: var(--font-size-xxxl);
    margin: 0 auto var(--spacer-m);
    padding-top: var(--spacer-m);
    text-align: center;
}

h2 {
    font-size: var(--font-size-xxl);
}

h3 {
    font-size: var(--font-size-xl);
}

iframe {
    border: none;
    border-radius: .2rem;
    box-shadow: .4rem .4rem .8rem rgba(0, 0, 0, .25);
    height: 30rem;
    width: 100%;
}

.lead {
    color: #444;
    font-size: var(--font-size-large);
    text-align: center;
}

dfn {
    font-style: normal;
    font-weight: 500;
}

strong {
    font-weight: 500;
}

.content-wrapper {
    margin: 0 auto;
    max-width: 100rem;
    padding: 0 var(--spacer-xxs);
    position: relative;
}

.carousel {
    position: relative;
}

.carousel-container {
    display: flex;
    list-style: none;
    margin: 0;
    overflow: hidden;
    padding: 0;
}

.carousel button {
    -webkit-backdrop-filter: blur(.5rem);
    backdrop-filter: blur(.5rem);
    background: rgba(255, 255, 255, .5) no-repeat center / auto 2.4rem;
    border: none;
    border-radius: 50%;
    content: '\A';
    cursor: pointer;
    display: block;
    height: 4rem;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    transition: .25s;
    width: 4rem;
    z-index: 3;
}

.carousel button:focus,
.carousel button:hover {
    background-color: rgba(255, 255, 255, .9);
    box-shadow: 0 0 .4rem rgba(255, 255, 255, .9);
}

.carousel .prev {
    background-image: url("/images/icons/arrow-left.svg");
    left: .8rem;
}

.carousel .next {
    background-image: url("/images/icons/arrow-right.svg");
    right: .8rem;
}

.carousel-item {
    flex: none;
    height: 25vw;
    margin: 0;
    padding: 0;
    transition: .125s;
    width: 25%;
}

.carousel-item figure {
    height: 100%;
    margin: 0;
    padding: 0;
}

.photo-preview {
    display: block;
    overflow: hidden;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.description {
    margin-top: var(--spacer-s);
    padding-top: var(--spacer-s);
}

.description .content-wrapper {
    border-bottom: .1rem solid #aaa;
}

.text {
    max-width: 72rem;
    text-align: justify;
}

dl {
    box-shadow: .2rem .2rem .6rem rgba(0, 0, 0, .125);
    margin: var(--spacer-xs) 0;
    padding: var(--spacer-xs);
}

dl > div {
    align-items: center;
    display: flex;
    margin-bottom: var(--spacer-xxs);
}

dt {
    flex: none;
    font-weight: 500;
    width: 16.5rem;
}

[lang=de] dt {
    width: 18rem;
}

[lang=ru] dt {
    width: 20rem;
}

[lang=it] dt {
    width: 20rem;
}

dd {
    margin: 0 0 0 var(--spacer-s);
    padding: 0;
}

.details .content-wrapper {
    column-count: 2;
    column-gap: var(--spacer-s);
    padding-bottom: var(--spacer-m);
    padding-top: var(--spacer-m);
}

.details section {
    break-inside: avoid;
    padding-bottom: var(--spacer-s);
}

a {
    color: hsl(220, 75%, 50%);
    text-decoration: none;
    transition: .125s;
}

a:visited {
    color: hsl(230, 50%, 50%);
}

a:active,
a:focus,
a:hover {
    color: hsl(300, 75%, 50%);
    text-decoration: underline;
}

footer {
    color: #999;
    font-size: var(--font-size-decreased);
    padding: var(--spacer-m) var(--spacer-xs);
}

.locales {
    position: absolute;
    right: var(--spacer-xxs);
    top: var(--spacer-xxs);
}

.locales ul {
    align-items: center;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.locales li {
    margin: 0;
    padding: 0;
}

.locales li:not(:first-of-type) {
    margin-left: var(--spacer-xxs);
}

.locales a,
.locales span {
    align-items: center;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 0 .2rem rgba(0, 0, 0, .5);
    display: flex;
    height: 2.8rem;
    justify-content: center;
    text-transform: uppercase;
    width: 2.8rem;
}

.locales a {
    color: hsl(230, 75%, 50%);
    transition: .25s;
    text-decoration: none;
}

.locales a:active,
.locales a:focus,
.locales a:hover {
    background-color: hsla(200, 50%, 50%, .125);
    box-shadow: 0 .2rem .4rem hsla(200, 50%, 25%, .25);
    color: hsl(230, 100%, 50%);
    transform: translate(0, -.1rem);
}

.locales span {
    background: #f0f0f0;
    color: #777;
}

.hidden {
    display: none !important;
}

#gallery {
    align-items: center;
    -webkit-backdrop-filter: blur(.5rem);
    backdrop-filter: blur(.5rem);
    background: rgba(0, 0, 0, .75);
    bottom: 0;
    display: flex;
    left: 0;
    padding: var(--spacer-xxs);
    position: fixed;
    right: 0;
    top: 0;
    z-index: 10;
}

#gallery button {
    background: rgba(255, 255, 255, .5) no-repeat center / auto 50%;
    border: none;
    border-radius: 50%;
    display: block;
    flex: none;
    height: var(--spacer-m);
    margin: 0;
    transition: .25s;
    width: var(--spacer-m);
}

#gallery button:focus,
#gallery button:hover {
     background-color: rgba(255, 255, 255, .9);
     box-shadow: .4rem .2rem .4rem rgba(0, 255, 255, .5), -.4rem -.2rem .4rem rgba(255, 0, 255, .5);
}

#gallery .prev {
    background-image: url('/images/icons/arrow-left.svg');
}

#gallery .next {
    background-image: url('/images/icons/arrow-right.svg');
}

#gallery .image {
    height: 100%;
    overflow: hidden;
    width: 100%;
}

#gallery img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

#gallery figure {
    flex: 1;
    padding: var(--spacer-xxs);
    height: 100%;
}

#gallery figcaption {
    -webkit-backdrop-filter: blur(.5rem);
    backdrop-filter: blur(.5rem);
    background: rgba(0, 0, 0, .25);
    bottom: 0;
    color: #fff;
    left: 0;
    padding: var(--spacer-xs);
    position: absolute;
    right: 0;
    text-align: center;
    z-index: 2;
}

#gallery figcaption::first-letter {
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .carousel-item {
        height: 30rem;
        width: calc(100% / 3);
    }
}

@media (max-width: 800px) {
    :root {
        --font-size-xxxl: 4rem;
    }

    .details .content-wrapper {
        column-count: 1;
    }
}

@media (max-width: 700px) {
    :root {
        --font-size-xxxl: 3.6rem;
        --font-size-xxl: 3.2rem;
    }

    .carousel-item {
        height: 25rem;
        width: 50%;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-xxxl: 3rem;
        --font-size-xxl: 2.4rem;
        --font-size-xl: 2.1rem;
        --font-size-large: 1.8rem;
    }

    .carousel-item {
        height: 30rem;
        width: 100%;
    }
}

@media (max-width: 375px) {
    dl > div {
        display: block;
    }

    dt {
        width: auto;
    }
}
