@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #07111d;
  --bg2: #0a1a2b;
  --panel: rgba(14, 35, 57, .78);
  --panel-solid: #0d2238;
  --line: rgba(122, 184, 239, .16);
  --text: #f5f9fd;
  --muted: #91a8bd;
  --blue: #2b9cff;
  --blue2: #65c7ff;
  --shadow: 0 28px 70px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 82% 8%, rgba(28,137,255,.17), transparent 30rem),
    radial-gradient(circle at 10% 68%, rgba(32,171,255,.08), transparent 30rem),
    linear-gradient(145deg, #050c15, #08182a 48%, #06111d);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 38px));
  margin: 0 auto;
  padding: 24px 0 38px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
}

.brand img {
  display: block;
  width: auto;
  height: 72px;
  max-width: 310px;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(9,27,46,.55);
}

nav a {
  padding: 9px 13px;
  color: #96abc0;
  text-decoration: none;
  border-radius: 10px;
  font-size: .83rem;
  font-weight: 700;
}

nav a:hover,
nav a.active {
  color: white;
  background: rgba(46,151,242,.17);
}

.photo-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr .72fr;
  gap: 44px;
  align-items: center;
  min-height: 330px;
  padding: 48px 52px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 74% 42%, rgba(44,157,255,.15), transparent 24rem),
    linear-gradient(135deg, rgba(15,43,71,.90), rgba(7,23,40,.82));
  box-shadow: var(--shadow);
}

.photo-hero::after {
  content: "";
  position: absolute;
  inset: auto -120px -170px auto;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(80,178,255,.11);
  border-radius: 50%;
}

.eyebrow {
  margin: 0 0 9px;
  color: #52b4ff;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .16em;
}

h1, h2, h3 { margin-top: 0; }

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  line-height: .92;
  letter-spacing: -.06em;
}

.hero-text {
  max-width: 650px;
  margin: 0;
  color: #a9bbcc;
  line-height: 1.7;
  font-size: 1.02rem;
}

.hero-stack {
  position: relative;
  min-height: 235px;
}

.stack-card {
  position: absolute;
  width: 220px;
  height: 170px;
  border: 1px solid rgba(135,200,255,.26);
  border-radius: 20px;
  box-shadow: 0 28px 45px rgba(0,0,0,.30);
}

.card-one {
  top: 45px;
  right: 110px;
  transform: rotate(-10deg);
  background: linear-gradient(145deg, #163a5c, #09192a);
}

.card-two {
  top: 30px;
  right: 50px;
  transform: rotate(8deg);
  background:
    radial-gradient(circle at 35% 35%, #339dff, transparent 25%),
    linear-gradient(145deg, #163a5c, #09192a);
}

.card-three {
  top: 30px;
  right: 80px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0a62b7, #08233d);
}

.card-three span {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -.08em;
  color: rgba(255,255,255,.92);
}

.album-section,
.gallery-section {
  margin-top: 55px;
}

.section-heading,
.gallery-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-heading h2,
.gallery-toolbar h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -.04em;
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.heading-actions > span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

.admin-link {
  color: #d9edff;
  padding: 9px 13px;
  border: 1px solid rgba(81,177,255,.28);
  border-radius: 11px;
  background: rgba(35,129,211,.14);
  text-decoration: none;
  font-size: .79rem;
  font-weight: 800;
}

.album-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 15px;
}

.album-card {
  appearance: none;
  width: 100%;
  min-height: 205px;
  padding: 0;
  overflow: hidden;
  position: relative;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-solid);
  color: white;
  cursor: pointer;
  box-shadow: 0 14px 35px rgba(0,0,0,.18);
  transition: transform .18s ease, border-color .18s ease;
}

.album-card:hover,
.album-card.active {
  transform: translateY(-4px);
  border-color: rgba(80,179,255,.53);
}

.album-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .62;
}

.album-cover-placeholder {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 25%, rgba(42,157,255,.33), transparent 35%),
    linear-gradient(145deg, #123d61, #091927);
}

.album-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3,11,20,.95), rgba(4,15,27,.08) 70%);
}

.album-card-content {
  position: absolute;
  z-index: 2;
  inset: auto 18px 17px;
}

.album-card h3 {
  margin: 0 0 3px;
  font-size: 1.3rem;
}

.album-card p {
  margin: 0;
  color: #a6bacb;
  font-size: .79rem;
  line-height: 1.4;
}

