.heritage-description {
    position: absolute;
    top: 92px;
    left: 50%;
    transform: translate(-50%, 25px);
    width: 72%;
    max-width: 1100px;

    color: #080908;

    font-family: "Blue Screen", monospace;

    font-size: 16px;
    line-height: 1.6;
    letter-spacing: .4px;

    z-index: 5;
}

.heritage-description p {
    margin: 0;
}

.heritage-locations {
    position: absolute;
    top: 205px;
    left: 50%;
    transform: translateX(-50%);

    width: 72%;
    max-width: 1000px;

    display: grid;
    grid-template-columns: max-content max-content;
    grid-template-rows: repeat(4, 32px);
    grid-auto-flow: column;
    justify-content: center;

    grid-auto-rows: 32px;

    column-gap: 70px;
    row-gap: 6px;

    color: #080908;

    font-family: "Blue Screen", monospace;
    font-size: 17px;
    line-height: 1;

    letter-spacing: .3px;

    text-align: center;

    z-index: 5;
}

.heritage-locations div {
    white-space: nowrap;
}

@media screen and (max-width: 600px) {

    .heritage-description {
        top: 90px;
        transform: translateX(-50%);
        width: 88%;
        font-size: 14px;
        line-height: 1.6;
    }

    .heritage-locations {
        top: 215px;
        width: 94%;

        grid-template-columns: max-content max-content;
        grid-template-rows: repeat(4, 29px);
        grid-auto-flow: column;
        justify-content: center;

        grid-auto-rows: 29px;

        column-gap: 28px;
        row-gap: 3px;

        font-size: 14px;
        line-height: 1;

        letter-spacing: 0;
    }

    .heritage-locations div {
        white-space: nowrap;
    }
}

@media screen and (max-width: 380px) {

    .heritage-description {
        top: 86px;
        width: 90%;
        font-size: 13px;
    }

    .heritage-locations {
        top: 205px;
        width: 96%;

        grid-template-columns: max-content max-content;
        grid-template-rows: repeat(4, 28px);
        grid-auto-flow: column;
        justify-content: center;

        grid-auto-rows: 28px;

        column-gap: 18px;
        row-gap: 3px;

        font-size: 13px;
        line-height: 1;

        letter-spacing: 0;
    }

}

.heritage-locations {
    width: max-content;
    max-width: 100%;
    color: #c2c2be;
    isolation: isolate;
}

.heritage-locations::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -14px -18px 1px;
    background: rgba(8,9,8,.7);
    pointer-events: none;
}

.banner .heritage-locations a {
    color: #c2c2be;
}

.banner .heritage-locations a:hover,
.banner .heritage-locations a:focus-visible {
    color: #7e7e7a;
}

@media screen and (max-width: 600px) {
    .heritage-locations::before {
        inset: -10px -12px 5px;
    }
}

.heritage-locations {
    grid-template-columns: max-content;
    grid-template-rows: none;
    grid-auto-flow: row;
    grid-auto-rows: 38px;
    row-gap: 0;
    --row: 38px;
}

@supports (height: 1dvh) {
    .heritage-locations {
        --row: min(38px, calc((100dvh - 250px) / 7));
    }
}

.heritage-locations {
    grid-auto-rows: var(--row);
}

.heritage-locations::before {
    inset: -14px -18px calc(var(--row) - 1em - 14px);
}

@media screen and (max-width: 600px) {
    .heritage-locations {
        --row: 32px;
    }

    @supports (height: 1dvh) {
        .heritage-locations {
            --row: min(32px, calc((100dvh - 300px) / 7));
        }
    }

    .heritage-locations::before {
        inset: -10px -12px calc(var(--row) - 1em - 10px);
    }
}

@media screen and (max-width: 380px) {
    .heritage-locations {
        --row: 31px;
    }

    @supports (height: 1dvh) {
        .heritage-locations {
            --row: min(31px, calc((100dvh - 290px) / 7));
        }
    }
}

.heritage-locations::before {
    left: 50%;
    right: auto;
    width: 72vw;
    transform: translateX(-50%);
}

@media screen and (max-width: 600px) {
    .heritage-locations::before {
        width: calc(100vw - 40px);
    }
}
