.dpg-section,
.dpg-lightbox {
  --dpg-navy: #091725;
  --dpg-cream: #f2f0e9;
  --dpg-gold: #d6b569;
  --dpg-muted: #a4b3bd;
  --dpg-media-filter: saturate(.79) contrast(1.035) sepia(.09);
  font-family: var(--font-ui, "Proxima Nova"), Arial, sans-serif;
  color: var(--dpg-cream);
}
.dpg-section { padding: 70px 0 76px; background: radial-gradient(ellipse at 50% 30%, #12304470, transparent 65%), var(--dpg-navy); scroll-margin-top: 88px; }
.dpg-section :is(p, button, a), .dpg-lightbox :is(p, button, a), .dpg-media-label {
  font-family: var(--font-body, "Source Sans 3"), "Segoe UI", Arial, sans-serif;
}
.dpg-container { width: calc(100% - 96px); max-width: 1440px; margin-inline: auto; }
.dpg-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.dpg-kicker { color: var(--dpg-gold); font-size: 12px; letter-spacing: .07em; font-weight: 600; margin: 0 0 14px; line-height: 1.6; }
.dpg-section .dpg-heading { color: var(--dpg-cream); font-size: clamp(32px, 3.8vw, 54px); font-weight: 500; line-height: 1.08; letter-spacing: -.04em; max-width: 1000px; margin: 0; }
.dpg-intro { color: var(--dpg-muted); max-width: 72ch; font-size: 16px; line-height: 1.75; margin: 14px 0 0; }
.dpg-stage { min-width: 0; border: 1px solid #d6b56945; border-radius: 26px; overflow: hidden; background: #071320; box-shadow: 0 22px 60px #020b1333, inset 0 1px 0 #ffffff12; }
.dpg-stage-details { min-height: 118px; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 26px; border-top: 1px solid #ffffff0e; background: linear-gradient(130deg, #ffffff05, transparent); }
.dpg-stage-copy { min-width: 0; }
.dpg-stage-copy h3 { color: var(--dpg-cream); font-family: inherit; font-size: clamp(17px, 1.7vw, 24px); font-weight: 500; line-height: 1.4; letter-spacing: -.025em; margin: 0; }
.dpg-stage-count { margin: 0 0 7px; font-size: 9px; line-height: 1.6; letter-spacing: .08em; color: var(--dpg-gold); }
.dpg-stage-summary { margin: 8px 0 0; color: var(--dpg-muted); font-size: 12px; line-height: 1.7; }
.dpg-stage-actions, .dpg-photo-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.dpg-stage-actions { flex-shrink: 0; justify-content: flex-end; max-width: 400px; }
.dpg-stage-actions .dpg-original, .dpg-stage-actions .dpg-expand { min-height: 42px; padding: 10px 14px; gap: 8px; font-size: 10px; }
.dpg-stage .dpg-photo-credit { margin: 8px 0 0; color: var(--dpg-muted); font-size: 10px; line-height: 1.5; }
.dpg-stage-duration { display: inline-flex; color: var(--dpg-gold); border: 1px solid #d6b56945; border-radius: 999px; padding: 9px 13px; white-space: nowrap; font-size: 10px; line-height: 1.4; }
.dpg-media-browser { margin-top: 28px; min-width: 0; }
.dpg-browser-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 12px; }
.dpg-browser-top h3 { margin: 0; color: var(--dpg-cream); font-family: inherit; font-size: 13px; line-height: 1.6; font-weight: 500; }
.dpg-rail-controls { display: flex; gap: 9px; }
.dpg-media-rail { display: flex; gap: 14px; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #d6b56970 #ffffff08; padding: 5px 5px 14px; scroll-padding-inline: 5px; }
.dpg-media-item { box-sizing: border-box; flex: 0 0 188px; min-width: 0; padding: 7px; border: 1px solid #ffffff25; border-radius: 17px; background: linear-gradient(140deg, #ffffff08, #a7d7d503); color: var(--dpg-cream); text-align: left; font: inherit; cursor: pointer; scroll-snap-align: start; transition: border-color 150ms ease, background 150ms ease; }
.dpg-media-item:hover { border-color: #d6b56980; background: #ffffff0c; }
.dpg-media-item[aria-pressed="true"] { border-color: var(--dpg-gold); background: #d6b56910; box-shadow: inset 0 0 0 1px #d6b56935; }
.dpg-media-thumb { display: block; width: 100%; height: 96px; object-fit: cover; border-radius: 11px; filter: var(--dpg-media-filter); }
.dpg-media-label { display: block; padding: 9px 5px 5px; }
.dpg-media-kind { display: flex; align-items: center; gap: 6px; color: var(--dpg-gold); font-size: 8px; font-weight: 600; line-height: 1.5; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 5px; }
.dpg-media-caption { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 32px; color: var(--dpg-cream); font-size: 10px; line-height: 1.6; }
.dpg-media-duration { display: block; margin-top: 6px; color: var(--dpg-muted); font-size: 9px; line-height: 1.4; }
.dpg-provenance { display: flex; align-items: center; gap: 9px; margin: 16px 0 0; color: var(--dpg-muted); font-size: 12px; line-height: 1.5; }
.dpg-provenance svg { color: var(--dpg-gold); }
.dpg-status { min-height: 220px; padding: 35px; display: grid; justify-items: start; align-content: center; gap: 20px; border: 1px solid #ffffff20; border-radius: 20px; color: var(--dpg-muted); font-size: 14px; line-height: 1.6; }
.dpg-section button:focus-visible, .dpg-section a:focus-visible, .dpg-lightbox button:focus-visible, .dpg-lightbox a:focus-visible { outline: 2px solid var(--dpg-gold); outline-offset: 4px; }
.dpg-section button:disabled, .dpg-lightbox button:disabled { opacity: .4; cursor: not-allowed; }
.dpg-full-image, .dpg-thumbnail img { filter: var(--dpg-media-filter); }
.dpg-overlay { position: fixed; inset: 0; z-index: 90; background: #020b13ec; backdrop-filter: blur(8px); }
.dpg-lightbox { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 91; width: min(1100px, calc(100vw - 48px)); max-height: calc(100dvh - 40px); overflow-y: auto; box-sizing: border-box; padding: 20px 24px; border: 1px solid #ffffff25; background: #091725; box-shadow: 0 25px 90px #0007; }
/* Native <dialog> hosts the standalone concept; Radix hosts the React version. */
.dpg-lightbox.dpg-native-dialog { inset: 0; margin: auto; transform: none; height: fit-content; }
.dpg-lightbox.dpg-native-dialog:not([open]) { display: none; }
.dpg-native-dialog::backdrop { background: #020b13ec; backdrop-filter: blur(8px); }
.dpg-lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.dpg-lightbox-label { color: var(--dpg-cream); font-size: 11px; letter-spacing: .12em; margin: 0; line-height: 1.6; }
.dpg-lightbox-label span { color: var(--dpg-gold); font-size: 8px; display: inline-block; margin-left: 18px; }
.dpg-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; padding: 0; border: 1px solid #ffffff45; color: var(--dpg-cream); background: #091725cc; cursor: pointer; }
.dpg-icon-button:hover { background: #203343; border-color: var(--dpg-gold); }
.dpg-lightbox-photo { position: relative; display: flex; align-items: center; justify-content: center; min-height: 180px; background: #040c13; overflow: hidden; }
.dpg-full-image { display: block; width: 100%; height: min(56dvh, 620px); object-fit: contain; }
.dpg-lightbox-photo::after { content: ""; position: absolute; inset: 0; background: #09172508; pointer-events: none; }
.dpg-prev,
.dpg-next { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); }
.dpg-prev { left: 12px; }
.dpg-next { right: 12px; }
.dpg-lightbox-details { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 19px; }
.dpg-lightbox-caption { font-size: 16px; line-height: 1.45; margin: 0; color: var(--dpg-cream); }
.dpg-lightbox-counter { color: var(--dpg-muted); font-size: 10px; line-height: 1.5; margin: 8px 0 0; }
.dpg-original { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 0 10px 12px; min-height: 44px; font: inherit; font-size: 11px; line-height: 1.5; flex-shrink: 0; color: var(--dpg-gold); background: transparent; border: 0; cursor: pointer; }
.dpg-original:hover { text-decoration: underline; text-underline-offset: 4px; }
.dpg-thumbnails { display: flex; gap: 9px; overflow-x: auto; padding: 4px; scroll-snap-type: x proximity; }
.dpg-thumbnail { flex: 0 0 84px; height: 55px; padding: 0; border: 2px solid transparent; opacity: .55; background: #152a38; cursor: pointer; scroll-snap-align: start; }
.dpg-thumbnail[aria-current="true"] { opacity: 1; border-color: var(--dpg-gold); }
.dpg-thumbnail:hover { opacity: 1; }
.dpg-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dpg-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Glass controls preserve the existing palette and the native player controls. */
.dpg-view, .dpg-icon-button, .dpg-original, .dpg-expand, .dpg-rail-arrow {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 10px;
  min-height: 44px; padding: 11px 16px; border-radius: 999px; border: 1px solid #d7e6e34a;
  background: linear-gradient(150deg, #f2f0e91a, #a7d7d50a); color: var(--dpg-cream);
  box-shadow: inset 0 1px 0 #ffffff2b, 0 3px 12px #020b131a; font: inherit; font-size: 11px; line-height: 1.5;
  cursor: pointer; text-decoration: none; -webkit-backdrop-filter: blur(16px) saturate(135%); backdrop-filter: blur(16px) saturate(135%);
  transition: background 150ms ease, border-color 150ms ease;
}
.dpg-view:hover, .dpg-icon-button:hover, .dpg-original:hover, .dpg-expand:hover, .dpg-rail-arrow:hover { background: linear-gradient(150deg, #f2f0e925, #a7d7d513); border-color: #d6b56999; text-decoration: none; }
.dpg-icon-button, .dpg-rail-arrow { width: 44px; height: 44px; padding: 0; }
.dpg-original { color: var(--dpg-gold); }
.dpg-lightbox { border-radius: 24px; border-color: #f2f0e933; background: linear-gradient(145deg, #132a3df7, #091725fa); }
.dpg-lightbox-photo { border-radius: 16px; }
.dpg-thumbnail, .dpg-thumbnail img { border-radius: 10px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .dpg-view, .dpg-icon-button, .dpg-original, .dpg-expand, .dpg-rail-arrow { background: #183040; } }
@media (max-width:1100px) { .dpg-container { width: calc(100% - 64px); } .dpg-stage-details { align-items: flex-start; flex-wrap: wrap; } .dpg-stage-actions { max-width: none; } }
@media (max-width:640px) {
  .dpg-section { padding-block: 48px 52px; scroll-margin-top: 72px; }
  .dpg-container { width: calc(100% - 40px); }
  .dpg-heading-row { display: block; margin-bottom: 23px; }
  .dpg-section .dpg-heading { font-size: 34px; max-width: 450px; }
  .dpg-kicker { font-size: 11px; margin-bottom: 12px; }
  .dpg-intro { font-size: 15px; line-height: 1.7; margin-top: 16px; }
  .dpg-stage { border-radius: 20px; }
  .dpg-stage-details { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 165px; gap: 16px; padding: 17px; }
  .dpg-stage-copy h3 { font-size: 17px; }
  .dpg-stage-count { font-size: 8px; }
  .dpg-stage-summary { font-size: 11px; }
  .dpg-stage-actions { justify-content: flex-start; gap: 8px; }
  .dpg-stage-actions .dpg-original, .dpg-stage-actions .dpg-expand { padding: 9px 11px; font-size: 9px; min-height: 40px; gap: 6px; }
  .dpg-media-browser { margin-top: 22px; }
  .dpg-browser-top { gap: 14px; margin-bottom: 10px; }
  .dpg-browser-top h3 { font-size: 12px; }
  .dpg-media-rail { gap: 10px; }
  .dpg-media-item { flex-basis: 156px; padding: 6px; border-radius: 14px; }
  .dpg-media-thumb { height: 80px; border-radius: 9px; }
  .dpg-media-label { padding: 8px 3px 3px; }
  .dpg-media-caption { font-size: 9px; min-height: 30px; }
  .dpg-provenance { font-size: 12px; }
  .dpg-lightbox { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); padding: 12px; border-radius: 20px; }
  .dpg-lightbox-toolbar { margin-bottom: 12px; gap: 10px; }
  .dpg-lightbox-label { font-size: 10px; }
  .dpg-lightbox-label span { display: block; font-size: 7px; margin: 4px 0 0; }
  .dpg-full-image { height: min(46dvh,460px); }
  .dpg-prev { left: 6px; } .dpg-next { right: 6px; }
  .dpg-lightbox-details { display: block; padding-top: 15px; }
  .dpg-lightbox-caption { font-size: 14px; }
  .dpg-lightbox-counter { font-size: 9px; }
  .dpg-photo-actions { margin-top: 12px; }
  .dpg-thumbnail { flex-basis: 66px; height: 46px; }
}
@media (prefers-reduced-motion:reduce) {
  .dpg-media-item, .dpg-view, .dpg-icon-button, .dpg-original, .dpg-expand, .dpg-rail-arrow { transition: none; }
  .dpg-media-rail, .dpg-thumbnails { scroll-behavior: auto; }
}

/* The media and image-only filmstrip share one continuous frame. */
.dpg-stage { position: relative; }
.dpg-stage-details.dpg-sr-only {
  display: block; min-height: 0; padding: 0; margin: 0; border: 0;
}
.dpg-stage > .dpg-media-browser {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center;
  gap: 12px; margin: 0; padding: 16px; border-top: 1px solid #ffffff12;
  background: linear-gradient(145deg, #ffffff04, #a7d7d502);
}
.dpg-stage > .dpg-static-browser { grid-template-columns: minmax(0, 1fr); }
.dpg-stage > .dpg-static-browser .dpg-media-rail { grid-area: 1 / 1; }
.dpg-stage .dpg-browser-top, .dpg-stage .dpg-rail-controls { display: contents; }
.dpg-stage .dpg-rail-arrow:first-child { grid-area: 1 / 1; }
.dpg-stage .dpg-rail-arrow:last-child { grid-area: 1 / 3; }
.dpg-stage .dpg-media-rail { grid-area: 1 / 2; gap: 10px; padding: 4px 4px 8px; }
.dpg-stage .dpg-media-item {
  position: relative; flex-basis: 136px; padding: 4px; border-radius: 13px;
  background: #ffffff05;
}
.dpg-stage .dpg-media-thumb { height: 86px; border-radius: 9px; }
.dpg-media-play {
  position: absolute; inset: 0; margin: auto; width: 32px; height: 32px; padding: 8px;
  border-radius: 50%; color: #f2f0e9; background: #091725c9; border: 1px solid #f2f0e955;
  pointer-events: none; box-shadow: 0 2px 8px #0005;
}
.dpg-stage-media > .dpg-stage-actions {
  position: absolute; top: 16px; right: 16px; z-index: 2; display: flex;
  gap: 8px; max-width: calc(100% - 32px);
}
.dpg-stage-media .dpg-stage-actions > :is(button, a) {
  width: 44px; height: 44px; min-height: 44px; padding: 0; gap: 0;
  background: #091725bf; border-color: #f2f0e94d;
}
.dpg-stage .dpg-stage-credit {
  position: absolute; bottom: 14px; left: 16px; margin: 0; padding: 5px 10px;
  max-width: calc(100% - 32px); font-size: 12px; line-height: 1.5; color: #f2f0e9;
  border-radius: 999px; background: #091725c9;
}
.dpg-lightbox-credit { margin: 0; font-size: 12px; color: var(--dpg-muted); }
.dpg-native-dialog .dpg-lightbox-toolbar { justify-content: flex-end; }
.dpg-native-dialog .dpg-photo-actions .dpg-icon-button { padding: 0; }
@media (max-width: 640px) {
  .dpg-stage > .dpg-media-browser { display: block; padding: 10px 8px 8px; }
  .dpg-stage .dpg-rail-controls { display: none; }
  .dpg-stage .dpg-media-rail { gap: 8px; padding-bottom: 6px; }
  .dpg-stage .dpg-media-item { flex-basis: 104px; border-radius: 11px; }
  .dpg-stage .dpg-media-thumb { height: 66px; border-radius: 7px; }
  .dpg-stage-media > .dpg-stage-actions { top: 10px; right: 10px; gap: 7px; }
  .dpg-stage .dpg-stage-credit { bottom: 10px; left: 10px; max-width: calc(100% - 20px); }
}
