.yala-deck-photos-feature {
	margin-top: 2rem;
}

.yala-deck-photos-feature__divider {
	margin: 2rem 0 1.5rem;
}

.yala-deck-photos-feature__grid {
	display: grid;
	grid-template-columns: minmax(180px, 0.85fr) minmax(0, 1fr);
	gap: clamp(1.25rem, 4vw, 2.5rem);
	align-items: start;
}

.yala-deck-photos-feature__media,
.yala-deck-photos-feature__copy {
	min-width: 0;
}

.yala-deck-photos-feature__heading,
.yala-deck-photos-shop__heading {
	margin: 0 0 0.85rem;
	font-size: clamp(1.35rem, 1.15rem + 0.5vw, 1.75rem);
	line-height: 1.25;
}

.yala-deck-photos-feature__text {
	margin: 0 0 1rem;
	line-height: 1.65;
}

.yala-deck-photos-feature__text:last-child {
	margin-bottom: 0;
}

.yala-deck-photos-feature__link,
.yala-deck-photos-feature__shop-link,
.yala-deck-photos-modal__shop a {
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.12em;
}

.yala-deck-photos {
	width: 100%;
}

.yala-deck-photos__trigger {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: zoom-in;
}

.yala-deck-photos__stage {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 12px;
	background: var(--yala-text, #2a1b1a);
	box-shadow: 0 14px 38px rgba(34, 40, 49, 0.2);
}

.yala-deck-photos__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.yala-deck-photos__image {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.7s ease;
}

.yala-deck-photos__image.is-active {
	opacity: 1;
	z-index: 1;
	animation: yala-deck-photos-zoom-out var(--yala-deck-photos-interval, 3.5s) linear forwards;
}

@keyframes yala-deck-photos-zoom-out {
	from {
		transform: scale(1.06);
	}

	to {
		transform: scale(1);
	}
}

.yala-deck-photos__caption {
	display: block;
	margin-top: 0.55rem;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.35;
	opacity: 0.78;
	text-align: center;
}

.yala-deck-photos--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--yala-gradient-mid, #4a148c) 0%, var(--yala-text, #2a1b1a) 100%);
	color: #fff;
	box-shadow: 0 14px 38px rgba(34, 40, 49, 0.2);
	text-align: center;
}

.yala-deck-photos__placeholder {
	max-width: 16rem;
	padding: 1rem;
	font-size: 0.95rem;
	line-height: 1.45;
}

.yala-deck-photos-modal {
	width: auto;
	min-width: min(18rem, calc(100vw - 2rem));
	max-width: calc(100vw - 2rem);
	height: auto;
	max-height: calc(100dvh - 2rem);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 18px;
	background: #fff;
	color: var(--yala-text, #2a1b1a);
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
	overflow: hidden;
}

.yala-deck-photos-modal::backdrop {
	background: rgba(34, 40, 49, 0.68);
}

.yala-deck-photos-modal__inner {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	height: auto;
	max-height: calc(100dvh - 2rem);
	overflow: hidden;
	position: relative;
	padding: clamp(0.85rem, 2.5vw, 1.15rem) clamp(1rem, 3vw, 1.25rem) clamp(1.35rem, 3.5vw, 1.75rem);
}

.yala-deck-photos-modal__header {
	flex: 0 0 auto;
	align-self: stretch;
	margin: 0 2.75rem 0.55rem 0;
	text-align: left;
}

.yala-deck-photos-modal__title {
	margin: 0 0 0.25rem;
	font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.25rem);
	line-height: 1.25;
}

.yala-deck-photos-modal__tagline {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.45;
	opacity: 0.82;
}

.yala-deck-photos-modal__close {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.2rem;
	height: 2.2rem;
	border: 0;
	border-radius: 50%;
	background: rgba(34, 40, 49, 0.08);
	color: inherit;
	font-size: 1.65rem;
	line-height: 1;
	cursor: pointer;
}

.yala-deck-photos-modal__stage {
	position: relative;
	flex: 0 0 auto;
	align-self: center;
	width: auto;
	max-width: 100%;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 12px;
	background: transparent;
}

