@font-face {
    font-family: "freight";
    src: url('../fonts/freight/freight.woff2') format('woff2'),
         url('../fonts/freight/freight.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: "freight", sans-serif;
    display: flex;
    background-color: #f5f4f0;
    color: #45423b;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    background-image: url(../img/main-noise.png);
    background-size: auto;
    font-size: 14px;
    line-height: 1;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.left, .right {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.left {
    position: relative;
    width: 40%;
}

.left .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 15vw;
    max-width: 50%;
}

.left .center-paragraph {
    text-align: center;
    max-width: 80%;
    font-size: 1.2rem;
    color: #333;
}

.right {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    width: 60%;
    padding: 0 10vh 0 0;
}

.image-group {
    z-index: 2;
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    flex-wrap: wrap;
    flex: 1;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: auto;
    grid-auto-columns: 1fr;
    align-self: stretch;
    max-width: 55vw;
    margin: 10vh 0;
    display: grid;
    position: relative;
    max-height: 80vh;
}

.image-item {
    border-bottom: 3px solid #baf500;
    background-color: #fff;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    align-items: stretch;
    min-width: 25%;
    height: auto;
    text-decoration: none;
    display: flex;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 14px 3px rgba(0, 0, 0, 0.05);
}

.image-item img {
    z-index: 1;
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: relative;
}

.image-item img:hover {
    transform: scale(1.05);
    transition: 0.7s;
}

.image-item .image-text {
    z-index: 2;
    color: #45423b;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    background-image: linear-gradient(#d0c8bd00, #d0c8bd 78%);
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    width: 100%;
    padding: 70px 15px 10px 20px;
    font-size: 12px;
    line-height: 1.2;
    position: absolute;
    bottom: 0;
}

.image-row.large img {
    width: 100%;
    height: auto;
}

.image-row {
    display: flex;
    gap: 2px;
}

html.w-mod-touch * {
    background-attachment: scroll !important;
}

.navigator {
    z-index: 7;
    background-color: #d0c8bd;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 100%;
    display: flex;
    position: fixed;
    right: 0;
}

.nav_logo {
    width: 15px;
}

.w-inline-block {
    max-width: 100%;
    display: inline-block;
}

.line-vert {
    background-color: #baf500;
    width: 4px;
    height: 100%;
    position: absolute;
    inset: 0% auto 0% -5%;
}

.white-page {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 45px);
    height: 100vh;
    color: black;
    z-index: 999;
    background-image: linear-gradient(#f5f4f0cc, #f5f4f0cc), url(bk.webp);
    background-position: 0 0, 50%;
    background-repeat: repeat, no-repeat;
    background-size: auto, cover;
    overflow: hidden;
}

.image-subpage {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.image-subpage div {
    text-align: center;
}

.image-subpage img {
    max-width: 100%;
}

.image-subpage img:hover {
    transform: scale(1.05);
    transition: 0.7s;
}

.image-subpage span {
    display: block;
    font-size: 1rem;
    color: #333;
}

.text-span-3 {
    letter-spacing: .3em;
    line-height: 2;
    text-transform: uppercase;
    display: contents;
}

.item-subpage .text-subpage {
    z-index: 2;
    color: #45423b;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    background-image: linear-gradient(#d0c8bd00, #d0c8bd 78%);
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    width: 100%;
    padding: 70px 15px 10px 20px;
    font-size: 20px;
    line-height: 1.2;
    position: absolute;
    bottom: 0;
}

.item-subpage {
    border-bottom: 3px solid #baf500;
    background-color: #fff;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    align-items: stretch;
    max-width: 40%;
    height: auto;
    text-decoration: none;
    display: flex;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 14px 3px rgba(0, 0, 0, 0.05);
}
.item-subpage a, .image-item a{
    height: 100%;
}
.text-subpage {
    z-index: 5;
    text-align: left;
    white-space: nowrap;
    align-items: center;
    font-size: 20px;
    line-height: 20px;
}

.back-icon {
    z-index: 2;
    color: #45423b;
    border-radius: 50%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    display: none;
    overflow: hidden;
    top: 10px;
    position: fixed;
}

.heading {
    margin-bottom: 30px;
    text-align: center;
    color: #078579;
    letter-spacing: 0.1em;
    width: 100%;
    text-transform: uppercase;
    margin-top: 0;
    font-family: 'freight-neo-pro', sans-serif;
    font-size: 40px;
    font-weight: 300;
    line-height: 50px;
}
.modern-button {
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    background-color: #333333;
    padding: 10px 5px;
    transition: all 0.3s ease-in-out;
    text-align: center;
    line-height: 1.5;
    letter-spacing: 3px;
    border-bottom: 3px solid #baf500;
    max-width: 75vw;
    margin: 40px 20px;
}
.modern-button:hover {
    background-color: #baf500;
    color: #333333;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease-in-out forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 600px) {
    body {
        display: grid;
        padding-bottom: 50px;
    }
    html, body {
        height: 100%;
        overflow: scroll;
    }
    .right, .left {
        width: 100%;
        padding: 0;
    }
    .navigator {
        display: none;
    }
    .image-group {
        max-width: 75vw;
        margin: auto;
        display: flex;
    }
    .image-subpage{
        display: grid;
    }
    .image-item, .item-subpage{
        flex: auto;
    }
    .item-subpage{
        max-width: 90%;
        margin: auto;
    }
    .left .logo {
        width: 30vw;
        margin-top: 20px;
    }
    .white-page {
        width: 100%;
    }
    .item-subpage a, .image-item a{
        max-height: 200px;
    }
}
