/*
 * Forja do Mago — Carrossel de Figures (front-end)
 *
 * Todos os seletores usam o prefixo .fcf- e ficam escopados dentro de
 * .fcf-carousel / .fcf-lightbox para não interferir no tema Porto,
 * no WooCommerce ou no WPBakery. Propriedades comumente estilizadas por
 * temas (button, img, h2, ul) são redefinidas explicitamente.
 *
 * Regra de marca: nenhum filtro, mistura de cor ou sobreposição é aplicado
 * às fotografias. Os efeitos ficam apenas no componente ao redor delas.
 */

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */
.fcf-carousel,
.fcf-lightbox {
	--fcf-black: #0B0B10;
	--fcf-black-2: #14121C;
	--fcf-surface: #1A1724;
	--fcf-purple: #7028A0;
	--fcf-purple-lum: #A855F7;
	--fcf-amber: #F0A52B;
	--fcf-amber-lum: #FFC857;
	--fcf-text: #F5F1FA;
	--fcf-muted: #A9A3B5;
	--fcf-ease: cubic-bezier(.22, .61, .36, 1);
	--fcf-ring: 0 0 0 2px var(--fcf-black), 0 0 0 4px var(--fcf-amber-lum);
}

/* ------------------------------------------------------------------ */
/* Contêiner                                                           */
/* ------------------------------------------------------------------ */
.fcf-carousel {
	--fcf-gap: clamp(12px, 1.4vw, 20px);
	--fcf-radius: clamp(18px, 2vw, 28px);
	--fcf-card-radius: 16px;
	--fcf-arrow: 48px;
	/* Imagens visíveis: --fcf-pv vem do painel (desktop); abaixo é ajustado por largura. */
	--fcf-view: var(--fcf-pv, 4);

	position: relative;
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0 auto;
	padding: clamp(22px, 3.2vw, 46px) clamp(12px, 2.4vw, 34px) clamp(18px, 2.4vw, 30px);
	color: var(--fcf-text);
	background:
		radial-gradient(110% 70% at 50% -12%, rgba(112, 40, 160, .26), transparent 62%),
		radial-gradient(55% 45% at 100% 112%, rgba(240, 165, 43, .09), transparent 70%),
		radial-gradient(45% 40% at 0% 100%, rgba(168, 85, 247, .07), transparent 70%),
		linear-gradient(180deg, var(--fcf-black-2) 0%, var(--fcf-black) 100%);
	border: 1px solid rgba(168, 85, 247, .16);
	border-radius: var(--fcf-radius);
	box-shadow:
		0 40px 80px -48px rgba(0, 0, 0, .9),
		inset 0 1px 0 rgba(245, 241, 250, .04);
	overflow: hidden; /* garante que nada vaze e gere rolagem horizontal na página */
	container-type: inline-size;
	container-name: fcf;
	isolation: isolate;
	text-align: left;
	line-height: 1.5;
	-webkit-tap-highlight-color: transparent;
}

/* Fio de luz na borda superior (roxo → âmbar → roxo). */
.fcf-carousel::before {
	content: "";
	position: absolute;
	top: 0;
	left: 12%;
	right: 12%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(168, 85, 247, .7) 25%, rgba(255, 200, 87, .85) 50%, rgba(168, 85, 247, .7) 75%, transparent);
	pointer-events: none;
}

.fcf-carousel *,
.fcf-carousel *::before,
.fcf-carousel *::after {
	box-sizing: border-box;
}

/* ------------------------------------------------------------------ */
/* Cabeçalho                                                           */
/* ------------------------------------------------------------------ */
.fcf-carousel .fcf-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin: 0 0 clamp(16px, 2.2vw, 28px);
	padding: 0 4px;
	text-align: center;
}

.fcf-carousel.fcf-align-left .fcf-head {
	align-items: flex-start;
	text-align: left;
	padding-left: calc(var(--fcf-arrow) + var(--fcf-gap));
}

.fcf-carousel .fcf-head__ornament {
	display: block;
	line-height: 0;
	margin-bottom: 4px;
}

.fcf-carousel .fcf-head__ornament svg {
	display: block;
	width: 132px;
	height: auto;
	max-width: 100%;
}

