.pd-album-gallery {
  width: 100%;
  min-width: 0;
  margin-top: 3.125rem;
}

.pd-album-gallery__carousel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.pd-album-gallery__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.pd-album-gallery__eyebrow {
  margin: 0 0 0.375rem;
  color: #355a25;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.pd-album-gallery__title {
  margin: 0;
  color: #17251a;
  font-size: clamp(1.35rem, 1.12rem + 0.9vw, 2rem);
  line-height: 1.2;
  text-wrap: balance;
}

.pd-album-gallery__controls {
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
}

.pd-album-gallery__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(46, 79, 32, 0.22);
  border-radius: 50%;
  background: #fff;
  color: #2e4f20;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.pd-album-gallery__nav:hover,
.pd-album-gallery__nav:focus-visible {
  border-color: #2e4f20;
  background: #2e4f20;
  color: #fff;
}

.pd-album-gallery__nav:focus-visible {
  outline: 3px solid rgba(46, 79, 32, 0.25);
  outline-offset: 2px;
}

.pd-album-gallery__nav:disabled {
  border-color: rgba(46, 79, 32, 0.12);
  background: #fff;
  color: rgba(46, 79, 32, 0.35);
  cursor: default;
}

.pd-album-gallery__track {
  --pd-album-gap: clamp(0.625rem, 2vw, 1rem);
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-flow: column dense;
  grid-auto-columns: clamp(16rem, 82vw, 22rem);
  gap: var(--pd-album-gap);
  width: 100%;
  max-width: 100%;
  height: clamp(31.25rem, 70vw, 43.75rem);
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  list-style: none;
}

.pd-album-gallery__track::-webkit-scrollbar {
  display: none;
}

.pd-album-gallery__track:focus-visible {
  outline: 3px solid rgba(46, 79, 32, 0.24);
  outline-offset: 0.25rem;
  border-radius: clamp(0.625rem, 2vw, 1.125rem);
}

.pd-album-gallery__item {
  min-width: 0;
  overflow: hidden;
  border-radius: clamp(0.625rem, 2vw, 1.125rem);
  scroll-snap-align: start;
}

.pd-album-gallery__item--full {
  grid-row: 1 / -1;
}

.pd-album-gallery__item--stack-top {
  grid-row: 1;
}

.pd-album-gallery__item--stack-bottom {
  grid-row: 2;
}

.pd-album-gallery__button {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(46, 79, 32, 0.08);
  border-radius: inherit;
  background: #fff;
  cursor: zoom-in;
}

.pd-album-gallery__button:hover,
.pd-album-gallery__button:focus-visible {
  opacity: 1;
  border-color: rgba(46, 79, 32, 0.42);
}

.pd-album-gallery__button:focus-visible {
  outline: 3px solid rgba(46, 79, 32, 0.25);
  outline-offset: -3px;
}

.pd-album-gallery__button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  background: #fff;
  transition: transform 220ms ease;
}

.pd-album-gallery__button:hover img,
.pd-album-gallery__button:focus-visible img {
  transform: scale(1.025);
}

@media (max-width: 47.99rem) {
  .pd-album-gallery__track {
    grid-auto-columns: calc((100% - var(--pd-album-gap)) / 2);
    height: clamp(22rem, 120vw, 31.25rem);
    scroll-snap-type: x mandatory;
  }

  .pd-album-gallery__item--full {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .pd-album-gallery__item--stack-top,
  .pd-album-gallery__item--stack-bottom {
    scroll-snap-align: none;
  }
}

@media (min-width: 48rem) {
  .pd-album-gallery__track {
    grid-auto-columns: clamp(18rem, 28vw, 28rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pd-album-gallery__nav,
  .pd-album-gallery__button img {
    transition: none;
  }
}
