.galleryToolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:14px 0 16px;
}

.gallerySearch,
.gallerySelect{
  height:44px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:12px;
  padding:0 14px;
  font-size:14px;
  background:#fff;
  outline:none;
}

.gallerySearch{ flex:1 1 220px; }
.gallerySelect{ min-width:160px; }

.galleryGrid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:14px;
}

.galleryCard{
  background:#fff;
  border:1px solid rgba(15,23,42,.06);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
  display:flex;
  flex-direction:column;
}

.galleryThumbWrap{
  position:relative;
  background:#f8fafc;
  aspect-ratio:1/1.15;
  overflow:hidden;
}

.galleryThumb{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.galleryBadge{
  position:absolute;
  top:10px;
  left:10px;
  background:rgba(15,23,42,.82);
  color:#fff;
  font-size:11px;
  padding:6px 10px;
  border-radius:999px;
  font-weight:700;
}

.galleryBody{
  padding:12px;
}

.galleryTitle{
  font-size:15px;
  font-weight:800;
  color:#0f172a;
  line-height:1.35;
  margin-bottom:10px;
}

.galleryMeta{
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.06);
  border-radius:12px;
  padding:10px;
  display:grid;
  gap:6px;
}

.galleryMetaRow{
  font-size:12px;
  color:#334155;
  word-break:break-word;
}

.galleryMetaRow b{
  color:#0f172a;
}

.galleryBtns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:12px;
}

.galleryEmpty{
  padding:24px;
  border:1px dashed rgba(15,23,42,.16);
  border-radius:16px;
  text-align:center;
  color:#64748b;
  background:#fff;
}

.pvOverlay{
  position:fixed;
  inset:0;
  background:rgba(2,6,23,.64);
  display:none;
  z-index:80;
}

.pvModal{
  position:fixed;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(94vw,860px);
  max-height:90vh;
  overflow:hidden;
  background:#fff;
  border-radius:20px;
  display:none;
  z-index:81;
  box-shadow:0 28px 80px rgba(2,6,23,.28);
}

.pvHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid rgba(15,23,42,.08);
}

.pvTitle{
  font-size:16px;
  font-weight:900;
  color:#0f172a;
}

.pvBody{
  padding:14px;
  max-height:68vh;
  overflow:auto;
  background:#f8fafc;
}

.pvBody img{
  width:100%;
  display:block;
  border-radius:14px;
  background:#fff;
}

.pvActions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  padding:14px 16px;
  border-top:1px solid rgba(15,23,42,.08);
  background:#fff;
}