.photo-carousel-track {
  display: grid;
  grid-auto-flow: column;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.photo-carousel:hover .photo-carousel-track,
.photo-carousel:focus-within .photo-carousel-track {
  scrollbar-width: thin;
}

.photo-carousel-track::-webkit-scrollbar {
  height: 0;
}

.photo-carousel:hover .photo-carousel-track::-webkit-scrollbar,
.photo-carousel:focus-within .photo-carousel-track::-webkit-scrollbar {
  height: 8px;
}

.photo-carousel-track::-webkit-scrollbar-track {
  background: transparent;
}

.photo-carousel-track::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(93, 104, 95, .45);
}

.photo-carousel-slide {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d9d2c4;
  border-radius: 8px;
  background: #ffffff;
  transition: box-shadow .2s ease, transform .2s ease;
}

.photo-carousel-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-carousel-video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #111111;
}

.photo-carousel-slide:hover {
  z-index: 2;
  box-shadow: 0 10px 26px rgba(29, 37, 32, .22);
  transform: scale(1.15);
}

.photo-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.photo-carousel-track {
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.photo-carousel-slide {
  scroll-snap-align: start;
}

.photo-carousel-remove {
  position: absolute;
  top: .5rem;
  right: .5rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
}

.photo-carousel-remove input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.photo-carousel-remove svg {
  display: block;
}

.photo-carousel-remove:has(input:checked) {
  background: #dc3545;
  color: #ffffff;
}

.photo-carousel-button {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .82);
  font-size: 0;
  line-height: 0;
  text-shadow: 0 2px 10px rgba(29, 37, 32, .75);
  transform: translateY(-50%);
}

.photo-carousel-button::before {
  font-size: 4.5rem;
  line-height: 1;
  transform: translateY(-.08em);
}

.photo-carousel-button:disabled {
  opacity: .28;
  pointer-events: none;
}

.photo-carousel-button-prev {
  left: .25rem;
}

.photo-carousel-button-prev::before {
  content: "\2039";
}

.photo-carousel-button-next {
  right: .25rem;
}

.photo-carousel-button-next::before {
  content: "\203a";
}
