:root{
  --bg: #0f1115;
  --panel: #151923;
  --panel2:#10131a;
  --text: #e9eef7;
  --muted:#a9b2c3;
}

body{ background: var(--bg); color: var(--text); }
.site-header{ background: rgba(15,17,21,0.75); backdrop-filter: blur(10px); }
.hero{
  background:
    radial-gradient(1200px 500px at 15% 15%, rgba(255,193,7,0.12), transparent 60%),
    radial-gradient(900px 400px at 80% 10%, rgba(255,193,7,0.08), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%);
}

.section-alt{ background: rgba(255,255,255,0.02); }
.card-dark{
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
}
.text-secondary{ color: var(--muted) !important; }

.hero-media{
  aspect-ratio: 4 / 3;
  background: var(--panel2);
  border: 1px solid rgba(255,255,255,0.08);
}

.gallery-tile{
  cursor: pointer;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--panel);
  transition: transform .12s ease, border-color .12s ease;
}
.gallery-tile:hover{ transform: translateY(-2px); border-color: rgba(255,193,7,0.45); }

.form-control, .form-control:focus,
.form-select, .form-select:focus{
  background: rgba(0,0,0,0.25);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: none;
}
.form-label{ color: var(--muted); }

.site-footer .text-muted{ color: rgba(233,238,247,0.55) !important; }


/* ===== Fullscreen image viewer ===== */
.img-viewer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}
.img-viewer.d-none { display: none; }
.img-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.92);
}
.img-viewer img {
  /* Keep generic safe defaults, real sizing is on .img-viewer-img */
  position: relative;
  z-index: 1;
  display: block;
  margin: auto;
  object-fit: contain;
}
.img-viewer-close {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 2;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}
.img-viewer-close:hover { opacity: 1; }


/* Viewer: scale image to viewport */
.img-viewer-img{
  position: relative;
  z-index: 1;

  /* Force image to use most of the viewport */
  width: min(96vw, 1600px);
  height: 92vh;

  max-width: none;
  max-height: none;

  object-fit: contain;
}

/* Viewer navigation */
.img-viewer-nav{
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-size: 34px;
  line-height: 48px;
  cursor: pointer;
  opacity: 0.85;
}
.img-viewer-nav:hover{ opacity: 1; }
.img-viewer-prev{ left: 16px; }
.img-viewer-next{ right: 16px; }

.img-viewer-meta{
  position: fixed;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
}
