.work-page {
  --work-serif: 'Cormorant Garamond', Georgia, serif;
  margin-bottom: clamp(4rem, 8vw, 7.5rem);
  color: var(--ink);
}

.work-page .page-intro {
  margin-bottom: clamp(1.25rem, 2.6vw, 2.3rem);
}

.work-filters {
  display: flex;
  justify-content: center;
  gap: clamp(.8rem, 2.3vw, 2rem);
  padding-bottom: clamp(1.25rem, 2.6vw, 2.3rem);
}

.work-filters[hidden],
.work-gallery [hidden] {
  display: none;
}

.work-filters button {
  padding: .65rem .13rem .42rem;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: 400 .92rem/1.3 'DM Sans', sans-serif;
}

.work-filters button[aria-pressed="true"],
.work-filters button:hover {
  border-bottom-color: var(--gold);
  color: var(--ink);
}

.work-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem);
}

.work-gallery article {
  isolation: isolate;
  position: relative;
  min-width: 0;
  scroll-margin-block-start: 2rem;
}

.work-feature {
  grid-column: 1 / -1;
}

.work-feature-poster {
  position: relative;
  isolation: isolate;
  aspect-ratio: 2.4;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.work-feature-poster > img,
.work-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-feature-poster > img {
  position: absolute;
  inset: 0;
  object-position: center 48%;
}

.work-feature-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgb(26 21 15 / .64), rgb(32 25 18 / .13) 42%, transparent 68%);
}

.work-feature-caption {
  pointer-events: none;
}

.work-feature-caption > div {
  position: absolute;
  z-index: 1;
  bottom: clamp(1.2rem, 2.5vw, 2.75rem);
  left: clamp(1.35rem, 3vw, 3.15rem);
  right: 10rem;
}

.work-page .work-type {
  margin: 0 0 .33rem;
  font: 500 .81rem/1.4 'DM Sans', sans-serif;
  letter-spacing: .08em;
}

.work-type span {
  padding-inline: .22em;
}

.work-page .work-credit {
  margin: .5rem 0 0;
  font-size: .86rem;
  line-height: 1.4;
}

.work-caption .work-credit {
  color: var(--muted);
}

.work-feature h2,
.work-story h2 {
  margin: 0;
  font: 500 clamp(2.45rem, 4.9vw, 5.15rem)/.97 var(--work-serif);
  letter-spacing: -.043em;
}

.work-film-button {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  gap: .6rem;
  padding: clamp(1.2rem, 2.5vw, 2.75rem) clamp(1.35rem, 3vw, 3.15rem);
  border: 0;
  background: transparent;
  color: inherit;
  font: 500 .91rem/1.4 'DM Sans', sans-serif;
  pointer-events: auto;
}

.work-play-mark {
  display: inline-grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgb(255 253 249 / .78);
  border-radius: 50%;
}

.work-play-mark::after {
  content: '';
  width: 0;
  height: 0;
  margin-left: .17rem;
  border-block: .29rem solid transparent;
  border-left: .46rem solid currentColor;
}

.work-feature:has(.work-film-button:hover) .work-play-mark {
  background: rgb(255 253 249 / .15);
}

.work-film-button:focus-visible {
  outline-color: var(--paper);
}

.work-feature-poster:has(.work-film-button:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.work-film-button > span:last-child {
  line-height: 2.8rem;
}

.work-compare {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 1.5rem;
  row-gap: .45rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.work-compare p {
  margin: 0;
  font-size: .97rem;
  color: var(--muted);
}

.work-compare a {
  color: var(--ink);
  font-size: .92rem;
  text-decoration: underline;
  text-decoration-color: var(--gold-line);
  text-underline-offset: .25rem;
}

.work-image {
  overflow: hidden;
  aspect-ratio: 1.88;
  background: var(--rule);
}

.work-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 .95rem;
  border-bottom: 1px solid var(--rule);
}

.work-caption .work-type {
  color: var(--accent);
}

.work-story h2 {
  font-size: clamp(1.95rem, 3.2vw, 3.1rem);
}

.work-card-link {
  flex: 0 0 auto;
  display: flex;
  color: var(--accent);
}

.work-card-link .work-play-mark {
  border-color: var(--rule);
}

.work-card-link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.work-card-link:hover .work-play-mark {
  border-color: currentColor;
}

.work-gallery[data-filter="engagements"] .work-story {
  grid-column: 1 / -1;
  width: min(100%, 57rem);
  justify-self: center;
}

@media (min-width: 691px) {
  .work-gallery[data-filter="weddings"] .work-feature {
    grid-column: auto;
  }

  .work-gallery[data-filter="weddings"] .work-feature-poster {
    aspect-ratio: 1.88;
  }

  .work-gallery[data-filter="weddings"] .work-feature-caption > div {
    right: 4.8rem;
  }

  .work-gallery[data-filter="weddings"] .work-feature h2 {
    font-size: clamp(2.15rem, 3.3vw, 3.2rem);
  }

  .work-gallery[data-filter="weddings"] .work-film-button > span:last-child {
    display: none;
  }
}

@media (max-width: 690px) {
  .work-gallery {
    grid-template-columns: 1fr;
  }

  .work-feature-poster {
    aspect-ratio: 1.42;
  }

  .work-feature-caption > div {
    right: 4.8rem;
  }

  .work-film-button > span:last-child {
    display: none;
  }

}
