/*
 * Banner "Berlin Industries" at the end of the branch pages (shared textmedia elements 842 EN / 843 DE in folder 180,
 * included by shortcuts), layout after the designer's draft: wide rounded image, the subheader as white button
 * with arrow in the middle, the whole banner links to the overview of the Berlin industries (link of the header).
 */
#c842 .textmedia,
#c843 .textmedia {
    position: relative;
    display: block;
}

#c842 .gallery-row,
#c843 .gallery-row,
#c842 .gallery-item,
#c843 .gallery-item,
#c842 figure,
#c843 figure {
    margin: 0;
    padding: 0;
}

#c842 figure img,
#c843 figure img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 21 / 5;
    object-fit: cover;
    border-radius: 1.75rem;
}

#c842 figure .caption,
#c843 figure .caption {
    position: absolute;
    right: 1.25rem;
    bottom: .6rem;
    margin: 0;
    color: #fff;
    font-size: .75rem;
    text-shadow: 0 0 .3rem rgba(0, 0, 0, .6);
}

#c842 .textmedia-text,
#c843 .textmedia-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

#c842 .frame-header,
#c843 .frame-header {
    margin: 0;
}

/* header: link over the whole banner, its text only for screen readers */
#c842 .element-header,
#c843 .element-header {
    margin: 0;
}

#c842 .element-header a,
#c843 .element-header a {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 1.75rem;
}

#c842 .element-header a span,
#c843 .element-header a span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* subheader as button */
#c842 .element-subheader,
#c843 .element-subheader {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin: 0;
    padding: .75rem 1.6rem;
    border-radius: 2rem;
    background: #fff;
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.2;
    text-transform: uppercase;
    pointer-events: none;
    transition: background-color .15s ease, color .15s ease;
}

#c842 .element-subheader::after,
#c843 .element-subheader::after {
    content: "\2192";
}

#c842 .textmedia:has(.element-header a:hover, .element-header a:focus-visible) .element-subheader,
#c843 .textmedia:has(.element-header a:hover, .element-header a:focus-visible) .element-subheader {
    background: #e40422;
    color: #fff;
}

@media (max-width: 767.98px) {
    #c842 figure img,
    #c843 figure img {
        aspect-ratio: 16 / 9;
        border-radius: 1.25rem;
    }

    #c842 .element-subheader,
    #c843 .element-subheader {
        padding: .6rem 1.1rem;
        font-size: .875rem;
    }
}
