* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #05070c;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 85% 35%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 120px 120px, 160px 160px;
  color: #e2e8f0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  user-select: none;
  -webkit-user-select: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  text-align: center;
  padding: 1.35rem 1rem 1rem;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.98) 0%, rgba(9, 13, 22, 0.94) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65);
}

.brand-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.star-accent {
  color: #7dd3fc;
  font-size: 0.85rem;
  opacity: 0.85;
}

.site-title {
  font-family: "Cinzel", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #bae6fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 28px rgba(56, 189, 248, 0.28);
}

.subtitle {
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.nav-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.95rem;
}

.nav-btn {
  background: rgba(15, 23, 42, 0.85);
  color: #cbd5e1;
  border: 1px solid #1e293b;
  padding: 0.4rem 1.05rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.86rem;
  letter-spacing: 0.4px;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  border-color: #38bdf8;
  color: #fff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.nav-btn.active {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border-color: #38bdf8;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.45);
}

.gallery-grid {
  max-width: 1320px;
  margin: 2rem auto 3rem;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
}

.photo-card {
  background: #0b111e;
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
}

.photo-card:hover {
  transform: translateY(-4px);
  border-color: #38bdf8;
  box-shadow: 0 10px 26px rgba(2, 132, 199, 0.16);
}

.thumb-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  background: #000;
  overflow: hidden;
}

.thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-touch-callout: none;
}

.card-info {
  padding: 1rem 1.1rem;
}

.card-group {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #38bdf8;
}

.card-title {
  font-size: 1.08rem;
  font-weight: 500;
  margin: 0.2rem 0;
  color: #f8fafc;
}

.card-meta {
  font-size: 0.83rem;
  color: #94a3b8;
}

.lightbox {
  position: fixed;
  top: var(--header-height, 128px);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 5, 8, 0.98);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lightbox.hidden {
  display: none;
}

.lightbox:fullscreen,
.lightbox.ios-fullscreen {
  top: 0;
  z-index: 300;
  background: #000;
}

.lightbox:fullscreen .lightbox-viewport img,
.lightbox.ios-fullscreen .lightbox-viewport img {
  max-width: 98vw;
  max-height: 92dvh;
}

.lightbox.ios-fullscreen .lightbox-toolbar,
.lightbox.ios-fullscreen .lb-hint {
  display: none;
}

.lightbox-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1.25rem;
  background: #0b111e;
  border-bottom: 1px solid #1e293b;
  z-index: 103;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lightbox-title-area h2 {
  font-size: 1.02rem;
  font-weight: 500;
}

.lightbox-title-area span {
  font-size: 0.8rem;
  color: #94a3b8;
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.lb-counter {
  font-size: 0.84rem;
  color: #94a3b8;
  margin-right: 0.35rem;
}

.lightbox-controls button {
  background: #162033;
  color: #fff;
  border: 1px solid #2b3b55;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.88rem;
  min-height: 34px;
}

.lightbox-controls button:hover {
  background: #23334f;
  border-color: #38bdf8;
}

#fullscreen-btn.active-fs {
  background: #0284c7;
  border-color: #38bdf8;
}

#zoom-level {
  min-width: 46px;
  text-align: center;
  font-size: 0.86rem;
  color: #cbd5e1;
}

.lightbox-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
}

.lightbox-viewport:active {
  cursor: grabbing;
}

.lightbox-viewport img {
  max-width: 90vw;
  max-height: 68dvh;
  transform-origin: center center;
  will-change: transform;
  pointer-events: none;
  -webkit-touch-callout: none;
}

.image-shield {
  position: absolute;
  inset: 0;
  z-index: 101;
  -webkit-touch-callout: none;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 102;
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  border: 1px solid #334155;
  width: 44px;
  height: 60px;
  border-radius: 8px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-arrow:hover {
  background: rgba(2, 132, 199, 0.85);
  border-color: #38bdf8;
}

.prev-arrow {
  left: 0.75rem;
}

.next-arrow {
  right: 0.75rem;
}

.lb-hint {
  text-align: center;
  font-size: 0.76rem;
  color: #64748b;
  padding: 0.4rem;
  background: #070a12;
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.95rem 0.75rem 0.75rem;
  }

  .site-title {
    font-size: 1.45rem;
    letter-spacing: 3px;
  }

  .subtitle {
    font-size: 0.72rem;
    letter-spacing: 1.4px;
  }

  .lightbox-toolbar {
    padding: 0.55rem 0.75rem;
  }

  .lightbox-title-area {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
  }

  .lightbox-title-area h2 {
    font-size: 0.92rem;
  }

  .lightbox-controls {
    width: 100%;
    justify-content: space-between;
  }

  .nav-arrow {
    width: 38px;
    height: 50px;
    font-size: 1.2rem;
  }

  .prev-arrow {
    left: 0.4rem;
  }

  .next-arrow {
    right: 0.4rem;
  }
}
