/* Let the photographs carry the gallery. */
.gallery {
  max-width: 714px;
  margin: 80px auto 0;
}

.gallery .gallery-heading {
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.gallery h3 {
  max-width: none;
  font-size: 32px;
  line-height: 1.15;
}

.gallery .carousel-controls {
  width: auto;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 2px;
}

.gallery .carousel-count,
.gallery .carousel-count > span {
  min-width: 0;
  font: 400 12px/1.3 var(--sans);
  letter-spacing: .02em;
}

.gallery .carousel-count {
  margin: 0 12px 0 0;
  opacity: .7;
  white-space: nowrap;
}

.gallery .carousel-count > span {
  opacity: .7;
}

.gallery .carousel-controls .round-button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 4px;
  font-size: 23px;
  background: transparent;
}

.gallery .carousel-controls .round-button:hover:not(:disabled) {
  background: #dbd5c810;
  color: inherit;
  transform: none;
}

.gallery .photo-track {
  gap: 24px;
  padding-bottom: 5px;
  mask-image: none;
}

.gallery .carousel-slide {
  flex: 0 0 calc((100% - 24px) / 2);
}

.gallery .photo-trigger {
  aspect-ratio: 3 / 4;
  border-radius: 5px;
}

.gallery .photo-trigger img {
  object-position: center;
}

@media (max-width: 760px) {
  .gallery {
    max-width: 420px;
    margin-top: 48px;
  }

  .gallery .gallery-heading {
    gap: 14px;
    margin-bottom: 19px;
    flex-wrap: wrap;
  }

  .gallery h3 {
    font-size: 27px;
  }

  .gallery .carousel-controls {
    margin-left: auto;
  }

  .gallery .carousel-count {
    font-size: 11px;
    margin-right: 7px;
  }

  .gallery .photo-track {
    gap: 22px;
  }

  .gallery .carousel-slide {
    flex-basis: 100%;
  }
}

.gallery h3{font:400 12px/1.4 var(--sans);letter-spacing:.16em;text-transform:uppercase}
