/* ===================================================================
   GALLERY PAGE
   =================================================================== */

/* ---- Category filter chips ---- */
.gallery-filter{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding-bottom:2px;
  scrollbar-width:none;
}
.gallery-filter::-webkit-scrollbar{ display:none; }

.filter-chip{
  flex:0 0 auto;
  border:1px solid var(--rawm-line);
  background:var(--rawm-surface);
  color:var(--rawm-charcoal);
  font-size:12px;
  font-weight:600;
  padding:8px 16px;
  border-radius:20px;
  white-space:nowrap;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.filter-chip.active{
  background:var(--rawm-ink);
  border-color:var(--rawm-ink);
  color:#fff;
}

/* ---- 2-column photo grid ---- */
.gallery-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.gallery-item{
  position:relative;
  border-radius:14px;
  overflow:hidden;
  aspect-ratio:1/1;
  background:var(--rawm-line);
}
.gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .15s ease;
}
.gallery-item:active img{
  transform:scale(.96);
}

.gallery-item-caption{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:8px 9px 7px;
  font-size:10.5px;
  font-weight:600;
  color:#fff;
  background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.65) 100%);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* ---- Lightbox ---- */
.lightbox-dialog{
  max-width:94%;
  margin:0 auto;
}
.lightbox-content{
  background:transparent;
  border:none;
  box-shadow:none;
}
.lightbox-content img{
  width:100%;
  border-radius:16px;
  display:block;
}
.lightbox-caption{
  color:#fff;
  text-align:center;
  font-size:13px;
  font-weight:500;
  margin:12px 0 0;
}
.lightbox-close{
  position:absolute;
  top:-40px;
  right:0;
  width:34px;
  height:34px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.1);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
}
