/* COZL 7.1 – fotografie w artykułach i galeria bez JS. 2026-11-19 */
.site-v7 .v72-article-content .v71-source-content{max-width:920px;margin:0 auto;color:#233c30}
.site-v7 .v72-article-content .v71-source-content>p{line-height:1.85}
.site-v7 .v72-article-content .v71-source-content h2{scroll-margin-top:100px;margin-top:43px;padding-bottom:12px}
.site-v7 .v72-story-photo{display:block;max-width:100%;margin:32px auto 38px;background:#f5fbf7;border:1px solid #cfe5d7;border-radius:22px;padding:10px;box-shadow:0 14px 35px rgba(0,54,34,.075)}
.site-v7 .v72-story-photo--feature{margin:26px auto 40px}
.site-v7 .v72-story-photo__open{position:relative;display:block;width:100%;padding:0;border:0;cursor:zoom-in;background:#e8f1e9;border-radius:15px;overflow:hidden;color:#fff}
.site-v7 .v72-story-photo__open img{display:block;width:100%;height:auto;max-height:520px;object-fit:cover;object-position:center center;transition:transform .25s ease}
.site-v7 .v72-story-photo__open:hover img{transform:scale(1.018)}
.site-v7 .v72-photo-magnify{position:absolute;bottom:16px;right:16px;display:flex;align-items:center;gap:9px;background:#074e38ee;color:#fff;padding:10px 14px;border-radius:12px;font-size:.81rem;font-weight:850;box-shadow:0 8px 25px #092b2366}
.site-v7 .v72-story-photo figcaption{padding:13px 11px 6px;font-size:.9rem;line-height:1.5;color:#476053}
.site-v7 .v72-story-photo figcaption strong{color:#095638}
.site-v7 .v72-gallery{max-width:1120px;margin:62px auto 25px;padding:clamp(16px,3vw,32px);border-radius:27px;border:1px solid #c7e0d0;background:linear-gradient(155deg,#edf8f0 0%,#fff 67%);box-shadow:0 14px 45px rgba(6,71,45,.07)}
.site-v7 .v72-gallery__top{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}
.site-v7 .v72-gallery__eyebrow{display:block;color:#087b51;font-size:.79rem;letter-spacing:.09em;font-weight:900;text-transform:uppercase;margin-bottom:7px}
.site-v7 .v72-gallery__top h2{margin:0;font-size:clamp(1.5rem,3vw,2rem);color:#094832;line-height:1.2}
.site-v7 .v72-gallery__top p{margin:9px 0 0;line-height:1.55;font-size:.93rem;color:#4b6554}
.site-v7 .v72-gallery__pill{padding:9px 12px;flex-shrink:0;border-radius:99px;border:1px solid #c1dfcd;background:#fff;color:#0c6547;font-size:.8rem;font-weight:800}
.site-v7 .v72-gallery__track{display:flex;gap:17px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;scroll-padding-inline:6px;padding:6px 6px 22px;scrollbar-color:#79a98c #e4f0e8;scrollbar-width:thin;overscroll-behavior-x:contain}
.site-v7 .v72-gallery__track:focus-visible{outline:3px solid #006b47;outline-offset:3px}
.site-v7 .v72-gallery__slide{flex:0 0 clamp(255px,77%,760px);scroll-snap-align:start;scroll-margin-left:6px;min-width:0;margin:0;background:#fff;border:1px solid #d1e7d9;border-radius:19px;overflow:hidden;box-shadow:0 12px 30px rgba(7,71,42,.08)}
.site-v7 .v72-gallery__open{display:block;position:relative;width:100%;padding:0;border:0;background:#ebf2ee;cursor:zoom-in;overflow:hidden}
.site-v7 .v72-gallery__open img{display:block;width:100%;height:clamp(220px,36vw,430px);object-fit:cover;transition:transform .28s ease}
.site-v7 .v72-gallery__open:hover img{transform:scale(1.035)}
.site-v7 .v72-gallery__photo-num{position:absolute;top:15px;left:15px;background:#083d2de8;color:white;padding:7px 10px;font-weight:850;border-radius:10px;font-size:.78rem}
.site-v7 .v72-gallery__zoom{position:absolute;bottom:13px;right:13px;padding:9px 12px;border-radius:12px;background:#075239ee;color:#fff;font-size:.83rem;font-weight:850;box-shadow:0 5px 16px #071c1266}
.site-v7 .v72-gallery__slide figcaption{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:15px 18px;font-size:.92rem;color:#2f4b3b;line-height:1.5}
.site-v7 .v72-gallery__arrows{display:flex;gap:7px;flex-shrink:0}
.site-v7 .v72-gallery__arrows a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;background:#ecf7ef;border:1px solid #c3ddcb;border-radius:11px;color:#07563d;text-decoration:none!important;font-size:1.1rem;font-weight:900}
.site-v7 .v72-gallery__arrows a:hover{background:#075d3e;border-color:#075d3e;color:#fff}
.site-v7 .v72-gallery__thumbs{display:flex;gap:9px;overflow-x:auto;padding:10px 4px 4px;margin-top:9px}
.site-v7 .v72-gallery__thumbs a{display:block;width:85px;height:64px;flex:0 0 85px;border-radius:11px;overflow:hidden;border:3px solid transparent;background:#e8f4ed}
.site-v7 .v72-gallery__thumbs a:hover,.site-v7 .v72-gallery__thumbs a:focus-visible{border-color:#007b50}
.site-v7 .v72-gallery__thumbs img{display:block;width:100%;height:100%;object-fit:cover}
.site-v7 .v72-lightbox :focus-visible,.site-v7 .v72-story-photo__open:focus-visible,.site-v7 .v72-gallery__open:focus-visible{outline:3px solid #e0af30;outline-offset:3px}
@media(max-width:680px){.site-v7 .v72-gallery{margin-top:40px;padding:14px;border-radius:19px}.site-v7 .v72-gallery__top{display:block}.site-v7 .v72-gallery__pill{display:inline-block;margin-top:12px}.site-v7 .v72-gallery__slide{flex-basis:92%}.site-v7 .v72-gallery__slide figcaption{align-items:flex-start;flex-direction:column;padding:12px}.site-v7 .v72-gallery__open img{height:250px}.site-v7 .v72-story-photo{padding:6px;border-radius:17px}.site-v7 .v72-story-photo__open img{max-height:380px}}
@media(prefers-reduced-motion:reduce){.site-v7 .v72-gallery__track{scroll-behavior:auto!important}.site-v7 .v72-gallery__open img,.site-v7 .v72-story-photo__open img{transition:none!important;transform:none!important}}
html:has(#v4-a11y-motion:checked) .site-v7 .v72-gallery__track{scroll-behavior:auto!important}
html:has(#v4-a11y-motion:checked) .site-v7 .v72-story-photo__open img,html:has(#v4-a11y-motion:checked) .site-v7 .v72-gallery__open img{transition:none!important;transform:none!important}
@media print{.site-v7 .v72-lightbox,.site-v7 .v72-gallery__thumbs,.site-v7 .v72-gallery__arrows,.site-v7 .v72-gallery__pill,.site-v7 .v72-photo-magnify,.site-v7 .v72-gallery__zoom{display:none!important}.site-v7 .v72-gallery{box-shadow:none!important;break-before:page}.site-v7 .v72-gallery__track{display:grid;grid-template-columns:repeat(2,1fr);overflow:visible;gap:12px}.site-v7 .v72-gallery__slide{break-inside:avoid}.site-v7 .v72-gallery__open img{height:auto;max-height:200px}}

body.site-v7 .v72-photo-original{display:inline-flex;align-items:center;min-height:38px;font-size:.81rem;color:#075d40;text-decoration:underline;text-underline-offset:4px;font-weight:800;overflow-wrap:anywhere}
body.site-v7 .v72-story-photo .v72-photo-original{margin-left:10px}
body.site-v7 .v72-lightbox__original{display:inline-flex;align-items:center;min-height:44px;color:#e9ffe9;text-underline-offset:4px;white-space:normal;font-size:.86rem;font-weight:760}

/* Każdy kadr ma własny cel URL; linki zmieniają kadr w obrębie tego samego widoku. */
body.site-v7 .v72-lightbox {
  display: none;
}

html:has(.v72-lightbox:target) {
  overflow: hidden;
  scroll-behavior: auto;
}

body.site-v7:has(.v72-lightbox:target) > :not(.v72-photo-viewer) {
  visibility: hidden;
}

body.site-v7 .v72-lightbox:target {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  padding: clamp(.6rem, 2vw, 1.5rem);
}

body.site-v7 .v72-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 18 12 / 87%);
}

body.site-v7 .v72-lightbox__panel {
  z-index: 1;
  width: min(100%, 72rem);
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(.75rem, 2vw, 1.25rem);
  color: #f1faf4;
  background: #10271f;
  border: 1px solid #81a492;
  border-radius: 1rem;
  box-shadow: 0 1rem 4rem #0009;
}

body.site-v7 .v72-lightbox__bar,
body.site-v7 .v72-lightbox__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}

body.site-v7 .v72-lightbox__bar h2 {
  margin: 0;
  color: inherit;
  font-size: 1.05rem;
  line-height: 1.3;
}

body.site-v7 .v72-lightbox__bar h2 span {
  display: block;
  font-size: .875em;
  font-weight: 500;
}

body.site-v7 .v72-lightbox__controls {
  margin-block: .75rem;
}

body.site-v7 .v72-lightbox a.v72-lightbox__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  min-height: 44px;
  padding: .35em .75em;
  border: 1px solid #a8c7b6;
  border-radius: .6rem;
  color: #113d2b;
  background: #e5f5e9;
  font-size: .875rem;
  font-weight: 750;
  text-decoration: none;
}

body.site-v7 .v72-lightbox a.v72-lightbox__action:hover {
  background: #fff;
}

body.site-v7 .v72-lightbox__figure {
  margin: 0;
}

body.site-v7 .v72-lightbox__figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(60vh, calc(100vh - 12rem));
  max-height: max(8rem, min(65dvh, calc(100dvh - 13rem)));
  margin-inline: auto;
  object-fit: contain;
}

body.site-v7 .v72-lightbox__figure figcaption {
  margin-top: .5rem;
  font-size: .9rem;
}

body.site-v7 .v72-lightbox a:focus-visible {
  outline-color: #ffcd66 !important;
}

body.site-v7 .v72-gallery__open {
  scroll-margin-block-start: 1rem;
}

body.site-v7 .v72-gallery__open:target {
  outline: 3px solid #915000;
  outline-offset: -3px;
}

html:has(#v4-a11y-contrast:checked) body.site-v7 .v72-lightbox__backdrop {
  background-color: rgb(0 0 0 / 85%) !important;
}

html:has(#v4-a11y-contrast:checked) body.site-v7 .v72-lightbox__panel {
  background-color: #fff !important;
}

@media print {
  html:has(.v72-lightbox:target) {
    overflow: visible;
  }

  body.site-v7 .v72-photo-viewer {
    display: none !important;
  }

  body.site-v7:has(.v72-lightbox:target) > :not(.v72-photo-viewer) {
    visibility: visible;
  }
}
