/**
 * Wert Swiper — estilos do front-end.
 *
 * Cores controladas por instância via CSS vars (--wert-nav-color,
 * --wert-pag-color, --wert-slide-radius), definidas inline pelo renderer.
 */

.wert-swiper-wrap {
	width: 100%;
}

.wert-swiper {
	width: 100%;
	overflow: hidden;
}

.wert-slide {
	position: relative;
	overflow: hidden;
	border-radius: var(--wert-slide-radius, 8px);
	background: #f2f2f4;
}

.wert-slide__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Placeholder (somente preview do admin) */
.wert-slide--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	height: 100%;
	background: repeating-linear-gradient(
		45deg,
		#f0f0f3,
		#f0f0f3 12px,
		#e8e8ee 12px,
		#e8e8ee 24px
	);
	color: #9a9aa3;
	font-family: 'Ubuntu', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.wert-slide__ph-label {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	background: rgba(255,255,255,.7);
	padding: 5px 12px;
	border-radius: 999px;
}

/* Quando há altura fixa, a imagem ocupa todo o slide. */
.wert-slide__link,
.wert-slide__lightbox {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

/* ---- Legenda ---- */
.wert-slide__caption {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	font-family: 'Ubuntu', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.wert-slide__caption--overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient( to top, rgba( 0, 0, 0, .72 ), rgba( 0, 0, 0, 0 ) );
	color: #fff;
	padding-top: 28px;
}

.wert-slide__caption--top {
	order: -1;
}

.wert-slide__title {
	font-weight: 700;
	font-size: 15px;
	line-height: 1.3;
}

.wert-slide__excerpt {
	font-size: 13px;
	opacity: .85;
	line-height: 1.4;
}

/* ---- Navegação ---- */
.wert-swiper .swiper-button-prev,
.wert-swiper .swiper-button-next {
	color: var(--wert-nav-color, #ED0061);
}

.wert-swiper .swiper-button-prev.wert-nav--custom,
.wert-swiper .swiper-button-next.wert-nav--custom {
	width: auto;
	height: auto;
}

.wert-swiper .wert-nav--custom::after {
	content: none;
}

/* Ícone personalizado: SVG colado (legado) ou imagem/SVG enviada.
   Tamanho controlado por --wert-nav-size (definido por instância). */
.wert-swiper .wert-nav--custom svg,
.wert-swiper .wert-nav__img {
	width: var(--wert-nav-size, 32px);
	height: var(--wert-nav-size, 32px);
	fill: currentColor;
	object-fit: contain;
	display: block;
}

/* Símbolo padrão (‹ ›) quando não há ícone: acompanha o tamanho também. */
.wert-swiper .wert-nav--custom {
	font-size: var(--wert-nav-size, 32px);
	line-height: 1;
	color: var(--wert-nav-color, #ED0061);
}

/* ---- Paginação ---- */
.wert-swiper .swiper-pagination-bullet-active {
	background: var(--wert-pag-color, #ED0061);
}

.wert-swiper .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
	background: var(--wert-pag-color, #ED0061);
}

.wert-swiper .swiper-pagination-fraction {
	color: var(--wert-pag-color, #ED0061);
	font-weight: 700;
}

.wert-swiper .swiper-scrollbar-drag {
	background: var(--wert-pag-color, #ED0061);
}

/* ---- Lightbox (carrossel) ---- */
.wert-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba( 15, 15, 15, .92 );
	padding: 5vmin;
	cursor: zoom-out;
}

.wert-lightbox.is-open {
	display: flex;
}

/* Trava o scroll do body enquanto o lightbox está aberto. */
html.wert-lightbox-open,
html.wert-lightbox-open body {
	overflow: hidden;
}

.wert-lightbox__swiper {
	width: 100%;
	max-width: 1100px;
	height: 100%;
	cursor: default;
}

.wert-lightbox__slide {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
}

.wert-lightbox__img {
	max-width: 88vw;
	max-height: 80vh;
	border-radius: 8px;
	box-shadow: 0 12px 48px rgba( 0, 0, 0, .5 );
	object-fit: contain;
}

.wert-lightbox__caption {
	color: #fff;
	font-family: 'Ubuntu', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 14px;
	text-align: center;
	max-width: 80vw;
}

/* Setas e paginação do lightbox em branco, independentes do tema do slider. */
.wert-lightbox__swiper .wert-lightbox__nav {
	color: #fff;
}

.wert-lightbox__swiper .swiper-pagination {
	color: #fff;
	font-weight: 700;
	bottom: 8px;
}

.wert-lightbox__close {
	position: absolute;
	top: 18px;
	right: 22px;
	z-index: 2;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba( 255, 255, 255, .15 );
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: background .15s;
}

.wert-lightbox__close:hover {
	background: rgba( 255, 255, 255, .28 );
}
