:root {
  --primary: #00539b;
  --accent: #f47d30;
  --on-primary: #ffffff;
  --bg: #0b1622;
  --surface: #121e2c;
  --text: #f4f6f8;
  --muted: #9fb0c0;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 10px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  background-size: cover;
  background-position: center;
  padding: 48px 6vw 56px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--cover-image, none);
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  filter: saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.6) 55%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-logo {
  height: 56px;
  margin-bottom: 18px;
  object-fit: contain;
}

.hero-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 10px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.hero-date {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 16px;
  font-weight: 500;
}

.hero-description {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.photo-count {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 6px 20px -6px rgba(0,0,0,0.5);
}

.btn-primary:hover { transform: translateY(-1px); opacity: 0.85; }
.btn-primary:active { transform: translateY(0); opacity: 1; }

.btn-light {
  background: rgba(255,255,255,0.12);
  color: #fff;
  padding: 10px 18px;
  font-size: 14px;
}
.btn-light:hover { background: rgba(255,255,255,0.2); }

/* ---------- Gallery grid ---------- */
.gallery-wrap {
  padding: 40px 6vw 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.grid-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  aspect-ratio: var(--ar, 1 / 1);
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}

.grid-item img.loaded { opacity: 1; }

.grid-item:hover img { transform: scale(1.045); }

.grid-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 10px;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.55) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.grid-item:hover .grid-item-overlay { opacity: 1; }

.grid-download {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.grid-download:hover { background: #fff; }

.empty-state {
  color: var(--muted);
  text-align: center;
  padding: 60px 0;
  font-size: 15px;
}

.site-footer {
  padding: 30px 6vw 50px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 16, 0.96);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-stage {
  position: relative;
  max-width: 92vw;
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  overflow: hidden;
}

.lightbox-stage img {
  max-width: 92vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  cursor: grab;
  -webkit-user-drag: none;
  user-select: none;
  touch-action: none;
}

.lightbox-stage img.dragging {
  cursor: grabbing;
  transition: none !important;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.18); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.18); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

.lightbox-bar {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.lightbox-index {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Progress toast ---------- */
.progress-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 18px;
  width: min(360px, 86vw);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  z-index: 200;
}

.progress-toast-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text);
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.2s ease;
}

@media (max-width: 640px) {
  .hero { min-height: 52vh; padding: 32px 5vw 40px; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}
