body[data-variant="e"] .location-carousel {
  position: relative;
}

html[data-theme] body[data-variant="e"] .location-card {
  opacity: 1;
}

body[data-variant="e"] .location-card::before {
  display: none;
}

body[data-variant="e"] .location-carousel[data-slide-direction] .location-card.is-active > .location-preview-frame {
  animation: none;
  background: transparent;
}

html[data-theme] body[data-variant="e"] .location-card,
html[data-theme] body[data-variant="e"] .location-card.is-active,
.location-card:focus-within {
  box-shadow: none;
}

.location-carousel-image-controls {
  position: absolute;
  z-index: 5;
  top: 50%;
  right: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  padding-inline: calc(var(--location-edge, 22px) + 18px);
  pointer-events: none;
  transform: translateY(-50%);
}

.location-carousel-image-controls button {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 50%;
  background: rgba(12, 8, 6, .55);
  color: #fff;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.location-carousel-image-controls .ui-icon {
  width: 20px;
  height: 20px;
}

body[data-variant="e"] .location-card .location-preview {
  /* Keep the photograph at its intended crop instead of magnifying it for parallax. */
  transform: none !important;
  object-position: center center !important;
  image-rendering: auto;
  filter: none;
  transition: opacity .35s ease;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  body[data-variant="e"] .location-card .location-preview {
    transform: none !important;
    will-change: auto;
  }
}

@media (hover: hover) and (pointer: fine) {
  .location-carousel-image-controls button:hover {
    background: rgba(33, 16, 8, .8);
  }
}

@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
  .location-carousel-image-controls {
    display: none;
  }
}
