/* KROSS 2016 — archivo fotográfico completo */
.k16-gallery-section{background:#111319;color:#fff;padding:clamp(90px,11vw,170px) 0}
.k16-gallery-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.42fr);gap:6vw;align-items:end;margin-bottom:48px}
.k16-gallery-head h2{font-size:clamp(3.4rem,6.5vw,7.2rem);line-height:.86;letter-spacing:-.06em;margin:0}
.k16-gallery-head-copy{align-self:end}
.k16-gallery-head-copy p{color:#c7c8ce;font-size:1rem;line-height:1.6;max-width:470px;margin:0 0 20px}
.k16-gallery-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:.7rem;text-transform:uppercase;letter-spacing:.11em;font-weight:800;color:#aeb1bb}
.k16-gallery-meta strong{color:#9ce5df;font-weight:850}
.k16-gallery-meta i{width:4px;height:4px;border-radius:50%;background:#4d5058;display:block}

/* Apertura editorial: 6 fotografías con ritmo de documental */
.k16-gallery-featured{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:150px;gap:12px;margin-bottom:56px}
.k16-gallery-featured .k16-gallery-item{height:100%;margin:0}
.k16-gallery-featured .k16-gallery-item img{width:100%;height:100%;object-fit:cover}
.k16-gallery-featured .k16-gallery-item:nth-child(1){grid-column:span 7;grid-row:span 3}
.k16-gallery-featured .k16-gallery-item:nth-child(2){grid-column:span 5;grid-row:span 2}
.k16-gallery-featured .k16-gallery-item:nth-child(3){grid-column:span 5;grid-row:span 1}
.k16-gallery-featured .k16-gallery-item:nth-child(4),
.k16-gallery-featured .k16-gallery-item:nth-child(5),
.k16-gallery-featured .k16-gallery-item:nth-child(6){grid-column:span 4;grid-row:span 2}

.k16-gallery-archive-label{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-top:1px solid rgba(255,255,255,.18);margin-bottom:18px;font-size:.68rem;letter-spacing:.13em;text-transform:uppercase;font-weight:850;color:#9699a3}
.k16-gallery-archive-label span:first-child{color:#fff}

/* Archivo completo */
.k16-gallery-grid{columns:4;column-gap:12px}
.k16-gallery-item{display:block;width:100%;margin:0 0 12px;padding:0;border:0;background:#202229;overflow:hidden;cursor:zoom-in;break-inside:avoid;position:relative;color:#fff}
.k16-gallery-item[hidden]{display:none!important}
.k16-gallery-item img{display:block;width:100%;height:auto;background:#202229;transition:transform .55s cubic-bezier(.2,.75,.2,1),filter .45s ease;filter:saturate(.9) contrast(1.01)}
.k16-gallery-item:after{content:"";position:absolute;inset:0;border:1px solid rgba(255,255,255,.055);pointer-events:none}
.k16-gallery-item:hover img{transform:scale(1.018);filter:saturate(1) contrast(1.01)}
.k16-gallery-item:focus-visible{outline:2px solid #9ce5df;outline-offset:3px}
.k16-gallery-index{position:absolute;left:10px;bottom:10px;z-index:2;display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:25px;padding:0 7px;background:rgba(9,11,17,.7);backdrop-filter:blur(8px);font-size:.61rem;letter-spacing:.09em;font-weight:800;color:rgba(255,255,255,.88);opacity:0;transform:translateY(5px);transition:.25s ease}
.k16-gallery-item:hover .k16-gallery-index,.k16-gallery-item:focus-visible .k16-gallery-index{opacity:1;transform:none}
.k16-gallery-featured .k16-gallery-index{opacity:1;transform:none;background:rgba(9,11,17,.58)}
.k16-gallery-item.is-image-error{min-height:180px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.08)}
.k16-gallery-error{padding:20px;font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;color:#8f929b;text-align:center}

.k16-gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:42px;padding-top:26px;border-top:1px solid rgba(255,255,255,.15)}
.k16-gallery-progress{font-size:.76rem;letter-spacing:.08em;text-transform:uppercase;color:#9fa2ac}
.k16-gallery-progress strong{color:#fff}
.k16-gallery-buttons{display:flex;gap:10px;flex-wrap:wrap}
.k16-gallery-more,.k16-gallery-all{appearance:none;border:1px solid rgba(255,255,255,.35);background:transparent;color:#fff;border-radius:999px;padding:13px 18px;font:inherit;font-size:.7rem;letter-spacing:.09em;text-transform:uppercase;font-weight:850;cursor:pointer;transition:.25s ease}
.k16-gallery-more:hover,.k16-gallery-all:hover{background:#fff;color:#111319;border-color:#fff}
.k16-gallery-all{border-color:rgba(156,229,223,.5);color:#b9eeea}
.k16-gallery-all:hover{background:#9ce5df;color:#111319;border-color:#9ce5df}
.k16-gallery-more[hidden],.k16-gallery-all[hidden]{display:none!important}
.k16-lightbox-counter{position:absolute;left:20px;top:20px;z-index:5;display:inline-flex;align-items:center;gap:7px;background:rgba(13,15,20,.7);backdrop-filter:blur(8px);padding:9px 11px;border-radius:999px;font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;color:#d6d7dc}
.k16-lightbox-counter strong{color:#fff}

@media(max-width:1100px){
  .k16-gallery-grid{columns:3}
  .k16-gallery-head{grid-template-columns:1fr}
  .k16-gallery-head-copy{max-width:620px}
  .k16-gallery-featured{grid-auto-rows:135px}
}
@media(max-width:720px){
  .k16-gallery-section{padding:78px 0}
  .k16-gallery-head{margin-bottom:30px}
  .k16-gallery-head h2{font-size:clamp(3rem,14vw,4.6rem)}
  .k16-gallery-featured{grid-template-columns:1fr 1fr;grid-auto-rows:150px;gap:7px;margin-bottom:42px}
  .k16-gallery-featured .k16-gallery-item:nth-child(1){grid-column:1/-1;grid-row:span 2}
  .k16-gallery-featured .k16-gallery-item:nth-child(n+2){grid-column:span 1;grid-row:span 1}
  .k16-gallery-featured .k16-gallery-item:last-child:nth-child(even){grid-column:1/-1;grid-row:span 2}
  .k16-gallery-grid{columns:2;column-gap:7px}
  .k16-gallery-item{margin-bottom:7px}
  .k16-gallery-controls{align-items:flex-start;flex-direction:column;margin-top:30px}
  .k16-gallery-buttons{width:100%}
  .k16-gallery-more,.k16-gallery-all{flex:1;text-align:center}
  .k16-gallery-index{display:none}
  .k16-gallery-featured .k16-gallery-index{display:inline-flex}
  .k16-lightbox-counter{top:14px;left:14px}
}
@media(max-width:430px){
  .k16-gallery-grid{columns:1}
  .k16-gallery-featured{grid-template-columns:1fr;grid-auto-rows:auto}
  .k16-gallery-featured .k16-gallery-item:nth-child(n){grid-column:1;grid-row:auto;aspect-ratio:4/3}
}
@media(prefers-reduced-motion:reduce){
  .k16-gallery-item img{transition:none!important}
  .k16-gallery-item:hover img{transform:none}
}


/* UNC LIGHTBOX V2 — dark editorial viewer */
.k16-lightbox{width:min(96vw,1680px);height:min(93dvh,1080px);max-width:none;max-height:none;margin:auto;padding:0;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:linear-gradient(180deg,#11141b,#080a0f);color:#fff;overflow:hidden;box-shadow:0 35px 100px rgba(0,0,0,.55)}
.k16-lightbox::backdrop{background:rgba(3,5,9,.92);backdrop-filter:blur(11px)}
.k16-lightbox figure{margin:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:30px 92px;box-sizing:border-box}
.k16-lightbox figure>img{display:block;width:auto;height:auto;max-width:100%;max-height:calc(93dvh - 60px);object-fit:contain;background:transparent;box-shadow:0 18px 55px rgba(0,0,0,.34)}
.k16-lightbox-close,.k16-lightbox-nav{position:absolute;z-index:8;display:grid;place-items:center;width:52px;height:52px;padding:0;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:rgba(15,18,25,.78);color:#fff;backdrop-filter:blur(12px);font:500 1.45rem/1 Arial,sans-serif;cursor:pointer;transition:.2s ease}
.k16-lightbox-close{right:20px;top:20px;font-size:1.65rem}.k16-lightbox-nav--prev{left:20px;top:50%;transform:translateY(-50%)}.k16-lightbox-nav--next{right:20px;top:50%;transform:translateY(-50%)}
.k16-lightbox-close:hover,.k16-lightbox-nav:hover{background:#00a19a;border-color:#00a19a}.k16-lightbox-counter{left:20px;top:20px;background:rgba(15,18,25,.78);border:1px solid rgba(255,255,255,.14);padding:10px 13px;color:#cdd0d7}
.jesus-run-page .k16-gallery-grid{columns:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.jesus-run-page .k16-gallery-grid .k16-gallery-item{margin:0;aspect-ratio:4/3;min-height:0}.jesus-run-page .k16-gallery-grid .k16-gallery-item img{width:100%;height:100%;object-fit:cover}.jesus-run-page .k16-gallery-grid .k16-gallery-item:last-child:nth-child(3n+1){grid-column:1/-1;aspect-ratio:16/7}
.k18-page .k18-hero-hq img{filter:none;object-fit:cover;object-position:center 62%}
@media(max-width:720px){.k16-lightbox{width:100vw;height:100dvh;border:0;border-radius:0}.k16-lightbox figure{padding:70px 14px 78px}.k16-lightbox figure>img{max-height:calc(100dvh - 148px)}.k16-lightbox-close,.k16-lightbox-nav{width:44px;height:44px}.k16-lightbox-close{right:14px;top:14px}.k16-lightbox-nav--prev{left:14px;top:auto;bottom:16px;transform:none}.k16-lightbox-nav--next{right:14px;top:auto;bottom:16px;transform:none}.k16-lightbox-counter{left:14px;top:14px}.jesus-run-page .k16-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.jesus-run-page .k16-gallery-grid .k16-gallery-item:last-child:nth-child(odd){grid-column:1/-1;aspect-ratio:16/10}}
@media(max-width:430px){.jesus-run-page .k16-gallery-grid{grid-template-columns:1fr}.jesus-run-page .k16-gallery-grid .k16-gallery-item,.jesus-run-page .k16-gallery-grid .k16-gallery-item:last-child:nth-child(odd){grid-column:1;aspect-ratio:4/3}}