.album-count {
  display: inline-block;
  margin-top: 9px;
  color: #64bfff;
  font-size: .72rem;
  font-weight: 800;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 290px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(11,31,51,.74);
  color: #7e9bb4;
}

.search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
  font: inherit;
  font-size: .86rem;
}

.search-wrap input::placeholder { color: #71899f; }

.photo-collage {
  columns: 4 240px;
  column-gap: 14px;
}

.photo-tile {
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  border-radius: 17px;
  background: #0c2034;
  color: white;
  cursor: zoom-in;
  box-shadow: 0 12px 28px rgba(0,0,0,.20);
}

.photo-tile img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .35s ease, filter .35s ease;
}

.photo-tile:hover img {
  transform: scale(1.025);
  filter: brightness(.78);
}

.photo-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 46px 14px 13px;
  text-align: left;
  background: linear-gradient(to top, rgba(3,10,18,.92), transparent);
  opacity: 0;
  transition: opacity .22s ease;
}

.photo-tile:hover .photo-overlay { opacity: 1; }

.photo-overlay strong {
  display: block;
  font-size: .88rem;
}

.photo-overlay span {
  display: block;
  margin-top: 3px;
  color: #a8bccd;
  font-size: .72rem;
}

.empty-state {
  padding: 70px 24px;
  text-align: center;
  border: 1px dashed rgba(124,186,239,.22);
  border-radius: 22px;
  background: rgba(10,29,48,.42);
}

.empty-state.hidden,
.lightbox.hidden { display: none; }

.empty-icon {
  color: #3fa6f7;
  font-size: 3rem;
}

.empty-state h3 {
  margin: 11px 0 6px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.lightbox {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 34px 76px;
  background: rgba(2,8,14,.94);
  backdrop-filter: blur(14px);
}

.lightbox-stage {
  display: grid;
  max-width: min(1100px, 90vw);
  max-height: 90vh;
}

.lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: auto;
  border-radius: 13px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}

.lightbox-caption {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 28px;
  padding: 15px 3px 0;
}

.lightbox-caption h3 {
  margin: 0 0 4px;
}

.lightbox-caption p {
  margin: 0;
  color: #9eb2c4;
  font-size: .84rem;
}

.lightbox-caption > span {
  color: #61bcff;
  font-size: .75rem;
  font-weight: 800;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  border: 1px solid rgba(160,205,244,.22);
  background: rgba(16,39,63,.72);
  color: white;
  cursor: pointer;
}

.lightbox-close {
  top: 22px;
  right: 25px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.8rem;
}

.lightbox-nav {
  top: 50%;
  width: 48px;
  height: 64px;
  transform: translateY(-50%);
  border-radius: 14px;
  font-size: 2.2rem;
}

.lightbox-nav.prev { left: 22px; }
.lightbox-nav.next { right: 22px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 55px;
  padding: 25px 3px 3px;
  border-top: 1px solid rgba(124,186,239,.12);
  color: #6f879c;
  font-size: .75rem;
}

@media (max-width: 920px) {
  .photo-hero { grid-template-columns: 1fr; }
  .hero-stack { display: none; }
  .album-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .site-shell { width: min(100% - 20px, 1220px); padding-top: 14px; }

  .topbar { align-items: flex-start; flex-direction: column; }
  .brand img { height: 62px; max-width: 78vw; }

  nav { width: 100%; overflow-x: auto; }
  nav a { white-space: nowrap; }

  .photo-hero { min-height: auto; padding: 31px 23px; border-radius: 22px; }

  .album-cards { grid-template-columns: 1fr; }
  .album-card { min-height: 170px; }

  .section-heading,
  .gallery-toolbar { align-items: flex-start; flex-direction: column; }

  .heading-actions { width: 100%; justify-content: space-between; }
  .search-wrap { width: 100%; min-width: 0; }

  .photo-collage { columns: 2 145px; column-gap: 9px; }
  .photo-tile { margin-bottom: 9px; border-radius: 12px; }

  .lightbox { padding: 60px 15px 26px; }
  .lightbox-nav { top: auto; bottom: 18px; }
  .lightbox-nav.prev { left: 18px; }
  .lightbox-nav.next { right: 18px; }

  .lightbox-caption { flex-direction: column; gap: 8px; }
  footer { flex-direction: column; }
}
