.photo-gallery-section {
  padding: 8px 0 28px;
}

.detail-photo-gallery {
  border-top: 1px solid #e2e5e8;
  padding-top: 36px;
}

.photo-gallery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.photo-gallery-heading h2,
.detail-photo-gallery h2 {
  margin: 0;
  text-align: left;
}

.photo-gallery-controls {
  display: flex;
  gap: 8px;
  flex: none;
}

.photo-gallery-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #d7dce1;
  border-radius: 50%;
  background: #fff;
  color: #131920;
  font-size: 22px;
  transition: border-color .2s, color .2s, opacity .2s;
}

.photo-gallery-controls button:hover:not(:disabled) {
  border-color: #ed080c;
  color: #ed080c;
}

.photo-gallery-controls button:disabled {
  cursor: default;
  opacity: .32;
}

.photo-gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  column-gap: 20px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.photo-gallery-track::-webkit-scrollbar {
  display: none;
}

.photo-gallery-card {
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}

.photo-gallery-card__button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #eef1f3;
}

.photo-gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .25s ease;
}

.photo-gallery-card__button:hover img {
  transform: scale(1.025);
}

.photo-gallery-card figcaption {
  padding: 11px 2px 0;
  color: #131920;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.gallery-large-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

@media (max-width: 1199px) {
  .photo-gallery-track {
    grid-auto-columns: calc((100% - 16px) / 2);
    column-gap: 16px;
  }
}

@media (max-width: 700px) {
  .photo-gallery-section {
    padding-bottom: 24px;
  }

  .detail-photo-gallery {
    padding-top: 28px;
  }

  .photo-gallery-heading {
    align-items: flex-end;
    margin-bottom: 14px;
  }

  .photo-gallery-heading h2 {
    font-size: 18px;
  }

  .photo-gallery-controls button {
    width: 40px;
    height: 40px;
  }

  .photo-gallery-track {
    grid-auto-columns: 100%;
    column-gap: 12px;
  }
}
