/* Social Dinner Inspiration — ACF block */

.ortega-sdi {
	--ortega-sdi-yellow: #ffe400;
	--ortega-sdi-blue-500: #0058a4;
	--ortega-sdi-blue-600: #093272;
	--ortega-sdi-blue-200: #e9f2f9;
	--ortega-sdi-white: #fff;
	--ortega-sdi-content-padding: 15px;
	--ortega-sdi-section-padding-top: clamp(4.5rem, 12vw, 5.625rem);
	--ortega-sdi-section-padding-bottom: clamp(2rem, 6vw, 2.25rem);
	--ortega-sdi-header-gap: clamp(2.5rem, 8vw, 3.625rem);
	--ortega-sdi-footer-gap: clamp(2rem, 8vw, 3.125rem);
	--ortega-sdi-card-gap: clamp(12px, 2vw, 32px);
	--ortega-sdi-card-radius: clamp(14px, 2vw, 16px);
	--ortega-sdi-card-width: clamp(260px, 73vw, 316px);
	background-color: var(--ortega-sdi-yellow);
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	isolation: isolate;
	overflow-x: clip;
	overflow-y: visible;
	position: relative;
	z-index: 10;
}

/* Bare variant — no section background (used on the product single page). */
.ortega-sdi--bare {
	background-color: transparent;
}

.ortega-sdi--bare .ortega-sdi__edge {
	display: none;
}

.ortega-sdi__edge {
	display: block;
	height: auto;
	left: 50%;
	pointer-events: none;
	position: absolute;
	width: 110vw;
	z-index: 4;
}

.ortega-sdi__edge--top {
	top: -1px;
	transform: translateX(-50%) scaleY(-1);
}

.ortega-sdi__inner {
	box-sizing: border-box;
	margin-inline: auto;
	max-width: min(1440px, 100%);
	padding:
		var(--ortega-sdi-section-padding-top)
		var(--ortega-sdi-content-padding)
		var(--ortega-sdi-section-padding-bottom);
	position: relative;
	width: 100%;
	z-index: 2;
}

.ortega-sdi__header {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: clamp(1.25rem, 3vw, 2rem);
	justify-content: space-between;
	margin-bottom: var(--ortega-sdi-header-gap);
}

.ortega-sdi__headline {
	color: var(--ortega-sdi-blue-600);
	font-family: var(--ortega-font-display);
	font-size: var(--ortega-type-sdi-headline);
	font-weight: 700;
	line-height: 0.87;
	margin: 0;
	text-transform: uppercase;
}

.ortega-sdi__headline :is(span, .ortega-sdi__headline-accent) {
	color: var(--ortega-sdi-blue-500);
	display: block;
	font-size: var(--ortega-type-sdi-accent);
	font-weight: 400;
	letter-spacing: 0.02em;
	line-height: 1.12;
	margin-bottom: 0.15em;
	transform: rotate(-2.28deg);
	transform-origin: left center;
}

.ortega-sdi__social {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: clamp(0.65rem, 1.5vw, 0.75rem);
}

.ortega-sdi__handle {
	color: var(--ortega-sdi-blue-500);
	font-family: var(--ortega-font-display);
	font-size: var(--ortega-type-handle);
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 1.2;
	margin: 0;
	text-transform: uppercase;
	transform: rotate(2deg);
}

.ortega-sdi__social-links {
	display: flex;
	flex-flow: row wrap;
	gap: clamp(0.5rem, 1.2vw, 1rem);
}

.ortega-sdi__social-link {
	--ortega-social-bg: var(--ortega-sdi-blue-500);
	align-items: center;
	color: var(--ortega-sdi-yellow);
	display: inline-flex;
	height: clamp(40px, 4.5vw, 54px);
	justify-content: center;
	text-decoration: none;
	transition: transform 0.2s ease;
	width: clamp(40px, 4.5vw, 54px);
}

.ortega-sdi__social-link:hover,
.ortega-sdi__social-link:focus-visible {
	--ortega-social-bg: var(--ortega-sdi-blue-600);
	transform: scale(1.05);
}

.ortega-sdi__social-link:focus-visible {
	outline: 2px solid var(--ortega-sdi-blue-600);
	outline-offset: 3px;
}

.ortega-sdi__social-icon {
	display: block;
	height: 100%;
	width: 100%;
}

.ortega-sdi__social-icon .ortega-social-icon__bg {
	fill: var(--ortega-social-bg);
	transition: fill 0.2s ease;
}

.ortega-sdi__social-icon .ortega-social-icon__glyph {
	fill: currentColor;
}

