/* Lot page additions (Nov 24) — loaded on lot pages after lots.css (inc/enqueue.php).
   1. The film: a "Full screen" button and the dialog it opens (main.js, [data-film-open]).
   2. A lot with a film and photos: a row of thumbnails under the film, opening in the lightbox.
   3. The site facts under the line read quieter than the lot facts above it.
   4. "All lots" is an outlined button.
   5. On the map, other lots' pins are links to their pages. */

/* 1. Full screen ----------------------------------------------------------------------------------------- */
.lot-film__full { appearance: none; position: absolute; right: 12px; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--radius, 2px); background: rgba(255, 255, 255, .94); color: var(--deep); font: 600 13px/1 var(--font-sans); letter-spacing: .02em; cursor: pointer; box-shadow: 0 1px 6px rgba(37, 40, 42, .25); transition: background var(--dur-hover, 150ms) ease, color var(--dur-hover, 150ms) ease; }
.lot-film__full .icon { width: 16px; height: 16px; }
.lot-film__full:hover, .lot-film__full:focus-visible { background: var(--deep); color: var(--white); }
.lot-film__full:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }

.lot-film-modal { width: min(1440px, 94vw); max-width: none; max-height: none; padding: 0; border: 0; background: #000; overflow: visible; }
.lot-film-modal::backdrop { background: rgba(20, 22, 23, .92); }
.lot-film-modal video { display: block; width: 100%; height: auto; max-height: 86vh; background: #000; }
.lot-film-modal__close { appearance: none; position: absolute; top: -52px; right: 0; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--deep); cursor: pointer; }
.lot-film-modal__close .icon { width: 22px; height: 22px; }
.lot-film-modal__close:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }
@media (max-width: 760px) {
	.lot-film-modal { width: 100vw; }
	.lot-film-modal__close { top: -56px; right: 8px; }
	.lot-film__full span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.lot-film__full { width: 44px; height: 44px; padding: 0; justify-content: center; }
}

/* 2. Photos under the film --------------------------------------------------------------------------------- */
.lot-film-photos { display: flex; flex-direction: column; gap: 8px; }
.lot-film-photos__label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lot-film-photos__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.lot-film-photos__thumb { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.lot-film-photos__thumb.is-extra { display: none !important; }
.lot-film-photos__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.lot-film-photos__thumb:hover img { transform: scale(1.04); }
.lot-film-photos__thumb:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }
@media (max-width: 560px) { .lot-film-photos__row { grid-template-columns: repeat(4, minmax(0, 1fr)); } .lot-film-photos__thumb:nth-child(5) { display: none; } }

/* No film: the large photo shows it opens bigger. */
.lot-photos__expand { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--radius, 2px); background: rgba(255, 255, 255, .92); color: var(--deep); box-shadow: 0 1px 4px rgba(37, 40, 42, .2); opacity: .9; transition: opacity var(--dur-hover, 150ms) ease; }
.lot-photos__expand .icon { width: 16px; height: 16px; }
.lot-photos__main:hover .lot-photos__expand { opacity: 1; }

/* 3. Site facts: lighter than the facts above the line ------------------------------------------------------ */
.lot-single__below .lot-single__ask .lot__facts--site { gap: 4px 28px; padding-top: 14px; border-top-color: color-mix(in srgb, var(--line) 70%, transparent); }
.lot-single__below .lot-single__ask .lot__facts--site dt { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--muted); opacity: .85; }
.lot-single__below .lot-single__ask .lot__facts--site dd { margin-bottom: 6px; font-size: var(--step--1, 15px); font-weight: 400; line-height: 1.45; color: var(--graphite); }
.lot-single__below .lot-single__ask .lot-sheet-note { font-size: 12.5px; opacity: .85; }

/* 4. "All lots" --------------------------------------------------------------------------------------------- */
.section .lot-single__back { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; margin: 0 0 16px; padding: 0 18px 0 14px; border: 1.5px solid var(--deep); border-radius: var(--radius, 2px); background: var(--white); color: var(--deep); font: 700 14px/1 var(--font-sans); letter-spacing: .02em; text-decoration: none; transition: background var(--dur-hover, 150ms) ease, color var(--dur-hover, 150ms) ease; }
.section .lot-single__back .icon { width: 18px; height: 18px; transition: transform var(--dur-hover, 150ms) ease; }
.section .lot-single__back:hover, .section .lot-single__back:focus-visible { background: var(--deep); color: var(--white); }
.section .lot-single__back:hover .icon { transform: translateX(-3px); }
.section .lot-single__back:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }

/* 5. Other lots on the map open their pages. */
.lots-map--single .leaflet-marker-icon.mp-pin-link { cursor: pointer; }
.lots-map--single .leaflet-marker-icon.mp-pin-link:hover .mp-pin { transform: scale(1.4); }

@media (prefers-reduced-motion: reduce) {
	.lot-film-photos__thumb img, .section .lot-single__back .icon { transition: none; }
}
