html,
body {
    height: 100%;
    margin: 0;
    color: #3f200f;
}

.wrapper {
    display: grid;
    grid-template: "a c" 50% "b c" 50% / 1fr 1fr;
    justify-items: center;
    height: 100%;
    background-color: #bca68f;
}

.block {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    color: #3f200f;
    box-sizing: border-box;
    cursor: pointer;
    text-decoration: none;
    padding-bottom: 2em;
}

.block.a {
    grid-area: a;
}

.block.b {
    grid-area: b;
}

.block.c {
    grid-area: c;
}

.block::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(27, 11, 3, 0.4);
}

.block:hover {
    color: #f6dec8;
}

.block:hover .text--hover-underline {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.block:hover .text--hover-underline span {
    text-decoration: none;
}

.block:hover .text--note {
    opacity: 1;
}

.block:hover::after {
    content: "";
}

.block__wrapper {
    position: relative;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

picture {
    position: relative;
    display: block;
    width: 100%;
    flex: 1 1 auto;
}

.block.b picture,
.block.c picture {
    margin-bottom: -5vh;
}

.image {
    position: absolute;
    bottom: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 62vh;
    object-fit: contain;
    transform: translateY(50%);
}

.block__text {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    top: 95%;
    text-align: center;
    z-index: 10;
    flex: 0 0 auto;
}

.text {
    position: relative;
    margin-bottom: 0.3rem;
    font-weight: 400;
    font-size: 1.1vw;
    line-height: 1.1;
}

.block__text .text:first-of-type > span:first-of-type {
    position: absolute;
    transform: translateX(-0.7em);
}

.text--style-1 {
    font-family: "Isocpeur", "Arial", sans-serif;
}

.text--style-2 {
    font-family: "Isocteur", "Arial", sans-serif;
}

@media screen and (max-width: 1023px) {
    .text {
        font-size: 20px;
    }
}

@media screen and (max-width: 767px) {
    .wrapper {
        grid-template: "c c" 50% "a b" 50% / 1fr 1fr;
    }

    .block.b picture,
    .block.c picture {
        margin-bottom: 0;
    }

    .block.c picture .image {
        margin-left: 3vw;
    }

    .image {
        width: 95%;
    }

    .block__text--offset {
        top: 100%;
    }

    .text {
        margin-bottom: 0.1em;
        font-size: 14px;
    }
}