:root{
  --burgundy:#980018;--burgundy-dark:#7e0016;--gold:#b9893e;
  --cream:#fbf6ee;--paper:#f7efe3;--ink:#5e2928;--line:#ead8bd;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:#f7efe3;color:var(--ink);
  font-family:Georgia,"Times New Roman",serif;
}
.shell{
  max-width:1672px;margin:0 auto;background:var(--paper);
  box-shadow:0 0 38px rgba(85,45,24,.10);
}
.visual-top,.visual-footer{position:relative;line-height:0}
.visual-top img,.visual-footer img{display:block;width:100%;height:auto}
.hotspot,.footer-hotspot{
  position:absolute;display:block;z-index:5;outline-offset:2px;
}
.hotspot:focus-visible,.footer-hotspot:focus-visible{
  outline:3px solid #f2cf78;background:rgba(255,255,255,.08);
}
.content-wrap{
  position:relative;padding:34px clamp(18px,7vw,118px) 48px;
  overflow:hidden;
  background:radial-gradient(circle at 50% 0%,rgba(255,255,255,.62),transparent 48%),var(--paper);
}
.breadcrumb{
  margin:0 0 12px;font-size:15px;color:#8a6a48;
}
.breadcrumb a{color:var(--burgundy);text-decoration:none}
.breadcrumb a:hover{text-decoration:underline}
.page-title{text-align:center;margin:0 auto 22px;max-width:1050px}
.page-title h1{
  margin:0;color:var(--burgundy);font-size:clamp(28px,3.7vw,50px);
  line-height:1.1;font-weight:700;
}
.ornament{
  display:flex;align-items:center;justify-content:center;gap:13px;
  margin:12px auto 5px;color:var(--gold);font-size:24px;
}
.ornament::before,.ornament::after{
  content:"";width:115px;max-width:23vw;height:1px;background:#d4ab69;
}
.subtitle{margin:6px 0 0;font-size:clamp(15px,1.4vw,19px);color:#8b5c42;font-style:italic}
.content-card{
  background:rgba(255,252,246,.97);border:1px solid var(--line);
  border-radius:12px;box-shadow:0 8px 24px rgba(92,50,25,.09);
  padding:clamp(18px,3vw,36px);min-height:260px;
}
.gallery-note{
  text-align:center;margin:0 0 22px;color:#7a5a44;font-size:16px;line-height:1.55;
}
.sanctuary-gallery{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;
}
.gallery-thumb{
  position:relative;display:block;border:1px solid #d9c29d;border-radius:10px;
  overflow:hidden;background:#fff;box-shadow:0 5px 16px rgba(84,45,25,.08);
  text-decoration:none;cursor:zoom-in;content-visibility:auto;contain-intrinsic-size:280px;
}
.gallery-thumb img{
  display:block;width:100%;height:280px;object-fit:cover;
  transition:transform .18s ease,filter .18s ease;
}
.gallery-thumb:hover img{transform:scale(1.02);filter:brightness(1.02)}
.gallery-thumb::after{
  content:"Powiększ";position:absolute;right:10px;bottom:10px;padding:6px 9px;
  border-radius:999px;background:rgba(95,0,17,.82);color:#fff;font-size:12px;
  line-height:1;opacity:0;transform:translateY(3px);transition:.18s ease;pointer-events:none;
}
.gallery-thumb:hover::after,.gallery-thumb:focus-visible::after{opacity:1;transform:none}
.gallery-actions{
  display:flex;flex-wrap:wrap;gap:12px;justify-content:center;
  margin-top:30px;padding-top:22px;border-top:1px solid #ead8bd;
}
.btn{
  display:inline-block;padding:12px 22px;border-radius:6px;
  background:linear-gradient(#aa0b28,#870016);color:#fff!important;
  text-decoration:none;font-weight:bold;box-shadow:0 3px 8px rgba(91,0,17,.18);
}
.btn.gold{background:linear-gradient(#cba05b,#a97731)}
.lightbox{
  position:fixed;inset:0;z-index:9999;display:none;align-items:center;
  justify-content:center;padding:18px;background:rgba(18,8,7,.94);
}
.lightbox.open{display:flex}
.lightbox-image{
  display:block;max-width:min(94vw,1500px);max-height:88vh;width:auto;height:auto;
  object-fit:contain;border-radius:7px;box-shadow:0 14px 50px rgba(0,0,0,.45);background:#111;
}
.lightbox-close,.lightbox-prev,.lightbox-next{
  position:absolute;border:0;color:#fff;background:rgba(112,0,22,.84);
  cursor:pointer;font-family:Arial,sans-serif;box-shadow:0 3px 14px rgba(0,0,0,.25);
}
.lightbox-close{top:14px;right:14px;width:44px;height:44px;border-radius:50%;font-size:28px}
.lightbox-prev,.lightbox-next{
  top:50%;transform:translateY(-50%);width:48px;height:62px;border-radius:8px;font-size:32px;
}
.lightbox-prev{left:14px}.lightbox-next{right:14px}
.lightbox-count{
  position:absolute;left:50%;bottom:14px;transform:translateX(-50%);
  color:#fff;background:rgba(0,0,0,.55);border-radius:999px;padding:6px 11px;
  font:14px/1.2 Arial,sans-serif;
}
.visual-footer{
  z-index:20;overflow:hidden;background:#980018;width:101.6%;margin-left:-.8%;
}
.footer-hotspot{top:0;height:100%;z-index:4}
.sr-only{
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;
  margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;border:0!important;
}
.history-content{max-width:920px;margin:0 auto;font-size:18px;line-height:1.72}
.history-content p{margin:0 0 18px}
.history-content img{
  display:block;max-width:100%;height:auto;margin:22px auto;border:1px solid #d9c29d;
  border-radius:10px;box-shadow:0 5px 16px rgba(84,45,25,.10);
}
@media(max-width:980px){
  .sanctuary-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gallery-thumb img{height:270px}
}
@media(max-width:760px){
  .content-wrap{padding:24px 15px 34px}
  .content-card{padding:18px 14px}
  .visual-footer{width:100%;margin-left:0}
}
@media(max-width:620px){
  .sanctuary-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .gallery-thumb img{height:180px}
  .gallery-thumb::after{display:none}
  .lightbox{padding:8px}
  .lightbox-image{max-width:96vw;max-height:84vh}
  .lightbox-prev,.lightbox-next{width:40px;height:54px;font-size:26px}
  .lightbox-prev{left:6px}.lightbox-next{right:6px}
  .lightbox-close{top:8px;right:8px}
  .history-content{font-size:16px}
}
@media(max-width:390px){.gallery-thumb img{height:150px}}