@font-face {
    font-family: "Hanselmann Event Montserrat";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("assets/montserrat-600.ttf") format("truetype");
}

@font-face {
    font-family: "Hanselmann Event Montserrat";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("assets/montserrat-700.ttf") format("truetype");
}

@font-face {
    font-family: "Hanselmann Event Montserrat";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("assets/montserrat-900.ttf") format("truetype");
}

.hnslm-event {
    --event-green: #7cad38;
    container-type: inline-size;
    width: 100%;
    color: #fff;
    font-family: "Hanselmann Event Montserrat", Arial, sans-serif;
    font-weight: 600;
}

.hnslm-event,
.hnslm-event * {
    box-sizing: border-box;
}

.hnslm-event [hidden] {
    display: none !important;
}

.hnslm-event__layout {
    display: grid;
    grid-template-columns: 51% 49%;
    overflow: hidden;
    border-radius: 20px;
    background: var(--event-green);
}

.hnslm-event__content {
    min-width: 0;
    padding: 7cqw 3cqw 3cqw;
    align-self: center;
}

.hnslm-event .hnslm-event__title {
    margin: 0 0 2.7cqw;
    color: #fff;
    font-family: inherit;
    font-size: clamp(26px, 4.3cqw, 58px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-transform: none;
    overflow-wrap: anywhere;
}

.hnslm-event .hnslm-event__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75em;
    margin: 0 0 3.2cqw;
    color: #fff;
    font-size: clamp(11px, 1.75cqw, 24px);
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
}

.hnslm-event__countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8cqw;
    width: 100%;
    max-width: 40cqw;
}

.hnslm-event__unit {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
    min-height: 9.6cqw;
    padding: 1cqw 0.3cqw;
    border: 1px solid rgb(255 255 255 / 45%);
    border-radius: 6px;
    text-align: center;
}

.hnslm-event__number {
    font-size: clamp(25px, 3.75cqw, 52px);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.hnslm-event__label {
    margin-top: 0.2em;
    font-size: clamp(9px, 1.2cqw, 17px);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.hnslm-event .hnslm-event__ended {
    margin: 1em 0 0;
    color: #fff;
    font-size: 14px;
}

.hnslm-event .hnslm-event__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    max-width: 100%;
    margin-top: 2.6cqw;
    /* Balance Myriad Pro's high-sitting glyphs without changing button height. */
    padding: 0.55em 0.8em 0.25em;
    border: 2px solid #fff;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-family: var(--e-global-typography-55d86bc-font-family, "Hanselmann Event Montserrat"), sans-serif;
    font-size: clamp(11px, 1.25cqw, 18px);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.hnslm-event .hnslm-event__button:hover,
.hnslm-event .hnslm-event__button:focus-visible {
    background: #fff;
    color: #324a0d;
    text-decoration: none;
}

.hnslm-event .hnslm-event__button:focus-visible {
    outline: 3px solid #00193d;
    outline-offset: 4px;
}

.hnslm-event__media {
    position: relative;
    overflow: hidden;
    min-width: 0;
    min-height: 39cqw;
    background: #050605;
}

.hnslm-event .hnslm-event__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
    transform: scale(1.35);
}

/* React to the shortcode's container, including narrow Elementor columns. */
@container (max-width: 600px) {
    .hnslm-event__layout {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .hnslm-event__content {
        padding: 32px 24px;
    }

    .hnslm-event .hnslm-event__title {
        margin-bottom: 20px;
        font-size: clamp(26px, 7.2cqw, 40px);
    }

    .hnslm-event .hnslm-event__meta {
        margin-bottom: 24px;
        font-size: clamp(11px, 3cqw, 16px);
    }

    .hnslm-event__countdown {
        gap: 8px;
        max-width: 380px;
    }

    .hnslm-event__unit {
        min-height: 72px;
        padding: 10px 3px;
    }

    .hnslm-event__number {
        font-size: clamp(26px, 7.5cqw, 40px);
    }

    .hnslm-event__label {
        font-size: clamp(9px, 2.6cqw, 13px);
    }

    .hnslm-event .hnslm-event__button {
        min-height: 44px;
        margin-top: 24px;
        font-size: 13px;
    }

    .hnslm-event__media {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }
}
