/* KORA Image R8 — curated client portfolio gallery, staging candidate.
   Overrides both legacy style.css and R6's magazine-style masonry.
   Gallery tiles use deliberately cropped previews; lightbox retains full original.
   Available per-image focal override: style="--kora-thumb-focus: 50% 30%". */
body.kora-gallery-r8 .source-gallery {
  background:#ffffff; padding-block:clamp(38px,5vw,78px);
}
body.kora-gallery-r8 .source-gallery .k-section-top {
  margin:0 0 clamp(14px,2vw,28px); max-width:100%;
}
body.kora-gallery-r8 .source-gallery .k-section-top h2 {
  font-family:var(--sans,Arial,sans-serif); font-weight:600;
  font-size:clamp(1.7rem,2.8vw,3rem); line-height:1.08;
}
body.kora-gallery-r8 .source-gallery .supplied-grid,
body.kora-gallery-r8 .source-gallery details[open] .supplied-grid {
  display:grid!important; columns:auto!important; grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-auto-flow:row!important; column-gap:8px!important; row-gap:8px!important;
  margin-top:0!important; align-items:stretch!important;
}
body.kora-gallery-r8 .source-gallery .supplied-tile,
body.kora-gallery-r8 .source-gallery .supplied-tile:nth-child(n),
body.kora-gallery-r8 .source-gallery .supplied-tile.contains-portrait,
body.kora-gallery-r8 .source-gallery .supplied-tile.k-official-portrait {
  display:block!important; position:relative!important; grid-column:auto!important; grid-row:auto!important;
  break-inside:auto!important; width:100%!important; height:auto!important;
  margin:0!important; min-width:0!important; padding:0!important;
  overflow:hidden!important; border:0!important; background:transparent!important;
}
body.kora-gallery-r8 .source-gallery .supplied-tile a,
body.kora-gallery-r8 .source-gallery .supplied-tile:nth-child(n) a,
body.kora-gallery-r8 .source-gallery .supplied-tile.contains-portrait a {
  position:relative!important; display:block!important; width:100%!important;
  height:clamp(190px,23vw,335px)!important; aspect-ratio:auto!important;
  background:transparent!important; border:0!important; overflow:hidden!important;
  text-decoration:none!important;
}
body.kora-gallery-r8 .source-gallery .supplied-tile img,
body.kora-gallery-r8 .source-gallery .supplied-tile:nth-child(n) img,
body.kora-gallery-r8 .source-gallery .supplied-tile.contains-portrait img {
  display:block!important; position:absolute!important; inset:0!important;
  width:100%!important; height:100%!important; max-height:none!important;
  aspect-ratio:auto!important; object-fit:cover!important;
  object-position:var(--kora-thumb-focus, 50% 40%)!important;
  background:transparent!important; transform:none;
  transition:transform .32s ease,filter .32s ease;
}
body.kora-gallery-r8 .source-gallery .supplied-tile a:hover img {transform:scale(1.025)!important;filter:brightness(.92);}
body.kora-gallery-r8 .source-gallery .supplied-tile figcaption {display:none!important;}
body.kora-gallery-r8 .source-gallery .kora-portfolio-more {margin-top:0!important;padding:0!important;}
body.kora-gallery-r8 .source-gallery .kora-portfolio-more > summary {
  display:block!important; margin:20px auto 0!important; cursor:pointer;
  border:1px solid #dadada!important; padding:15px 18px!important;
  color:#1b1b1b!important; background:#fff!important; max-width:440px;
  font-family:var(--sans,Arial,sans-serif);font-size:12px;letter-spacing:.035em;text-align:center;
}
body.kora-gallery-r8 .source-gallery .kora-portfolio-more[open] > .supplied-grid {margin-top:8px!important;}
body.kora-gallery-r8 .source-gallery .kora-portfolio-more > summary:hover {background:#1b1b1b!important;color:#fff!important;}
@media(max-width:900px){
 body.kora-gallery-r8 .source-gallery .supplied-grid,
 body.kora-gallery-r8 .source-gallery details[open] .supplied-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;}
 body.kora-gallery-r8 .source-gallery .supplied-tile a,
 body.kora-gallery-r8 .source-gallery .supplied-tile:nth-child(n) a {height:clamp(180px,34vw,300px)!important;}
}
@media(max-width:540px){
 body.kora-gallery-r8 .source-gallery .supplied-grid,
 body.kora-gallery-r8 .source-gallery details[open] .supplied-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;}
 body.kora-gallery-r8 .source-gallery .supplied-tile a,
 body.kora-gallery-r8 .source-gallery .supplied-tile:nth-child(n) a {height:clamp(145px,55vw,245px)!important;}
 body.kora-gallery-r8 .source-gallery .k-section-top {margin-bottom:15px;}
}
@media(max-width:340px){
 body.kora-gallery-r8 .source-gallery .supplied-grid,
 body.kora-gallery-r8 .source-gallery details[open] .supplied-grid {grid-template-columns:1fr!important;}
 body.kora-gallery-r8 .source-gallery .supplied-tile a,
 body.kora-gallery-r8 .source-gallery .supplied-tile:nth-child(n) a {height:290px!important;}
}
@media(prefers-reduced-motion:reduce){body.kora-gallery-r8 .source-gallery .supplied-tile img {transition:none!important;}}
