/* =========================================================
   SN GALLERY (Google-style)
   Relies on your :root --sn-* tokens
   ========================================================= */

.sn-gallery{
  background: radial-gradient(900px 420px at 15% 0%, rgba(11,58,164,.08), rgba(255,255,255,0)),
              radial-gradient(800px 380px at 90% 10%, rgba(255,122,0,.08), rgba(255,255,255,0));
}

.sn-galHead{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items:start;
  margin-bottom: 14px;
}

.sn-galPills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 10px 0 10px;
}
.sn-galGhost{ margin-left:auto; }

.sn-galTrust{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 10px;
}
.sn-galTrustItem{
  display:flex;
  gap:10px;
  align-items:flex-start;
  border:1px solid var(--sn-border);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  border-radius: var(--sn-r16);
  padding: 12px;
  box-shadow: 0 12px 30px rgba(12,16,23,.06);
}
.sn-galTrustItem i{
  font-size: 18px;
  margin-top: 2px;
  color: rgba(12,16,23,.86);
}
.sn-galTrustItem b{ display:block; font-size: 13px; font-weight: 950; }
.sn-galTrustItem span{ display:block; font-size: 12.5px; color: rgba(12,16,23,.64); font-weight: 800; }

/* Right mini card */
.sn-galCard{
  position: sticky;
  top: 14px;
  border:1px solid rgba(11,58,164,.16);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  border-radius: var(--sn-r20);
  box-shadow: var(--sn-shadow);
  padding: 14px;
}
.sn-galCard h3{
  margin: 10px 0 6px;
  font-size: 16px;
  font-weight: 950;
}
.sn-galCard p{
  margin:0 0 10px;
  color: rgba(12,16,23,.72);
  font-weight: 800;
  font-size: 13.2px;
  line-height: 1.55;
}
.sn-galMiniList{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:8px;
}
.sn-galMiniList li{
  display:flex;
  gap:10px;
  align-items:center;
  color: rgba(12,16,23,.78);
  font-weight: 850;
  font-size: 13px;
}
.sn-galMiniList i{ opacity:.9; }
.sn-galMiniCtas{
  display:flex;
  gap:10px;
  margin-top: 12px;
}

/* Grid - modern masonry using CSS columns */
.sn-galGrid{
  column-count: 3;
  column-gap: 14px;
  margin-top: 14px;
}
.sn-galItem{
  break-inside: avoid;
  margin: 0 0 14px;
}

/* Optional: taller tile */
.sn-galTall img{ min-height: 340px; }

.sn-galBtn{
  width:100%;
  border: 1px solid var(--sn-border);
  background: rgba(255,255,255,.86);
  border-radius: var(--sn-r20);
  overflow:hidden;
  padding: 0;
  cursor:pointer;
  display:block;
  box-shadow: 0 12px 30px rgba(12,16,23,.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
}
.sn-galBtn:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(12,16,23,.12);
  border-color: rgba(11,58,164,.18);
}

.sn-galBtn img{
  width:100%;
  height:auto;                 /* ✅ prevents zoom / crop mess */
  display:block;
}

/* Overlay gradient for trust */
.sn-galBtn::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(12,16,23,0), rgba(12,16,23,.50));
  pointer-events:none;
}

/* Tag + caption */
.sn-galTag{
  position:absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  border-radius: var(--sn-pill);
  padding: 7px 10px;
  font-weight: 950;
  font-size: 12px;
  color: rgba(255,255,255,.96);
  background: rgba(12,16,23,.35);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.sn-galCap{
  position:absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  border-radius: 14px;
  padding: 10px 10px;
  font-weight: 900;
  font-size: 12.6px;
  color: rgba(255,255,255,.95);
  display:flex;
  gap:10px;
  align-items:center;
  background: rgba(12,16,23,.35);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
}

/* Tag colors using project palette */
.sn-t--orange{ background: linear-gradient(90deg, rgba(255,122,0,.92), rgba(255,122,0,.55)); }
.sn-t--blue{ background: linear-gradient(90deg, rgba(11,58,164,.92), rgba(11,58,164,.55)); }
.sn-t--green{ background: linear-gradient(90deg, rgba(14,143,58,.92), rgba(14,143,58,.55)); }
.sn-t--yellow{ background: linear-gradient(90deg, rgba(247,177,4,.92), rgba(247,177,4,.55)); }

.sn-galNote{ margin-top: 16px; }

/* Lightbox */
.sn-lightbox{
  position: fixed;
  inset: 0;
  display:none;
  z-index: 9999;
}
.sn-lightbox.is-open{ display:block; }

.sn-lbBackdrop{
  position:absolute;
  inset:0;
  background: rgba(12,16,23,.68);
  backdrop-filter: blur(4px);
}

.sn-lbPanel{
  position:relative;
  width: min(980px, calc(100% - 24px));
  margin: 24px auto;
  border-radius: 22px;
  overflow:hidden;
  background: rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.18);
  box-shadow: 0 30px 90px rgba(0,0,0,.40);
  display:grid;
  grid-template-columns: 1.4fr .6fr;
  min-height: 520px;
}

