/* Public territory/direction cards used on the home page and map directory. */
.directions-section {
    width: min(1180px, calc(100% - 32px));
    margin: 108px auto 50px;
}

.directions-section > h1 {
    font-family: var(--zf-font-display);
    font-size: clamp(34px,4vw,48px);
}

.directions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.direction-card {
    position: relative;
    flex: 0 1 calc((100% - (var(--directions-columns) - 1) * 20px) / var(--directions-columns));
    min-width: min(100%, 240px);
    height: 330px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.62);
    border-radius: 22px;
    background: #d8dfda;
    box-shadow: 0 15px 38px rgba(25,53,39,.13);
    transition: transform .2s ease, box-shadow .2s ease;
}

.direction-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 23px 46px rgba(25,53,39,.19);
}

.direction-card > img,
.direction-card > iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    opacity: 1;
    pointer-events: none;
}

.direction-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 58px 20px 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.82) 58%, rgba(255,255,255,.96) 100%);
    color: #111;
}

.direction-overlay strong,
.direction-overlay em {
    display: block;
    color: #111;
    text-shadow: none;
}

.direction-overlay strong {
    font-family: var(--zf-font-display);
    font-size: clamp(25px, 2.4vw, 31px);
    line-height: 1.08;
}

.direction-overlay em {
    margin-top: 6px;
    font-size: 14px;
    font-style: normal;
    font-weight: 650;
    opacity: .78;
}

.direction-overlay em + em {
    margin-top: 3px;
}

@media (max-width: 980px) {
    .directions-section {
        margin-top: 98px;
    }

    .direction-card {
        flex-basis: calc((100% - 20px) / 2);
    }
}

@media (max-width: 640px) {
    .direction-card {
        flex-basis: 100%;
        height: 285px;
    }
}
