/* ===============================
   BASE THEME
   =============================== */

:root {
  --bg: #0e0e11;
  --panel: #16161c;
  --panel-soft: #1e1e26;
  --border: #2a2a35;
  --text: #e6e6eb;
  --muted: #a0a0b0;
  --accent: #5da9ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 24px;
  background: radial-gradient(circle at top, #15151d, #0e0e11);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}

/* ===============================
   PAGE TITLE
   =============================== */

h1 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

/* ===============================
   COLLAPSIBLE SECTIONS
   =============================== */

.section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.section-header:hover {
  background: var(--panel-soft);
}

.section-header::before {
  content: "▾";
  display: inline-block;
  transition: transform 0.2s ease;
  color: var(--muted);
}

.collapsed > .section-header::before {
  transform: rotate(-90deg);
}

.section-content {
  margin-left: 18px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.collapsed > .section-content {
  display: none;
}

/* ===============================
   PHOTO GRID
   =============================== */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 12px 0 24px;
}

/* ===============================
   PHOTO CARD
   =============================== */

.photo-card {
  background: linear-gradient(180deg, #1a1a22, #14141b);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.photo-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.photo-card img:hover {
  opacity: 0.9;
}

/* ===============================
   BUTTONS
   =============================== */

button {
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, border 0.15s ease;
}

button:hover {
  background: var(--panel-soft);
  border-color: var(--accent);
}

/* ===============================
   PHOTO INFO (THUMBNAIL VIEW)
   =============================== */

.photo-info {
  display: none;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

.photo-info span {
  display: block;
}

/* ===============================
   LIGHTBOX
   =============================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 96vw;
  max-height: 96vh;
  object-fit: contain;
  border-radius: 4px;
}

/* ===============================
   LIGHTBOX UI
   =============================== */

/* Lightbox UI */
.lightbox-ui {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 10000;
}

#lightbox-info-btn {
  font-size: 0.85rem;
  padding: 6px 10px;
}

/* ===============================
   LIGHTBOX INFO PANEL
   =============================== */

.lightbox-info {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 300px;
  background: rgba(20, 20, 28, 0.95);
  padding: 16px;
  overflow-y: auto;
  border-left: 1px solid var(--border);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

.lightbox-info span {
  display: block;
  margin-bottom: 6px;
}

.lightbox-info hr {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 10px 0;
}

/* ===============================
   UTILITIES
   =============================== */

.hidden {
  display: none;
}