/* Compatibility anchors for old catalogue category links. */
.fe-legacy-category-anchor { position:absolute; pointer-events:none; }

/* Reveal the page when the main bundle fails or its loader gets stuck. */
html.fe-fallback, html.fe-fallback body { height:auto!important; overflow:auto!important; position:static!important; transform:none!important; }
.fe-fallback .page-loader { display:none!important; }
.fe-fallback .page-slider, .fe-fallback .page-slider__inner { height:auto!important; overflow:visible!important; }
.fe-fallback .page-slider__slide { position:relative!important; transform:none!important; height:auto!important; min-height:100svh; visibility:visible!important; opacity:1!important; }
.fe-fallback .a-fade, .fe-fallback [class*="js-reveal-intro"], .fe-fallback .section-quote__content, .fe-fallback .section-quote__author { visibility:visible!important; opacity:1!important; transform:none!important; }
.fe-fallback .a-slide-grid { display:block!important; height:auto!important; overflow:visible!important; }
.fe-fallback .a-slide-grid__hero { min-height:100svh; }
.fe-fallback .page-header { transform:none!important; }

/* additional.js removes fe-no-js immediately when JavaScript runs. */
html.page.fe-no-js, html.page.fe-no-js body { height:auto!important; overflow:auto!important; position:static!important; transform:none!important; }
.fe-no-js .page-loader { display:none!important; }
.fe-no-js .page-slider, .fe-no-js .page-slider__inner { height:auto!important; overflow:visible!important; }
.fe-no-js .page-slider__slide { position:relative!important; transform:none!important; height:auto!important; min-height:100svh; }
.fe-no-js .a-fade, .fe-no-js [class*="js-reveal-intro"] { visibility:visible!important; opacity:1!important; }
.fe-no-js .a-slide-grid { display:block!important; height:auto!important; overflow:visible!important; }
.fe-no-js .a-slide-grid__hero { min-height:100svh; }

/* Keep the first eight category cards stable when new rows are appended. */
.fe-category-grid { height:auto!important; }
.fe-category-grid .product-grid__grid { grid-auto-rows:var(--fe-category-row, auto)!important; }
.fe-category-grid .product-grid__item { aspect-ratio:auto!important; min-height:80px; }

/* New timeline content must remain readable if its animation cannot run. */
.fe-fallback .video-timeline__slides, .fe-no-js .video-timeline__slides { height:auto!important; }
.fe-fallback .video-timeline__slide, .fe-no-js .video-timeline__slide { position:relative!important; transform:none!important; height:auto!important; visibility:visible!important; opacity:1!important; }
.fe-fallback .video-timeline__slide:last-child, .fe-no-js .video-timeline__slide:last-child { background:#231f20; color:#fff; }
.fe-fallback .video-timeline__video-wrap, .fe-no-js .video-timeline__video-wrap { min-height:50svh; }
.fe-fallback .c-menu, .fe-no-js .c-menu { visibility:visible!important; opacity:1!important; }
.fe-no-js .c-menu__nav { visibility:visible; opacity:1; }
.fe-no-js .c-menu__toggle { display:none; }

/* Keep both halves of the quote icon visible on a black blog block. */
.g-slide--theme_black [data-content-style=quote]::before { filter:brightness(0) invert(1); }

/* Safari cannot derive an auto-width slide from its absolutely positioned image.
   Match the 100dvh gallery height and the existing 16/7 photo proportions. */
@media (max-width:1023px) {
    .slider--models .slider__item {
        width:calc(100vh * 16 / 7);
        width:calc(100dvh * 16 / 7);
    }
}
