/*
 * Story-Banner (BN-1241)
 *
 * https://www.figma.com/design/1ayAfGkXyGlQBsCY5rNU0j/BN-Website-Designsystem?node-id=4450-4804
 *
 * Loaded by the template through f:asset.css, so it only ships on pages that use the block.
 * It is not part of the Tailwind build, hence plain values: 1024px is screens.lg.
 */

/* The dots are the slider's navigation, a scrollbar under the band would be a second one. */
.story-banner-track {
    scrollbar-width: none;
}

.story-banner-track::-webkit-scrollbar {
    display: none;
}

/* The brush stroke, in percent of the 3:2 picture box so it scales with the picture and stays
   where the cut-out expects it. Measured off "Story-Motiv / Erfolgsgeschichte" in Figma and
   carried over to 3:2 by keeping the offsets relative to the box width.

   Phone: 390 x 300 in Figma, the stroke 700 wide from x -259, its lower edge 26px below the
   picture, which clips it. Anchored at the bottom, where the picture meets the green pane. */
.story-banner-stroke {
    bottom: -10%;
    left: -66.5%;
    width: 179.5%;
}

/* Desktop: 876 x 600 in Figma. Each stroke runs out over the green pane to the left, the band
   clips it at the screen edge. The top offset is Figma's, carried over to 3:2 as a share of the
   box width.
     1  2300 wide from x -1104, y -17  (motif Horst)
     2  2275 wide from x -1086, y 39   (motif Toni)
     3  2029 wide from x -1080, y 186  (motif Anna) */
@media (min-width: 1024px) {
    .story-banner-stroke {
        bottom: auto;
    }

    .story-banner-stroke-1 {
        top: -2.8%;
        left: -126%;
        width: 262.5%;
    }

    .story-banner-stroke-2 {
        top: 6.6%;
        left: -124%;
        width: 259.7%;
    }

    .story-banner-stroke-3 {
        top: 31.8%;
        left: -123.3%;
        width: 231.6%;
    }
}
