.link-arrow {
  position: relative;
  display: inline-block;
  width: .82em;
  height: .82em;
  flex: none;
  vertical-align: -.08em;
  transform: rotate(-45deg);
}

.link-arrow--up { transform: rotate(-90deg); }

.link-arrow::before,
.link-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
}

.link-arrow::before {
  left: .05em;
  right: .11em;
  height: 1.5px;
  background: currentColor;
  transform: translateY(-50%);
}

.link-arrow::after {
  right: .1em;
  width: .42em;
  height: .42em;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.noir .mast-centered {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: clamp(470px, 45vw, 685px);
  position: relative;
  isolation: isolate;
  padding: 3rem 1rem;
  overflow: hidden;
  background: #141414;
}

.mast-centered .mast-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  min-height: 0;
  aspect-ratio: auto;
}

.noir .mast-centered .mast-photo img {
  object-position: center 77%;
  filter: brightness(.87) saturate(.86);
}

.mast-centered .mast-copy {
  text-align: center;
  padding: clamp(1.35rem, 4vw, 3rem);
  max-width: min(100%, 46rem);
  background: #000b;
}

.mast-centered h1 { max-width: none; margin-bottom: .8rem; }
.mast-centered p { margin-inline: auto; color: #e5e5e5; }
.mast-centered .concept-button { margin-top: 1.3rem; }
.mast-centered .mast-photo figcaption a:hover { text-decoration: underline; }

.project-link { display: block; }
#projects .photo-grid img {
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.project-link:hover figcaption { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.project-link img { transition: opacity .15s ease; }
.project-link:hover img { opacity: .84; }
.project-link figcaption { display: flex; flex-wrap: wrap; gap: .2rem .7rem; justify-content: space-between; }
.reel-heading { font: 650 1.55rem/1.2 var(--body); margin-block: 2rem .75rem; }
#projects .more-photos { margin-top: 1.5rem; }
#projects .more-photos summary { padding-block: .55rem; }
#projects .more-photos:not([open]) > :not(summary) { display: none; }

.reel-dialog {
  width: min(94vw, 520px);
  max-height: 92vh;
  padding: .8rem;
  border: 1px solid #454545;
  background: #131313;
  color: #f2f2f0;
}
.reel-dialog::backdrop { background: #000c; }
.reel-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .7rem; }
.reel-close { padding: .45rem .7rem; background: #eaeaea; color: #101010; border: 0; font: 650 .85rem var(--body); cursor: pointer; }
.reel-slot iframe { display: block; width: 100%; height: min(74vh, 680px); border: 0; background: #fff; }

@media (max-width: 580px) {
  .noir .mast-centered { min-height: 470px; padding-block: 2.5rem 3rem; }
  .mast-centered .mast-photo figcaption { font-size: .65rem; }
  #projects > .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #projects > .photo-grid figcaption { font-size: .69rem; line-height: 1.35; }
}
@media (prefers-reduced-motion: reduce) {
  .project-link img { transition: none; }
}
