/* Szczecin Vibe — editorial photo stories. Photos always display uncropped. */
.sv-reader-gallery {
  --sv-gallery-green:#25794c;
  --sv-gallery-ink:#17201b;
  --sv-gallery-muted:#6b766f;
  margin:42px 0 48px;
  max-width:100%;
  clear:both;
  color:var(--sv-gallery-ink);
  font-family:inherit;
}
.sv-reader-gallery *, .sv-photo-dialog * { box-sizing:border-box; }
.sv-reader-gallery .sv-gallery-track {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  align-items:start;
}
.sv-reader-gallery .sv-gallery-slide {
  min-width:0; margin:0!important; padding:0!important;
  border:0!important; background:none!important; box-shadow:none!important;
}
.sv-reader-gallery .sv-gallery-slide > a {
  display:block; width:100%; overflow:hidden; line-height:0;
  border-radius:10px; text-decoration:none!important;
}
.sv-reader-gallery .sv-gallery-slide img {
  display:block; width:100%; height:auto; max-width:100%;
  margin:0!important; padding:0!important; border:0!important;
  box-shadow:none!important; border-radius:0!important;
}
.sv-reader-gallery .sv-gallery-slide figcaption {
  display:block; margin:9px 0 0; font-size:12px;
  font-weight:400; line-height:1.5; color:var(--sv-gallery-muted);
}
.sv-reader-gallery .sv-gallery-stage-head,
.sv-reader-gallery .sv-gallery-controls,
.sv-reader-gallery .sv-gallery-progress,
.sv-reader-gallery .sv-gallery-bottom,
.sv-reader-gallery .sv-gallery-thumbs,
.sv-reader-gallery .sv-gallery-shade { display:none; }