.sn-lbClose{
  position:absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(12,16,23,.12);
  background: rgba(255,255,255,.90);
  display:grid;
  place-items:center;
  cursor:pointer;
}

.sn-lbMedia{
  background: rgba(12,16,23,.06);
  display:grid;
  place-items:center;
  padding: 14px;
}
.sn-lbMedia img{
  width: 100%;
  height: 100%;
  object-fit: contain; /* ✅ real Google viewer feel */
  border-radius: 18px;
}

.sn-lbMeta{
  padding: 14px;
  border-left: 1px solid rgba(12,16,23,.10);
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.sn-lbTitle{
  font-weight: 950;
  font-size: 16px;
  color: var(--sn-ink);
}
.sn-lbNote{
  font-weight: 800;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(12,16,23,.74);
  border: 1px solid rgba(12,16,23,.10);
  background: rgba(255,255,255,.78);
  border-radius: 16px;
  padding: 12px;
}
.sn-lbCtas{
  margin-top: auto;
  display:flex;
  gap: 10px;
}

/* Responsive */
@media (max-width: 992px){
  .sn-galHead{ grid-template-columns: 1fr; }
  .sn-galCard{ position: relative; top: auto; }
  .sn-galTrust{ grid-template-columns: 1fr; }
  .sn-galGrid{ column-count: 2; }
  .sn-lbPanel{ grid-template-columns: 1fr; min-height: auto; }
  .sn-lbMeta{ border-left: 0; border-top: 1px solid rgba(12,16,23,.10); }
}
@media (max-width: 576px){
  .sn-galPills{
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .sn-galGhost{ margin-left: 0; }
  .sn-galGrid{ column-count: 1; }
}

/* =========================================================
   SN GALLERY – SIMPLE MASONRY (9 PHOTOS)
   No filters • No captions • No lightbox
   Uses your token system (sn-*) but safe standalone.
   ========================================================= */

.sn-gallery{
  background: radial-gradient(900px 420px at 15% 0%, rgba(11,58,164,.08), rgba(255,255,255,0)),
              radial-gradient(800px 380px at 90% 10%, rgba(255,122,0,.08), rgba(255,255,255,0));
}

.sn-galHead{
  display:block;
  margin-bottom: 14px;
}

/* Masonry grid via CSS columns */
.sn-galGrid{
  column-count: 3;
  column-gap: 14px;
  margin-top: 14px;
}

.sn-galItem{
  break-inside: avoid;
  margin: 0 0 14px;
}

/* Tile styling */
.sn-galTile{
  border: 1px solid rgba(60,64,67,.14);
  background: rgba(255,255,255,.92);
  border-radius: 18px;
  overflow: hidden;
  display: block;
  box-shadow: 0 10px 28px rgba(12,16,23,.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* Image is natural (no forced crop) */
.sn-galTile img{
  width: 100%;
  height: auto;
  display: block;
}

/* Optional: a couple tall tiles for "masonry" feel */
.sn-galTall .sn-galTile img{
  min-height: 360px;
  object-fit: cover;
}

/* Hover lift */
@media (hover:hover){
  .sn-galTile:hover{
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(12,16,23,.12);
    border-color: rgba(11,58,164,.18);
  }
}

/* Responsive */
@media (max-width: 992px){
  .sn-galGrid{ column-count: 2; }
}
@media (max-width: 576px){
  .sn-galGrid{ column-count: 1; }
  .sn-galItem{ margin-bottom: 12px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .sn-galTile{ transition: none !important; }
}