.portfolio-gallery {
  display: grid;
  grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 6vw, 5rem);
  max-width: 52rem;
}

.portfolio-gallery__stage {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #e8e4d7;
}

.portfolio-gallery__stage img {
  height: 100%;
  object-fit: contain;
}

.portfolio-gallery__category {
  margin: 0 0 .45rem;
  color: var(--muted);
  font-size: .9rem;
}

.portfolio-gallery__info h3 {
  margin: 0;
  font: 400 clamp(2rem, 4vw, 3.2rem)/1.12 var(--serif);
  letter-spacing: -.025em;
}

.portfolio-gallery__caption {
  max-width: 21rem;
  margin: .8rem 0 0;
  color: var(--muted);
}

.portfolio-gallery__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.portfolio-gallery__playback {
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid #fff9eb80;
  border-radius: 50%;
  background: #252823b8;
  color: #fff9eb;
}

.portfolio-gallery__playback[hidden] {
  display: none;
}

.portfolio-gallery__playback:hover,
.portfolio-gallery__playback:focus-visible {
  background: #252823;
}

.portfolio-gallery__playback::before {
  content: "";
  margin-left: 2px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}

.portfolio-gallery__playback[data-playing="true"]::before {
  width: 10px;
  height: 12px;
  margin-left: 0;
  border: 0;
  border-inline: 3px solid currentColor;
}

@media (max-width: 600px) {
  .portfolio-gallery {
    grid-template-columns: minmax(0, 1fr);
    max-width: 24rem;
  }
}