.fcf-carousel.fcf-align-left .fcf-head__ornament svg {
	margin-left: -6px;
}

.fcf-carousel .fcf-head__title {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--fcf-text);
	font-family: inherit;
	font-size: clamp(1.45rem, 1.05rem + 1.7vw, 2.35rem);
	/* Proporcional à largura do componente (não da tela): coerente em colunas estreitas. */
	font-size: clamp(1.4rem, 1rem + 2.4cqi, 2.35rem);
	font-weight: 800;
	font-style: normal;
	line-height: 1.15;
	letter-spacing: -.015em;
	text-transform: none;
	text-wrap: balance;
	text-shadow: 0 2px 24px rgba(112, 40, 160, .35);
}

.fcf-carousel .fcf-head__title::before,
.fcf-carousel .fcf-head__title::after {
	content: none;
}

.fcf-carousel .fcf-head__accent {
	color: var(--fcf-amber-lum);
	background: linear-gradient(100deg, var(--fcf-amber-lum) 0%, var(--fcf-amber) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	text-shadow: none;
}

.fcf-carousel .fcf-head__subtitle {
	margin: 2px 0 0;
	padding: 0;
	max-width: 52ch;
	color: var(--fcf-muted);
	font-family: inherit;
	font-size: clamp(.9rem, .85rem + .2vw, 1rem);
	font-weight: 400;
	line-height: 1.55;
	letter-spacing: .01em;
}

/* ------------------------------------------------------------------ */
/* Palco: setas nas laterais, rodapé com progresso                     */
/* ------------------------------------------------------------------ */
.fcf-carousel .fcf-stage {
	display: grid;
	grid-template-columns: var(--fcf-arrow) minmax(0, 1fr) var(--fcf-arrow);
	grid-template-areas:
		"prev view next"
		".    foot .";
	column-gap: var(--fcf-gap);
	row-gap: 14px;
	align-items: center;
	min-width: 0;
}

.fcf-carousel.fcf-no-arrows .fcf-stage {
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "view" "foot";
}

.fcf-carousel .fcf-viewport {
	grid-area: view;
	position: relative;
	min-width: 0;
	/* Esmaecimento nas bordas indica que há mais conteúdo (só é ativado pelo JS quando há rolagem). */
}

.fcf-carousel .fcf-arrow--prev { grid-area: prev; }
.fcf-carousel .fcf-arrow--next { grid-area: next; }
.fcf-carousel .fcf-foot { grid-area: foot; }

/* ------------------------------------------------------------------ */
/* Trilho (scroll-snap nativo: toque, inércia e acessibilidade grátis)  */
/* ------------------------------------------------------------------ */
.fcf-carousel .fcf-track {
	display: flex;
	gap: var(--fcf-gap);
	margin: -14px 0; /* compensa o respiro vertical usado pelo hover/sombra */
	padding: 14px 2px;
	list-style: none;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 2px;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-x pan-y;
	outline: none;
}

.fcf-carousel .fcf-track::-webkit-scrollbar {
	display: none;
}

.fcf-carousel.is-static .fcf-track {
	justify-content: center;
}

.fcf-carousel.is-dragging .fcf-track {
	scroll-snap-type: none;
	cursor: grabbing;
	user-select: none;
}

.fcf-carousel .fcf-slide {
	flex: 0 0 calc((100% - (var(--fcf-view) - 1) * var(--fcf-gap)) / var(--fcf-view));
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	scroll-snap-align: start;
	background: none;
	border: 0;
}

.fcf-carousel .fcf-slide::before,
.fcf-carousel .fcf-slide::marker {
	content: none;
}

/* ------------------------------------------------------------------ */
/* Cartões                                                             */
/* ------------------------------------------------------------------ */
.fcf-carousel .fcf-card {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	line-height: 0;
	-webkit-appearance: none;
	appearance: none;
	background:
		radial-gradient(75% 55% at 50% 102%, rgba(112, 40, 160, .32), transparent 72%),
		radial-gradient(60% 40% at 50% 0%, rgba(245, 241, 250, .04), transparent 70%),
		linear-gradient(180deg, var(--fcf-surface) 0%, #0F0D15 100%);
	border: 1px solid rgba(245, 241, 250, .08);
	border-radius: var(--fcf-card-radius);
	box-shadow:
		0 14px 30px -18px rgba(0, 0, 0, .85),
		inset 0 1px 0 rgba(245, 241, 250, .05);
	overflow: hidden;
	transform: translateZ(0);
	transition:
		transform .45s var(--fcf-ease),
		border-color .35s var(--fcf-ease),
		box-shadow .45s var(--fcf-ease);
}

.fcf-carousel.fcf-has-lightbox .fcf-card {
	cursor: zoom-in;
}

.fcf-carousel .fcf-card__media {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: var(--fcf-ar, 4 / 5);
	padding: 5%;
	overflow: hidden;
}

.fcf-carousel.fcf-fit-cover .fcf-card__media {
	padding: 0;
}

.fcf-carousel .fcf-card__img,
.fcf-carousel .fcf-card img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: contain;
	object-position: 50% 50%;
	transition: transform .7s var(--fcf-ease);
	-webkit-user-drag: none;
	user-select: none;
}

.fcf-carousel.fcf-fit-cover .fcf-card__img,
.fcf-carousel.fcf-fit-cover .fcf-card img {
	object-fit: cover;
}

/* Ícone de lupa: aparece no hover/foco para indicar que a imagem amplia. */
.fcf-carousel .fcf-card__zoom {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: var(--fcf-black);
	background: linear-gradient(145deg, var(--fcf-amber-lum), var(--fcf-amber));
	box-shadow: 0 6px 16px -6px rgba(240, 165, 43, .7);
	opacity: 0;
	transform: translateY(6px) scale(.9);
	transition: opacity .3s var(--fcf-ease), transform .3s var(--fcf-ease);
	pointer-events: none;
}

.fcf-carousel .fcf-card__zoom svg {
	display: block;
}

@media (hover: hover) and (pointer: fine) {
	.fcf-carousel .fcf-card:hover {
		transform: translateY(-4px);
		border-color: rgba(255, 200, 87, .42);
		box-shadow:
			0 22px 40px -20px rgba(112, 40, 160, .75),
			0 0 0 1px rgba(240, 165, 43, .18),
			0 0 28px -8px rgba(168, 85, 247, .45),
			inset 0 1px 0 rgba(245, 241, 250, .08);
	}

	.fcf-carousel .fcf-card:hover .fcf-card__img,
	.fcf-carousel .fcf-card:hover img {
		transform: scale(1.04);
	}

	.fcf-carousel .fcf-card:hover .fcf-card__zoom {
		opacity: 1;
		transform: none;
	}
}

.fcf-carousel .fcf-card:focus {
	outline: none;
}

.fcf-carousel .fcf-card:focus-visible {
	border-color: var(--fcf-amber-lum);
	box-shadow: inset 0 0 0 2px var(--fcf-amber-lum), 0 0 24px -6px rgba(240, 165, 43, .55);
}

.fcf-carousel .fcf-card:focus-visible .fcf-card__zoom {
	opacity: 1;
	transform: none;
}

/* ------------------------------------------------------------------ */
/* Setas                                                               */
/* ------------------------------------------------------------------ */
.fcf-carousel .fcf-arrow,
.fcf-lightbox .fcf-lb__btn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: var(--fcf-arrow, 48px);
	height: var(--fcf-arrow, 48px);
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	font: inherit;
	line-height: 1;
	text-transform: none;
	letter-spacing: normal;
	color: var(--fcf-text);
	-webkit-appearance: none;
	appearance: none;
	background:
		radial-gradient(80% 80% at 30% 20%, rgba(168, 85, 247, .22), transparent 70%),
		linear-gradient(145deg, #1E1929 0%, #0F0D15 100%);
	border: 1px solid rgba(168, 85, 247, .38);
	border-radius: 50%;
	box-shadow:
		0 10px 24px -12px rgba(0, 0, 0, .9),
		inset 0 1px 0 rgba(245, 241, 250, .08);
	cursor: pointer;
	transition:
		color .25s var(--fcf-ease),
		border-color .25s var(--fcf-ease),
		box-shadow .3s var(--fcf-ease),
		transform .25s var(--fcf-ease),
		opacity .25s var(--fcf-ease);
	touch-action: manipulation;
}

.fcf-carousel .fcf-arrow svg,
.fcf-lightbox .fcf-lb__btn svg {
	display: block;
	pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
	.fcf-carousel .fcf-arrow:not(:disabled):hover,
	.fcf-lightbox .fcf-lb__btn:not(:disabled):hover {
		color: var(--fcf-amber-lum);
		border-color: rgba(255, 200, 87, .7);
		box-shadow:
			0 10px 26px -10px rgba(240, 165, 43, .45),
			0 0 0 4px rgba(240, 165, 43, .08),
			inset 0 1px 0 rgba(245, 241, 250, .1);
	}
}

.fcf-carousel .fcf-arrow:not(:disabled):active,
.fcf-lightbox .fcf-lb__btn:not(:disabled):active {
	transform: scale(.94);
}

.fcf-carousel .fcf-arrow:focus,
.fcf-lightbox .fcf-lb__btn:focus {
	outline: none;
}

.fcf-carousel .fcf-arrow:focus-visible,
.fcf-carousel .fcf-pause:focus-visible,
.fcf-lightbox .fcf-lb__btn:focus-visible {
	box-shadow: var(--fcf-ring);
}

.fcf-carousel .fcf-arrow:disabled,
.fcf-lightbox .fcf-lb__btn:disabled {
	opacity: .32;
	cursor: default;
	box-shadow: none;
}

/* Antes do JS iniciar (ou se ele for adiado por plugins de otimização),
   os controles ficam ocultos: o trilho continua rolável por toque/trackpad. */
.fcf-carousel:not(.is-ready) .fcf-arrow,
.fcf-carousel:not(.is-ready) .fcf-foot {
	visibility: hidden;
}

/* Sem conteúdo extra para navegar: nada de setas nem progresso. */
.fcf-carousel.is-static .fcf-arrow,
.fcf-carousel.is-static .fcf-foot {
	display: none;
}

.fcf-carousel.is-static .fcf-stage {
	row-gap: 0;
}

/* ------------------------------------------------------------------ */
/* Rodapé: progresso + pausa                                           */
/* ------------------------------------------------------------------ */
.fcf-carousel .fcf-foot {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-width: 0;
	min-height: 28px;
}

.fcf-carousel .fcf-progress {
	position: relative;
	flex: 0 1 220px;
	height: 3px;
	border-radius: 3px;
	background: rgba(245, 241, 250, .09);
	overflow: hidden;
}

.fcf-carousel .fcf-progress__thumb {
	position: absolute;
	top: 0;
	bottom: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--fcf-purple-lum), var(--fcf-amber-lum));
	box-shadow: 0 0 10px rgba(240, 165, 43, .45);
	/* --fcf-p-size (0..1) e --fcf-p-pos (0..1) são definidos pelo JS. */
	width: calc(var(--fcf-p-size, .25) * 100%);
	left: calc(var(--fcf-p-pos, 0) * (100% - var(--fcf-p-size, .25) * 100%));
	transition: left .35s var(--fcf-ease), width .35s var(--fcf-ease);
}

