/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
}

/* ── Mobile fallback ──────────────────────────────────────── */
.mobile-block {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: #080b18;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 768px) {
  .mobile-block { display: block; }
}

.mob-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Header */
.mob-header { text-align: center; padding-bottom: 2rem; }
.mob-header h1 {
  font-family: 'Cabin Sketch', cursive;
  font-size: 3rem;
  color: #fff;
  letter-spacing: 0.02em;
}
.mob-sub {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  margin-top: 0.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Card: full-width colored box, text + island inside */
.mob-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: color-mix(in srgb, var(--mc) 12%, #0d1120);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 1.5rem 1.5rem;
  border-radius: 0;
}
.mob-card--right { flex-direction: row-reverse; }

.mob-island {
  width: 190px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
}

.mob-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: none;
  border-radius: 0;
  padding: 0;
}

.mob-card-name {
  font-family: 'Cabin Sketch', cursive;
  font-size: 1.35rem;
  color: var(--mc);
}

.mob-card-desc {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.5rem;
}

.mob-card-cta {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--mc);
  text-decoration: none;
  opacity: 0.85;
  display: inline-block;
}
.mob-card-cta:active { opacity: 1; }

.mob-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.mob-links a {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mc);
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--mc) 14%, transparent);
}
.mob-links a:active {
  background: color-mix(in srgb, var(--mc) 28%, transparent);
}

/* Expandable project items (mobile Signal Bay & Graph City) */
.mob-project-item {
  width: 100%;
}
.mob-project-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mc);
  background: color-mix(in srgb, var(--mc) 14%, transparent);
  border: none;
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  text-align: left;
}
.mob-project-btn:active {
  background: color-mix(in srgb, var(--mc) 28%, transparent);
}
.mob-project-arrow {
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.25s ease;
  display: inline-block;
}
.mob-project-item.open .mob-project-arrow {
  transform: rotate(90deg);
}
.mob-project-preview {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 2px;
}
.mob-project-item.open .mob-project-preview {
  max-height: 420px;
  padding-top: 10px;
  padding-bottom: 4px;
}
.mob-project-preview img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  max-height: 180px;
}
.mob-project-preview p {
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  margin: 0;
}
.mob-project-open {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mc);
  text-decoration: none;
  background: color-mix(in srgb, var(--mc) 20%, transparent);
  border-radius: 6px;
  padding: 0.3rem 0.9rem;
  align-self: flex-start;
}

.mob-divider {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.mob-hint {
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.04em;
  margin-top: 48px;
}

/* ═══════════════════════════════════════════════════════════
   OCEAN BACKGROUND
════════════════════════════════════════════════════════════ */
#map {
  position: relative;
  width: 100vw; height: 100vh;
  overflow: hidden;
  background-color: #0a7080;
  /* Radial depth vignette */
  background-image:
    radial-gradient(ellipse at 20% 80%, rgba(0,140,160,0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(0,160,175,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(12,100,118,0.5)  0%, transparent 80%);
}

/* Animated diagonal water-stripe ripple — disabled (background art is present) */
#map::before, #map::after { display: none; }
#map::before {
  content: '';
  position: absolute;
  inset: -150px;
  z-index: 0;
  background-image:
    repeating-linear-gradient(
      -55deg,
      transparent 0px,
      transparent 24px,
      rgba(255,255,255,0.042) 24px,
      rgba(255,255,255,0.042) 26px
    );
  animation: waterDrift 9s linear infinite;
  pointer-events: none;
}

/* Second stripe layer at different angle for crosshatch depth */
#map::after {
  content: '';
  position: absolute;
  inset: -150px;
  z-index: 0;
  background-image:
    repeating-linear-gradient(
      35deg,
      transparent 0px,
      transparent 38px,
      rgba(255,255,255,0.022) 38px,
      rgba(255,255,255,0.022) 40px
    );
  animation: waterDrift 14s linear infinite reverse;
  pointer-events: none;
}

@keyframes waterDrift {
  from { transform: translate(0, 0); }
  to   { transform: translate(38px, 38px); }
}

/* ── Swappable background image ───────────────────────────── */
/*
 * Drop your artwork at assets/map/background.png and it
 * automatically replaces the CSS ocean below.
 * The water-ripple overlays (::before / ::after) stay on top
 * at low opacity so the map still feels alive even with art.
 * To disable the ripple overlay once you have art, set:
 *   #map::before, #map::after { display: none; }
 */
