/* ADSC Media Slot (2026-10-14). Fixed-ratio media area: image, video, click-to-load embed, or a finished empty panel.
   Markup: inc/media-slot.php. Tokens follow the LL design system (navy #172852 / #0F1C3D, gold #D4AF6F). */
.adsc-ms {
	--ms-navy: #172852;
	--ms-navy-deep: #0f1c3d;
	--ms-gold: #d4af6f;
	--ms-radius: 16px;
	--ms-pos: 50% 50%;
	margin: 0;
	width: 100%;
	min-width: 0;
}
.adsc-ms-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: var(--ms-radius);
	overflow: hidden;
	background: linear-gradient(155deg, #22355f 0%, var(--ms-navy) 45%, var(--ms-navy-deep) 100%);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 18px 40px -18px rgba(5, 12, 30, .55), 0 2px 8px rgba(5, 12, 30, .18);
	isolation: isolate;
}
.adsc-ms--169 .adsc-ms-frame { aspect-ratio: 16 / 9; }
/* thin gold hairline frame */
.adsc-ms-frame::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	border: 1px solid rgba(212, 175, 111, .28);
	pointer-events: none;
	z-index: 3;
}
@supports not (aspect-ratio: 1) {
	.adsc-ms-frame { height: 0; padding-top: 75%; }
	.adsc-ms--169 .adsc-ms-frame { padding-top: 56.25%; }
}
html body .adsc-ms .adsc-ms-media,
html body .adsc-ms .adsc-ms-frame > img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	object-position: var(--ms-pos);
	border-radius: 0 !important;
	box-shadow: none !important;
	display: block;
	margin: 0;
}
html body .adsc-ms video.adsc-ms-media { background: var(--ms-navy-deep); }

/* empty state: finished navy panel with gold line motif (no text for visitors) */
.adsc-ms-panel,
.adsc-ms-panel-bg {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background:
		radial-gradient(120% 90% at 85% 10%, rgba(212, 175, 111, .10) 0%, rgba(212, 175, 111, 0) 55%),
		radial-gradient(90% 80% at 10% 100%, rgba(80, 110, 170, .22) 0%, rgba(80, 110, 170, 0) 60%),
		linear-gradient(155deg, #22355f 0%, #172852 48%, #0f1c3d 100%);
}
.adsc-ms-motif {
	width: min(56%, 300px);
	height: auto;
	color: var(--ms-gold);
	opacity: .85;
}
.adsc-ms-motif-main { stroke-width: 1.4; }

/* admin-only hint (rendered only for users who can upload files) */
html body .adsc-ms a.adsc-ms-hint {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 4;
	font: 600 12px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
	letter-spacing: .02em;
	color: #0f1c3d !important;
	background: rgba(255, 255, 255, .92);
	border: 1px solid rgba(212, 175, 111, .9);
	border-radius: 999px;
	padding: 7px 12px;
	text-decoration: none !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
html body .adsc-ms a.adsc-ms-hint:hover,
html body .adsc-ms a.adsc-ms-hint:focus-visible { background: #fff; outline: 2px solid var(--ms-gold); outline-offset: 2px; }

/* YouTube / Vimeo facade */
.adsc-ms-facade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	display: block;
}
html body .adsc-ms .adsc-ms-play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 68px;
	height: 68px;
	margin: -34px 0 0 -34px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: #0f1c3d !important;
	background: var(--ms-gold);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
	transition: transform .2s ease;
	z-index: 2;
}
.adsc-ms-facade:hover .adsc-ms-play { transform: scale(1.06); }
.adsc-ms-facade:focus-visible { outline: 3px solid var(--ms-gold); outline-offset: -3px; }
.adsc-ms-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* caption */
html body .adsc-ms .adsc-ms-cap {
	margin: 12px 2px 0;
	font-size: .875rem;
	line-height: 1.45;
	color: inherit;
	opacity: .85;
	text-align: left;
}
html body .adsc-why .adsc-ms .adsc-ms-cap { color: rgba(255, 255, 255, .86) !important; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
	html body .adsc-ms .adsc-ms-play { transition: none; }
}

/* Homepage "Why Choose / The Aloha Implant Difference": keep the columns balanced around a 4:3 slot */
html body .adsc-why .adsc-why-grid { align-items: center; }
html body .adsc-why .adsc-why-img { min-width: 0; }
html body .adsc-why.adsc-why::before { content: none; background: none; }
@media (max-width: 768px) {
	html body .adsc-why .adsc-why-img { order: 2; }
	.adsc-ms-frame { --ms-radius: 12px; }
}
.adsc-ms--video-second{margin-top:1.5rem}
