/* The results cards use the directory's existing mobile breakpoint. */
@media (max-width: 1024px) {
  #listeo-listings-container .listing-image-container-nl > a > .slider-wrapper-nl:has(> .slider-image-nl:nth-child(2)) {
    touch-action: pan-y pinch-zoom;
  }
}

/* Match the existing one-photo layout of the listing's full-width gallery. */
@media (max-width: 766px) {
  body.single-listing .listing-slider.mfp-gallery-container[data-gallery-title] > button.slick-arrow {
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    /* The theme also translates these buttons horizontally on hover. */
    transform: translateY(-50%);
  }

  body.single-listing .listing-slider.mfp-gallery-container[data-gallery-title] > button.slick-prev {
    left: max(8px, env(safe-area-inset-left, 0px));
  }

  body.single-listing .listing-slider.mfp-gallery-container[data-gallery-title] > button.slick-next {
    right: max(8px, env(safe-area-inset-right, 0px));
  }

  body.single-listing .listing-slider.mfp-gallery-container[data-gallery-title] > button.slick-arrow:not(.slick-hidden) {
    opacity: 1;
    visibility: visible;
  }

  body.single-listing .listing-slider.mfp-gallery-container[data-gallery-title] > button.slick-arrow::before {
    display: inline-block;
    left: auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgb(20 20 20 / 62%);
    color: #fff;
    font-size: 13px;
    line-height: 30px;
  }

  body.single-listing .listing-slider.mfp-gallery-container[data-gallery-title] > button.slick-arrow:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: -2px;
  }
}