#map-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('assets/map/background.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  /* Hidden until the PNG actually exists — the CSS ocean
     on #map shows through as the fallback. */
}

/* ── SVG paths ────────────────────────────────────────────── */
#paths-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ── Clouds layer ─────────────────────────────────────────── */
#clouds-layer {
  position: absolute; inset: 0;
  z-index: 15;
  pointer-events: none;
}

.cloud {
  position: absolute;
  height: auto;
  opacity: 1;
  transition: opacity 0.35s ease;
}

@keyframes cloudDrift { from { transform: translateX(-200px); } to { transform: translateX(110vw); } }

/* ── Regions layer ────────────────────────────────────────── */
#regions-layer {
  position: absolute; inset: 0;
  z-index: 10;
}

/* ═══════════════════════════════════════════════════════════
   REGION ISLANDS
════════════════════════════════════════════════════════════ */
.region {
  position: absolute;
  width: 280px; height: 280px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), filter 0.3s ease;
}

.region:hover {
  transform: translate(-50%, -50%) scale(1.12);
}

/* Island base — PNG art variant */
.island-base--art {
  position: absolute;
  bottom: 50px; left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  border-radius: 0;
  background: none;
  border: none;
  box-shadow: none;
  filter: none;
}

/* Island base — organic blob shape with floating shadow */
.island-base {
  position: absolute;
  bottom: 50px; left: 50%;
  transform: translateX(-50%);
  width: 240px; height: 130px;
  /* Organic blob — different on each pair of corners */
  border-radius: 52% 48% 55% 45% / 48% 52% 46% 54%;
  /* Floating island shadow: deep shadow below + warm rim light on top */
  box-shadow:
    0 16px 40px rgba(0,0,0,0.45),
    0 6px 12px  rgba(0,0,0,0.30),
    inset 0 2px 0 rgba(255,255,255,0.18);
}

/* Structure placeholder */
.island-structure {
  position: absolute;
  bottom: 180px; left: 50%;
  transform: translateX(-50%);
  border-radius: 6px 6px 0 0;
  /* Thin top-highlight edge */
  box-shadow: inset 0 3px 0 rgba(255,255,255,0.22);
}