.fcf-carousel .fcf-pause {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	color: var(--fcf-muted);
	-webkit-appearance: none;
	appearance: none;
	background: rgba(245, 241, 250, .04);
	border: 1px solid rgba(245, 241, 250, .12);
	border-radius: 50%;
	cursor: pointer;
	transition: color .2s, border-color .2s;
}

.fcf-carousel .fcf-pause[hidden] {
	display: none;
}

.fcf-carousel .fcf-pause:hover {
	color: var(--fcf-amber-lum);
	border-color: rgba(255, 200, 87, .5);
}

.fcf-carousel .fcf-pause:focus {
	outline: none;
}

.fcf-carousel .fcf-pause svg {
	display: block;
}

.fcf-carousel .fcf-pause .fcf-pause__icon-play,
.fcf-carousel .fcf-pause.is-paused .fcf-pause__icon-pause {
	display: none;
}

.fcf-carousel .fcf-pause.is-paused .fcf-pause__icon-play {
	display: block;
}

/* ------------------------------------------------------------------ */
/* Responsividade baseada na largura do PRÓPRIO componente              */
/* (funciona dentro de colunas do WPBakery, não só na largura da tela) */
/* ------------------------------------------------------------------ */
/* Observação: @container avalia o ANCESTRAL, por isso as variáveis são
   redefinidas nos filhos (.fcf-stage), não no próprio .fcf-carousel. */