.ortega-sdi__grid {
	display: grid;
	gap: var(--ortega-sdi-card-gap);
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ortega-sdi__card {
	display: flex;
	flex-direction: column;
}

.ortega-sdi__card-link {
	appearance: none;
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	padding: 0;
	text-align: inherit;
	text-decoration: none;
	width: 100%;
}

.ortega-sdi__card-link .ortega-sdi__media {
	width: 100%;
}

.ortega-sdi__card-link .ortega-sdi__image,
.ortega-sdi__card-link .ortega-sdi__poster,
.ortega-sdi__card-link .ortega-sdi__video {
	pointer-events: none;
}

.ortega-sdi__card-link:hover,
.ortega-sdi__card-link:focus-visible {
	background-color: transparent;
}

.ortega-sdi__card-link:focus-visible {
	outline: none;
}

.ortega-sdi__card-link:focus-visible .ortega-sdi__cta {
	outline: 2px solid var(--ortega-sdi-blue-500);
	outline-offset: 2px;
}

.ortega-sdi__media {
	border-radius: var(--ortega-sdi-card-radius);
	overflow: hidden;
	position: relative;
}

.ortega-sdi__card--video .ortega-sdi__media {
	display: grid;
}

.ortega-sdi__card--video .ortega-sdi__poster,
.ortega-sdi__card--video .ortega-sdi__video {
	grid-area: 1 / 1;
}

.ortega-sdi__image,
.ortega-sdi__poster,
.ortega-sdi__video {
	display: block;
	height: auto;
	width: 100%;
}

.ortega-sdi__poster {
	position: relative;
	transition: opacity 0.3s ease;
	z-index: 1;
}

.ortega-sdi__video {
	height: 100%;
	object-fit: cover;
	opacity: 0;
	position: relative;
	transition: opacity 0.3s ease;
	z-index: 2;
}

.ortega-sdi__video.is-ready {
	opacity: 1;
}

.ortega-sdi__card--video .ortega-sdi__media:has(.ortega-sdi__video.is-ready) .ortega-sdi__poster {
	opacity: 0;
}

.ortega-sdi.is-poster-only .ortega-sdi__video {
	display: none;
}

.ortega-sdi__cta {
	align-items: flex-end;
	background-color: var(--ortega-sdi-white);
	border-radius: 8px;
	bottom: clamp(12px, 2vw, 16px);
	box-sizing: border-box;
	color: var(--ortega-sdi-blue-600);
	display: flex;
	font-family: var(--ortega-font-body);
	justify-content: space-between;
	left: clamp(12px, 2vw, 16px);
	padding: clamp(12px, 2vw, 16px);
	pointer-events: none;
	position: absolute;
	right: clamp(12px, 2vw, 16px);
	text-align: left;
	transition: transform 0.2s ease;
	z-index: 3;
}

.ortega-sdi__card-link:hover .ortega-sdi__cta,
.ortega-sdi__card-link:focus-visible .ortega-sdi__cta {
	transform: translateY(-1px);
}

.ortega-sdi__cta-text {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.ortega-sdi__cta-title {
	font-size: clamp(16px, 1.6vw, 18px);
	font-weight: 700;
	line-height: 1.1;
}

.ortega-sdi__cta-label {
	font-family: var(--ortega-font-copy);
	font-size: clamp(12px, 1.2vw, 14px);
	font-weight: 400;
	line-height: 1.2;
}

.ortega-sdi__cta-arrow {
	align-items: center;
	background-color: var(--ortega-sdi-blue-200);
	border-radius: 50%;
	color: var(--ortega-sdi-blue-600);
	display: inline-flex;
	flex-shrink: 0;
	height: clamp(30px, 3vw, 33px);
	justify-content: center;
	width: clamp(30px, 3vw, 33px);
}

.ortega-sdi__cta-arrow-icon {
	display: block;
}

.ortega-sdi__cta-arrow-icon--play {
	height: 12px;
	width: 12px;
	padding-left:2px;
}

.ortega-sdi__cta-arrow-icon--link {
	height: 24px;
	width: 24px;
}

.ortega-sdi__header-social--desktop {
	display: none;
}

.ortega-sdi__footer {
	margin-top: var(--ortega-sdi-footer-gap);
}

.ortega-sdi-placeholder {
	background: #f7f7f8;
	border: 1px dashed #093272;
	color: #093272;
	padding: 24px;
	text-align: center;
}

@media (min-width: 782px) {
	.ortega-sdi {
		--ortega-sdi-content-padding: 40px;
		--ortega-sdi-section-padding-top: 86px;
		--ortega-sdi-section-padding-bottom: 86px;
		--ortega-sdi-header-gap: 108px;
	}

	.ortega-sdi__header {
		align-items: flex-start;
		flex-direction: row;
		margin-top: 48px;
	}

	.ortega-sdi__header-title {
		flex: 1 1 auto;
		max-width: min(596px, 58%);
		overflow: visible;
		padding-top: 0.35rem;
	}

	.ortega-sdi__headline {
		font-size: var(--ortega-type-sdi-headline--desktop);
		padding-left: 40px;
	}

	.ortega-sdi__headline :is(span, .ortega-sdi__headline-accent) {
		margin-left: -40px;
		padding-left: 0;
	}

	.ortega-sdi__header-social--desktop {
		display: block;
		flex-shrink: 0;
	}

	.ortega-sdi__header-social--desktop .ortega-sdi__social {
		align-items: flex-end;
	}

	.ortega-sdi__header-social--desktop .ortega-sdi__handle {
		font-size: var(--ortega-type-handle--desktop);
		text-align: right;
	}

	.ortega-sdi__header-social--desktop .ortega-sdi__social-links {
		justify-content: flex-end;
	}

	.ortega-sdi__footer {
		display: none;
	}

	.ortega-sdi__grid {
		align-items: start;
	}
}

@media (max-width: 781px) {
	.ortega-sdi__header {
		align-items: center;
	}

	.ortega-sdi__header-title {
		text-align: center;
		width: 100%;
	}

	.ortega-sdi__headline {
		font-size: var(--ortega-type-sdi-headline--mobile);
		text-align: center;
	}

	.ortega-sdi__headline :is(span, .ortega-sdi__headline-accent) {
		margin-inline: auto;
		transform-origin: center center;
	}

	.ortega-sdi__footer .ortega-sdi__social {
		align-items: center;
	}

	.ortega-sdi__footer .ortega-sdi__handle {
		text-align: center;
		width: 100%;
	}

	.ortega-sdi__footer .ortega-sdi__social-links {
		justify-content: center;
	}

	.ortega-sdi__grid {
		display: flex;
		gap: clamp(10px, 3vw, 16px);
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		-webkit-overflow-scrolling: touch;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-padding-inline: var(--ortega-sdi-content-padding);
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		touch-action: pan-x;
		width: 100vw;
	}

	.ortega-sdi__grid::-webkit-scrollbar {
		display: none;
	}

	.ortega-sdi__card {
		flex: 0 0 var(--ortega-sdi-card-width);
		max-width: var(--ortega-sdi-card-width);
		scroll-snap-align: start;
	}

	.ortega-sdi__card:first-child {
		margin-left: var(--ortega-sdi-content-padding);
	}

	.ortega-sdi__card:last-child {
		margin-right: var(--ortega-sdi-content-padding);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ortega-sdi__card-link,
	.ortega-sdi__cta,
	.ortega-sdi__social-link,
	.ortega-sdi__social-icon .ortega-social-icon__bg,
	.ortega-sdi__video {
		transition: none;
	}
}

.ortega-sdi-lightbox {
	inset: 0;
	position: fixed;
	z-index: 100000;
}

.ortega-sdi-lightbox[hidden] {
	display: none;
}

.ortega-sdi-lightbox.is-open {
	display: block;
}

.ortega-sdi-lightbox__backdrop {
	background: rgb(0 0 0 / 88%);
	inset: 0;
	position: absolute;
}

.ortega-sdi-lightbox__dialog {
	display: flex;
	flex-direction: column;
	inset: 0;
	justify-content: center;
	padding: clamp(16px, 4vw, 48px);
	position: absolute;
}

.ortega-sdi-lightbox__close {
	align-items: center;
	background: transparent;
	border: 0;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	height: 36px;
	justify-content: center;
	line-height: 0;
	margin: 0 0 12px auto;
	outline: none;
	padding: 0;
	width: 36px;
}

.ortega-sdi-lightbox__close:hover,
.ortega-sdi-lightbox__close:focus-visible,
.ortega-sdi-lightbox__close:active {
	background-color: transparent;
	color: var(--ortega-sdi-yellow);
	outline: none;
}

.ortega-sdi-lightbox__close-icon {
	display: block;
	height: 36px;
	width: 36px;
}

.ortega-sdi-lightbox__dialog:focus {
	outline: none;
}

@media (min-width: 782px) {
	.ortega-sdi-lightbox__close,
	.ortega-sdi-lightbox__close-icon {
		height: 48px;
		width: 48px;
	}
}

.ortega-sdi-lightbox__player {
	aspect-ratio: 16 / 9;
	margin: 0 auto;
	max-height: calc(100vh - 96px);
	max-width: min(1200px, 100%);
	position: relative;
	width: 100%;
}

.ortega-sdi-lightbox__player iframe {
	border: 0;
	display: block;
	height: 100%;
	inset: 0;
	position: absolute;
	width: 100%;
}

body.ortega-sdi-lightbox-open {
	overflow: hidden;
}