/* ═══════════════════════════════════════════════════════════
   HOVER NAME TAG
════════════════════════════════════════════════════════════ */
.region-label {
  position: absolute;
  top: -62px; left: 50%;
  transform: translateX(-50%);
  /* Game UI tooltip panel */
  background: linear-gradient(160deg, #1a1030 0%, #120c26 100%);
  border: 2px solid var(--rc, rgba(220,180,60,0.7));
  /* Pixel-art double border via box-shadow */
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.8),
    0 0 0 3px color-mix(in srgb, var(--rc, #dcb43c) 18%, transparent),
    0 8px 24px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 7px 14px 7px 10px;
  text-align: left;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

/* Small downward notch/arrow under the tooltip */
.region-label::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid var(--rc, rgba(220,180,60,0.7));
}

/* Flip: label below the island for top-of-screen regions */
.region-label.label-below {
  top: auto;
  bottom: -62px;
}
/* Flip the arrow too */
.region-label.label-below::after {
  bottom: auto;
  top: -8px;
  border-top: none;
  border-bottom: 8px solid var(--rc, rgba(220,180,60,0.7));
}

.region:hover .region-label {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}
.region:hover .region-label.label-below {
  transform: translateX(-50%) translateY(2px);
}

.region-label .label-icon {
  display: inline-block;
  margin-right: 4px;
  font-size: 0.75rem;
  vertical-align: middle;
  opacity: 0.9;
}
.region-label .label-name {
  display: block;
  font-family: 'Cabin Sketch', cursive;
  font-size: 0.88rem;
  font-weight: 400; /* Fredoka One is always bold */
  color: var(--rc, #f5e08a);
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.region-label .label-desc {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(200,185,240,0.8);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════
   REGION ANIMATIONS
════════════════════════════════════════════════════════════ */

/* ── Smoke (Industrial) ───────────────────────────────────── */
.smoke-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 90px;
  pointer-events: none;
}
.smoke-puff {
  position: absolute;
  bottom: 0; left: 50%;
  width: 26px; height: 26px;
  border-radius: 50%;
  opacity: 0;
}
.smoke-puff:nth-child(1) { animation: smokePuff 2.8s ease-in-out 0s   infinite; }
.smoke-puff:nth-child(2) { animation: smokePuff 2.8s ease-in-out 0.93s infinite; }
.smoke-puff:nth-child(3) { animation: smokePuff 2.8s ease-in-out 1.86s infinite; }

@keyframes smokePuff {
  0%   {
    opacity: 0;
    transform: translateX(-50%) translateY(0)     scale(0.5);
    background: radial-gradient(circle, rgba(210,200,200,0.85) 0%, rgba(180,170,170,0) 70%);
  }
  15%  {
    opacity: 0.8;
    transform: translateX(-50%) translateY(-10px)  scale(0.85);
    background: radial-gradient(circle, rgba(200,195,195,0.7)  0%, rgba(170,165,165,0) 70%);
  }
  55%  {
    opacity: 0.4;
    transform: translateX(-51%) translateY(-38px)  scale(1.4);
    background: radial-gradient(circle, rgba(190,190,190,0.4)  0%, rgba(160,160,160,0) 70%);
  }
  100% {
    opacity: 0;
    transform: translateX(-53%) translateY(-80px)  scale(1.9);
    background: radial-gradient(circle, rgba(180,180,180,0.05) 0%, rgba(150,150,150,0) 70%);
  }
}

/* ── Neon blink (Graph City) ──────────────────────────────── */
.blink-dot {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ff2d78;
  box-shadow: 0 0 6px 2px #ff2d78, 0 0 16px 4px rgba(255,45,120,0.5);
  animation: blinkPulse 1.5s ease-in-out infinite;
}
@keyframes blinkPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.04; }
}

/* ── Tower blink (Signal Bay) ─────────────────────────────── */
.tower-blink {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ff5500;
  box-shadow: 0 0 5px 2px #ff5500, 0 0 12px 3px rgba(255,85,0,0.4);
  animation: blinkPulse 2s ease-in-out 0.7s infinite;
}

/* ── Wave shimmer (Signal Bay) ────────────────────────────── */
.wave-shimmer {
  position: absolute;
  bottom: 46px; left: 50%;
  transform: translateX(-50%);
  width: 220px; height: 16px;
  border-radius: 0 0 30px 30px;
  background: linear-gradient(to bottom, rgba(0,210,220,0.25), rgba(0,190,210,0.5));
  animation: waveShimmer 2.5s ease-in-out infinite;
}
@keyframes waveShimmer {
  0%, 100% { opacity: 0.45; transform: translateX(-50%) scaleX(1);    }
  50%       { opacity: 0.85; transform: translateX(-50%) scaleX(1.07); }
}

/* ── Beacon pulse (Archive Tower) ────────────────────────── */
.beacon {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #F4C842;
  box-shadow: 0 0 8px 3px #F4C842, 0 0 20px 6px rgba(244,200,66,0.45);
  animation: beaconPulse 3s ease-in-out infinite;
}
@keyframes beaconPulse {
  0%, 100% { opacity: 1;   transform: scale(1);    box-shadow: 0 0 8px 3px #F4C842, 0 0 20px 6px rgba(244,200,66,0.45); }
  50%       { opacity: 0.2; transform: scale(0.5);  box-shadow: 0 0 4px 1px #F4C842, 0 0 10px 2px rgba(244,200,66,0.2); }
}

/* ═══════════════════════════════════════════════════════════
   MAP PATH DOTS
════════════════════════════════════════════════════════════ */
.map-path {
  fill: none;
  stroke: #e8d5a3;
  stroke-width: 9;
  /* stroke-linecap: round + tiny dash = perfect circles */
  stroke-linecap: round;
  stroke-dasharray: 0.5 20;
  /* Outer glow to lift dots off water */
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4));
  animation: pathMarch 0.8s linear infinite;
}
@keyframes pathMarch {
  to { stroke-dashoffset: -20.5; }
}

/* ═══════════════════════════════════════════════════════════
   PDF OVERLAY PANEL
════════════════════════════════════════════════════════════ */
#pdf-overlay {
  position: fixed; inset: 0;
  z-index: 100;
  pointer-events: none;
  /* Dark scrim behind panel */
  background: transparent;
  transition: background 0.4s ease;
}
#pdf-overlay.open {
  pointer-events: all;
  background: rgba(4,12,22,0.6);
}

