/* One photo frame per gallery (Ahmed, 5 Dec 2026; v3: the controls live on the photo itself, with no boxes or backgrounds).
   Thin lines across the foot of the photo, one per photo, and two thin arrowheads at its sides. They are drawn in white with
   mix-blend-mode:difference, so they invert whatever is under them and stay readable on a light or a dark photo.
   gallery.js adds .by-slider and the controls; without it the first photo still shows alone. */
.p-gallery{display:block; position:relative; aspect-ratio:var(--photo-ratio,4/5); border:1px solid var(--line); overflow:hidden; background:var(--surface);}
.p-gallery > .p-photo{position:absolute; inset:0; border:0; aspect-ratio:auto;}
.p-gallery > .p-photo ~ .p-photo{display:none;}
.p-preview-frame{position:relative;}
.p-preview-frame > img{position:absolute; inset:0;}
.p-preview-frame > img ~ img{display:none;}

.by-slider{cursor:pointer;}
.by-slider:focus-visible{outline:2px solid var(--gold); outline-offset:3px;}
.by-slider > .by-off{display:none !important;}
.by-slider > .by-on{display:block !important;}

.by-lines, .by-nav{position:absolute; z-index:2; mix-blend-mode:difference; color:#fff;}
.by-lines{left:20px; right:20px; bottom:18px; display:flex; gap:6px;}
.by-line{flex:1; height:1px; color:inherit; background:currentColor; opacity:.45; border:0; padding:0; cursor:pointer; position:relative; transition:opacity .25s ease;}
.by-line::before{content:""; position:absolute; inset:-10px 0;}
.by-line.is-on{opacity:1; height:2px;}
.by-nav{top:0; bottom:0; width:72px; display:flex; align-items:center; justify-content:center; background:none; border:0; cursor:pointer;
  opacity:0; transition:opacity .25s ease;}
.by-slider:hover .by-nav, .by-nav:focus-visible{opacity:1;}
.by-nav:focus-visible{outline:none;}
.by-nav svg{width:12px; height:24px; stroke:currentColor; fill:none; stroke-width:1.2; stroke-linecap:round; stroke-linejoin:round;}
.by-back{right:0;}
.by-fwd{left:0;}
@media (hover:none){ .by-nav{opacity:.9;} }
@media (prefers-reduced-motion:no-preference){ .by-slider > .by-on{animation:by-fade .35s ease;} }
@keyframes by-fade{from{opacity:.4} to{opacity:1}}

/* phones and narrow screens: the photo comes first, above the title and the price (Ahmed, 5 Dec 2026) */
@media (max-width:900px){ .p-hero > .p-gallery{order:-1;} }
