/* schoolDXP Video — front-end */
.schooldxp-video { margin: 0; }
.schooldxp-video__media { display: block; width: 100%; height: auto; max-width: 100%; background: #000; }

/* Inline: keep the video's own shape while it loads (width/height attributes give the ratio) */
.schooldxp-video--inline .schooldxp-video__media { border-radius: inherit; }

/* Background: fills its box. Give the block a min height, or let a theme container size it. */
.schooldxp-video--background { position: relative; overflow: hidden; }
.schooldxp-video--background .schooldxp-video__media { width: 100%; height: 100%; object-fit: cover; background: transparent; }
.schooldxp-video--background[style*="min-height"] .schooldxp-video__media { position: absolute; inset: 0; }

.schooldxp-video--missing { padding: 2rem; text-align: center; background: #f0f0f1; color: #50575e; border: 1px dashed #c3c4c7; font-size: 14px; }

/* Demo-school video (MSO demo schools: poster only, no media file) */
.schooldxp-video--demo .schooldxp-video__demo { position: relative; aspect-ratio: 16 / 9; background: #1d2327 center / cover no-repeat; border-radius: 6px; overflow: hidden; }
.schooldxp-video--background.schooldxp-video--demo .schooldxp-video__demo { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.schooldxp-video__demo-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(0, 0, 0, .55); }
.schooldxp-video__demo-play::after { content: ""; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.schooldxp-video__demo-label { position: absolute; left: 12px; top: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #1d2327; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.schooldxp-video__demo-caption { margin-top: 8px; font-size: .9em; opacity: .8; }
