/* 24.3.8.48 — compact gallery preview. Full gallery stays in the existing modal. */
#gallery .gallery-grid{
  display:grid;
  grid-template-columns:1.45fr .82fr .82fr;
  grid-template-rows:240px 240px;
  grid-auto-rows:0;
  gap:14px;
  max-height:494px;
  overflow:hidden;
}
#gallery .gallery-item{
  min-width:0;
  min-height:0;
  height:100%;
  border-radius:22px;
  overflow:hidden;
  position:relative;
}
#gallery .gallery-item:first-child{grid-row:1 / span 2;grid-column:1}
#gallery .gallery-item:nth-child(2){grid-column:2;grid-row:1}
#gallery .gallery-item:nth-child(3){grid-column:3;grid-row:1}
#gallery .gallery-item:nth-child(4){grid-column:2;grid-row:2}
#gallery .gallery-item:nth-child(5){grid-column:3;grid-row:2}
#gallery .gallery-item:nth-child(6){display:none}
#gallery .gallery-item img{width:100%;height:100%;object-fit:cover}
#gallery .gallery-label{z-index:2}
#gallery .gallery-more{
  position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:rgba(8,28,21,.58);color:#fff;font-family:Prata,serif;font-size:42px;line-height:1;
  backdrop-filter:blur(2px)
}
#gallery .gallery-more small{font:700 11px/1.2 Manrope,Arial,sans-serif;text-transform:uppercase;letter-spacing:.14em;margin-top:8px}

@media(max-width:1000px){
  #gallery .gallery-grid{grid-template-columns:1.25fr 1fr;grid-template-rows:220px 220px;max-height:454px}
  #gallery .gallery-item:first-child{grid-row:1 / span 2;grid-column:1}
  #gallery .gallery-item:nth-child(2){grid-column:2;grid-row:1}
  #gallery .gallery-item:nth-child(3){grid-column:2;grid-row:2}
  #gallery .gallery-item:nth-child(n+4){display:none}
}
@media(max-width:680px){
  #gallery .section-head{margin-bottom:28px}
  #gallery .gallery-grid{grid-template-columns:1.35fr 1fr;grid-template-rows:190px 190px;gap:8px;max-height:388px}
  #gallery .gallery-item{border-radius:16px}
  #gallery .gallery-item:first-child{grid-row:1 / span 2;grid-column:1}
  #gallery .gallery-item:nth-child(2){grid-column:2;grid-row:1}
  #gallery .gallery-item:nth-child(3){grid-column:2;grid-row:2}
  #gallery .gallery-item:nth-child(n+4){display:none}
  #gallery .gallery-item .gallery-label{left:10px;bottom:10px;padding:7px 9px;max-width:calc(100% - 20px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
