/* The full-width visual archive uses the site's existing TAIIAT colour tokens. */
.media-showcase {
  width: 100%;
  margin: 0;
  padding: clamp(60px, 7vw, 112px) 0 0;
  background: linear-gradient(180deg, #101618 0, #090d0f 45%, #0b1012 100%);
  border-block: 1px solid #b99a652b;
  overflow: clip;
}
.ms-inset { padding-inline: var(--gutter, 24px); }
.ms-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; padding-bottom: 36px; }
.ms-heading .eyebrow { margin-bottom: 16px; }
.ms-heading h2 { font-size: clamp(34px, 4.2vw, 68px); letter-spacing: -.035em; }
.ms-intro { max-width: 390px; font-size: 13px; line-height: 1.9; color: #aeb9b7; }
.ms-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 26px; }
.ms-types { display: flex; flex: 0 0 auto; gap: 3px; padding: 4px; border: 1px solid #333e3f; background: #080c0e; }
.ms-types button, .ms-categories button { border: 0; background: transparent; color: #b5bcb9; min-height: 44px; font-size: 12px; line-height: 1.4; white-space: nowrap; transition: color .2s, background-color .2s; }
.ms-types button { padding: 10px 16px; display: inline-flex; align-items: center; gap: 12px; }
.ms-types button span { font-size: 10px; font-variant-numeric: tabular-nums; color: #8d9693; }
.ms-types button[aria-pressed="true"] { background: #c6a571; color: #141815; }
.ms-types button[aria-pressed="true"] span { color: #4a432f; }
.ms-types button:hover:not([aria-pressed="true"]) { background: #172124; color: #f1ece1; }
.ms-categories { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 30px); overflow-x: auto; scrollbar-width: thin; scrollbar-color: #58605a transparent; }
.ms-categories button { padding: 10px 0; position: relative; }
.ms-categories button[aria-pressed="true"] { color: #e4c896; }
.ms-categories button[aria-pressed="true"]::after { content: ''; height: 1px; position: absolute; bottom: 6px; inset-inline: 0; background: #c6a571; }
.ms-categories button:hover { color: #f1ece1; }
.ms-stage {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(300px, 56.25vw, 760px);
  background: #050809;
  border-block: 1px solid #343e3d;
  isolation: isolate;
  cursor: zoom-in;
  touch-action: pan-y pinch-zoom;
}
.ms-stage::before, .ms-stage::after { content: ''; position: absolute; z-index: -1; top: 22px; bottom: 22px; width: 20px; border-block: 1px solid #c6a57166; pointer-events: none; }
.ms-stage::before { left: 22px; border-left: 1px solid #c6a57166; }
.ms-stage::after { right: 22px; border-right: 1px solid #c6a57166; }
.ms-stage > img { display: block; width: var(--media-width); height: var(--media-height); max-width: 100%; max-height: 100%; object-fit: contain; transform: none; transition: none; }
.ms-badge { position: absolute; top: 22px; left: var(--gutter, 24px); max-width: calc(100% - var(--gutter, 24px) * 2); color: #e9e5da; border: 1px solid #ffffff24; padding: 8px 12px; background: #080d10ed; font-size: 11px; letter-spacing: .035em; line-height: 1.5; pointer-events: none; }
.ms-expand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; position: absolute; bottom: 22px; right: var(--gutter, 24px); padding: 8px 14px; border: 1px solid #ffffff3d; color: #f1ece1; background: #080d10ed; font-size: 11px; letter-spacing: .06em; transition: background .2s, border-color .2s; }
.ms-expand > span:first-child { font-size: 23px; line-height: 1; }
.ms-stage:hover .ms-expand { background: #181e20; border-color: #d3b480; }
.ms-caption { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding-block: 28px; }
.ms-description { min-width: 0; }
.ms-description .eyebrow { font-size: 10px; letter-spacing: .18em; margin-bottom: 8px; }
.ms-description h3 { font-family: var(--serif, Georgia, serif); font-size: clamp(23px, 2.1vw, 34px); line-height: 1.25; letter-spacing: -.02em; }
.ms-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 12px; color: #a8b4b1; font-size: 11px; margin-top: 12px; }
.ms-meta > span[aria-hidden] { color: #596864; }
.ms-navigation { display: flex; align-items: center; justify-content: end; gap: 20px; flex-shrink: 0; }
.ms-arrow { display: inline-grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; padding: 0; color: #e4cd9f; background: #101719; border: 1px solid #48514c; font-size: 22px; line-height: 1; transition: background .2s, border-color .2s; }
.ms-arrow:hover:not(:disabled) { background: #26302d; border-color: #c6a571; }
.ms-arrow:disabled { opacity: .35; }
.ms-counter { min-width: 62px; color: #e7e2d7; text-align: center; font-size: 12px; letter-spacing: .08em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ms-counter span { color: #66746e; margin-inline: 8px; }
.ms-filmstrip { display: flex; align-items: start; gap: 12px; padding: 0 var(--gutter, 24px) 28px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter, 24px); scrollbar-width: thin; scrollbar-color: #6c705c #101719; }
.ms-thumb { display: block; flex: 0 0 168px; width: 168px; min-width: 0; padding: 5px 5px 8px; border: 1px solid transparent; scroll-snap-align: start; transition: border-color .2s, background .2s; }
.ms-thumb-image { display: block; position: relative; width: 100%; aspect-ratio: 16/9; background: #030607; overflow: hidden; }
.ms-thumb-image img { width: 100%; height: 100%; object-fit: contain; }
.ms-thumb[aria-current="true"] { border-color: #c6a571; background: #c6a5710b; }
.ms-thumb:hover { border-color: #7e8b80; background: #ffffff05; }
.ms-thumb[aria-current="true"]:hover { border-color: #e4c896; }
.ms-thumb-index { position: absolute; bottom: 0; left: 0; padding: 2px 6px; background: #070b0de6; color: #d7d4c8; font: 10px/1.6 var(--sans, Arial, sans-serif); font-variant-numeric: tabular-nums; }
.ms-thumb-label { display: block; padding-top: 7px; font-size: 11px; color: #b4c0ba; letter-spacing: .015em; line-height: 1.5; }
.ms-thumb-label > span { color: #68766e; }
.ms-thumb-label > .ms-thumb-note { display: block; color: #a8b4ad; margin-top: 3px; }
.ms-empty { display: flex; min-height: 300px; flex-direction: column; justify-content: center; align-items: center; gap: 16px; text-align: center; background: #080d0f; border-block: 1px solid #333e3f; }
.ms-empty h3 { font-size: clamp(27px, 3vw, 42px); }
.ms-empty > p:not(.eyebrow) { color: #aeb9b7; font-size: 14px; }
.ms-empty .button { margin-top: 8px; }
.media-showcase [hidden] { display: none !important; }
.ms-modal-open { overflow: hidden; }
.ms-dialog { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #05090bf5; color: #e7e2d7; }
.ms-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.ms-dialog::backdrop { background: #05090b; }
.ms-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px clamp(18px, 3vw, 48px); border-bottom: 1px solid #35403c; }
.ms-dialog-header .eyebrow { font-size: 11px; }
.ms-close { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; padding: 5px 12px; border: 1px solid #48514c; background: transparent; color: #e7e2d7; font-size: 12px; }
.ms-close:hover { border-color: #c6a571; background: #202925; }
.ms-close > span:last-child { font-size: 27px; line-height: 1; }
.ms-dialog-stage { display: grid; place-items: center; min-height: 0; min-width: 0; position: relative; touch-action: pan-y pinch-zoom; }
.ms-dialog-stage > img { width: var(--media-width); height: var(--media-height); max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; }
.ms-dialog-prev, .ms-dialog-next { position: absolute; top: calc(50% - 24px); background: #080e11e6; }
.ms-dialog-prev { left: 18px; }.ms-dialog-next { right: 18px; }
.ms-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 20px clamp(18px, 3vw, 48px); border-top: 1px solid #35403c; }
.ms-dialog-footer h3 { font: 400 clamp(18px, 1.6vw, 25px)/1.3 var(--serif, Georgia, serif); }
.ms-dialog-footer p { margin-top: 7px; color: #aeb9b7; font-size: 11px; line-height: 1.6; }
@media (max-width: 1100px) {
  .ms-toolbar { align-items: start; flex-direction: column; gap: 10px; }
  .ms-categories { width: 100%; gap: 28px; }
  .ms-heading { align-items: start; }
  .ms-intro { max-width: 320px; font-size: 12px; }
}
@media (max-width: 760px) {
  .ms-heading { flex-direction: column; gap: 20px; padding-bottom: 26px; }
  .ms-intro { max-width: 420px; }
  .ms-types { width: 100%; }
  .ms-types button { flex: 1 1 auto; justify-content: center; padding-inline: 12px; gap: 8px; }
  .ms-toolbar { padding-bottom: 18px; }
  .ms-categories { gap: 24px; }
  .ms-stage { height: max(260px, 65vw); }
  .ms-stage::before, .ms-stage::after { display: none; }
  .ms-badge { top: 12px; left: 12px; max-width: calc(100% - 24px); font-size: 11px; padding: 6px 8px; }
  .ms-expand { bottom: 12px; right: 12px; min-height: 44px; padding: 6px 10px; font-size: 11px; }
  .ms-caption { align-items: start; flex-direction: column; gap: 20px; padding-block: 24px; }
  .ms-navigation { justify-content: space-between; width: 100%; }
  .ms-meta { font-size: 11px; gap: 4px 8px; }
  .ms-thumb { flex-basis: 148px; width: 148px; }
  .ms-filmstrip { gap: 8px; padding-bottom: 24px; }
  .ms-dialog-footer { align-items: start; gap: 16px; padding-block: 16px; }
  .ms-dialog-footer .ms-counter { font-size: 11px; padding-top: 4px; }
  .ms-dialog-prev { left: 8px; }.ms-dialog-next { right: 8px; }
  .ms-dialog-stage .ms-arrow { width: 44px; height: 44px; }
}
@media (max-width: 380px) {
  .ms-types button { padding-inline: 8px; gap: 6px; font-size: 11px; }
  .ms-types button span { font-size: 9px; }
  .ms-dialog-header .eyebrow { font-size: 9px; letter-spacing: .1em; }
  .ms-close { gap: 8px; }
  .ms-description h3 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .media-showcase *, .media-showcase *::before, .media-showcase *::after { scroll-behavior: auto; transition: none; }
}

/* Keep captions and the filmstrip still while frames change. */
.ms-description{min-height:108px}
@media(max-width:760px){.ms-description{min-height:150px}}