/* The enhanced carousel is a stable stage: no jumping when images differ in size. */
.sv-reader-gallery[data-enhanced] .sv-reader-gallery-stage {
  position:relative; isolation:isolate; width:100%; aspect-ratio:16/10;
  min-height:240px; border-radius:17px; background:#111714;
  overflow:hidden; box-shadow:0 12px 36px rgb(13 25 18 / 11%);
}
.sv-reader-gallery[data-enhanced] .sv-gallery-track {
  display:flex; gap:0; align-items:stretch; width:100%; height:100%;
  position:absolute; inset:0; overflow:visible;
  transform:translate3d(0,0,0);
  transition:transform .65s cubic-bezier(.22,1,.36,1);
  will-change:transform; touch-action:pan-y; user-select:none;
}
.sv-reader-gallery[data-enhanced] .sv-gallery-slide {
  flex:0 0 100%; width:100%; min-width:100%; height:100%;
  overflow:hidden; position:relative;
}
.sv-reader-gallery[data-enhanced] .sv-gallery-slide > a {
  display:flex; align-items:center; justify-content:center;
  width:100%; height:100%; background:transparent; border-radius:0;
  cursor:zoom-in; overflow:hidden;
}
.sv-reader-gallery[data-enhanced] .sv-gallery-slide img {
  display:block; width:100%!important; height:100%!important;
  max-width:100%!important; max-height:100%!important;
  object-fit:contain!important; object-position:center!important;
  border-radius:0!important;
}
.sv-reader-gallery[data-enhanced] .sv-gallery-slide figcaption { display:none!important; }
.sv-reader-gallery[data-enhanced] .sv-gallery-stage-head {
  position:absolute; display:flex; justify-content:space-between; align-items:center;
  gap:14px; top:16px; left:16px; right:16px; z-index:3; pointer-events:none;
}
.sv-reader-gallery .sv-gallery-kicker,
.sv-reader-gallery [data-gallery-counter] {
  display:inline-flex; align-items:center; justify-content:center;
  background:rgb(10 17 13 / 77%); color:#fff;
  border:1px solid rgb(255 255 255 / 16%);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  padding:9px 12px; border-radius:7px; min-height:34px;
  font-size:10px; font-weight:800; line-height:1;
  letter-spacing:.105em; white-space:nowrap;
}
.sv-reader-gallery [data-gallery-counter] {
  font-variant-numeric:tabular-nums; letter-spacing:.04em; min-width:65px;
  font-size:12px; font-weight:700;
}
.sv-reader-gallery[data-enhanced] .sv-gallery-controls {
  position:absolute; inset:0; z-index:2; padding:0 14px;
  display:flex; align-items:center; justify-content:space-between;
  margin:0; gap:0; grid-template-columns:none; pointer-events:none;
}
.sv-reader-gallery .sv-gallery-arrow {
  pointer-events:auto; display:grid; place-items:center;
  appearance:none; flex:0 0 46px; width:46px; height:46px;
  border:1px solid rgb(255 255 255 / 65%); border-radius:50%;
  background:rgb(255 255 255 / 93%); color:#16241a; cursor:pointer;
  box-shadow:0 4px 20px rgb(0 0 0 / 15%);
  transition:transform .2s, background .2s, box-shadow .2s;
}
.sv-reader-gallery .sv-gallery-arrow svg { width:21px; height:21px; }
@media (hover:hover) {
 .sv-reader-gallery .sv-gallery-arrow:hover {
   background:#fff; transform:scale(1.06); box-shadow:0 7px 22px rgb(0 0 0 / 22%);
 }
}
.sv-reader-gallery .sv-gallery-arrow:active { transform:scale(.94); }
.sv-reader-gallery[data-enhanced] .sv-gallery-progress {
  display:block; position:absolute; left:0; right:0; bottom:0;
  height:3px; background:rgb(255 255 255 / 23%); z-index:4;
  overflow:hidden; pointer-events:none;
}
.sv-reader-gallery .sv-gallery-progress-bar {
  display:block; width:100%; height:100%; transform:scaleX(0);
  transform-origin:left center; background:#b9e6c8;
}
.sv-reader-gallery[data-enhanced] .sv-gallery-bottom {
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:14px; margin:15px 0 5px;
}
.sv-reader-gallery .sv-gallery-caption {
  flex:1 1 auto; min-width:0; min-height:20px; margin:0!important;
  padding:0!important; font-size:12px; line-height:1.6;
  font-weight:500; color:#5a665f;
}
.sv-reader-gallery .sv-gallery-actions {
  flex:0 0 auto; display:flex; align-items:center; justify-content:flex-end; gap:17px;
}
.sv-reader-gallery .sv-gallery-zoom-tip {
  display:inline-flex; align-items:center; gap:6px; font-size:11px;
  font-weight:500; line-height:1.4; color:#77837a; white-space:nowrap;
}
.sv-reader-gallery .sv-gallery-zoom-tip svg { width:15px; height:15px; }
.sv-reader-gallery .sv-gallery-play {
  appearance:none; display:inline-flex; align-items:center;
  justify-content:center; gap:7px; min-height:30px; padding:4px 0 4px 10px;
  border:0; background:transparent; color:#314b3b; cursor:pointer;
  font-family:inherit; font-size:11px; font-weight:600; line-height:1.2; white-space:nowrap;
}
.sv-reader-gallery .sv-gallery-play-symbol {
  display:inline-block; width:11px; height:12px; position:relative; flex:0 0 11px;
}
.sv-reader-gallery .sv-gallery-play-symbol::before,
.sv-reader-gallery .sv-gallery-play-symbol::after {
  content:""; position:absolute; top:1px; bottom:1px; width:3px;
  border-radius:1px; background:currentColor;
}
.sv-reader-gallery .sv-gallery-play-symbol::before { left:1px; }
.sv-reader-gallery .sv-gallery-play-symbol::after { right:1px; }
.sv-reader-gallery.is-paused .sv-gallery-play-symbol::before {
  width:0; height:0; top:0; bottom:auto; left:2px; background:transparent;
  border-left:10px solid currentColor; border-top:6px solid transparent;
  border-bottom:6px solid transparent; border-radius:0;
}
.sv-reader-gallery.is-paused .sv-gallery-play-symbol::after { display:none; }
.sv-reader-gallery[data-enhanced] .sv-gallery-thumbs {
  display:flex; align-items:stretch; gap:9px; overflow-x:auto;
  padding:9px 2px 7px; margin-top:9px; width:100%;
  scrollbar-width:thin; scrollbar-color:#cad8ce transparent;
  overscroll-behavior-x:contain;
}
.sv-reader-gallery .sv-gallery-thumbs button {
  flex:0 0 77px; width:77px; height:59px; padding:3px;
  border:2px solid transparent; border-radius:9px;
  background:transparent; opacity:.6; cursor:pointer;
  transition:opacity .2s, border-color .2s, transform .2s;
}
.sv-reader-gallery .sv-gallery-thumbs button img {
  display:block; width:100%; height:100%;
  border-radius:5px!important; object-fit:cover; margin:0!important;
  border:0!important; box-shadow:none!important;
}
.sv-reader-gallery .sv-gallery-thumbs button[aria-pressed="true"] {
  opacity:1; border-color:var(--sv-gallery-green);
}
@media (hover:hover) {
 .sv-reader-gallery .sv-gallery-thumbs button:hover { opacity:1; }
}
.sv-reader-gallery[data-count="1"] .sv-gallery-controls,
.sv-reader-gallery[data-count="1"] .sv-gallery-progress,
.sv-reader-gallery[data-count="1"] .sv-gallery-play,
.sv-reader-gallery[data-count="1"] .sv-gallery-thumbs { display:none!important; }
.sv-reader-gallery :focus-visible,
.sv-photo-dialog :focus-visible { outline:3px solid #56aa77!important; outline-offset:3px; }

/* Full-screen lightbox, keeping the source image at its natural proportions. */
body.sv-gallery-modal-open { overflow:hidden; }
.sv-photo-dialog {
  position:fixed; inset:0; margin:auto;
  width:min(1440px,96vw); max-width:96vw;
  height:min(940px,94dvh); max-height:94dvh;
  padding:0; border:1px solid rgb(255 255 255 / 11%);
  border-radius:15px; background:#101512; color:#f4f7f4;
  box-shadow:0 24px 90px rgb(0 0 0 / 38%);
  overflow:hidden; font-family:inherit;
}
.sv-photo-dialog::backdrop {
  background:rgb(2 6 3 / 94%);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
}
.sv-photo-dialog .sv-photo-view {
  display:grid; grid-template-rows:auto minmax(0,1fr) auto;
  width:100%; height:100%;
}
.sv-photo-dialog .sv-photo-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 18px; min-height:58px; gap:16px;
  border-bottom:1px solid rgb(255 255 255 / 11%);
}
.sv-photo-dialog .sv-photo-heading {
  color:#f5f7f4; text-transform:uppercase; letter-spacing:.09em;
  font-size:11px; font-weight:800; line-height:1.4;
}
.sv-photo-dialog .sv-photo-close {
  display:inline-flex; align-items:center; justify-content:center;
  gap:7px; padding:8px 10px; min-height:36px;
  border:1px solid rgb(255 255 255 / 20%); border-radius:8px;
  color:#f5f7f4; background:rgb(255 255 255 / 6%);
  font-family:inherit; font-size:12px; font-weight:600; line-height:1.2; cursor:pointer;
}
.sv-photo-dialog .sv-photo-close svg { width:17px; height:17px; }
.sv-photo-dialog .sv-photo-image-wrap {
  position:relative; display:flex; align-items:center; justify-content:center;
  min-height:0; padding:15px 66px;
}
.sv-photo-dialog .sv-photo-full {
  display:block; width:auto!important; height:auto!important;
  max-width:100%!important; max-height:100%!important;
  border:0!important; border-radius:0!important; box-shadow:none!important;
  object-fit:contain; user-select:none;
}
.sv-photo-dialog .sv-photo-nav {
  position:absolute; z-index:2; top:50%; transform:translateY(-50%);
  display:grid; place-items:center;
  width:46px; height:46px; padding:0; border:1px solid rgb(255 255 255 / 17%);
  border-radius:50%; background:rgb(255 255 255 / 10%); color:#fff;
  cursor:pointer; transition:background .2s;
}
.sv-photo-dialog .sv-photo-nav:hover { background:rgb(255 255 255 / 23%); }
.sv-photo-dialog .sv-photo-nav svg { width:22px; height:22px; }
.sv-photo-dialog .sv-photo-nav--prev { left:15px; }
.sv-photo-dialog .sv-photo-nav--next { right:15px; }
.sv-photo-dialog .sv-photo-footer {
  display:flex; justify-content:space-between; gap:24px; align-items:center;
  padding:13px 20px; min-height:55px;
  border-top:1px solid rgb(255 255 255 / 11%);
}
.sv-photo-dialog .sv-photo-credit {
  flex:1; min-width:0; margin:0!important; font-size:12px;
  line-height:1.5; color:#ccd6ce;
}
.sv-photo-dialog .sv-photo-count {
  flex:none; font-size:12px; letter-spacing:.06em;
  color:#e3eae4; font-weight:700; font-variant-numeric:tabular-nums;
}
@media (max-width:720px) {
 .sv-reader-gallery { margin:32px 0 36px; }
 .sv-reader-gallery .sv-gallery-track { grid-template-columns:1fr; }
 .sv-reader-gallery[data-enhanced] .sv-reader-gallery-stage {
   aspect-ratio:4/3; min-height:200px; border-radius:12px;
 }
 .sv-reader-gallery[data-enhanced] .sv-gallery-stage-head {
   left:10px; right:10px; top:10px;
 }
 .sv-reader-gallery .sv-gallery-kicker,
 .sv-reader-gallery [data-gallery-counter] {
   min-height:31px; font-size:10px; padding:8px 10px;
 }
 .sv-reader-gallery[data-enhanced] .sv-gallery-controls { padding:0 9px; }
 .sv-reader-gallery .sv-gallery-arrow { width:38px; height:38px; flex-basis:38px; }
 .sv-reader-gallery .sv-gallery-arrow svg { width:19px; height:19px; }
 .sv-reader-gallery[data-enhanced] .sv-gallery-bottom { gap:8px; margin-top:11px; }
 .sv-reader-gallery .sv-gallery-zoom-tip { display:none; }
 .sv-reader-gallery .sv-gallery-caption { font-size:11px; }
 .sv-reader-gallery .sv-gallery-thumbs button { flex-basis:65px; width:65px; height:53px; }
 .sv-photo-dialog { width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; border:0; border-radius:0; }
 .sv-photo-dialog .sv-photo-header { padding:9px 13px; min-height:52px; }
 .sv-photo-dialog .sv-photo-image-wrap { padding:9px 8px 65px; }
 .sv-photo-dialog .sv-photo-nav { top:auto; bottom:9px; transform:none; width:42px; height:42px; }
 .sv-photo-dialog .sv-photo-nav--prev { left:calc(50% - 53px); }
 .sv-photo-dialog .sv-photo-nav--next { right:calc(50% - 53px); }
 .sv-photo-dialog .sv-photo-footer { padding:12px 14px; }
 .sv-photo-dialog .sv-photo-credit { font-size:11px; }
}

