/* Home page slideshow in place of the film (owner, 2026-11-16). Markup and timing: front-page.php. */
.barami-home .hero .bm-hero-show { position: absolute; inset: 0; overflow: hidden; }
.barami-home .hero .bm-hero-show__slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    transition: opacity 1.6s ease;
}
.barami-home .hero .bm-hero-show__slide.is-on { opacity: 1; }
.barami-home .hero .bm-hero-show__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    transition: transform 7.5s ease-out;
}
.barami-home .hero .bm-hero-show__slide.is-on .bm-hero-show__img { transform: scale(1); }

/* Upright pictures too small for a wide screen: upright screens only. */
@media (orientation: landscape) {
    .barami-home .hero .bm-hero-show__slide--upright { display: none; }
}

/* The claim at the bottom stays readable on the light pictures too. */
.barami-home .hero .hero-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .18) 38%, rgba(0, 0, 0, .12) 70%, rgba(0, 0, 0, .32) 100%);
}

/* Pause / play: small, quiet, centred at the bottom of the picture. */
.barami-home .hero .bm-hero-show__pause {
    position: absolute;
    z-index: 11;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: rgba(0, 0, 0, .18);
    color: #fff;
    cursor: pointer;
    opacity: .75;
    transition: opacity .2s ease, background-color .2s ease;
}
.barami-home .hero .bm-hero-show__pause:hover,
.barami-home .hero .bm-hero-show__pause:focus-visible { opacity: 1; background: rgba(0, 0, 0, .4); }
.barami-home .hero .bm-hero-show__pause:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.barami-home .hero .bm-hero-show__icon-play { display: none; }
.barami-home .hero .bm-hero-show__pause.is-paused .bm-hero-show__icon-play { display: block; }
.barami-home .hero .bm-hero-show__pause.is-paused .bm-hero-show__icon-pause { display: none; }

@media (prefers-reduced-motion: reduce) {
    .barami-home .hero .bm-hero-show__slide,
    .barami-home .hero .bm-hero-show__img { transition: none; transform: none; }
}
