/* Additions to the published portfolio shell. */
.site-header nav a{white-space:nowrap}
.site-header nav a[aria-current]{color:var(--paper);position:relative}
.site-header nav a[aria-current]::after{content:"";position:absolute;inset-inline:0;bottom:1px;height:2px;background:var(--focus)}
.exhibit-main{padding-bottom:clamp(32px,4vw,64px)}
.exhibit-gallery{max-width:var(--width);margin-inline:auto;padding-inline:var(--gutter);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(8px,1vw,16px);align-items:start}
.exhibit-shot{display:block;width:100%;background:transparent;position:relative;isolation:isolate;padding:0;border:0;min-width:0;line-height:0;text-align:start}
.exhibit-shot img{display:block;width:100%;height:auto;opacity:1}
.exhibit-play{position:absolute;inset-inline-end:clamp(10px,1.3vw,20px);bottom:clamp(10px,1.3vw,20px);width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:rgba(20,45,48,.8);box-shadow:inset 0 0 0 1px #f6f0e49c;color:#f6f0e4;transition:background-color 150ms}
.exhibit-play svg{width:43%;height:43%}
.exhibit-shot:is(:hover,:focus-visible) .exhibit-play{background:var(--accent)}
#exhibit-player{inset:0;margin:auto;padding:0;border:0;width:min(1240px,94vw);max-width:none;max-height:96dvh;overflow:auto;background:transparent;color:#f6f0e4}
#exhibit-player::backdrop{background:rgba(7,18,19,.96)}
.exhibit-playerbar{display:flex;justify-content:space-between;align-items:center;padding-bottom:8px}
.exhibit-control{width:44px;height:44px;display:grid;place-items:center;color:#f6f0e4;border:1px solid #f6f0e452;border-radius:50%;background:transparent}
.exhibit-control:hover,.exhibit-control:focus-visible{background:#284446}
.exhibit-control svg{width:20px;height:20px}
.sequence{display:flex;gap:8px}
#exhibit-player video{display:block;margin:auto;max-width:100%;width:auto;height:auto;max-height:calc(94dvh - 58px);background:#101516}
.exhibit-error{padding:8px}.exhibit-error a{text-decoration:underline}
@media(max-width:680px){
 .site-header{display:grid;grid-template-columns:auto 1fr auto;gap:0 8px;min-height:68px;padding-block:6px}
 .site-header .wordmark{grid-column:1;grid-row:1;justify-self:start}
 .site-header .site-settings{grid-column:3;grid-row:1}
 .site-header nav{grid-column:1/-1;grid-row:2;justify-self:stretch;justify-content:space-between;margin:0;padding:0;gap:8px}
 .site-header nav a{font-size:14px;min-height:40px;line-height:1.4}
 .exhibit-play{width:32px;height:32px}
 .exhibit-playerbar{padding-bottom:6px}
}
@media(prefers-reduced-motion:reduce){.exhibit-play{transition:none}}

@media (min-width: 700px) {
  .exhibit-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1050px) {
  .exhibit-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.exhibit-shot .exhibit-play {
  inset: 8px auto auto 8px;
  width: clamp(22px, 2.2vw, 32px);
  height: clamp(22px, 2.2vw, 32px);
}
.exhibit-gallery + .about-plain { margin-block-start: clamp(36px, 5vw, 72px); }

@media (hover: hover) and (pointer: fine) {
  .portfolio-grid .exhibit-play {
    opacity: 0;
    transition: opacity 150ms ease;
  }
  .portfolio-grid .exhibit-shot:is(:hover, :focus-visible) .exhibit-play {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-grid .exhibit-play { transition: none; }
}

/* Keep the treatment on the cover. The player uses the original media. */
.layered-grid .exhibit-shot {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #142d30;
  --veil-opacity: .44;
  --mark-width: 34%;
  --mark-height: 27%;
}
.layered-grid .exhibit-shot .project-still {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.layered-grid .project-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgb(20 45 48 / var(--veil-opacity));
  pointer-events: none;
}
.layered-grid .exhibit-shot .project-mark {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--mark-width);
  height: var(--mark-height);
  aspect-ratio: auto;
  object-fit: contain;
  pointer-events: none;
}
.layered-grid .exhibit-play { z-index: 3; }
.layered-grid [data-work="weqaa"] {
  --veil-opacity: .40;
  --mark-width: 21%;
  --mark-height: 34%;
}
.layered-grid [data-work="guests"] {
  --veil-opacity: .48;
  --mark-width: 31%;
  --mark-height: 34%;
}
.layered-grid [data-work="otp"] {
  --veil-opacity: .48;
  --mark-width: 36%;
}
.layered-grid [data-work="august"] {
  --veil-opacity: .4;
  --mark-width: 36%;
}
#exhibit-player [hidden] { display: none; }
#exhibit-player .official-player { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 80dvh; border: 0; background: #101717; }
#exhibit-player .official-player[hidden] { display: none; }
.official-link { display: block; padding: 8px 12px; width: fit-content; margin-inline: auto; color: inherit; }
.exhibit-playerbar { gap: 10px; align-items: center; }
.exhibit-playerbar .player-title { flex: 1; font-size: clamp(14px, 2vw, 22px); line-height: 1.45; overflow-wrap: anywhere; }
.layered-grid [data-work="kalam"] .project-still, .layered-grid [data-work="kalam-price"] .project-still { object-position: 100% 50%; }
.layered-grid [data-work="ampm"] .project-still { object-position: 50% 30%; }
.exhibit-photos { margin: 0; text-align: center; }
.exhibit-photos img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(93dvh - 120px);
  object-fit: contain;
  margin: 0 auto;
}
.photo-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.photo-controls output { min-width: 4em; direction: ltr; }
.layered-grid [data-work="saudia-royal-flights"] { --veil-opacity: .46; --mark-width: 39%; }
.layered-grid [data-work="mowaridi-sufra"] { --veil-opacity: .41; }
.layered-grid [data-work="nphies-stories"] { --veil-opacity: .47; }
.layered-grid [data-work="hcdp-lihilmik-sanad"] { --veil-opacity: .46; }
.layered-grid [data-work="inaya-teaser"] { --veil-opacity: .37; }
.layered-grid [data-work="lampa"] { --veil-opacity: .66; --mark-width: 29%; --mark-height: 31%; }
.layered-grid [data-work="co"] { --veil-opacity: .54; --mark-width: 28%; --mark-height: 39%; }
.layered-grid [data-work="visit"] { --veil-opacity: .54; --mark-width: 37%; }
.layered-grid [data-work="blu"] { --veil-opacity: .45; --mark-width: 36%; }
.layered-grid [data-work="kalam"] { --veil-opacity: .48; --mark-width: 31%; --mark-height: 36%; }
.layered-grid [data-work="green-line-otp"] { --veil-opacity: .38; }

@media (max-width: 699px) {
  .layered-grid [data-work="dara-mountains"] .project-mark { height: 36%; }
  .layered-grid :is([data-work="kalam"], [data-work="kalam-price"]) .project-mark { height: 23%; }
}

.series-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 10px;
  font: inherit;
}
.series-picker select {
  max-width: 100%;
  min-height: 44px;
  padding-inline: 10px;
  font: inherit;
  color: #f6f0e4;
  background: #142d30;
  border: 1px solid #f6f0e48c;
}

.film-lead-media > picture { display: block; width: 100%; height: 100%; }
@media (min-width: 900px) and (max-height: 1024px) and (orientation: landscape) {
  .film-lead-media > picture > img { object-position: 50% 8%; }
}
