/* Karta produktu (plan 03; makieta karta-produktu-v080-basic.html). Uchwyt jnr-produkt — tylko na kartach, po baza.css.
   Kolejne zadania planu 03 dopisują na końcu: galerię (Task 6), szczegóły (Task 7), „Pasuje do” (Task 8), pasek zakupu (Task 9). */

/* Reset linków makiety tylko w naszych kontenerach (:where() — zerowa specyficzność, jak .j-dom i .j-lista w planie 02).
   Linki w treści opisu i sekcji odzyskują kolor marki i podkreślenie w bloku szczegółów (WCAG 1.4.1). */
:where(.j-produkt, .buybar) a { color: inherit; text-decoration: none; }

/* okruszki — jak w makiecie karty */
.j-produkt .crumbs { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); padding: 10px 0 8px; white-space: nowrap; overflow: hidden; }
.j-produkt .crumbs a:hover { color: var(--brand); }
.j-produkt .crumbs svg { width: 13px; height: 13px; flex: none; }
.j-produkt .crumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; color: var(--ink); }

/* układ (telefon najpierw): galeria, zakup, szczegóły */
.pd { display: grid; gap: 14px; grid-template-areas: "gal" "buy" "det"; grid-template-columns: minmax(0, 1fr); }
.pd-gal { grid-area: gal; min-width: 0; }
.pd-buy { grid-area: buy; min-width: 0; }
.pd-det { grid-area: det; min-width: 0; }

