.gallery-slider {
  margin-top: 45px;
}
.gallery-track {
  position: relative;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar {
  display: none;
}
.gallery-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.gallery-photo {
  height: 560px;
  background: #eee8de;
  overflow: hidden;
}
.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-slide figcaption {
  min-height: 85px;
  padding: 20px 0 6px;
}
.gallery-slide h3 {
  font:
    24px Georgia,
    serif;
  font-weight: 400;
}
.gallery-slide p {
  font-size: 12px;
  margin-top: 5px;
}
.gallery-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 15px;
  border-top: 1px solid #dfd5c8;
}
.gallery-controls > button {
  width: 44px;
  height: 44px;
  border: 1px solid #b8a696;
  background: transparent;
  color: #a32942;
  font-size: 22px;
}
.gallery-controls > button:hover:not(:disabled) {
  background: #a32942;
  color: white;
}
.gallery-controls > button:disabled {
  opacity: 0.3;
  cursor: default;
}
.gallery-count {
  font-size: 11px;
  letter-spacing: 2px;
  min-width: 62px;
  text-align: center;
}
.gallery-dots {
  position: relative;
  margin-left: auto;
  display: flex;
  gap: 2px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 65%;
}
.gallery-dots button {
  flex-shrink: 0;
  width: 30px;
  height: 36px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 0;
}
.gallery-dots::-webkit-scrollbar {
  display: none;
}
.gallery-dots button::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d3c7ba;
}
.gallery-dots button.active::before {
  width: 18px;
  border-radius: 5px;
  background: #a32942;
}
@media (max-width: 800px) {
  .gallery-photo {
    height: 420px;
  }
  .gallery-dots {
    max-width: 50%;
  }
  .gallery-controls {
    gap: 8px;
  }
}
@media (max-width: 420px) {
  .gallery-photo {
    height: 360px;
  }
}
