.work-gallery {
  position: relative;
  padding-bottom: 3rem;
}
.work-gallery .section-intro {
  margin-bottom: 1.75rem;
}
.gallery-enhancement[hidden] {
  display: none;
}
.gallery-stage {
  position: relative;
  width: 100%;
  height: calc(min(780px, 52vw) / 1.6 + 48px);
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.gallery-stage:focus-visible {
  outline-offset: -4px;
}
.gallery-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y pinch-zoom;
}
.gallery-image-link {
  position: absolute;
  display: block;
  cursor: pointer;
  -webkit-user-drag: none;
  touch-action: pan-y pinch-zoom;
}
.work-gallery[data-gallery-state="loading"] .gallery-enhancement {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  visibility: hidden;
  pointer-events: none;
}
.gallery-caption {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 2rem;
  padding-block: 2rem 2.5rem;
  min-height: 15rem;
}
.gallery-title-block {
  flex: 1.2;
  min-width: min(100%, 12rem);
}
.gallery-kind,
.gallery-role,
.gallery-status {
  font-size: 0.75rem;
  line-height: 1.7;
  color: #a5a5a2;
}
.gallery-kind {
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.gallery-title {
  font-size: 3.625rem;
  line-height: 1.02;
}
.gallery-title-link {
  text-decoration: none;
}
.gallery-title-link:hover {
  text-decoration: underline;
}
.gallery-details {
  flex: 1;
  min-width: 0;
}
.gallery-description {
  max-width: 35ch;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #d6d6d3;
}
.gallery-role {
  margin-top: 0.75rem;
}
.gallery-status {
  margin-top: 0.25rem;
}
.gallery-case-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  min-height: 44px;
  max-width: 100%;
  padding-block: 0.5rem;
  margin-top: 1rem;
  border-bottom: 1px solid #929290;
  font-size: 0.875rem;
  text-decoration: none;
  transition: border-color 180ms ease;
}
.gallery-case-link:hover {
  border-color: var(--white);
}
.gallery-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  vertical-align: middle;
}
.gallery-controls {
  grid-column: 3;
  grid-row: 1;
  flex: 0 0 auto;
  text-align: right;
}
.gallery-counter {
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: #8c8c89;
  padding-bottom: 0.875rem;
}
.gallery-counter [data-gallery-current] {
  color: var(--white);
}
.gallery-arrows {
  display: flex;
  gap: 0.5rem;
}
.gallery-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #626260;
  background: transparent;
  border-radius: 0;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}
.gallery-arrow:hover:not(:disabled) {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}
.gallery-arrow:disabled {
  color: #656563;
  border-color: #292929;
  cursor: default;
}
.gallery-rotation .play-icon,
.gallery-rotation[data-paused="true"] .pause-icon { display: none; }
.gallery-rotation[data-paused="true"] .play-icon { display: block; }
.work-index-group {
  border-top: 1px solid #353535;
  padding-block: 1.5rem;
}
.work-group-label {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.65;
  text-transform: uppercase;
  color: #b1b1ae;
  margin-bottom: 1.5rem;
}
.work-group-label > span {
  color: #939390;
}
.work-index-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 2rem;
}
.work-entry {
  flex: 0 1 calc((100% - 4rem) / 3);
  min-width: 0;
}
.work-cover {
  display: block;
  aspect-ratio: 16 / 10;
  background: #171717;
  border: 1px solid #3b3b3b;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1);
  transition: filter 300ms ease;
}
.work-cover:hover img,
.work-cover:focus-visible img {
  filter: grayscale(0);
}
.work-entry-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}
.work-entry-heading > div {
  min-width: 0;
  flex: 1;
}
.work-entry-number {
  flex: 0 0 auto;
  color: #939390;
  font-size: 0.75rem;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}
.work-kind {
  color: #a4a4a1;
  font-size: 0.75rem;
  line-height: 1.7;
  margin-bottom: 0.25rem;
}
.work-name {
  font-size: 1.875rem;
  line-height: 1.15;
}
.work-name a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 44px;
  text-decoration: none;
  transition: color 180ms ease;
}
.work-name a:hover {
  text-decoration: underline;
}
.work-name .gallery-icon {
  width: 18px;
  height: 18px;
  color: #a4a4a1;
}
.work-description,
.work-role,
.work-status {
  color: #b4b4b0;
  font-size: 0.8125rem;
  line-height: 1.7;
  margin-top: 0.75rem;
}
.work-role,
.work-status {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}
.work-gallery.is-gallery-ready .work-cover,
.work-gallery.is-gallery-ready .work-description,
.work-gallery.is-gallery-ready .work-role,
.work-gallery.is-gallery-ready .work-status {
  display: none;
}
.work-gallery.is-gallery-ready .work-index-group {
  display: flex;
  gap: 3rem;
}
.work-gallery.is-gallery-ready .work-group-label {
  flex: 0 0 11rem;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0;
  gap: 0.125rem;
}
.work-gallery.is-gallery-ready .work-index-list {
  flex: 1;
  min-width: 0;
  gap: 1.5rem 2rem;
}
.work-gallery.is-gallery-ready .work-entry {
  flex-basis: calc((100% - 4rem) / 3);
}
.work-gallery.is-gallery-ready .work-entry.is-current .work-entry-number {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.35em;
}
@media (max-width: 1100px) {
  .gallery-title {
    font-size: 3rem;
  }
  .work-gallery.is-gallery-ready .work-index-group {
    gap: 2rem;
  }
  .work-gallery.is-gallery-ready .work-entry {
    flex-basis: calc((100% - 2rem) / 2);
  }
}
@media (max-width: 959px) {
  .gallery-stage {
    height: 55vw;
  }
  .gallery-caption {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    min-height: 0;
  }
  .gallery-title-block {
    flex: 1 1 calc(100% - 12rem);
  }
  .gallery-controls { order: 2; }
  .gallery-details {
    order: 3;
    flex: 1 1 100%;
  }
  .gallery-description {
    max-width: 46ch;
  }
  .work-entry {
    flex-basis: calc((100% - 2rem) / 2);
  }
}
@media (max-width: 699px) {
  .work-gallery .section-intro {
    margin-bottom: 1rem;
  }
  .gallery-stage {
    height: 64vw;
    min-height: 15rem;
  }
  .gallery-caption {
    padding-block: 1.25rem 2rem;
    gap: 1rem;
  }
  .gallery-title {
    font-size: 2.25rem;
  }
  .gallery-title-block {
    flex-basis: calc(100% - 10rem);
    min-width: min(100%, 10rem);
  }
  .gallery-kind {
    font-size: 0.75rem;
  }
  .gallery-arrow {
    width: 44px;
    height: 44px;
  }
  .gallery-arrows {
    gap: 0.25rem;
  }
  .gallery-counter {
    padding-bottom: 0.5rem;
  }
  .gallery-details {
    flex-basis: 100%;
  }
  .gallery-description {
    font-size: 0.875rem;
  }
  .work-gallery.is-gallery-ready .work-index-group {
    display: block;
  }
  .work-gallery.is-gallery-ready .work-group-label {
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 1.5rem;
  }
  .work-entry,
  .work-gallery.is-gallery-ready .work-entry {
    flex-basis: 100%;
  }
  .work-name {
    font-size: 1.75rem;
  }
  .work-index-list {
    gap: 2rem;
  }
  .work-entry-heading {
    gap: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-enhancement {
    display: none !important;
  }
}