@container fcf (max-width: 1023px) {
	.fcf-carousel .fcf-stage { --fcf-view: min(3, var(--fcf-pv, 4)); }
}

@container fcf (max-width: 767px) {
	.fcf-carousel .fcf-stage {
		--fcf-view: 2.25;
		--fcf-arrow: 42px;
		/* Setas saem das laterais e vão para o rodapé, liberando largura para as fotos. */
		grid-template-areas:
			"view view view"
			"prev foot next";
	}
	.fcf-carousel.fcf-align-left .fcf-head { padding-left: 4px; }
}

@container fcf (max-width: 479px) {
	/* Um cartão e uma "espiada" do próximo: indica que é possível deslizar. */
	.fcf-carousel .fcf-stage { --fcf-view: 1.3; --fcf-card-radius: 14px; }
}

/* Navegadores antigos sem container queries: usa a largura da tela. */
@supports not (container-type: inline-size) {
	@media (max-width: 1023px) {
		.fcf-carousel { --fcf-view: min(3, var(--fcf-pv, 4)); }
	}
	@media (max-width: 767px) {
		.fcf-carousel { --fcf-view: 2.25; --fcf-arrow: 42px; }
		.fcf-carousel .fcf-stage {
			grid-template-areas:
				"view view view"
				"prev foot next";
		}
	}
	@media (max-width: 479px) {
		.fcf-carousel { --fcf-view: 1.3; }
	}
}

