/* A local, theme-coloured poster: no third-party request before pressing play. */
.wp-video {
  --video-line: color-mix(in srgb, var(--wp-primary) 22%, transparent);
  --video-radius: var(--wp-card-radius, 22px);
  color: var(--wp-text-main);
  overflow-wrap: anywhere;
}
.wp-video__layout { display: grid; align-items: center; }
.wp-video__copy { text-align: center; width: 100%; min-width: 0; }
/* Heading typography and spacing come from the existing theme header classes. */
.wp-video__description { margin: -1rem auto 2.5rem; line-height: 1.8; max-width: 60ch; }
.wp-video__media { min-width: 0; width: 100%; margin-inline: auto; }
.wp-video__frame { border: 1px solid var(--video-line); padding: 10px; border-radius: calc(var(--video-radius) + 10px); background: var(--wp-surface, #fff); box-shadow: 0 18px 48px color-mix(in srgb, var(--wp-primary) 8%, transparent); }
.wp-video__player { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 240px; overflow: hidden; border-radius: var(--video-radius); background: color-mix(in srgb, var(--wp-primary) 8%, var(--wp-bg)); }
.wp-video__play { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(.5rem, 1.4vw, 1rem); padding: clamp(1rem, 3vw, 2rem); border: 0; font: inherit; text-align: center; color: var(--wp-primary); background: radial-gradient(ellipse at 15% 20%, color-mix(in srgb, var(--wp-accent) 22%, transparent), transparent 65%), color-mix(in srgb, var(--wp-primary) 6%, var(--wp-bg)); cursor: pointer; isolation: isolate; }
.wp-video__play[hidden] { display: none; }
.wp-video__placeholder { cursor: default; }
.wp-video__poster-decoration { position: absolute; inset: 18px; z-index: -1; border: 1px solid var(--video-line); border-radius: calc(var(--video-radius) / 2); pointer-events: none; }
.wp-video__date { font-size: .7rem; letter-spacing: .24em; font-variant-numeric: tabular-nums; }
.wp-video__names { max-width: 100%; font-family: var(--wp-heading-font, "Cormorant Garamond", Georgia, serif); font-size: clamp(1.6rem, 4vw, 3.8rem); font-weight: 400; line-height: 1.15; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.wp-video__amp { font-style: italic; opacity: .65; }
.wp-video__play-icon { flex-shrink: 0; display: grid; place-items: center; width: clamp(48px, 5vw, 72px); height: clamp(48px, 5vw, 72px); border: 1px solid var(--video-line); border-radius: 50%; background: var(--wp-surface, #fff); box-shadow: 0 4px 20px color-mix(in srgb, var(--wp-primary) 8%, transparent); transition: transform .2s ease, box-shadow .2s ease; }
.wp-video__play-icon svg { margin-left: 3px; }
.wp-video__play-label { font-size: .8rem; font-weight: 600; letter-spacing: .05em; }
.wp-video__play:focus-visible { outline: 3px solid var(--wp-primary); outline-offset: -5px; }
.wp-video__play:not(.wp-video__placeholder):hover .wp-video__play-icon { transform: scale(1.08); box-shadow: 0 6px 26px color-mix(in srgb, var(--wp-primary) 18%, transparent); }
.wp-video__player iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.wp-video__fallback { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1rem; font-size: .75rem; line-height: 1.6; }
.wp-video__fallback small { font-size: inherit; color: var(--wp-text-muted); }
.wp-video__fallback a { color: var(--wp-primary); text-underline-offset: .25em; min-height: 44px; display: inline-flex; align-items: center; gap: .25rem; }
.wp-video__preview-note { display: flex; align-items: baseline; gap: .5rem; padding: .85rem 1rem; margin: 0 0 1.75rem; border: 1px dashed var(--video-line); border-radius: 10px; background: var(--wp-surface, #fff); font: 400 .8rem/1.6 var(--wp-body-font, sans-serif); color: var(--wp-text-main); }
.wp-video--split .wp-video__layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 4rem); }
.wp-video--split .wp-video__copy { text-align: left; margin: 0; }
.wp-video--split .wp-video__copy > header { text-align: left; align-items: flex-start; margin-bottom: 0; }
.wp-video--split .wp-video__description { margin: 1.25rem 0 0; }
.wp-video--portrait .wp-video__media { max-width: 360px; }
.wp-video--portrait .wp-video__player { aspect-ratio: 9 / 16; }
.wp-video--portrait .wp-video__names { font-size: clamp(1.6rem, 3vw, 2.8rem); }
.wp-video--portrait .wp-video__fallback { justify-content: center; text-align: center; }
.wp-video--text-only .wp-video__layout { grid-template-columns: 1fr; }
.wp-video--text-only .wp-video__copy { margin-inline: auto; text-align: center; }
.wp-video--text-only .wp-video__copy > header { text-align: center; align-items: center; }
.wp-video--text-only .wp-video__description { margin-inline: auto; }

/* Each theme keeps its own typography and decorative language. */
.wp-page--preset-garden .wp-video { --video-radius: 12px; }
.wp-page--preset-garden .wp-video__player { border-radius: 100px 100px 12px 12px; }
.wp-page--preset-garden .wp-video__frame { border-radius: 110px 110px 18px 18px; }
.wp-page--preset-garden .wp-video__poster-decoration { border-radius: 90px 90px 8px 8px; }
.wp-page--preset-garden .wp-video__names { font-family: var(--wp-garden-font-display, "Cormorant Garamond", serif); font-style: italic; }
.wp-page--preset-luxe .wp-video { --video-radius: 2px; }
.wp-page--preset-luxe .wp-video__frame { padding: 14px; border-radius: 2px; }
.wp-page--preset-luxe .wp-video__poster-decoration { inset: 12px; border-style: double; border-width: 3px; }
.wp-page--preset-luxe .wp-video__names { font-family: var(--wp-luxe-font-display, "Cormorant Garamond", serif); }
.wp-page--preset-marine .wp-video { --video-radius: 8px; }
.wp-page--preset-marine .wp-video__poster-decoration { width: 70%; height: 160%; inset: -30% auto auto -45%; border: 1px solid var(--video-line); border-radius: 50%; box-shadow: 20px 0 0 0 color-mix(in srgb, var(--wp-accent) 8%, transparent), 40px 0 0 0 color-mix(in srgb, var(--wp-accent) 6%, transparent); }
.wp-page--preset-minimal .wp-video { --video-radius: 0px; }
.wp-page--preset-minimal .wp-video__frame { padding: 0; box-shadow: none; border-radius: 0; }
.wp-page--preset-minimal .wp-video__poster-decoration { border: 0; border-block: 1px solid var(--video-line); border-radius: 0; }
.wp-page--preset-minimal .wp-video__play { background: var(--wp-bg); }
.wp-page--preset-minimal .wp-video__names { font-family: var(--wp-min-font-display, sans-serif); letter-spacing: -.04em; }
.wp-page--preset-joyful-garden .wp-video__poster-decoration { border-style: dashed; border-radius: 50% 45% 45% 50%; transform: rotate(-5deg); }

@media (max-width: 767.98px) {
  .wp-video--split .wp-video__layout { grid-template-columns: 1fr; gap: 1.75rem; }
  .wp-video--split .wp-video__copy { text-align: center; margin-inline: auto; }
  .wp-video--split .wp-video__copy > header { text-align: center; align-items: center; }
  .wp-video--split .wp-video__description { margin-inline: auto; }
  .wp-video__frame { padding: 6px; }
  .wp-video__description { font-size: .95rem; line-height: 1.7; }
  .wp-video__fallback { justify-content: center; text-align: center; }
  .wp-video__preview-note { font-size: .75rem; }
  .wp-video--portrait .wp-video__media { max-width: 320px; }
  .wp-page--preset-luxe .wp-video__frame { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .wp-video__play-icon { transition: none; }
  .wp-video__play:not(.wp-video__placeholder):hover .wp-video__play-icon { transform: none; }
}
