/* ── Date Memories ── */
.mem-section { margin-top: 28px; }

.mem-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.mem-header .pf-section-title { margin-bottom: 0; }
.mem-count {
  font-size: .78rem; color: var(--text-muted);
  background: var(--glass); padding: 4px 10px; border-radius: 20px;
}

/* Dropzone */
.mem-dropzone {
  border: 2px dashed var(--glass-border);
  border-radius: 16px; padding: 28px 20px;
  text-align: center; cursor: pointer;
  transition: all .25s; margin-bottom: 16px;
}
.mem-dropzone:hover, .mem-dropzone.dragover {
  border-color: var(--rose); background: rgba(224,87,128,.06);
}
.mem-dropzone-inner svg { color: var(--text-muted); margin-bottom: 8px; }
.mem-dropzone-inner p {
  font-size: .88rem; color: var(--text-soft); margin: 0;
}
.mem-hint {
  font-size: .72rem; color: var(--text-muted); margin-top: 4px; display: block;
}

.mem-full {
  text-align: center; padding: 16px; font-size: .82rem;
  color: var(--text-muted); background: var(--glass);
  border-radius: 12px; margin-bottom: 16px;
}

/* Photo Grid */
.mem-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.mem-card {
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: 14px; overflow: hidden;
}
.mem-img-wrap {
  aspect-ratio: 1; overflow: hidden; cursor: pointer;
}
.mem-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.mem-img-wrap:hover img { transform: scale(1.05); }

.mem-caption {
  padding: 6px 10px 0; font-size: .75rem; color: var(--text-soft);
  margin: 0; line-height: 1.3;
}

.mem-actions {
  padding: 8px 10px; display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
}
.mem-toggle {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: .72rem;
}
.mem-toggle input[type="checkbox"] {
  accent-color: var(--rose); width: 14px; height: 14px;
}
.mem-toggle-label { color: var(--text-muted); font-size: .72rem; }

.mem-del {
  background: none; border: none; color: var(--text-muted);
  font-size: .72rem; cursor: pointer; padding: 2px 6px;
  border-radius: 6px; transition: all .2s;
}
.mem-del:hover { color: #ff6b6b; background: rgba(255,107,107,.1); }

.mem-empty {
  text-align: center; padding: 24px; color: var(--text-muted);
  font-size: .84rem;
}

/* Lightbox */
.mem-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.mem-lightbox-bg {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.9); cursor: pointer;
}
.mem-lightbox-content {
  position: relative; z-index: 1; max-width: 90vw; max-height: 90vh;
}
.mem-lightbox-content img {
  max-width: 90vw; max-height: 85vh; border-radius: 12px;
  object-fit: contain;
}
.mem-lightbox-close {
  position: absolute; top: -12px; right: -12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--rose); color: #fff; border: none;
  font-size: 1.2rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.mem-lightbox-caption {
  text-align: center; color: rgba(255,255,255,.8);
  margin-top: 10px; font-size: .85rem;
}

/* ── Public Gallery (gallery.html + homepage section) ── */
.gallery-masonry {
  columns: 3; column-gap: 12px;
}
@media (max-width: 768px) { .gallery-masonry { columns: 2; } }
@media (max-width: 480px) { .gallery-masonry { columns: 1; } }

.gallery-card {
  break-inside: avoid; margin-bottom: 12px;
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: 16px; overflow: hidden;
  transition: transform .2s;
}
.gallery-card:hover { transform: translateY(-2px); }
.gallery-card img {
  width: 100%; display: block;
}
.gallery-card-info {
  padding: 10px 12px;
}
.gallery-card-occasion {
  font-size: .7rem; color: var(--rose); font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px;
}
.gallery-card-caption {
  font-size: .82rem; color: var(--text-soft); margin-top: 2px;
}
.gallery-card-meta {
  font-size: .7rem; color: var(--text-muted); margin-top: 4px;
}
