.ddp-photo-grid {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  grid-template-rows: minmax(0, 1fr);
  align-items: start;
  gap: 0;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 5;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  border-radius: 8px;
  background: #e3dcd4;
  margin-top: 32px;
}

.ddp-photo-grid::-webkit-scrollbar {
  display: none;
}

.ddp-photo-grid>.ddp-photo-link {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border-radius: 0;
  cursor: grab;
  background: transparent;
  -webkit-user-drag: none;
  user-select: none;
}

.ddp-photo-grid>.ddp-photo-link img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  transform: none;
  transition: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

.ddp-photo-grid.ddp-is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
}

.ddp-photo-grid.ddp-is-dragging>.ddp-photo-link {
  cursor: grabbing;
}

.ddp-slider-controls {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
  color: #51473f;
  font-family: inherit;
}

#STUDIO .ddp-slider-controls {
  margin-left: 40px;
  margin-right: 40px;
}

.ddp-slider-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #51473f66;
  background: transparent;
  color: inherit;
  border-radius: 50%;
  padding: 0;
  font: 28px/1 Georgia, serif;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.ddp-slider-arrow:disabled {
  opacity: .3;
  cursor: default;
}

.ddp-slider-center {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.ddp-slider-count {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}

.ddp-slider-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 0;
}

.ddp-slider-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.ddp-slider-dot:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .28;
}

.ddp-slider-dot[aria-current="true"]:before {
  opacity: 1;
  width: 7px;
  height: 7px;
}

.ddp-photo-grid:focus-visible,
.ddp-slider-controls button:focus-visible {
  outline: 2px solid #51473f;
  outline-offset: 4px;
}

@media(max-width:767px) {
  #STUDIO .ddp-slider-controls {
    margin-left: 24px;
    margin-right: 24px;
  }

  .ddp-slider-controls {
    gap: 8px;
  }

  .ddp-slider-dot {
    width: 24px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .ddp-photo-grid {
    scroll-behavior: auto;
  }
}