.df-gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.df-gal-card {
  display: grid;
  grid-template-rows: 160px auto;
  border: 1px solid rgba(143, 164, 200,.22);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(21, 29, 46,.88);
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.df-gal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(143, 164, 200,.5);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
.df-gal-card-cover {
  background: #061820;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.df-gal-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.df-gal-card-cover span {
  color: var(--ink-soft);
  font-weight: 800;
  font-size: .86rem;
}
.df-gal-card-body {
  padding: 12px 12px 14px;
  display: grid;
  gap: 4px;
}
.df-gal-card-body strong {
  font-size: 1.02rem;
  font-weight: 950;
  line-height: 1.2;
}
.df-gal-card-body em {
  font-style: normal;
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 800;
}
.df-gal-card-body p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.35;
}

.df-gal-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
}
.df-gal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(143, 164, 200,.28);
  background: rgba(0,0,0,.22);
  color: var(--purple-2);
  text-decoration: none;
  font-weight: 900;
  font-size: .84rem;
}
.df-gal-back:hover { background: rgba(61, 95, 154,.14); }

.df-gal-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.df-gal-photo-wrap {
  display: grid;
  gap: 6px;
}
.df-gal-photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(143, 164, 200,.2);
  background: #061820;
  cursor: pointer;
  padding: 0;
}
.df-gal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.df-gal-credit {
  font-size: .74rem;
  font-weight: 800;
  color: var(--ink-soft);
  line-height: 1.3;
}
.df-gal-credit a {
  color: var(--purple-2);
  text-decoration: none;
  font-weight: 900;
}
.df-gal-credit a:hover { text-decoration: underline; }
.df-gal-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.df-gal-share-row button {
  flex: 1 1 auto;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(143, 164, 200,.28);
  background: rgba(0,0,0,.22);
  color: var(--purple-2);
  font-weight: 900;
  font-size: .72rem;
  cursor: pointer;
}
.df-gal-share-row button:hover {
  background: rgba(61, 95, 154,.14);
}
.df-gal-empty {
  padding: 28px 16px;
  border: 1px dashed rgba(143, 164, 200,.28);
  border-radius: 10px;
  text-align: center;
  color: var(--ink-soft);
  font-weight: 800;
}

.df-gal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(8px);
}
.df-gal-lightbox.is-open { display: flex; }
.df-gal-lightbox-card {
  position: relative;
  width: min(1100px, 100%);
  max-height: calc(100vh - 36px);
  display: grid;
  gap: 10px;
}
.df-gal-lightbox-card img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 110px);
  object-fit: contain;
  margin: 0 auto;
  background: #041018;
  border-radius: 8px;
}
.df-gal-lightbox-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #e8eaf2;
  font-weight: 800;
}
.df-gal-lightbox-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.df-gal-lightbox-credit {
  font-size: .82rem;
  font-weight: 800;
  color: rgba(232,246,250,.78);
}
.df-gal-lightbox-credit a {
  color: #8fa4c8;
  text-decoration: none;
}
.df-gal-lightbox-credit a:hover { text-decoration: underline; }
.df-gal-lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.df-gal-lightbox-actions button,
.df-gal-lightbox-close {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(143, 164, 200,.35);
  background: rgba(21, 29, 46,.95);
  color: #e8eaf2;
  font-weight: 900;
  cursor: pointer;
}
.df-gal-lightbox-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 40px;
  min-width: 40px;
  padding: 0;
}
.df-gal-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 200010;
  display: none;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(143, 164, 200,.35);
  background: rgba(12, 18, 32,.96);
  color: #e8eaf2;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}
.df-gal-toast.is-on { display: inline-flex; }
@media (max-width: 680px) {
  .df-gal-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .df-gal-card { grid-template-rows: 130px auto; }
  .df-gal-photos { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .df-gal-lightbox-meta { flex-direction: column; align-items: stretch; }
  .df-gal-lightbox-actions { justify-content: stretch; }
  .df-gal-lightbox-actions button { flex: 1 1 auto; }
}