.page {
    height: calc(100vh); /* Fallback for browsers that do not support Custom Properties */
    height: calc(var(--vh, 1vh) * 100);
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    transition: margin-top 300ms ease, height 300ms ease;
}

.page.shy {
    height: calc(100vh + 4.5rem); /* Fallback for browsers that do not support Custom Properties */
    height: calc(var(--vh, 1vh) * 100 + 4.5rem);
}

.page-header {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background-color: white;
    /* border-bottom: 1px solid black; */
    height: 6rem;
    transition: transform 300ms ease;
}

.page-header.shy {
    transform: translateY(-4.5rem);
}

.page-header .letter img {
    height: 4rem;
    width: auto;
    margin: auto;
}


.page-header.small {
    height: 4.5rem;
}

.page-header.small .letter img {
    height: 2.5rem;
}

.page-separator {
    background-color: white;
    border-top: 1px solid black;
    position: sticky;
    transition: transform 300ms ease;
    z-index: 1000;
    width: 100%;
}

.page-separator.shy {
    transform: translateY(-4.5rem);
}

.page-separator:nth-of-type(1) {
    top: 4.5rem;
}
.page-separator:nth-of-type(2) {
    top: 6.8rem;
}
.page-separator:nth-of-type(3) {
    top: 9.1rem;
}

.page-separator > a {
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
}

.page-separator.active {
    border-bottom: 1px solid black;
}

.page-separator a {
    color: black;
}

.page-separator.flex {
    display: flex;
    justify-content: space-between;
}

.page-separator.flex.hide-mobile {
    display: none;
}

.page-separator__brand {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
}

.page-separator__brand__close {
    width: 1.1rem;
    height: 1.1rem;
}

.page-separator__lang {
    display: flex;
    padding: 0.5rem 1rem;
}

.page-content {
    flex-grow: 0;
    height: 0;
    transition: 300ms;
    max-height: calc(100vh); /* Fallback for browsers that do not support Custom Properties */
    max-height: calc(var(--vh, 1vh) * 100);
    overflow-x: scroll;
}

.page-content.shy {
    transform: translateY(-4.5rem);
}

.page-content.active {
    height: calc(100vh - 11.7rem); /* Fallback for browsers that do not support Custom Properties */
    height: calc(var(--vh, 1vh) * 100 - 11.7rem);
    flex-grow: 1;
}

.page-content.shy.active {
    transform: translateY(-4.5rem);
    padding-top: 4.5rem;
    height: calc(var(--vh, 1vh) * 100 - 7.2rem);
}

.page-content__footer address {
    margin-top: 1rem;
}

.page-content__footer address p{
    margin-bottom: 1em;
}


/* Background */
.bg-gray:hover {
    background-color: #F1F1F1
}
.bg-beje:hover {
    background-color: #DDDDDD
}
.bg-orange:hover {
    background-color: #B4B4B4
}

.bg-gray.active {
    background-color: #F1F1F1
}
.bg-beje.active {
    background-color: #DDDDDD
}
.bg-orange.active {
    background-color: #B4B4B4
}


.page-content__section__text {
    margin-bottom: 1.5rem;
}

.page-content__section__gallery {
    display: flex;
}

.page-content__section__gallery figure {
    width: 100%;
}

.page-content__section__gallery figure img {
    display: flex;
}

/* Desktop */
@media only screen and (min-width: 800px) {
    .page {
        display: flex;
        flex-direction: row;
        border-right: 1px solid black;
        min-height: calc(95vh - 10rem);
        margin-top: 0;
    }

    .page.shy {
        margin-top: 0;
    }

    .page-header {
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        position: static;
        padding: 0;
        height: auto !important;
        min-width: 10rem;
        width: 10rem;
        overflow-x: hidden;
        background-color: transparent;
        transition: flex-grow 500ms ease 100ms;
    }

    .page-header.active {
        flex-grow: 1;
        width: auto;
    }

    .page-header .letter img {
        height: 8rem !important;
        width: auto;
        margin: 2rem;
    }

    .page-header .letter a {
        display: flex;
        justify-content: center;
    }

    .page-header .letter:last-child {
        margin-left: -0.35rem;
    }

    .page-separator {
        height: 100vh;
        border-left: 1px solid black;
        border-top: 0 !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 2.3rem;
        max-width: 2.3rem;
        min-width: 2.3rem;
    }

    .page-separator.active {
        border-bottom: 0;
        border-right: 1px solid black;
    }

    .page-separator.flex.hide-mobile {
        display: flex;
    }

    .page-separator > a, 
    .page-separator__lang {
        padding: 2rem 0.25rem 2rem 0.5rem;
    }

    .page-separator__title {
        height: 100%;
        display: flex;
        align-items: center;
    }
    
    .page-separator__title:hover {
        text-decoration: none;
    }

    .page-separator__title,
    .page-separator__lang {
        writing-mode: vertical-rl;
        text-orientation: mixed;
    }

    .page-content {
        min-height: 100vh;
        max-height: 100vh;
        overflow-y: scroll;
        overflow-x: hidden;
        max-width: 0;
        flex-grow: 0;
        will-change: flex-grow;
        transition: 1s ease;
        padding-top: 1rem;
    }

    .page-content.active {
        flex-grow: 1;
        max-width: 100vw;
    }

    .page-content__section__text {
        margin-bottom: 2rem;
    }

    .page-content__section__gallery figure {
        width: 275px;
        margin-right: 1rem;
    }
}

@media only screen and (max-width: 800px) {
    .hide-mobile {
        display: none;
    }
}
