@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=IBM+Plex+Mono:wght@400;500;600&family=Playfair+Display:wght@700;900&display=swap");

/* Bob Alkemade, archive dossier of light.
   Palette and chrome live here so route files stay free of raw colour values. */

.ed {
  --paper: #eceff0;
  --paper-2: #e2e6e7;
  --ink: #0b0b0b;
  --rule: #8e8e8e;
  --rule-soft: #c2c7c8;
  --accent: #e4322b;
  --bar-h: 56px;

  position: relative;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.ed *,
.ed *::before,
.ed *::after {
  box-sizing: border-box;
}

.ed a {
  color: inherit;
  text-decoration: none;
}

/* ---------- utility bar ---------- */

.ed-bar {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(180px, 22vw) 1fr auto auto;
  align-items: center;
  gap: 24px;
  height: var(--bar-h);
  padding: 0 20px;
  background: var(--ink);
  color: var(--paper);
}

.ed-wordmark {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

.ed-bar-meta {
  color: var(--paper);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.ed-bar-meta strong {
  display: block;
  font-weight: 500;
  opacity: 1;
}

.ed-bar-nav {
  display: flex;
  gap: 18px;
}

.ed-bar-nav a {
  position: relative;
  padding-bottom: 3px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ed-bar-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}

.ed-bar-nav a:hover::after,
.ed-bar-nav a:focus-visible::after {
  transform: scaleX(1);
}

/* ---------- layout shell ---------- */

.ed-main {
  padding-top: var(--bar-h);
}

.ed-section {
  position: relative;
  border-top: 1px solid var(--ink);
}

.ed-section-head {
  display: grid;
  grid-template-columns: minmax(180px, 22vw) 1fr;
  gap: 24px;
  padding: 28px 20px 20px 52px;
}

.ed-marker {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ed-marker span {
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.ed-display {
  margin: 0;
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: clamp(34px, 6vw, 78px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.ed-display-sm {
  font-size: clamp(26px, 3.4vw, 44px);
}

/* ---------- ruler ticks ---------- */

.ed-ticks {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 32px;
  border-right: 1px solid var(--rule-soft);
  background-image: repeating-linear-gradient(
    to bottom,
    var(--rule) 0,
    var(--rule) 1px,
    transparent 1px,
    transparent 38px
  );
  background-position: 0 0;
  background-repeat: repeat-y;
  background-size: 14px 38px;
  pointer-events: none;
}

/* ---------- masthead ---------- */

.ed-hero {
  display: grid;
  grid-template-columns: minmax(300px, 30vw) 1fr;
  min-height: calc(100dvh - var(--bar-h));
}

.ed-hero-index {
  position: relative;
  padding: 34px 28px 40px 52px;
  border-right: 1px solid var(--ink);
}

.ed-hero-lede {
  max-width: 34ch;
  margin: 14px 0 30px;
  color: #3a3d3e;
  font-size: 12px;
  line-height: 1.7;
}

.ed-index-group {
  margin-top: 46px;
}

.ed-index-group + .ed-index-group {
  margin-top: 34px;
}

.ed-index-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.ed-index-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 12px;
  padding: 9px 6px 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: padding-left 0.24s ease, background-color 0.24s ease;
}

.ed-index-row .ed-no {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 12px;
  color: var(--ink);
}

.ed-index-row .ed-no::before {
  position: absolute;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--accent);
  content: "";
  transform: scale(0);
  transition: transform 0.24s ease;
}

.ed-index-row:hover,
.ed-index-row:focus-visible {
  padding-left: 10px;
  background: var(--paper-2);
  outline: none;
}

.ed-index-row:hover .ed-no::before,
.ed-index-row:focus-visible .ed-no::before {
  transform: scale(1);
}

.ed-index-row:hover .ed-no-text,
.ed-index-row:focus-visible .ed-no-text {
  visibility: hidden;
}

/* ---------- frame strips beside the masthead ---------- */

.ed-hero-frames {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: var(--ink);
}

.ed-hero-frames > * + * {
  border-left: 1px solid #26292a;
}

/* ---------- frame slot ---------- */

.ed-frame {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.ed-frame-fill {
  height: 100%;
}

.ed-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ed-frame:hover img {
  transform: scale(1.04);
}

.ed-frame-empty {
  display: flex;
  height: 100%;
  min-height: 220px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px;
  border: 1px dashed #3d4142;
  text-align: center;
}

.ed-frame-empty::before {
  width: 26px;
  height: 26px;
  border: 1px solid var(--accent);
  content: "";
  transform: rotate(45deg);
}

.ed-frame-empty-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
}

.ed-frame-empty-path {
  max-width: 100%;
  font-size: 10px;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  opacity: 0.85;
}

.ed-stamp {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 7px;
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.ed-stamp-top {
  top: 12px;
  bottom: auto;
}

.ed-stamp::before {
  width: 6px;
  height: 6px;
  margin-top: 3px;
  background: var(--paper);
  content: "";
  flex: 0 0 auto;
}

.ed-stamp-accent::before {
  background: var(--accent);
}

/* ---------- statement ---------- */

.ed-statement {
  display: grid;
  grid-template-columns: minmax(180px, 22vw) 1fr;
  align-items: stretch;
  gap: 24px;
  padding: 10px 20px 56px 52px;
}

/* The left column is a column flexbox so the portrait can take exactly the
   height the text beside it leaves over, instead of a fixed ratio. */
.ed-statement-side {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.ed-statement p {
  max-width: 62ch;
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.72;
}

.ed-statement p:last-child {
  margin-bottom: 0;
}

.ed-meta-list {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ed-meta-list div {
  padding: 7px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.ed-meta-list dt {
  color: var(--rule);
}

.ed-meta-list dd {
  margin: 2px 0 0;
}

/* ---------- work catalogue ---------- */

.ed-work {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 34vw);
  border-top: 1px solid var(--ink);
}

.ed-work-list {
  padding: 0 0 40px 52px;
}

.ed-work-row {
  display: grid;
  width: 100%;
  grid-template-columns: 46px 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 18px 20px 18px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: padding-left 0.3s ease, background-color 0.3s ease;
}

.ed-work-row:first-child {
  border-top: 1px solid var(--rule);
}

.ed-work-row[data-active="true"] {
  padding-left: 14px;
  background: var(--paper-2);
}

.ed-work-row-no {
  color: var(--rule);
  font-size: 11px;
}

.ed-work-row[data-active="true"] .ed-work-row-no {
  color: var(--accent);
}

.ed-work-row-title {
  display: block;
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: clamp(17px, 2vw, 26px);
  letter-spacing: -0.01em;
  line-height: 1.06;
  text-transform: uppercase;
}

.ed-work-row-sub {
  display: block;
  margin-top: 7px;
  color: #3a3d3e;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ed-work-row-year {
  color: var(--rule);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.ed-work-panel {
  position: sticky;
  top: var(--bar-h);
  align-self: start;
  height: calc(100dvh - var(--bar-h));
  border-left: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.ed-work-panel-frame {
  height: 62%;
}

.ed-work-panel-body {
  padding: 22px 24px;
}

.ed-work-panel-title {
  margin: 0;
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: 20px;
  line-height: 1.05;
  text-transform: uppercase;
}

.ed-work-panel-note {
  margin: 12px 0 0;
  max-width: 44ch;
  font-size: 11px;
  line-height: 1.7;
  opacity: 0.72;
}

.ed-work-panel-rows {
  margin: 18px 0 0;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ed-work-panel-rows div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid #2a2d2e;
}

.ed-work-panel-rows dt {
  opacity: 0.5;
}

.ed-work-panel-rows dd {
  margin: 0;
}

.ed-award {
  color: var(--accent);
}

/* ---------- frame strip ---------- */

.ed-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--ink);
  background: var(--ink);
}

.ed-strip > * {
  aspect-ratio: 3 / 4;
}

.ed-strip > * + * {
  border-left: 1px solid #26292a;
}

/* ---------- tables ---------- */

.ed-tables {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
}

.ed-table-block {
  padding: 28px 28px 44px 52px;
}

.ed-table-block + .ed-table-block {
  border-left: 1px solid var(--ink);
}

.ed-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ed-table th {
  padding: 0 12px 8px 0;
  border-bottom: 1px solid var(--ink);
  color: var(--rule);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-align: left;
}

.ed-table td {
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}

.ed-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ed-chips li {
  padding: 7px 10px;
  border: 1px solid var(--ink);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.ed-chips li:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- contact ---------- */

.ed-contact {
  position: relative;
  padding: 56px 20px 40px 52px;
  background: var(--ink);
  color: var(--paper);
}

.ed-contact .ed-ticks {
  border-right-color: #2a2d2e;
  background-image: repeating-linear-gradient(
    to bottom,
    #4a4d4e 0,
    #4a4d4e 1px,
    transparent 1px,
    transparent 38px
  );
}

.ed-contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

.ed-contact-lines {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ed-contact-lines div {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid #2a2d2e;
}

.ed-contact-lines dt {
  opacity: 0.5;
}

.ed-contact-lines dd {
  margin: 0;
}

/* ---------- bespoke CTAs ---------- */

.ed-cta-reel {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  align-items: center;
  height: 44px;
  padding: 0 20px 0 16px;
  border-left: 3px solid var(--ink);
  background: var(--accent);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ed-cta-reel span {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ed-cta-reel::after {
  position: absolute;
  right: 14px;
  content: "\2192";
  transform: translateX(14px);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ed-cta-reel:hover span,
.ed-cta-reel:focus-visible span {
  transform: translateX(-10px);
}

.ed-cta-reel:hover::after,
.ed-cta-reel:focus-visible::after {
  transform: translateX(0);
}

.ed-cta-mail {
  display: inline-block;
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: clamp(20px, 3.4vw, 44px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-transform: uppercase;
}

.ed-cta-mail::before,
.ed-cta-mail::after {
  color: var(--rule);
  transition: color 0.24s ease;
}

.ed-cta-mail::before {
  content: "[";
  padding-right: 8px;
}

.ed-cta-mail::after {
  content: "]";
  padding-left: 8px;
}

.ed-cta-mail:hover::before,
.ed-cta-mail:hover::after,
.ed-cta-mail:focus-visible::before,
.ed-cta-mail:focus-visible::after {
  color: var(--accent);
}

.ed-cta-stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--paper);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 0.24s ease, color 0.24s ease;
}

.ed-cta-stamp:hover,
.ed-cta-stamp:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.ed-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  padding-top: 16px;
  border-top: 1px solid #2a2d2e;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ---------- entrance motion, transform only ---------- */

@keyframes ed-rise {
  from {
    transform: translateY(14px);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes ed-wipe {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.ed-rise {
  animation: ed-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.ed-rise-2 {
  animation-delay: 0.08s;
}

.ed-rise-3 {
  animation-delay: 0.16s;
}

.ed-rise-4 {
  animation-delay: 0.24s;
}

.ed-wipe {
  transform-origin: left center;
  animation: ed-wipe 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .ed-hero {
    grid-template-columns: 1fr;
  }

  .ed-hero-index {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .ed-hero-frames {
    min-height: 62vh;
  }

  .ed-work {
    grid-template-columns: 1fr;
  }

  .ed-work-panel {
    position: relative;
    top: auto;
    height: auto;
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .ed-work-panel-frame {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .ed-tables {
    grid-template-columns: 1fr;
  }

  .ed-table-block + .ed-table-block {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .ed-strip {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 720px) {
  .ed-bar {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .ed-bar-meta,
  .ed-bar-nav {
    display: none;
  }

  .ed-bar-nav.ed-bar-nav-compact {
    display: flex;
    gap: 12px;
  }

  .ed-section-head,
  .ed-statement,
  .ed-table-block,
  .ed-contact {
    grid-template-columns: 1fr;
    padding-left: 44px;
    padding-right: 16px;
  }

  .ed-work-list {
    padding-left: 44px;
  }

  .ed-hero-index {
    padding: 26px 16px 34px 44px;
  }

  /* Keep the frames side by side on phones, just scaled down. */
  .ed-hero-frames {
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    min-height: 44vh;
  }

  .ed-hero-frames > * + * {
    border-left: 1px solid #26292a;
  }

  /* The archive stamp has to survive a very narrow column. */
  .ed-hero-frames .ed-stamp {
    right: 6px;
    bottom: 7px;
    left: 6px;
    gap: 4px;
    font-size: 7px;
    letter-spacing: 0.04em;
    line-height: 1.35;
  }

  .ed-hero-frames .ed-stamp-top {
    top: 7px;
    bottom: auto;
  }

  .ed-hero-frames .ed-stamp::before {
    width: 4px;
    height: 4px;
    margin-top: 2px;
  }

  .ed-hero-frames .ed-frame-empty {
    min-height: 0;
    padding: 10px 6px;
    gap: 6px;
  }

  .ed-hero-frames .ed-frame-empty::before {
    width: 14px;
    height: 14px;
  }

  .ed-hero-frames .ed-frame-empty-label {
    font-size: 7px;
    letter-spacing: 0.1em;
  }

  .ed-hero-frames .ed-frame-empty-path {
    font-size: 8px;
  }

  .ed-portrait {
    aspect-ratio: 4 / 5;
    flex: 0 0 auto;
  }

  .ed-contact-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .ed-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ed *,
  .ed *::before,
  .ed *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- masthead logo ---------- */

.ed-logo {
  margin: 0;
  padding: 0;
  background: transparent;
  line-height: 0;
}

.ed-logo img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
}

@media (max-width: 720px) {
  .ed-logo img {
    max-width: 220px;
  }
}

/* ---------- frame viewer ---------- */

.ed-strip-item {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
}

.ed-strip-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.ed-lightbox {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  grid-template-rows: 1fr auto;
  align-items: center;
  padding: 24px;
  background: rgb(11 11 11 / 0.96);
  color: var(--paper);
}

.ed-lightbox-figure {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0;
  min-height: 0;
}

.ed-lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.ed-lightbox-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: baseline;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

.ed-lightbox-caption-title {
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: 12px;
  letter-spacing: 0.02em;
  opacity: 1;
}

.ed-lightbox-caption-id {
  color: var(--accent);
  opacity: 1;
}

.ed-lightbox-nav,
.ed-lightbox-close {
  border: 1px solid rgb(236 239 240 / 0.35);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ed-lightbox-nav {
  grid-row: 1;
  width: 44px;
  height: 44px;
  justify-self: center;
  font-size: 16px;
  line-height: 1;
}

.ed-lightbox-nav:hover,
.ed-lightbox-close:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.ed-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 10px 14px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .ed-lightbox {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto;
    padding: 64px 12px 20px;
  }

  .ed-lightbox-figure {
    grid-column: 1;
  }

  .ed-lightbox-thumbs {
    grid-column: 1;
    margin-bottom: 56px;
  }

  .ed-lightbox-nav {
    position: absolute;
    bottom: 20px;
  }

  .ed-lightbox-prev {
    left: 20px;
  }

  .ed-lightbox-next {
    right: 20px;
  }

  .ed-lightbox-figure img {
    max-height: 66vh;
  }
}

/* ---------- viewer thumbnails ---------- */

.ed-lightbox-thumbs {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 16px 4px 4px;
  scrollbar-width: thin;
  justify-content: center;
}

.ed-lightbox-thumb {
  position: relative;
  overflow: hidden;
  width: 62px;
  height: 78px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgb(236 239 240 / 0.25);
  background: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.ed-lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ed-lightbox-thumb:hover {
  opacity: 0.85;
}

.ed-lightbox-thumb[data-active="true"] {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
  opacity: 1;
}

.ed-lightbox-thumb-no {
  position: absolute;
  bottom: 3px;
  left: 4px;
  color: var(--paper);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.8);
}

.ed-lightbox-thumb[data-active="true"] .ed-lightbox-thumb-no {
  color: var(--accent);
}

@media (max-width: 720px) {
  .ed-lightbox-thumbs {
    justify-content: flex-start;
  }

  .ed-lightbox-thumb {
    width: 50px;
    height: 64px;
  }
}

.ed-contact-link {
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color 0.2s ease;
}

.ed-contact-link:hover {
  color: var(--accent);
}

/* ---------- catalogue video dropdown ---------- */

.ed-work-entry {
  border-bottom: 1px solid var(--rule);
}

.ed-work-entry .ed-work-row {
  border-bottom: 0;
}

.ed-work-entry:first-child .ed-work-row {
  border-top: 1px solid var(--rule);
}

.ed-work-row-play {
  display: inline-block;
  margin-left: 12px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  vertical-align: middle;
}

.ed-work-video {
  padding: 0 20px 22px 0;
  animation: ed-rise 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.ed-work-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--ink);
  background: var(--ink);
}

@media (max-width: 720px) {
  .ed-work-video {
    padding-right: 16px;
  }
}

.ed-work-video-item {
  margin: 0;
}

.ed-work-video-item + .ed-work-video-item {
  margin-top: 14px;
}

.ed-work-video-label {
  margin-top: 7px;
  color: #3a3d3e;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ed-work-row-count {
  display: inline-block;
  min-width: 15px;
  margin-left: 6px;
  padding: 1px 4px;
  background: var(--accent);
  color: var(--paper);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-align: center;
  vertical-align: 2px;
}

/* ---------- approach portrait ---------- */

.ed-portrait {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  flex: 1 1 auto;
  margin: 0 0 22px;
  background: var(--ink);
  color: var(--paper);
}

.ed-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ed-portrait:hover img {
  transform: scale(1.03);
}

.ed-portrait .ed-frame-empty {
  min-height: 0;
  height: 100%;
}

.ed-work-panel-crew {
  white-space: pre-line;
  line-height: 1.75;
}

/* ---------- WordPress specifics ---------- */

/* The catalogue panel holds one block per project; only the active one shows.
   The [hidden] rule must win over display:flex, or every project stacks. */
.ed-work-panel-item {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.ed-work-panel-item[hidden] {
  display: none !important;
}

/* Belt and braces: before the script runs, show only the first block. */
.ed-work-panel > .ed-work-panel-item ~ .ed-work-panel-item:not([data-alk-active="true"]) {
  display: none;
}

.ed-work-panel-item > .ed-frame {
  height: 62%;
  flex: 0 0 auto;
}

/* The viewer caption is three spans in WordPress, same look as before. */
.ed-lightbox-caption-meta {
  opacity: 0.75;
}

/* WordPress wraps images in links or figures in some contexts. */
.ed-frame img,
.ed-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1080px) {
  .ed-work-panel-item > .ed-frame {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}
/* ---------- masthead frames fill their row ---------- */

/* The implicit grid row was sized to the photos, so a strip of the black
   backing showed under them. Force the row, the figures and the images to
   take the full height of the hero. */
.ed-hero-frames {
  align-content: stretch;
  grid-auto-rows: 1fr;
}

.ed-hero-frames > * {
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.ed-hero-frames .ed-frame,
.ed-hero-frames .ed-frame img {
  display: block;
  height: 100%;
}

@media (max-width: 720px) {
  .ed-hero-frames {
    grid-auto-rows: auto;
  }
}
