/* Import Inter from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root{
  --bg: #0b0f14;
  --surface: #121820;
  --surface-2: #18212b;
  --text: #e6edf5;
  --muted: #9fb0c3;
  --accent: #2dd4bf;
  --accent-2: #14b8a6;
  --line: #263241;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0,0,0,.25);
}

/* Global tokens & base */
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif; /* Force Inter everywhere */
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-2);
}

/* Nav, header, footer share theme background/text */
nav, header, footer {
  background: var(--surface);
  color: var(--text);
}

/* Buttons/links that look like buttons */
button, .btn, .nav-links a {
  border-radius: var(--radius);
}

.nav-links a {
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover {
  background: #0b1220;
  color: var(--accent);
}

/* Image polish */
img {
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 100%;
  height: auto;
}

/* Headings tighten slightly */
h1, h2, h3 {
  letter-spacing: .2px;
}

/* Optional button class for any link */
.btn {
  display:inline-block;
  padding:10px 16px;
  border:1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: var(--radius);
  transition: transform .06s ease, background .2s ease, border-color .2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  background:#0b1220;
  border-color: var(--accent);
}

/* Common gaps for galleries if class names exist */
.images, .gallery {
  gap: 24px;
}

/* Footer consistency */
footer {
  padding: 15px 0;
  text-align: center;
  font-size: 0.9em;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 5px rgba(0,0,0,0.4); /* subtle top shadow */
}

/* =========================================================
   Standardized Popup (Option B theme; matches Customizables)
   ========================================================= */

/* Overlay container */
.popup {
  display: none;                 /* hidden by default, toggled by .show */
  position: fixed;
  inset: 0;                      /* top/right/bottom/left: 0 */
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Show state (add/remove via JS) */
.popup.show { display: flex; }

/* Popup card */
.popup-content {
  position: relative;
  background: var(--surface-2);
  color: var(--text);
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0,0,0,.6);
  max-width: 90vw;
  max-height: 90vh;
  padding: 20px;
  display: flex;
  align-items: center;           /* center image vertically with arrows on desktop */
  justify-content: center;
  flex-direction: row;           /* desktop: image with side arrows */
}

/* Image inside popup */
.popup-content img,
.popup img#popupImage {
  max-width: 80vw;
  max-height: 70vh;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: opacity .25s ease;
}

/* Close button (×) */
.popup-close,
.closePopup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  transition: color .2s ease;
}
.popup-close:hover,
.closePopup:hover { color: var(--accent); }

/* Arrow buttons (shared styles) */
.popup-arrow,
.popup-controls button {
  background: var(--accent);
  border: none;
  color: #0b0f14;                /* dark text/icon on accent */
  font-weight: 700;
  border-radius: 999px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: background .2s ease, transform .06s ease, color .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.popup-arrow:hover,
.popup-controls button:hover { background: var(--accent-2); transform: scale(1.06); }
.popup-arrow:active,
.popup-controls button:active { transform: scale(0.97); }

.popup-arrow img,
.popup-controls img {
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%); /* keep icons readable on accent */
}

/* ===== Desktop behavior: arrows on the left/right of the image ===== */
.desktop-only { display: inline-flex; }
.mobile-only  { display: none; }

.popup-arrow.left  { position: absolute; left: 15px;  top: 50%; transform: translateY(-50%); }
.popup-arrow.right { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); }

/* Controls row (used on mobile) */
.popup-controls {
  display: none;                 /* hidden on desktop */
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
}

/* ===== Mobile behavior: buttons side-by-side under the image ===== */
@media (max-width: 768px) {
  .popup-content {
    padding: 16px;
    flex-direction: column;      /* stack image, then controls */
  }
  .popup-content img,
  .popup img#popupImage {
    max-width: 90vw;
    max-height: 60vh;
    margin-bottom: 12px;
  }

  /* hide desktop arrows, show mobile controls row */
  .desktop-only { display: none !important; }
  .mobile-only  { display: inline-flex !important; }

  .popup-controls { display: flex; }     /* row under the image */
  .popup-arrow,
  .popup-controls button {
    width: 42px;
    height: 42px;
  }
  .popup-controls img { width: 20px; height: 20px; }
}

/* Thumbnails (shared look across pages) */
.thumbnail {
  border: 2px solid var(--line);
  border-radius: 6px;
  transition: transform .2s ease, border-color .2s ease;
  cursor: pointer;
}
.thumbnail:hover { transform: scale(1.08); }
.thumbnail.active { border-color: var(--accent); }

/* Image hover highlight */
img:hover,
.thumbnail:hover {
  border: 2px solid var(--accent-2);
  transform: scale(1.02);
  transition: transform .2s ease, border-color .2s ease;
}