/* blok zakupu */
.pd-brand { font: 700 11.5px/1 Barlow, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pd h1 { font: 800 23px/1.12 Barlow, sans-serif; margin: 5px 0 0; color: var(--ink); }
.vers { margin-top: 10px; }
.vers-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 2px; }
.vers-list::-webkit-scrollbar { display: none; }
.ver { flex: none; border: 1.5px solid var(--line); border-radius: 10px; padding: 7px 11px; display: grid; gap: 2px; font-size: 12.5px; color: var(--muted); background: #fff; }
.ver b { font: 700 14px/1.15 Barlow, sans-serif; color: var(--ink); }
.ver:hover { border-color: var(--brand); }
.ver[aria-current] { border-color: var(--brand); background: var(--brand-soft); }
.ver[aria-current] b { color: var(--brand-dk); }
.ver.oos { opacity: .7; }
.pd-price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-price { font: 800 32px/1 Barlow, sans-serif; color: var(--ink); }
.pd-price small { font: 600 12.5px/1 "Open Sans", sans-serif; color: var(--muted); margin-left: 5px; }
.pd-buy .stock { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--ok); font: 700 13.5px/1 "Open Sans", sans-serif; }
.pd-buy .stock i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px var(--ok-soft); }
.pd-buy .stock.ostatnie-sztuki i { box-shadow: 0 0 0 3px var(--err-soft); } /* kolor tekstu: baza.css (plan 01) */
.pd-buy .stock.out-of-stock { color: var(--muted); }
.pd-buy .stock.out-of-stock i { box-shadow: 0 0 0 3px #eceff3; }
.j-pasuje { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.j-pasuje svg { color: var(--brand-dk); width: 18px; height: 18px; margin-top: 1px; }
.pd-cta { display: flex; gap: 10px; margin-top: 12px; }
.j-ilosc { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; flex: none; }
.j-ilosc button { width: 36px; height: 48px; border: 0; padding: 0; background: none; font: 700 20px/1 Barlow, sans-serif; cursor: pointer; color: var(--ink); }
.j-ilosc button:hover { color: var(--brand); background: none; }
.btn-buy { flex: 1; padding: 14px 16px; font-size: 17px; }
.btn.loading { opacity: .6; pointer-events: none; }
.facts { margin-top: 14px; display: grid; gap: 10px; font-size: 13.5px; line-height: 1.4; border-top: 1px solid var(--line); padding-top: 13px; }
.facts > div { display: flex; gap: 10px; align-items: flex-start; }
.facts svg { color: var(--brand); width: 19px; height: 19px; margin-top: 1px; }
.facts b { font-weight: 700; }
.facts small { display: block; color: var(--muted); font-size: 12.5px; }
.keys { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.key { margin: 0; background: var(--bg); border-radius: 10px; padding: 11px 12px; display: grid; gap: 4px; align-content: start; }
.key b { font: 800 21px/1 Barlow, sans-serif; color: var(--ink); }
.key span { font-size: 12px; color: var(--muted); line-height: 1.3; }
ul.lead { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 14px; }
ul.lead li { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
ul.lead svg { color: var(--brand); width: 18px; height: 18px; margin-top: 2px; }
.cmp { display: inline-flex; align-items: center; gap: 3px; margin-top: 14px; font: 700 14.5px/1.2 Barlow, sans-serif; color: var(--brand); }
.cmp:hover { color: var(--brand-dk); }
.cmp svg { width: 16px; height: 16px; }

@media (min-width: 900px) {
  .j-produkt .crumbs { padding: 18px 0 14px; font-size: 13px; }
  .pd { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "gal buy" "det buy"; column-gap: 44px; row-gap: 34px; align-items: start; }
  .pd-brand { font-size: 12.5px; }
  .pd h1 { font-size: 34px; margin-top: 8px; }
  .vers { margin-top: 16px; }
  .vers-list { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; margin: 0; padding: 0; }
  .ver { padding: 9px 13px; }
  .pd-price-row { margin-top: 18px; }
  .pd-price { font-size: 42px; } /* makieta (zatwierdzony wygląd); spec §5.2 podaje 32 px — świadome odstępstwo */
  .pd-cta { margin-top: 14px; }
  .btn-buy { font-size: 18px; padding: 16px 18px; }
  .j-ilosc button { height: 52px; width: 40px; }
  .facts { margin-top: 18px; padding-top: 16px; font-size: 14px; }
}
/* Przyklejona kolumna zakupu tylko tam, gdzie mieści się w całości na ekranie pod przyklejonym nagłówkiem (spec §5.2).
   Klasę .przyklej ustawia pasek-zakupu.js po zmierzeniu bloku (wysokość zależy od liczby wersji, faktów i długości nazwy);
   bez JS kolumna przewija się razem ze stroną, więc jej dół nigdy nie zostaje pod krawędzią ekranu. */
@media (min-width: 1100px) {
  .pd-buy.przyklej { position: sticky; top: calc(var(--hh, 126px) + 14px); }
}
.ver-li { display: contents; } /* opakowanie role=listitem wokół linku wersji — układ jak przy samych linkach */
@media (min-width: 1100px) {
  .pd { column-gap: 56px; }
  .keys { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .key b { font-size: 20px; }
}

/* --- zgodność z Blocksy: przyciski, pola liczbowe, nagłówki i listy mają w Blocksy własne style --- */
.pd .j-ilosc button { min-height: 0; box-shadow: none; text-transform: none; letter-spacing: normal; }
.pd .j-ilosc input.qty { box-sizing: content-box; width: 20px; height: 16px; line-height: 16px; min-height: 0; margin: -4px -2px; padding: 4px 2px; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: center; font: 700 16px/1 Barlow, sans-serif; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.pd .j-ilosc input.qty::-webkit-inner-spin-button, .pd .j-ilosc input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pd .btn-buy { min-height: 0; padding: 14px 16px; border: 2px solid transparent; border-radius: 10px; font: 700 17px/1 Barlow, sans-serif; text-transform: none; letter-spacing: normal; box-shadow: none; }
@media (min-width: 900px) { .pd .btn-buy { padding: 16px 18px; font-size: 18px; } }
@media (min-width: 1100px) { .pd .j-ilosc input.qty { position: relative; top: -1px; } } /* na szerokim ekranie pole liczbowe siedzi o 1 px niżej niż <output> makiety (zaokrąglenie) */
.pd .key { text-wrap: wrap; } /* kafel to <li> (dziedziczy „pretty” z baza.css), w makiecie <div> — łamanie jak w makiecie */

/* --- galeria (Task 6) --- */
.gal { position: relative; margin: 0 calc(var(--gut) * -1); }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #fff; overscroll-behavior-x: contain; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track figure { margin: 0; flex: 0 0 100%; scroll-snap-align: center; height: 262px; display: flex; align-items: center; justify-content: center; padding: 6px var(--gut); }
.gal-track img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.gal-count { position: absolute; right: var(--gut); top: 8px; background: rgba(20,33,61,.8); color: #fff; font: 700 12px/1 Barlow, sans-serif; padding: 5px 8px; border-radius: 6px; }
.gal-dots { display: flex; justify-content: center; gap: 5px; padding-top: 4px; }
.gal-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--ctl); transition: width .2s, background .2s; }
.gal-dots i.on { background: var(--brand); width: 16px; }
.gal-arrow, .gal-thumbs { display: none; }
/* bez JS licznik i kropki nie śledzą położenia — nie pokazujemy fałszywego „1 / N”. Licznik jest pozycjonowany bezwzględnie (display:none),
   a kropki zostają w układzie (visibility:hidden), by dodanie .js nie przesunęło treści pod galerią (CLS). */
.pd-gal:not(.js) .gal-count { display: none; }
.pd-gal:not(.js) .gal-dots { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .gal-dots i { transition: none; } }
@media (min-width: 900px) {
  .gal { margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
  .gal-track figure { height: 480px; padding: 24px; }
  .gal-count { right: 14px; top: 14px; }
  .gal-dots { display: none; }
  .pd-gal.js .gal-arrow { display: inline-flex; position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.92); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 16px -10px rgba(20,33,61,.5); min-height: 0; }
  .pd-gal.js .gal-arrow:hover { border-color: var(--brand); color: var(--brand); background: rgba(255,255,255,.92); }
  .gal-arrow.prev { left: 12px; }
  .gal-arrow.next { right: 12px; }
  /* miniatury zajmują miejsce od razu (bez JS tylko niewidoczne), więc dodanie .js przez galeria.js nie przesuwa „Opisu” w dół (CLS) */
  .pd-gal .gal-thumbs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
  .pd-gal:not(.js) .gal-thumbs { visibility: hidden; }
  .pd-gal .gal-thumbs button { border: 1.5px solid var(--line); border-radius: 8px; padding: 3px; background: #fff; aspect-ratio: 1; cursor: pointer; min-height: 0; box-shadow: none; }
  .pd-gal .gal-thumbs button:hover { border-color: #b9c6dc; background: #fff; }
  .pd-gal .gal-thumbs button[aria-current="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
  .gal-thumbs img { width: 100%; height: 100%; object-fit: contain; display: block; }
}
@media (min-width: 1100px) {
  .gal-track figure { height: 540px; }
}

/* --- szczegóły: akordeon i sekcje (Task 7) --- */
.acc { border-top: 1px solid var(--line); margin-top: 8px; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 16px 0; font: 800 18px/1.2 Barlow, sans-serif; color: var(--ink); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .t { flex: 1; }
.acc summary small { font: 600 12.5px/1.2 "Open Sans", sans-serif; color: var(--muted); text-align: right; }
.acc summary > svg { color: var(--muted); transition: transform .2s; }
.acc details[open] > summary > svg { transform: rotate(180deg); }
.acc .body { padding: 0 0 20px; font-size: 14.5px; color: var(--text-2); }
.acc .body h2, .acc .body h3 { font: 800 16.5px/1.25 Barlow, sans-serif; margin: 18px 0 4px; color: var(--ink); }
.acc .body > :first-child, .acc .body h2:first-child, .acc .body h3:first-child { margin-top: 0; }
.acc .body p { margin: 0 0 8px; }
.acc .body ul, .acc .body ol { margin: 0 0 10px; padding-left: 18px; }
.acc .body li { margin-bottom: 3px; }
.acc .body img { max-width: 100%; height: auto; }
/* linki w treści odróżnione nie tylko kolorem (WCAG 1.4.1) — odstępstwo od makiety, gdzie część wyglądała jak tekst */
.acc .body a:where(:not([class])), .acc .body a.j-link { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.acc .body a.j-link { font-weight: 700; }
.woocommerce-product-details__short-description { margin-bottom: 12px; }
.acc .spec { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.acc .spec th, .acc .spec td { text-align: left; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); vertical-align: top; background: none; }
.acc .spec tr:last-child th, .acc .spec tr:last-child td { border-bottom: 0; }
.acc .spec th { font-weight: 600; color: var(--muted); width: 44%; padding-right: 12px; }
.acc .spec td { font-weight: 600; color: var(--ink); }
.acc .body .inbox { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.acc .body .inbox li { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.acc .inbox svg { color: var(--brand); width: 18px; height: 18px; margin-top: 2px; }
.acc .tbl-ship { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 10px; }
.acc .tbl-ship th, .acc .tbl-ship td { text-align: left; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); background: none; }
.acc .tbl-ship th { font: 700 12px/1 Barlow, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.acc .tbl-ship td:not(:first-child), .acc .tbl-ship th:not(:first-child) { text-align: right; padding-left: 12px; white-space: nowrap; }
.acc .tbl-ship td:nth-child(2) { font-weight: 700; color: var(--ink); }
.acc .tbl-ship td small { display: block; font: 400 12px/1.3 "Open Sans", sans-serif; color: var(--muted); margin-top: 2px; }
.care { background: var(--brand-soft); border-radius: 10px; padding: 12px 14px; color: var(--ink); margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-start; }
.care svg { color: var(--brand-dk); margin-top: 1px; }
.parts { display: grid; gap: 8px; margin: 4px 0 12px; }
.part { display: flex; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.part:hover { border-color: var(--brand); }
.part img { width: 54px; height: 54px; object-fit: contain; background: var(--bg); border-radius: 8px; mix-blend-mode: multiply; flex: none; }
.part b { display: block; font: 700 14.5px/1.25 Barlow, sans-serif; color: var(--ink); }
.part span { font-size: 12.5px; color: var(--muted); }
.part .pp { margin-left: auto; font: 800 17px/1 Barlow, sans-serif; white-space: nowrap; color: var(--ink); }
.files { display: grid; gap: 8px; }
.acc .files a { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.acc .files a:hover { border-color: var(--brand); color: var(--brand); }
.files a svg { color: var(--brand); flex: none; }
.files a small { margin-left: auto; font-weight: 600; color: var(--muted); }
/* GPSR z mu-pluginu jnr-gpsr-produkt (ma własny <style> w treści — nadpisujemy wyższą specyficznością, tokeny z makiety) */
.acc .jnr-gpsr { max-width: none; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.acc .jnr-gpsr h3 { font: 800 15px/1.25 Barlow, sans-serif; margin: 18px 0 6px; color: var(--ink); }
.acc .jnr-gpsr h3:first-child { margin-top: 0; }
.acc .jnr-gpsr table { width: 100%; border-collapse: collapse; margin: 0 0 6px; }
.acc .jnr-gpsr th, .acc .jnr-gpsr td { padding: 6px 12px 6px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.acc .jnr-gpsr th { width: 34%; color: var(--muted); font-weight: 600; }
.acc .jnr-gpsr th.jnr-gpsr-group { width: auto; padding-top: 14px; color: var(--ink); font: 700 12px/1.2 Barlow, sans-serif; letter-spacing: .06em; text-transform: uppercase; border-bottom: 2px solid var(--line); }
.acc .jnr-gpsr ul { margin: 0 0 10px; padding-left: 18px; }
.acc .jnr-gpsr a { color: var(--brand); text-decoration: underline; }
.acc .jnr-gpsr-note { font-size: 12.5px; color: var(--muted); }
/* opinie — szablon WooCommerce single-product-reviews.php */
.acc #reviews h2 { font: 800 17px/1.25 Barlow, sans-serif; margin: 0 0 10px; color: var(--ink); }
.acc #reviews .commentlist { list-style: none; margin: 0 0 16px; padding: 0; }
.acc #reviews .comment_container { border-bottom: 1px solid var(--line); padding: 10px 0; }
.acc #review_form #reply-title { display: block; font: 800 16.5px/1.25 Barlow, sans-serif; color: var(--ink); margin-bottom: 8px; }
@media (prefers-reduced-motion: reduce) { .acc summary > svg { transition: none; } }
@media (min-width: 900px) {
  .acc { margin-top: 0; }
  .acc summary { font-size: 21px; padding: 19px 0; }
  .acc .body { font-size: 15px; }
  .acc .body .inbox { grid-template-columns: 1fr 1fr; }
}

/* --- przyklejony pasek zakupu (Task 9) --- */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -12px 28px -20px rgba(20,33,61,.55); padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); transform: translateY(110%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; }
.buybar.show { transform: none; visibility: visible; transition: transform .22s ease, visibility 0s; }
.buybar-in { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.buybar img, .bb-name { display: none; }
.bb-price { font: 800 22px/1 Barlow, sans-serif; color: var(--ink); }
.bb-sub { font-size: 12px; color: var(--ok); font-weight: 700; margin-top: 3px; white-space: nowrap; }
.buybar .btn { margin-left: auto; padding: 13px 16px; white-space: nowrap; min-height: 0; border-radius: 10px; text-transform: none; letter-spacing: normal; box-shadow: none; }
/* komunikat „Dodano do koszyka” nad paskiem, nie pod nim */
body.jnr-pasek-on .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (max-width: 899px) {
  .j-z-paskiem .footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .buybar, .buybar.show { transition: none; }
}
@media (min-width: 900px) {
  .buybar { left: auto; right: 24px; bottom: 24px; width: min(600px, calc(100vw - 48px)); border: 1px solid var(--line); border-radius: 14px; padding: 10px 10px 10px 12px; box-shadow: 0 18px 40px -20px rgba(20,33,61,.55); transform: translateY(calc(100% + 30px)); }
  .buybar img { display: block; width: 46px; height: 46px; object-fit: contain; background: var(--bg); border-radius: 8px; mix-blend-mode: multiply; flex: none; }
  .bb-name { display: block; font: 700 15px/1.2 Barlow, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; color: var(--ink); }
  .bb-price { font-size: 21px; }
  .buybar .btn { margin-left: 0; }
}

/* --- „Pasuje do” i wstawka Poradnika (Task 8) --- */
.j-produkt .rel .grid { margin: 0; }
/* wstawka mu-pluginu jnr-poradnik-cta-produkt (ma własny <style> z kolorem #0066cc — nadpisujemy tokenami nowej odsłony) */
.j-produkt .jnr-cta-poradnik { max-width: none; margin: 30px 0 0; border: 0; border-radius: 18px; background: var(--brand-soft); color: var(--ink); padding: 20px 22px; }
.j-produkt .jnr-cta-poradnik .jnr-cta-t { font: 800 19px/1.2 Barlow, sans-serif; color: var(--ink); margin: 0 0 6px; }
.j-produkt .jnr-cta-poradnik p { font-size: 14.5px; line-height: 1.6; margin: 0; }
.j-produkt .jnr-cta-poradnik a { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 900px) {
  .j-produkt .jnr-cta-poradnik { margin-top: 54px; padding: 28px 32px; }
  .j-produkt .jnr-cta-poradnik .jnr-cta-t { font-size: 24px; }
}

/* Pełny ekran galerii (galeria.js): zdjęcie w galerii jest przyciskiem, okno to natywny <dialog> z showModal(). */
.gal-track figure > .gal-zoom { flex: 1 1 auto; align-self: stretch; min-width: 0; display: flex; align-items: center; justify-content: center; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; min-height: 0; color: inherit; font: inherit; cursor: default; -webkit-tap-highlight-color: transparent; }
.pd-gal.zoom .gal-track figure > .gal-zoom { cursor: zoom-in; }
.gal-track figure > .gal-zoom:focus-visible { outline-offset: -3px; }
dialog.gal-full { border: 0; padding: 0; margin: 0; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; background: #0d1526; color: #fff; overflow: hidden; }
dialog.gal-full[open] { display: flex; flex-direction: column; }
dialog.gal-full::backdrop { background: #0d1526; }
html:has(dialog.gal-full[open]) { overflow: hidden; }
.gal-full-track { flex: 1 1 auto; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.gal-full-track::-webkit-scrollbar { display: none; }
.gal-full-track figure { margin: 0; flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; padding: 56px 0 12px; box-sizing: border-box; }
.gal-full-track img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; background: #fff; }
.gal-full-close { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 22px; background: rgba(13,21,38,.85); color: #fff; font: 700 15px/1 Barlow, sans-serif; cursor: pointer; box-shadow: none; }
.gal-full-close:hover { background: #1c2b4a; color: #fff; border-color: #fff; }
.gal-full-count { position: absolute; top: 10px; left: 10px; z-index: 2; min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 22px; background: rgba(13,21,38,.85); font: 700 15px/1 Barlow, sans-serif; color: #fff; }
.gal-full-arrow { display: none; }
dialog.gal-full button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (min-width: 900px) {
  .gal-full-track figure { padding: 72px 72px 24px; }
  .gal-full-arrow { display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 52px; height: 52px; padding: 0; border: 1.5px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(13,21,38,.85); color: #fff; cursor: pointer; box-shadow: none; }
  .gal-full-arrow:hover { background: #1c2b4a; color: #fff; border-color: #fff; }
  .gal-full-arrow.prev { left: 14px; }
  .gal-full-arrow.next { right: 14px; }
}
