.header-generic {
    position: relative;
    margin-top: 0;
    margin-bottom: var(--wp--preset--spacing--8-rem);
}
.header-generic .block-title-generic {
    /*margin-top: -3rem;*/
}

.header-generic .wp-block-image {
    padding: 0px;
}
.header-generic .title-block-section {
    text-transform: uppercase;
    color: transparent;
    font-size: 8.75rem;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #fff;
    font-weight: bold;
    position: absolute;
    right: 0rem;
    top: calc((100% - 83px) / 2);
    box-sizing: border-box;
    z-index: 1;
    padding: 0px;
}
.header-generic .wp-block-post-featured-image img {
    height: 300px;
}
@media screen and (max-width: 1280px) {
    .header-generic .title-block-section {
        font-size: 5.75rem;
    }
}
@media screen and (max-width: 980px) {
    .header-generic .title-block-section {
        font-size: 3.75rem;
        top: calc((100% - 80px) / 2);
    }
}
@media screen and (max-width: 800px) {
    .header-generic .title-block-section {
        display: none;
    }
    .header-generic {
        margin-top: 5rem !important;
    }
}

@media screen and (max-width: 600px) {
    .header-protektor,
    .search-block {
        padding-right: 20px !important;
        padding-left: 20px !important;
    }
}

@media screen and (min-width: 600px) {
    .background-title {
        color: white !important;
        position: relative;
        z-index: 1;
    }
}

@media screen and (max-width: 1024px) {
    .header-picture {
        flex-wrap: wrap !important;
        min-height: 300px !important;
        width: 100% !important;
    }

    .disable-flex-smph {
        flex-wrap: wrap !important;
    }
}

.header-generic .block-title-generic {
    padding-left: 0rem;
    padding-right: 0rem;
}
.header-generic .title-block {
    max-width: inherit;
}

.header-generic .background-title {
    padding-left: calc((100% - 1320px) / 2);
    padding-right: 0;
    height: 75px;
    font-size: 2.5rem !important;
    background: var(--wp--preset--color--red-50);
    display: flex;
    align-items: center;
    color: #fff;
    max-width: fit-content;
    position: relative;
}

@media screen and (max-width: 1360px) {
    .header-generic .background-title {
        padding: 0.6rem 2rem 0.6rem 1.5rem;
    }
}

@media screen and (max-width: 980px) {
    .header-generic .background-title {
        font-size: 2rem !important;
        position: relative;
    }
}

.header-generic .background-title:before {
    display: block;
    content: "";
    position: absolute;
    right: -75px;
    top: 0rem;
    border-bottom: 75px solid #e41b13;
    border-right: 75px solid transparent;
    z-index: 1;
    height: 0;
    width: 0;
    left: inherit;

    /* Dynamic height */
    /* background: url(http://protektor.intranet/wp-content/uploads/2023/10/red-label-triangle.svg) no-repeat;
    height: auto;
    bottom: 0rem;
    background-size: cover; */
}

@media screen and (max-width: 980px) {
    .header-generic .background-title::before {
        border-bottom: 1.8em solid #e41b13;
        border-right: 1.8em solid transparent;
        height: 57px;
        right: -3.5rem;
    }
}

.header-generic .background-title:after {
    display: none;
}

.header-generic .background-subtitle {
    padding: 0.6rem 2rem 0.6rem calc((100% - 1320px) / 2);
    font-size: 1rem !important;
    background: #e41b13;
    display: inline-block;
    color: #fff;
    position: relative;
}

@media screen and (max-width: 1360px) {
    .header-generic .background-subtitle {
        padding: 0.6rem 2rem 0.6rem 1.5rem;
    }
}

.header-generic .background-subtitle:before {
    display: block;
    content: "";
    position: absolute;
    right: -2.3rem;
    top: 0rem;
    border-top: 2.4em solid #e41b13;
    border-right: 2.4em solid transparent;
    z-index: 1;
    height: 39px;
    width: 0px;
    left: inherit;
}

.header-generic .background-subtitle:after {
    display: none;
}

.header-generic > .wp-block-image.size-full img {
    width: 100% !important;
    height: 300px;
    object-fit: cover;
}

@media screen and (max-width: 700px) {
    .header-home .wp-block-image.size-full img,
    .header-generic .wp-block-image.size-full img {
        object-fit: cover;
        height: 240px;
    }
    .header-home .icon-category .wp-block-image img,
    .header-generic .icon-category .wp-block-image img {
        object-fit: none;
        height: auto;
    }
}


