body { background: #fdf7f9; }

/* Hero (welcome page) */
.hero-block {
  margin-bottom: 1.5rem;
}

.hero-cover {
  width: 100%;
  height: 280px;
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.hero-names {
  font-family: "Playfair Display", "Georgia", serif;
  letter-spacing: 0.5px;
  color: #6a3a52;
  margin-top: 1rem !important;
}

.hero-date {
  color: #9a6e83;
  font-style: italic;
}

.welcome-text {
  background: #fff;
  border-left: 4px solid #e1a5bf;
  color: #4a3340;
  line-height: 1.55;
}

/* Small header strip (upload + gallery) */
.page-header {
  margin: -0.5rem -0.5rem 1.5rem;
  padding: 1rem 1rem 1.25rem;
  background: linear-gradient(135deg, #fce4ec, #f8e8ef);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.page-header-cover {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  margin: 0 auto 0.75rem;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.page-header-title {
  font-family: "Playfair Display", "Georgia", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #6a3a52;
  margin: 0;
  letter-spacing: 0.3px;
}

.page-header-date {
  color: #9a6e83;
  font-style: italic;
  margin: 2px 0 0;
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .hero-cover { height: 200px; }
  .hero-names { font-size: 1.8rem !important; }
  .page-header-cover { width: 80px; height: 80px; }
  .page-header-title { font-size: 1.3rem; }
}

.gallery-img,
.gallery-video,
.gallery-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  background: #eee;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.gallery-video,
.gallery-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #555;
  background: linear-gradient(135deg, #2c3e50, #4ca1af);
  color: #fff;
  font-weight: 600;
}

.play-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.video-label {
  font-size: 0.85rem;
  margin-top: 4px;
  opacity: 0.9;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #eee;
}

.queue-thumb {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  background: #ddd;
  flex-shrink: 0;
}

.queue-thumb.is-video {
  background: linear-gradient(135deg, #2c3e50, #4ca1af);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.queue-info {
  flex: 1;
  min-width: 0;
}

.queue-name {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-meta {
  font-size: 0.75rem;
  color: #888;
}

.queue-status {
  font-size: 0.75rem;
  white-space: nowrap;
}

.queue-status.ok { color: #257953; font-weight: 600; }
.queue-status.err { color: #c0392b; font-weight: 600; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.lightbox.is-hidden { display: none; }

.lightbox-stage {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.lightbox-stage img,
.lightbox-stage video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.lightbox-stage .spinner {
  position: absolute;
  color: #fff;
  font-size: 0.9rem;
  opacity: 0.7;
}

.lightbox-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), transparent);
  z-index: 2;
  font-size: 0.9rem;
}

.lightbox-counter { opacity: 0.85; }

.lightbox-actions { display: flex; gap: 12px; align-items: center; }

.lightbox-btn {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}

.lightbox-btn:hover { background: rgba(255,255,255,0.28); }
.lightbox-btn.close { font-size: 1.8rem; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

@media (max-width: 600px) {
  .lightbox-nav { display: none; }
}

.gallery-link { display: block; cursor: zoom-in; }

.gallery-cell { position: relative; }

.gallery-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  transition: background 0.15s ease;
}

.gallery-delete-btn:hover {
  background: rgba(192, 57, 43, 0.9);
}

.lightbox-btn.delete:hover {
  background: rgba(192, 57, 43, 0.85);
}