/* ------------------------------------------------------------------ */
/* Lightbox (elemento <dialog> nativo, exibido na "top layer")         */
/* ------------------------------------------------------------------ */
.fcf-lb-lock {
	overflow: hidden !important;
}

.fcf-lightbox {
	--fcf-arrow: 52px;
	position: fixed;
	inset: 0;
	z-index: 2147483000; /* só tem efeito no fallback sem showModal() */
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--fcf-text);
	background: rgba(8, 7, 12, .93);
	-webkit-backdrop-filter: blur(12px) saturate(120%);
	backdrop-filter: blur(12px) saturate(120%);
	overflow: hidden;
	overscroll-behavior: contain;
	opacity: 0;
	transition: opacity .28s var(--fcf-ease);
	font-family: inherit;
	line-height: 1.4;
	box-sizing: border-box;
}

.fcf-lightbox *,
.fcf-lightbox *::before,
.fcf-lightbox *::after {
	box-sizing: border-box;
}

.fcf-lightbox:not([open]) {
	display: none;
}

.fcf-lightbox::backdrop {
	background: transparent;
}

.fcf-lightbox.is-visible {
	opacity: 1;
}

/* Brilho ambiente roxo/âmbar no fundo (não toca na foto). */
.fcf-lightbox::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(60% 50% at 50% 55%, rgba(112, 40, 160, .22), transparent 70%),
		radial-gradient(40% 30% at 50% 100%, rgba(240, 165, 43, .07), transparent 70%);
	pointer-events: none;
}

.fcf-lightbox .fcf-lb__frame {
	position: relative;
	display: grid;
	grid-template-columns: var(--fcf-arrow) minmax(0, 1fr) var(--fcf-arrow);
	grid-template-rows: auto minmax(0, 1fr);
	grid-template-areas:
		"top top top"
		"prev stage next";
	column-gap: clamp(10px, 2vw, 28px);
	width: 100%;
	height: 100%;
	padding: clamp(10px, 2vw, 22px) clamp(10px, 2.4vw, 32px) clamp(16px, 3vw, 36px);
}

.fcf-lightbox .fcf-lb__top {
	grid-area: top;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: clamp(8px, 1.6vw, 16px);
}

.fcf-lightbox .fcf-lb__counter {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--fcf-muted);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	letter-spacing: .08em;
}

.fcf-lightbox .fcf-lb__counter::before {
	content: "";
	width: 22px;
	height: 1px;
	background: linear-gradient(90deg, var(--fcf-amber), transparent);
}

.fcf-lightbox .fcf-lb__counter b {
	color: var(--fcf-amber-lum);
	font-weight: 700;
}

