/* The photos of the open listing (js/realty85/listingPhotos.js). */
#listingPhotos { position: relative; width: 100%; aspect-ratio: 3 / 2; max-height: 70vh; background: #111; border-radius: 6px; overflow: hidden; }
#listingPhotos[hidden] { display: none; }
#listingPhotosFull { position: fixed; inset: 0; z-index: 6500; background: #000; }
.lp-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none; outline-offset: -3px; }
.lp-track::-webkit-scrollbar { display: none; }
#listingPhotos .lp-track { cursor: zoom-in; }
#listingPhotosFull .lp-track { touch-action: pan-x pinch-zoom; }
.lp-slide { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; }
.lp-photo { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lp-missing .lp-photo { display: none; }
.lp-missing::after { content: "This photo is not available"; color: #bbb; font-size: 14px; }
.lp-button { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.lp-prev, .lp-next { touch-action: pan-y; }
.lp-button[hidden] { display: none; }
.lp-button:hover, .lp-button:focus-visible { background: rgba(0, 0, 0, .85); }
.lp-prev { left: 8px; }
.lp-next { right: 8px; }
.lp-count { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 14px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 14px; line-height: 1.3; pointer-events: none; }
#listingPhotosFull .lp-count { right: auto; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); }
#listingPhotosFull .lp-close { top: calc(12px + env(safe-area-inset-top)); right: 12px; transform: none; font-size: 22px; }