#pdf-panel {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100vh;
  background: #0e1824;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 -12px 60px rgba(0,0,0,0.7);
  /* Subtle inner border highlight at top */
  border-top: 1px solid rgba(255,255,255,0.06);
}
#pdf-overlay.open #pdf-panel { transform: translateY(0); }

#pdf-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-radius: 0;
  flex-shrink: 0;
  /* Color set via JS — border-bottom provides separation */
  border-bottom: 1px solid rgba(0,0,0,0.25);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.06);
}

#pdf-title {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 14px;
}
#pdf-region-name {
  font-family: 'Cabin Sketch', cursive;
  font-size: 2rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  line-height: 1;
}
#pdf-region-desc {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
  border-left: 2px solid rgba(255,255,255,0.35);
  padding-left: 14px;
}

#pdf-close {
  background: rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  width: 38px; height: 38px;
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  flex-shrink: 0;
  font-family: 'Nunito', sans-serif;
  letter-spacing: 0;
  /* Game menu button feel */
  box-shadow: 0 3px 0 rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.12);
}
#pdf-close:hover  { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.5); }
#pdf-close:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,0.4); }

/* ── Panel body (holds either iframe or feed) ─────────────── */
#panel-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* PDF iframe inside panel-body */
#panel-body iframe {
  flex: 1;
  border: none;
  width: 100%;
  background: #1a2535;
}

/* ═══════════════════════════════════════════════════════════
   FEED PANEL
════════════════════════════════════════════════════════════ */
.feed-list {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.feed-list::-webkit-scrollbar { width: 5px; }
.feed-list::-webkit-scrollbar-track { background: transparent; }
.feed-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

/* Individual project card */
.feed-card {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.feed-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-2px);
}
.feed-card:active { transform: translateY(0); }

/* Thumbnail wrapper */
.feed-thumb-wrap {
  position: relative;
  flex-shrink: 0;
  width: 220px;
  height: 148px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}
.feed-thumb-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.feed-card:hover .feed-thumb-wrap img { transform: scale(1.04); }

/* Video / image type badge */
.feed-badge {
  position: absolute;
  top: 8px; left: 8px;
  padding: 3px 9px;
  border-radius: 5px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  backdrop-filter: blur(6px);
}
.feed-badge--video { background: rgba(220,50,50,0.82); }
.feed-badge--image { background: rgba(60,120,220,0.82); }

/* Play icon overlay for videos */
.feed-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  opacity: 0.7;
  transition: opacity 0.2s;
  pointer-events: none;
}
.feed-card:hover .feed-play-icon { opacity: 1; }

/* Text side */
.feed-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.feed-project-name {
  font-family: 'Cabin Sketch', cursive;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.feed-project-desc {
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(200,195,230,0.65);
  line-height: 1.6;
}

/* Empty state */
.feed-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.2);
  font-family: 'Cabin Sketch', cursive;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.feed-empty-icon { font-size: 2.4rem; opacity: 0.35; }

/* ═══════════════════════════════════════════════════════════
   LIGHTBOX
════════════════════════════════════════════════════════════ */
#lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
#lightbox.open {
  opacity: 1;
  pointer-events: all;
}

#lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.22);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  width: 40px; height: 40px;
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Nunito', sans-serif;
  box-shadow: 0 3px 0 rgba(0,0,0,0.5);
  transition: background 0.15s, transform 0.1s;
  z-index: 1;
}
#lightbox-close:hover  { background: rgba(255,255,255,0.22); }
#lightbox-close:active { transform: translateY(2px); box-shadow: none; }

#lightbox-content {
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lightbox-content img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 0 100px rgba(0,0,0,0.9);
  display: block;
}
#lightbox-content video {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 6px;
  box-shadow: 0 0 100px rgba(0,0,0,0.9);
  background: #000;
  display: block;
}

#pdf-frame {
  flex: 1;
  border: none;
  width: 100%;
  background: #1a2535;
}