.fcf-lightbox .fcf-lb__close {
	--fcf-arrow: 46px;
}

.fcf-lightbox .fcf-lb__prev { grid-area: prev; align-self: center; }
.fcf-lightbox .fcf-lb__next { grid-area: next; align-self: center; }

.fcf-lightbox .fcf-lb__stage {
	grid-area: stage;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	touch-action: pan-y pinch-zoom;
}

.fcf-lightbox .fcf-lb__img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
	padding: 0;
	object-fit: contain;
	border: 0;
	border-radius: 12px;
	background: #0F0D15;
	box-shadow:
		0 0 0 1px rgba(168, 85, 247, .35),
		0 0 0 5px rgba(11, 11, 16, .6),
		0 0 0 6px rgba(240, 165, 43, .22),
		0 40px 90px -30px rgba(0, 0, 0, .95),
		0 0 80px -20px rgba(112, 40, 160, .55);
	opacity: 0;
	transform: scale(.975);
	transition: opacity .35s var(--fcf-ease), transform .45s var(--fcf-ease);
	user-select: none;
	-webkit-user-drag: none;
}

.fcf-lightbox .fcf-lb__img.is-loaded {
	opacity: 1;
	transform: none;
}

.fcf-lightbox .fcf-lb__img.is-swiping {
	transition: none;
}

/* Indicador de carregamento. */
.fcf-lightbox .fcf-lb__spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 34px;
	height: 34px;
	margin: -17px 0 0 -17px;
	border-radius: 50%;
	border: 2px solid rgba(168, 85, 247, .25);
	border-top-color: var(--fcf-amber-lum);
	animation: fcf-spin .8s linear infinite;
	opacity: 0;
	transition: opacity .2s;
	pointer-events: none;
}

.fcf-lightbox.is-loading .fcf-lb__spinner {
	opacity: 1;
	transition-delay: .15s;
}

@keyframes fcf-spin {
	to { transform: rotate(360deg); }
}

.fcf-lightbox.is-single .fcf-lb__prev,
.fcf-lightbox.is-single .fcf-lb__next {
	visibility: hidden;
}

/* Telas estreitas: setas descem para uma barra inferior. */
@media (max-width: 640px) {
	.fcf-lightbox {
		--fcf-arrow: 46px;
	}

	.fcf-lightbox .fcf-lb__frame {
		grid-template-columns: var(--fcf-arrow) minmax(0, 1fr) var(--fcf-arrow);
		grid-template-rows: auto minmax(0, 1fr) auto;
		grid-template-areas:
			"top top top"
			"stage stage stage"
			"prev . next";
		row-gap: 14px;
		padding-left: 10px;
		padding-right: 10px;
	}

	.fcf-lightbox .fcf-lb__img {
		border-radius: 10px;
	}
}

/* Celular deitado: aproveita a altura ao máximo. */
@media (max-height: 480px) and (orientation: landscape) {
	.fcf-lightbox .fcf-lb__frame {
		grid-template-rows: minmax(0, 1fr);
		grid-template-areas: "prev stage next";
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.fcf-lightbox .fcf-lb__top {
		position: absolute;
		top: 8px;
		left: 10px;
		right: 10px;
		z-index: 2;
		padding: 0;
		pointer-events: none;
	}

	.fcf-lightbox .fcf-lb__top > * {
		pointer-events: auto;
	}
}

/* ------------------------------------------------------------------ */
/* Movimento reduzido: sem animações decorativas                        */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	.fcf-carousel .fcf-card,
	.fcf-carousel .fcf-card__img,
	.fcf-carousel .fcf-card img,
	.fcf-carousel .fcf-card__zoom,
	.fcf-carousel .fcf-progress__thumb,
	.fcf-carousel .fcf-arrow,
	.fcf-lightbox,
	.fcf-lightbox .fcf-lb__img,
	.fcf-lightbox .fcf-lb__btn {
		transition: none !important;
	}

	.fcf-carousel .fcf-card:hover,
	.fcf-carousel .fcf-card:hover .fcf-card__img,
	.fcf-carousel .fcf-card:hover img {
		transform: none !important;
	}

	.fcf-lightbox .fcf-lb__spinner {
		animation-duration: 2.4s;
	}
}
