.country_hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: var(--portalWidth);
    max-width: calc(100% - 15px);
    height: 300px;
    margin: 12px auto 0 auto;
    overflow: hidden;
    border-radius: 10px;
    /* shown until the photo has loaded, the text is white */
    background-color: #1b1b1b;
    box-shadow: 2px 2px 4px 1px rgba(102, 102, 102, 0.25);
}

.country_hero_photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* darkens the lower part so that the text is readable on any photo */
.country_hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.6) 72%, rgba(0, 0, 0, 0.85) 100%);
}

.country_hero_text {
    position: relative;
    z-index: 1;
    padding: 0 24px 34px 24px;
}

.country_hero .event_list_h1 {
    color: white;
    font-size: xx-large;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.country_hero .event_list_h2 {
    margin-bottom: 0;
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.country_hero_author {
    position: absolute;
    z-index: 1;
    right: 12px;
    bottom: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 10px;
}

@media (max-width: 768px) {
    .country_hero {
        height: 280px;
    }

    /* the photo ends at 80%, fading into the background the text is on */
    .country_hero::after {
        background: linear-gradient(180deg, rgba(27, 27, 27, 0) 35%, rgba(27, 27, 27, 0.6) 62%, #1b1b1b 80%);
    }

    .country_hero_photo {
        height: 80%;
    }

    .country_hero_text {
        padding: 0 14px 28px 14px;
    }

    .country_hero .event_list_h1 {
        font-size: 20px;
    }

    .country_hero .event_list_h2 {
        font-size: small;
    }
}
