/* Project photographs retain their full-image viewer and five-second controls. */
.hero-copy .studio-credential {
  display: block;
  max-width: 100%;
  margin: 20px 0 0;
  font: 14px/1.6 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.footer-credential { font-weight: 400; }
.project-carousel {
  display: block;
  width: 100%;
  height: 630px;
  margin: 0;
}
.page-work .project-carousel, .page-approach .project-carousel { width: 100%; margin-inline: 0; }
.image-carousel { width: 100%; min-width: 0; }
.image-carousel .carousel-toolbar,
.image-carousel .gallery-no-script { padding-inline: var(--pad); }
.project-carousel .carousel-window,
.image-carousel .carousel-window {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overflow: clip;
  background: #101e2b;
  touch-action: pan-y pinch-zoom;
}
.image-carousel .carousel-window { height: min(68svh, 760px); min-height: 340px; }
.project-carousel .carousel-track,
.image-carousel .carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform .4s ease;
}
.image-carousel .carousel-slide { min-width: 0; height: 100%; }
.image-carousel .gallery-open { background: #101e2b; }
.image-carousel .gallery-open > img { object-fit: contain; }
.image-carousel .gallery-open > span {
  bottom: 16px;
  right: 16px;
  padding: 9px 13px;
  color: #fff;
  background: #101e2bd9;
  font-size: 12px;
}
.image-carousel .gallery-open:focus-visible { outline-offset: -5px; }
.project-carousel .carousel-controls,
.image-carousel .carousel-controls {
  position: absolute;
  inset: 50% 0 auto;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
  gap: 0;
  transform: translateY(-50%);
  pointer-events: none;
}
.project-carousel .carousel-controls button,
.image-carousel .carousel-controls button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #ffffff55;
  border-radius: 50%;
  color: #fff;
  background: #101e2bce;
  pointer-events: auto;
  transition: background .2s;
}
.project-carousel .carousel-controls button:hover,
.image-carousel .carousel-controls button:hover { background: #101e2b; }
.carousel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 62px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.carousel-count { font: 12px/1.4 Arial, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.carousel-playback {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 0 8px 12px;
  border: 0;
  background: transparent;
  font: 12px/1.4 Arial, sans-serif;
}
.carousel-playback [data-playback-icon] { width: 16px; font-size: 17px; }
.carousel-playback:hover { color: #a24f3c; }
.project-carousel .carousel-toolbar {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 44px;
  padding: 0 12px;
  gap: 12px;
  border: 0;
  color: #fff;
  background: #101e2bce;
}
.project-carousel .carousel-playback { padding-left: 0; }
.project-carousel .carousel-playback:hover { color: #fff; background: #333333; }
.gallery-no-script { margin-top: 18px; font-size: 14px; }
.gallery-no-script a { text-decoration: underline; }
.lightbox figure { min-width: 0; }
.lightbox button { display: grid; place-items: center; flex-shrink: 0; }
@media (max-width: 809px) {
  .hero-copy .studio-credential { font-size: 13px; }
  .project-carousel { height: 300px; }
  .image-carousel .carousel-window { height: min(58svh, 560px); min-height: 280px; }
  .project-carousel .carousel-controls, .image-carousel .carousel-controls { padding-inline: 10px; }
  .project-carousel .carousel-controls button, .image-carousel .carousel-controls button { width: 44px; height: 44px; }
  .carousel-caption { max-width: calc(100% - 32px); }
  .image-carousel .gallery-open > span { bottom: 12px; right: 12px; font-size: 11px; }
  .lightbox { padding-inline: 10px; }
  .lightbox button { min-width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-carousel .carousel-track, .image-carousel .carousel-track { transition: none; }
}