/* Reader-first refinement: no artificial panel, frame or photo letterboxing.
   The stage receives the actual photograph aspect ratio from article-gallery.js. */
.sv-reader-gallery { margin:22px 0 28px; }
.sv-reader-gallery[data-enhanced] .sv-reader-gallery-stage {
  min-height:0; aspect-ratio:3/2;
  background:transparent; border-radius:0; box-shadow:none;
  transition:aspect-ratio .35s ease;
}
.sv-reader-gallery[data-enhanced] .sv-gallery-track {
  transition:transform .52s cubic-bezier(.23,1,.32,1);
}
.sv-reader-gallery[data-enhanced] .sv-gallery-slide>a,
.sv-reader-gallery[data-enhanced] .sv-gallery-slide img {
  background:transparent; border-radius:0!important;
}
.sv-reader-gallery[data-enhanced] .sv-gallery-stage-head {
  top:9px; right:9px; left:auto; justify-content:flex-end;
}
.sv-reader-gallery .sv-gallery-kicker { display:none!important; }
.sv-reader-gallery [data-gallery-counter] {
  min-width:0; min-height:25px; padding:5px 8px;
  border:0; border-radius:3px; background:rgb(0 0 0 / 42%);
  color:#fff; font-size:11px; font-weight:600; letter-spacing:.01em;
  backdrop-filter:none; -webkit-backdrop-filter:none;
}
.sv-reader-gallery[data-enhanced] .sv-gallery-controls { padding:0 7px; }
.sv-reader-gallery .sv-gallery-arrow {
  width:36px; height:36px; flex-basis:36px; padding:0;
  background:rgb(12 18 14 / 42%); border:1px solid rgb(255 255 255 / 35%);
  border-radius:50%; color:#fff; box-shadow:none; opacity:.76;
}
.sv-reader-gallery .sv-gallery-arrow svg { width:19px; height:19px; }
@media(hover:hover){
 .sv-reader-gallery .sv-gallery-arrow:hover {
   background:rgb(12 18 14 / 70%); box-shadow:none; opacity:1; transform:none;
 }
}
.sv-reader-gallery[data-enhanced] .sv-gallery-progress {
  height:2px; background:rgb(0 0 0 / 10%);
}
.sv-reader-gallery .sv-gallery-progress-bar { background:rgb(255 255 255 / 75%); }
.sv-reader-gallery[data-enhanced] .sv-gallery-bottom {
  margin:6px 0 0; gap:10px; align-items:center;
}
.sv-reader-gallery .sv-gallery-caption {
  min-height:0; font-size:11px; color:#6e7671; line-height:1.5;
}
.sv-reader-gallery .sv-gallery-actions { gap:0; }
.sv-reader-gallery .sv-gallery-zoom-tip { display:none!important; }
.sv-reader-gallery .sv-gallery-play {
  min-height:28px; padding:0 0 0 8px; color:#67716a;
  font-size:11px; font-weight:500;
}
.sv-reader-gallery[data-enhanced] .sv-gallery-thumbs {
  gap:4px; margin-top:5px; padding:0 0 3px; scrollbar-width:thin;
}
.sv-reader-gallery .sv-gallery-thumbs button {
  width:64px; flex-basis:64px; height:50px;
  border:0; border-radius:0; padding:0; opacity:.55;
}
.sv-reader-gallery .sv-gallery-thumbs button img {
  width:100%; height:100%; border-radius:0!important;
}
.sv-reader-gallery .sv-gallery-thumbs button[aria-pressed="true"] {
  border:0; outline:2px solid #2a7c50; outline-offset:-2px; opacity:1;
}
.sv-photo-dialog .sv-photo-header { justify-content:flex-end; }
@media(max-width:720px){
 .sv-reader-gallery { margin:18px 0 24px; }
 .sv-reader-gallery[data-enhanced] .sv-reader-gallery-stage {
   aspect-ratio:3/2; min-height:0; border-radius:0;
 }
 .sv-reader-gallery[data-enhanced] .sv-gallery-stage-head { top:7px; right:7px; left:auto; }
 .sv-reader-gallery .sv-gallery-arrow { width:32px; height:32px; flex-basis:32px; }
 .sv-reader-gallery[data-enhanced] .sv-gallery-controls { padding:0 3px; }
 .sv-reader-gallery .sv-gallery-thumbs button { width:54px; flex-basis:54px; height:43px; }
 .sv-reader-gallery .sv-gallery-caption { font-size:10.5px; }
}
@media (prefers-reduced-motion:reduce) {
 .sv-reader-gallery[data-enhanced] .sv-reader-gallery-stage { transition:none!important; }
 .sv-reader-gallery[data-enhanced] .sv-gallery-track,
 .sv-reader-gallery .sv-gallery-arrow,
 .sv-reader-gallery .sv-gallery-thumbs button { transition:none!important; }
}
