.hero-photo-frame {
  position: relative;
  width: min(100%, 420px);
  height: auto;
  aspect-ratio: 105 / 122;
  padding: 0;
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  background: transparent;
}

.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide[hidden] {
  display: none;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide[data-carousel-name='Jack Black'] img {
  object-position: 100% center;
}

.photo-caption [hidden],
.carousel-controls[hidden] {
  display: none;
}

.carousel-controls {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
}

.carousel-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.carousel-controls button:hover {
  border-color: var(--ink);
}

.carousel-controls .carousel-arrow {
  font-size: 21px;
  line-height: 1;
}

.carousel-controls .carousel-indicator {
  width: 40px;
  border: 0;
  padding: 0;
}

.carousel-indicator::after {
  width: 7px;
  height: 7px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  content: '';
}

.carousel-indicator[aria-pressed='true']::after {
  background: var(--ink);
}

.carousel-controls .carousel-toggle {
  min-width: 58px;
  border: 0;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.carousel-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
