/*	–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
	CORE/HERO-SLIDER/CLASSES.CSS
	––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */

/**
 * VISIOFRAMEWORK
 * This file is part of VISIOFRAMEWORK.
 * @package		visioframework
 * @author		Agência Visio <contato@agenciavisio.com.br>
 * @copyright	Copyright (c) 2023-present. M. Souza & Souza LTDA. (CNPJ: 21.284.748/0001-33). All rights reserved.
 * @license		Proprietary
 * @link		https://www.agenciavisio.com.br
 */

.hero-slider--outer>.swiper-pagination {
	position: absolute !important;
}

/* CLS-baseline #1 — overlay margin: the script draw() writes before the slider puts the
   measured topbar + navbar height in these vars, so the slider and its captions are laid
   out in place from the first frame. Tablet has no fallback in vars.css: 0 until measured. */
.hero-slider--outer.platform-mobile {
	margin-top: var(--hero-overlay-offset-mobile);
}

.hero-slider--outer.platform-tablet {
	margin-top: var(--hero-overlay-offset-tablet);
}

.hero-slider--outer.platform-desktop {
	margin-top: var(--hero-overlay-offset-desktop);
}

.hero-slider--outer.platform-mobile .hero-caption--outer {
	padding-top: calc(-1 * var(--hero-overlay-offset-mobile));
}

.hero-slider--outer.platform-tablet .hero-caption--outer {
	padding-top: calc(-1 * var(--hero-overlay-offset-tablet));
}

.hero-slider--outer.platform-desktop .hero-caption--outer {
	padding-top: calc(-1 * var(--hero-overlay-offset-desktop));
}

/* CLS-baseline #2 — Swiper-mimicking dimensions: swiper-bundle.min.css is loaded
   deferred (preload + activation), so before it applies, the slider has no flex/
   overflow rules. With multiple slides each at vh-100 (from hero-image config), they
   stack vertically -> slider becomes N*100vh tall. Once swiper-bundle.min.css applies
   `display: flex` + `overflow: hidden`, slider collapses to 100vh -> huge layout shift
   for everything below it. These rules give the slider Swiper's basic layout from
   first paint; the actual swiper-bundle.min.css later adds transitions/transforms on
   top without conflicting (matching specificity, same property values). */
.hero-slider--outer {
	position: relative;
	overflow: hidden;
}

.hero-slider--inner {
	display: flex;
}

.hero-slider--slide {
	flex: 0 0 100%;
	min-width: 0;
}

/* Slider-level overlay (HasOverlay via HeroSliderConfig->overlay_config): one scrim
   over every slide. Pinned above the slides (swiper z-index:1) and below the
   pagination/navigation controls (z-index:10) so those stay visible + clickable. */
.hero-slider--overlay {
	z-index: 2;
}