:root { color-scheme: dark; font-family: Arial, Helvetica, sans-serif; background: #000; color: #fff; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
main { padding: 5vw 0 0 4.7vw; height: 86dvh; display: flex; flex-direction: column; }
h1 { font-size: clamp(2rem, 3.25vw, 4.25rem); letter-spacing: -.045em; line-height: 1.08; margin: 0 0 2.6vw; font-weight: 700; }
header { padding-right: 7vw; flex-shrink: 0; margin-bottom: 4.4vw; }
header p { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 300; font-size: clamp(1rem, 1.8vw, 2.3rem); letter-spacing: -.04em; line-height: 1.16; max-width: 56vw; margin: 0; }
.gallery { display: flex; flex-shrink: 0; gap: .9vw; margin-top: auto; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; padding-right: 4.7vw; outline-offset: -2px; }
.gallery::-webkit-scrollbar { display: none; }
figure { flex: 0 0 min(20.5vw, 30dvh); min-width: 0; margin: 0; }
figure img { display: block; width: 100%; height: min(20.8vw, 30.5dvh); object-fit: cover; object-position: center; }
figcaption { padding-top: .9vw; }
h2 { margin: 0; font: 400 clamp(1.5rem, 2.45vw, 3.2rem)/1.08 'Helvetica Neue', Helvetica, Arial, sans-serif; letter-spacing: -.04em; }
figcaption p { margin: .2vw 0 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 300; font-size: clamp(.875rem, 1.32vw, 1.65rem); letter-spacing: -.035em; line-height: 1.15; }
.scrollbar { -webkit-appearance: none; appearance: none; display: block; position: fixed; left: 50%; transform: translateX(-50%); bottom: 5.7dvh; width: 42vw; height: 28px; margin: 0; padding: 0; background: transparent; cursor: pointer; --thumb-width: 12%; }
.scrollbar::-webkit-slider-runnable-track { height: 7px; border-radius: 8px; background: #303030; }
.scrollbar::-moz-range-track { height: 7px; border-radius: 8px; background: #303030; }
.scrollbar::-webkit-slider-thumb { -webkit-appearance: none; width: var(--thumb-width); height: 7px; border: 0; border-radius: 8px; background: #d4d4d4; cursor: grab; }
.scrollbar::-moz-range-thumb { width: var(--thumb-width); height: 7px; border: 0; border-radius: 8px; background: #d4d4d4; cursor: grab; }
.scrollbar:active::-webkit-slider-thumb { cursor: grabbing; }
.scrollbar:active::-moz-range-thumb { cursor: grabbing; }
:focus-visible { outline: 2px solid white; outline-offset: 5px; }
.worker-link { display: block; width: 100%; padding: 0; border: 0; color: inherit; background: none; text-align: left; cursor: pointer; }
.worker-link:focus-visible { outline-offset: -2px; }
.detail { position: fixed; inset: 0; margin: 0; padding: 7.5dvh 6.2vw 5.5dvh 3.75vw; width: 100vw; height: 100dvh; max-width: none; max-height: none; border: 0; background: #000; color: #fff; overflow: auto; }
.detail::backdrop { background: #000; }
.detail[open] { display: grid; grid-template-columns: 39.6vw minmax(0, 1fr); column-gap: 9vw; align-items: start; }
.portrait { display: block; width: 100%; height: auto; max-height: 70dvh; object-fit: contain; object-position: left top; }
.detail-info { min-width: 0; min-height: 87dvh; display: flex; flex-direction: column; }
.detail-heading h2, .detail-role { margin: 0; font: 400 clamp(1.5rem, 1.9vw, 2.8rem)/1.18 'Helvetica Neue', Helvetica, Arial, sans-serif; letter-spacing: -.04em; }
.detail-role { color: #808080; }
.detail-description { font: 300 clamp(1.1rem, 1.75vw, 2.5rem)/1.17 'Helvetica Neue', Helvetica, Arial, sans-serif; letter-spacing: -.035em; margin: auto 0 2.4dvh; padding-top: 4dvh; }
[hidden] { display: none !important; }
.portraits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5dvh .5vw; border-top: 1px solid #fff; padding: 3.3dvh .3vw 0; margin-top: auto; }
.detail-description:not([hidden]) + .portraits { margin-top: 0; }
.miniature { min-width: 0; padding: 0; border: 0; text-align: left; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; color: #fff; background: none; cursor: pointer; }
.miniature img { display: block; width: 100%; aspect-ratio: 1 / 1.03; object-fit: cover; }
.mini-name { display: block; font-size: clamp(1rem, 1.2vw, 1.8rem); line-height: 1.1; letter-spacing: -.04em; margin-top: .45vw; }
.mini-role { display: block; font-size: clamp(.75rem, .7vw, 1rem); line-height: 1.15; letter-spacing: -.035em; }
.miniature[aria-current] { opacity: .25; }
.close { position: absolute; top: 2.5dvh; right: 3vw; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: #fff; font: 300 2rem/1 Arial, sans-serif; cursor: pointer; }
@media (max-width: 650px) {
  main { padding: 40px 0 0 22px; }
  header { padding-right: 24px; margin-bottom: 34px; }
  h1 { font-size: 2rem; margin-bottom: 28px; }
  header p { max-width: 100%; font-size: 1.05rem; line-height: 1.25; }
  .gallery { margin-top: auto; gap: 12px; padding-right: 22px; }
  figure { flex-basis: min(64vw, 28dvh); }
  figure img { height: min(65vw, 28.5dvh); }
  figcaption { padding-top: 10px; }
  h2 { font-size: 1.6rem; }
  figcaption p { font-size: 1rem; margin-top: 3px; }
  .scrollbar { width: 64vw; bottom: 4dvh; }
  .detail { padding: 64px 22px 30px; }
  .detail[open] { display: flex; flex-direction: column; gap: 24px; }
  .portrait { width: 100%; height: 46dvh; object-position: left center; }
  .detail-info { width: 100%; min-height: 0; }
  .detail-heading h2, .detail-role { font-size: 1.6rem; }
  .detail-description { padding-top: 28px; margin-bottom: 24px; font-size: 1.1rem; }
  .portraits { margin-top: 28px; gap: 20px 10px; padding: 24px 0 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-name { margin-top: 7px; font-size: 1.2rem; }
  .mini-role { font-size: .875rem; }
  .close { top: 12px; right: 12px; }
}
@media (max-height: 650px) and (min-width: 651px) {
  header { margin-bottom: 2vw; }
  figure { flex-basis: min(20.5vw, 28dvh); }
  figure img { height: min(20.8vw, 28.5dvh); }
  .scrollbar { bottom: 3dvh; }
}
