.ex-media-viewer {
  --ex-mv-cream: #f5f2ea;
  width: min(1040px, calc(100vw - 56px));
  max-width: none;
  max-height: calc(100dvh - 44px);
  padding: 0;
  border: 1px solid #e8eee424;
  border-radius: 17px;
  background: #10251f;
  color: var(--ex-mv-cream);
  box-shadow: 0 30px 130px #0009;
  overflow: hidden;
  font: 14px/1.5 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.ex-media-viewer::backdrop {background: #061713dc; backdrop-filter: blur(11px);}
.ex-media-viewer [hidden] {display: none !important;}
.ex-media-viewer *, .ex-media-viewer *::before, .ex-media-viewer *::after {box-sizing: border-box;}
.ex-media-viewer p, .ex-media-viewer h2 {margin: 0;}
.ex-media-viewer .ex-mv-shell {display: flex; flex-direction: column; max-height: calc(100dvh - 44px);}
.ex-media-viewer .ex-mv-header {display: flex; justify-content: space-between; align-items: center; flex: 0 0 auto; gap: 20px; min-height: 78px; padding: 18px 23px;}
.ex-media-viewer .ex-mv-heading {min-width: 0;}
.ex-media-viewer .ex-mv-eyebrow {font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #c2cdb5; margin-bottom: 4px;}
.ex-media-viewer .ex-mv-title {font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 400; letter-spacing: -.02em; line-height: 1.17; overflow-wrap: anywhere;}
.ex-media-viewer .ex-mv-icon {width: 21px; height: 21px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;}
.ex-media-viewer .ex-mv-icon svg {width: 100%; height: 100%;}
.ex-media-viewer .ex-mv-button {display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 42px; height: 42px; padding: 10px; border: 1px solid #ecf0d933; border-radius: 50%; background: #173b30d9; color: var(--ex-mv-cream); cursor: pointer; touch-action: manipulation; transition: background .2s, border-color .2s;}
.ex-media-viewer .ex-mv-button:hover {background: #3c5c45; border-color: #ecf0d97d;}
.ex-media-viewer .ex-mv-button:focus-visible, .ex-media-viewer a:focus-visible, .ex-media-viewer video:focus-visible {outline: 3px solid #dcb978; outline-offset: 4px;}
.ex-media-viewer .ex-mv-stage {position: relative; display: flex; justify-content: center; min-height: 150px; flex: 1 1 auto; background: #061510; overflow: hidden;}
.ex-media-viewer .ex-mv-content {position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 220px; max-height: calc(100dvh - 225px); aspect-ratio: 16 / 10;}
.ex-media-viewer .ex-mv-image {display: block; width: 100%; height: 100%; max-height: calc(100dvh - 225px); object-fit: contain; opacity: 0; transition: opacity .24s;}
.ex-media-viewer .ex-mv-image.is-loaded {opacity: 1;}
.ex-media-viewer .ex-mv-youtube {position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity .2s;}
.ex-media-viewer .ex-mv-youtube.is-loaded {opacity: 1; pointer-events: auto;}
.ex-media-viewer .ex-mv-content--youtube {background: radial-gradient(ellipse at 30% 20%, #42614d, #102d23 65%); overflow: hidden;}
.ex-media-viewer .ex-mv-youtube-poster {position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;}
.ex-media-viewer .ex-mv-youtube-preview {position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding: 34px 22px; text-align: center; background: linear-gradient(180deg, #0b241522, #0b2415bb 50%, #0b2415f5);}
.ex-media-viewer .ex-mv-preview-status {font-family: Georgia, "Times New Roman", serif; font-size: 24px; line-height: 1.15; color: #fffdf4; max-width: 270px;}
.ex-media-viewer .ex-mv-preview-detail {font-size: 11px; line-height: 1.6; color: #dce5d2; max-width: 235px;}
.ex-media-viewer .ex-mv-watch-link {display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 41px; margin-top: 7px; padding: 11px 16px; border: 1px solid #c1cba9; border-radius: 7px; color: #162e23; background: #f2f1df; text-decoration: none; font-size: 11px; font-weight: 600;}
.ex-media-viewer .ex-mv-watch-link:hover {background: #fffdf3;}
.ex-media-viewer .ex-mv-watch-link .ex-mv-icon {width: 14px; height: 14px;}
.ex-media-viewer .ex-mv-video {width: 100%; height: 100%; object-fit: contain; max-height: calc(100dvh - 225px);}
.ex-media-viewer.ex-mv--portrait .ex-mv-content {aspect-ratio: 9 / 16; width: auto; height: min(660px, calc(100dvh - 225px)); min-height: 200px; max-width: 100%;}
.ex-media-viewer.ex-mv--portrait {width: min(720px, calc(100vw - 56px));}
.ex-media-viewer.ex-mv--portrait .ex-mv-stage {padding: 0 60px;}
.ex-media-viewer .ex-mv-button--previous, .ex-media-viewer .ex-mv-button--next {position: absolute; z-index: 2; top: 50%; margin-top: -22px; box-shadow: 0 2px 10px #0002; backdrop-filter: blur(7px);}
.ex-media-viewer .ex-mv-button--previous {left: 14px;}
.ex-media-viewer .ex-mv-button--next {right: 14px;}
.ex-media-viewer .ex-mv-footer {flex: 0 0 auto; display: flex; align-items: center; gap: 22px; justify-content: space-between; padding: 16px 23px 18px;}
.ex-media-viewer .ex-mv-caption {font-size: 11px; line-height: 1.65; color: #d1d8c8; max-width: 690px; max-height: 80px; overflow: auto;}
.ex-media-viewer .ex-mv-footer-meta {display: flex; flex: 0 0 auto; align-items: center; gap: 20px; margin-left: auto;}
.ex-media-viewer .ex-mv-position {font-size: 10px; letter-spacing: .05em; color: #a5b9a3; white-space: nowrap; font-variant-numeric: tabular-nums;}
.ex-media-viewer .ex-mv-source {display: inline-flex; align-items: center; gap: 5px; color: #e5ddbe; font-size: 10px; text-decoration: none; white-space: nowrap;}
.ex-media-viewer .ex-mv-source:hover {text-decoration: underline; text-underline-offset: 4px;}
.ex-media-viewer .ex-mv-source .ex-mv-icon {width: 13px; height: 13px;}
.ex-media-viewer .ex-mv-loading {position: absolute; left: 0; right: 0; top: 50%; text-align: center; font-family: Georgia, "Times New Roman", serif; font-size: 18px; color: #b1c2aa;}
.ex-media-viewer .ex-mv-unavailable {display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 35px 40px; width: 100%; height: 100%; color: #d2ddc9;}
.ex-media-viewer .ex-mv-unavailable > .ex-mv-icon {width: 35px; height: 35px; opacity: .6; margin-bottom: 15px;}
.ex-media-viewer .ex-mv-unavailable p {font-family: Georgia, "Times New Roman", serif; font-size: 21px;}
.ex-media-viewer .ex-mv-unavailable > span:last-child:not(.ex-mv-icon) {font-size: 11px; margin-top: 8px; color: #90a68c;}
@media (max-width: 680px) {
  .ex-media-viewer, .ex-media-viewer.ex-mv--portrait {width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 12px;}
  .ex-media-viewer .ex-mv-shell {max-height: calc(100dvh - 20px);}
  .ex-media-viewer .ex-mv-header {gap: 12px; min-height: 75px; padding: 15px;}
  .ex-media-viewer .ex-mv-title {font-size: 21px;}
  .ex-media-viewer .ex-mv-eyebrow {font-size: 8px;}
  .ex-media-viewer .ex-mv-content {min-height: 180px; aspect-ratio: 4 / 3; max-height: calc(100dvh - 210px);}
  .ex-media-viewer .ex-mv-image, .ex-media-viewer .ex-mv-video {max-height: calc(100dvh - 210px);}
  .ex-media-viewer.ex-mv--portrait .ex-mv-stage {padding: 0 38px;}
  .ex-media-viewer.ex-mv--portrait .ex-mv-content {height: min(610px, calc(100dvh - 215px));}
  .ex-media-viewer .ex-mv-button--previous {left: 5px;}
  .ex-media-viewer .ex-mv-button--next {right: 5px;}
  .ex-media-viewer .ex-mv-button--previous, .ex-media-viewer .ex-mv-button--next {width: 34px; height: 38px; padding: 8px; border-radius: 9px;}
  .ex-media-viewer .ex-mv-footer {flex-direction: column; align-items: stretch; gap: 13px; padding: 13px 16px 16px;}
  .ex-media-viewer .ex-mv-caption {max-height: 64px; font-size: 10px;}
  .ex-media-viewer .ex-mv-footer-meta {width: 100%; justify-content: space-between;}
}
@media (max-height: 500px) and (min-width: 681px) {
  .ex-media-viewer .ex-mv-header {min-height: 58px; padding: 9px 18px;}
  .ex-media-viewer .ex-mv-content {min-height: 120px; max-height: calc(100dvh - 155px);}
  .ex-media-viewer .ex-mv-image, .ex-media-viewer .ex-mv-video {max-height: calc(100dvh - 155px);}
  .ex-media-viewer.ex-mv--portrait .ex-mv-content {height: calc(100dvh - 155px); min-height: 120px;}
  .ex-media-viewer .ex-mv-footer {padding: 9px 18px;}
}
@media (max-height: 500px) and (max-width: 680px) {
  .ex-media-viewer .ex-mv-header {min-height: 55px; padding: 8px 13px;}
  .ex-media-viewer .ex-mv-title {font-size: 17px;}
  .ex-media-viewer .ex-mv-eyebrow {display: none;}
  .ex-media-viewer .ex-mv-content {min-height: 90px; max-height: calc(100dvh - 160px);}
  .ex-media-viewer .ex-mv-image, .ex-media-viewer .ex-mv-video {max-height: calc(100dvh - 160px);}
  .ex-media-viewer.ex-mv--portrait .ex-mv-content {height: calc(100dvh - 160px); min-height: 90px;}
  .ex-media-viewer .ex-mv-footer {padding: 8px 14px; gap: 6px;}
  .ex-media-viewer .ex-mv-caption {max-height: 32px;}
}
@media (max-height: 600px) {
  .ex-media-viewer .ex-mv-youtube-preview {padding: 14px 11px; gap: 7px; justify-content: center;}
  .ex-media-viewer .ex-mv-preview-status {font-size: 18px;}
  .ex-media-viewer .ex-mv-preview-detail {font-size: 10px; line-height: 1.4;}
  .ex-media-viewer .ex-mv-watch-link {min-height: 35px; font-size: 10px; padding: 8px 11px; margin-top: 3px;}
}
@media (prefers-reduced-motion: reduce) {
  .ex-media-viewer *, .ex-media-viewer *::before, .ex-media-viewer *::after {transition: none !important; animation: none !important;}
}