.yala-deck-photos-modal__image {
	position: absolute;
	inset: 0;
	margin: auto;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center center;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.yala-deck-photos-modal__image.is-active {
	opacity: 1;
	z-index: 1;
}

.yala-deck-photos-modal__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: var(--yala-text, #2a1b1a);
	font-size: 2rem;
	line-height: 1;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	transform: translateY(-50%);
}

.yala-deck-photos-modal__nav--prev {
	left: clamp(1.25rem, 4vw, 2rem);
}

.yala-deck-photos-modal__nav--next {
	right: clamp(1.25rem, 4vw, 2rem);
}

.yala-deck-photos-modal__footer {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: nowrap;
	gap: 0.5rem;
	align-self: stretch;
	margin: 0.65rem 0 0.35rem;
}

.yala-deck-photos-modal__action {
	display: inline-flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 0.55rem 0.7rem;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
	transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.yala-deck-photos-modal__action--shop {
	background: var(--yala-dark-blue, #38096b);
	color: #fff !important;
}

.yala-deck-photos-modal__action--shop:hover,
.yala-deck-photos-modal__action--shop:focus {
	background: var(--yala-rich-black, #2a1b1a);
	color: #fff !important;
}

.yala-deck-photos-modal__action--oracle {
	background: transparent;
	color: var(--yala-dark-blue, #38096b) !important;
	border: 1px solid rgba(56, 9, 107, 0.35);
}

.yala-deck-photos-modal__action--oracle:hover,
.yala-deck-photos-modal__action--oracle:focus {
	background: rgba(56, 9, 107, 0.06);
	color: var(--yala-dark-blue, #38096b) !important;
}

.yala-deck-photos-shop {
	margin-top: 2rem;
}

.yala-deck-photos-shop__layout {
	display: grid;
	grid-template-columns: minmax(180px, 0.85fr) minmax(0, 1fr);
	gap: clamp(1rem, 3vw, 2rem);
	align-items: start;
}

.yala-deck-photos-shop__media {
	position: sticky;
	top: 1rem;
}

.yala-deck-photos--loja .yala-deck-photos__trigger {
	width: 100%;
}

.yala-deck-photos-shop__deck + .yala-deck-photos-shop__deck {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(34, 40, 49, 0.12);
}

.yala-deck-photos-shop__deck-title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.15rem, 1rem + 0.4vw, 1.45rem);
	font-weight: 600;
	line-height: 1.3;
}

.yala-deck-photos-shop__deck-shop {
	margin: 0 0 0.85rem;
	font-weight: 600;
}

.yala-deck-photos-shop__deck-text {
	margin: 0.85rem 0 0;
	line-height: 1.65;
}

.yala-deck-photos-shop__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.yala-deck-photos-shop__thumb {
	display: block;
	padding: 0;
	border: 0;
	border-radius: 0.35rem;
	overflow: hidden;
	background: transparent;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(34, 40, 49, 0.14);
}

.yala-deck-photos-shop__thumb img {
	display: block;
	width: 4.5rem;
	height: 4.5rem;
	object-fit: cover;
}

.yala-deck-photos-shop__colab {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(34, 40, 49, 0.12);
}

.yala-deck-photos-shop__colab-title {
	margin: 0 0 0.65rem;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.35;
}

.yala-deck-photos-shop__colab-text,
.yala-deck-photos-shop__colab-note {
	margin: 0 0 0.75rem;
	line-height: 1.65;
}

.yala-deck-photos-shop__colab-link {
	margin: 0 0 0.75rem;
	font-weight: 600;
}

@media (max-width: 767px) {
	.yala-deck-photos-shop__layout {
		grid-template-columns: 1fr;
	}

	.yala-deck-photos-shop__media {
		position: static;
	}
}

.yala-oraculo__spread-afterdeck {
	display: grid;
	grid-template-columns: minmax(180px, 0.85fr) minmax(0, 1fr);
	gap: clamp(1rem, 3vw, 1.75rem);
	align-items: start;
	margin-top: 1.75rem;
	text-align: left;
}

.yala-oraculo__spread-afterdeck .yala-deck-photos-feature {
	margin-top: 0;
	display: contents;
}

.yala-oraculo__spread-afterdeck .yala-deck-photos-feature__divider {
	display: none;
}

.yala-oraculo__spread-afterdeck .yala-deck-photos__caption {
	display: none;
}

.yala-oraculo__spread-afterdeck .yala-deck-photos-feature__heading {
	display: block;
	margin: 0 0 0.65rem;
	font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
	font-weight: 600;
	line-height: 1.35;
}

.yala-oraculo__spread-afterdeck .yala-deck-photos-feature__text {
	font-size: 1rem;
}

.yala-oraculo__spread-afterdeck .yala-deck-photos-feature__grid {
	display: contents;
}

/* Oráculo — 1 carta: slideshow acima do texto/CTA, centralizado */
.yala-oraculo__dialog.is-spread-1 .yala-oraculo__spread-afterdeck,
.yala-oraculo__dialog.is-spread-1 .yala-oraculo__card-footer .yala-deck-photos-feature__grid {
	grid-template-columns: 1fr;
	gap: 1.25rem;
	justify-items: center;
	text-align: center;
}

.yala-oraculo__dialog.is-spread-1 .yala-oraculo__spread-afterdeck .yala-deck-photos-feature__media,
.yala-oraculo__dialog.is-spread-1 .yala-oraculo__card-footer .yala-deck-photos-feature__media {
	width: 100%;
	max-width: min(26rem, 100%);
}

.yala-oraculo__dialog.is-spread-1 .yala-oraculo__spread-afterdeck .yala-deck-photos-feature__copy,
.yala-oraculo__dialog.is-spread-1 .yala-oraculo__card-footer .yala-deck-photos-feature__copy {
	width: 100%;
}

.yala-oraculo__dialog.is-spread-1 .yala-oraculo__spread-afterdeck .yala-deck-photos__trigger {
	text-align: center;
}

@media (max-width: 720px) {
	.yala-deck-photos-feature__grid {
		grid-template-columns: 1fr;
	}

	.yala-oraculo__dialog.is-spread-3 .yala-oraculo__spread-afterdeck {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}

	.yala-oraculo__dialog.is-spread-3 .yala-oraculo__spread-afterdeck .yala-deck-photos-feature__media {
		width: 100%;
		max-width: min(22rem, 100%);
	}
}

@container yala-oraculo-dialog (max-width: 40rem) {
	.yala-oraculo__dialog.is-spread-3 .yala-oraculo__spread-afterdeck {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}

	.yala-oraculo__dialog.is-spread-3 .yala-oraculo__spread-afterdeck .yala-deck-photos-feature__media {
		width: 100%;
		max-width: min(22rem, 100%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.yala-deck-photos__image,
	.yala-deck-photos-modal__image {
		transition: none;
	}

	.yala-deck-photos__image.is-active {
		animation: none;
		transform: none;
	}
}
