:root {
  --bg: #222831;
  --bg-alt: #2D333B;
  --panel: #2D333B;
  --panel-alt: #393E46;
  --text: #EEEEEE;
  --muted: #BDC3C7;
  --accent: #00ADB5;
  --accent-700: #007A7F;
  --danger: #ff5252;
  --border: #1E2228;
  --thumb-shadow-color: #000000;
  --thumb-shadow-opacity: 0.18;
  --thumb-shadow: rgba(0,0,0,0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0 0 2.5rem 0;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--accent-700);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.primary-nav {
  display: flex;
  align-items: center;
}

.primary-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
  gap: 1.5rem;
}

.nav-link {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.25rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: background 0.2s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
  background: rgba(0, 173, 181, 0.5);
}

.nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  background: var(--accent);
}

.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

.page-home .site-main {
  max-width: 1280px;
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-size: 2.4rem;
  letter-spacing: 0.02em;
}

.page-lead {
  margin: 0 0 2.5rem 0;
  color: var(--muted);
  max-width: 640px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-intro {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-intro .eyebrow {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin: 0 0 2.5rem 0;
}

.hero-intro h1 {
  margin: 0 0 2.5rem 0;
  font-size: 3.2rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero-intro .lead {
  margin: 0 0 2.5rem 0;
  max-width: 540px;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  align-content: start;
}

.hero-card {
  background: var(--panel-alt);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.hero-card .metric {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}

.hero-card .metric-label {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.5rem 1.8rem;
  margin-bottom: 1.75rem;
  background: var(--panel);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 36px var(--thumb-shadow);
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 200px;
}
.filter-group--compact {
  min-width: 160px;
}
.filter-group__label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.filter-row--scroll {
  overflow-x: auto;
  padding-bottom: 0.2rem;
}
.filter-row--scroll::-webkit-scrollbar {
  height: 6px;
}
.filter-row--scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}
.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.chip:hover,
.chip:focus {
  color: var(--text);
  border-color: var(--accent);
}
.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #041417;
}
.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.section-title {
  margin: 0 0 2.5rem 0;
  font-size: 2rem;
}
.section-subtitle {
  margin: 0 0 2.5rem 0;
  color: var(--muted);
  max-width: 620px;
}
.gallery-section {
  padding: 2.5rem 0 1rem;
}
.gallery-controls + .gallery-summary {
  margin-top: -0.5rem;
}
.gallery-summary {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.gallery-card {
  background: var(--panel);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 24px 48px var(--thumb-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}
.gallery-card picture,
.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
}
.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.26);
}
.gallery-card__meta {
  padding: 1.1rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.gallery-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.gallery-card__details {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.gallery-card__tags {
  font-size: 0.85rem;
  color: var(--accent);
}
.gallery-empty, .empty-state {
  margin: 2rem 0;
  text-align: center;
  color: var(--muted);
}
.gallery-actions {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.gallery-status {
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 1.2rem;
}\n

.empty-state {
  margin-top: 2rem;
  padding: 1.2rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: var(--muted);
  text-align: center;
}

.services-overview {
  padding: 3rem 0 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card h3 {
  margin: 0 0 2.5rem 0;
  font-size: 1.3rem;
}

.service-card p {
  margin: 0 0 2.5rem 0;
  color: var(--muted);
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.service-link {
  font-weight: 600;
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  background: var(--bg-alt);
}

/* Hero photo (simplified landing) */
.hero-photo {
  position: relative;
  margin: 0 0 2.5rem;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 24px 48px var(--thumb-shadow);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--panel);
  height: calc(100vh - var(--header-h, 64px));
  height: calc(100svh - var(--header-h, 64px)); /* mobile small viewport */
}
.hero-photo__link { display: block; height: 100%; }
.hero-photo picture,
.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain; /* show full image */
  object-position: center;
}
/* animated scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.15);
}
.scroll-cue__icon { display: inline-block; font-size: 18px; animation: bounce 1.6s infinite; }
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  60% { transform: translateY(-3px); }
}

/* Masonry grid (preserve image aspect ratios) */
.masonry-section { padding: 0.5rem 0 2rem; }
#grid { scroll-margin-top: calc(var(--header-h, 64px) + 8px); }
.masonry-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-auto-rows: var(--masonry-row, 8px);
  grid-auto-flow: row dense;
}
.masonry-item {
  display: block;
  grid-row-end: span 1;
  break-inside: avoid;
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 16px 32px var(--thumb-shadow);
}
.masonry-item picture,
.masonry-item img {
  display: block;
  width: 100%;
  height: auto;

  aspect-ratio: var(--media-aspect, 3 / 2);
}

/* Header dropdown for categories */
.primary-nav li { position: relative; }
/* Force dropdown to block layout (not flex) */
.primary-nav .nav-dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% - 2px); /* overlap menu to avoid hover gap */
  left: 0;
  min-width: 200px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.35rem 0;
  box-shadow: 0 24px 48px rgba(0,0,0,0.35);
  z-index: 150;
  list-style: none;
  margin: 0 0 2.5rem 0;
}
.primary-nav .nav-dropdown li { display: block; }
.has-dropdown:hover > .nav-dropdown,
.has-dropdown:focus-within > .nav-dropdown {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.nav-dropdown a { display: block; padding: 0.5rem 1rem; color: var(--text); }
.primary-nav .nav-dropdown .nav-link::after { content: none; }
.nav-dropdown a:hover, .nav-dropdown a:focus { background: rgba(255,255,255,0.06); }
@media (max-width: 900px) {
  .primary-nav .nav-dropdown {
    position: static;
    display: flex;
    flex-direction: column;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0.25rem 0 0.25rem 0.75rem;
  }
  .nav-dropdown a { padding: 0.35rem 0; color: var(--muted); }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2rem;
}
.lightbox:not([hidden]) { display: flex; }
.lightbox__figure { margin: 0 0 2.5rem 0; max-width: 95vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.lightbox__img { max-width: 95vw; max-height: 85vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 18px 36px rgba(0,0,0,0.5); }
.lightbox__caption { color: #d8dee6; font-size: 0.95rem; text-align: center; }
.lightbox__close {
  position: absolute; top: 1rem; right: 1rem;
  font-size: 2rem; line-height: 1; background: transparent; color: #fff; border: none; cursor: pointer;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.07); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }

.about {
  background: var(--panel);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.about h2 {
  margin-top: 0;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
  display: grid;
  gap: 0.6rem;
}

.article-item,
.article-detail {
  background: var(--panel);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.articles-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.article-item {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.article-item a {
  color: var(--text);
}

.article-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.article-item h2 {
  margin: 1rem 1.2rem 0.5rem;
}

.article-date {
  margin: 0 1.2rem 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.article-excerpt {
  margin: 0 1.2rem 1.4rem;
  color: var(--muted);
}

.article-detail {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.article-detail .page-header {
  margin-bottom: 0;
}

.article-figure {
  margin: 0 0 2.5rem 0;
  border-radius: 12px;
  overflow: hidden;
}

.article-content {
  color: var(--muted);
  line-height: 1.7;
}

.article-back {
  margin-top: 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
}

.contact-links {
  background: var(--panel);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.05rem;
}

.contact-item i {
  font-size: 1.4rem;
  width: 32px;
  text-align: center;
  color: var(--accent);
}

.contact-form {
  background: var(--panel);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--panel-alt);
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 1.1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 173, 181, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0b1f24;
  box-shadow: 0 12px 30px rgba(0, 173, 181, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-700);
  color: #e7f9fb;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-secondary:hover,
.btn-secondary:focus {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover,
.btn-ghost:focus {
  color: var(--text);
  border-color: var(--text);
}

.success-message {
  color: #2ecc71;
  background-color: rgba(46, 204, 113, 0.15);
  border: 1px solid #2ecc71;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  margin: 1rem 0 2rem;
}

.table {
  width: 100%;
  background: var(--panel);
  border-radius: 6px;
  overflow: hidden;
}

.table th,
.table td {
  padding: 0.6em 0.8em;
  border-bottom: 1px solid #4A5058;
}

.table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  background: rgba(0,0,0,0.1);
}

.table tr:hover {
  background: rgba(255,255,255,0.03);
}

/* Legacy sidebar layout (admin) */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 0;
  z-index: 100;
  box-shadow: 2px 0 5px rgba(0,0,0,0.2);
}

.sidebar-title {
  font-size: 2em;
  font-weight: 700;
  text-align: center;
  padding: 1.2em 0.5em;
  color: var(--text);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.5px;
}

.sidebar-title-link {
  text-decoration: none;
}

.sidebar a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 0.8em 1.5em;
  font-size: 1em;
  border-bottom: 1px solid var(--panel-alt);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar a:hover,
.sidebar a:focus {
  background-color: var(--panel-alt);
  color: var(--text);
}

.sidebar a.active {
  background-color: var(--accent);
  color: #FFFFFF;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-intro h1 {
    font-size: 2.6rem;
  }

  .hero-highlight {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 0.8rem 1.2rem;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: rgba(22, 25, 31, 0.95);
    backdrop-filter: blur(14px);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    padding: 2rem;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 1.2rem;
  }

  .primary-nav.is-open {
    transform: translateY(0);
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 600px) {
  .site-main {
    padding: 1.8rem 1.5rem 3rem;
  }

  .hero-intro h1 {
    font-size: 2.2rem;
  }

  .hero-intro .lead {
    font-size: 1.05rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .articles-list {
    grid-template-columns: 1fr;
  }
}
.page-photo .site-header {
  margin-bottom: 0;
}

.photo-main {
  padding: 3rem 2.5rem 4rem;
}

.photo-container {
  max-width: 1100px;
  margin: 0 auto;
}

.photo-back {
  margin-bottom: 1.5rem;
}

.photo-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  background: var(--panel);
  border-radius: 20px;
  padding: 1.5rem 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 24px 48px var(--thumb-shadow);
}

.photo-detail__media picture,
.photo-detail__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.photo-detail__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.photo-detail__title {
  margin: 0 0 2.5rem 0;
  font-size: 2.1rem;
}

.photo-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.photo-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}

.photo-chip--tag {
  background: rgba(0, 173, 181, 0.15);
  color: var(--accent);
}

.photo-detail__story h2,
.photo-detail__specs h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.photo-detail__story p {
  margin: 0 0 2.5rem 0;
  color: var(--text);
  line-height: 1.7;
}

.photo-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem 1.4rem;
}

.photo-specs__item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.photo-specs__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.photo-specs__value {
  font-weight: 500;
}

.photo-detail__nav {
  display: flex;
  gap: 0.9rem;
}

.photo-detail__nav .btn {
  padding: 0.6rem 1.2rem;
}

.photo-series {
  margin-top: 3rem;
}

.photo-series__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.photo-series__item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--panel);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.photo-series__item img {
  border-radius: 10px;
  display: block;
}

.photo-series__item span {
  font-size: 0.9rem;
  color: var(--muted);
}

.photo-series__item:hover,
.photo-series__item:focus {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.photo-series__item.is-current {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 173, 181, 0.2);
}
/* Admin area layout overrides */
body.admin {
  display: flex;
  min-height: 100vh;
  background: #f6f7fb;
  color: #1f2937;
}

body.admin nav.sidebar {
  width: 240px;
  background: #0f172a;
  color: #e2e8f0;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: sticky;
  top: 0;
  min-height: 100vh;
  box-shadow: 12px 0 24px rgba(15, 23, 42, 0.2);
}

body.admin nav.sidebar .sidebar-title-link {
  padding: 0;
  margin-bottom: 1.5rem;
  border-radius: 0;
  color: #f8fafc;
}

body.admin nav.sidebar .sidebar-title-link:hover,
body.admin nav.sidebar .sidebar-title-link:focus {
  background: none;
  color: #f8fafc;

}

body.admin nav.sidebar .sidebar-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #f8fafc;
  margin-bottom: 1.2rem;
}

body.admin nav.sidebar a {
  color: rgba(226, 232, 240, 0.78);
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

body.admin nav.sidebar a:hover,
body.admin nav.sidebar a:focus {
  background: rgba(59, 130, 246, 0.18);
  color: #f8fafc;
}

body.admin nav.sidebar a.active {
  background: #1d4ed8;
  color: #f8fafc;
}

body.admin .content {
  flex: 1;
  padding: 2.5rem 3rem;
  background: #eef2ff;
  color: #1f2937;
  display: flex;
  flex-direction: column;
}

body.admin .content header h1 {
  margin: 0 0 1.5rem;
  color: #111827;
}

body.admin .content main {
  flex: 1;
}

body.admin .content section {
  background: #fff;
  border-radius: 14px;
  padding: 1.8rem;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

body.admin .content section + section {
  margin-top: 2rem;
}

body.admin .content table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  color: #1f2937;
}

body.admin .content table thead th {
  text-align: left;
  padding: 0.75rem;
  background: #e2e8f0;
  color: #1e293b;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

body.admin .content table td {
  padding: 0.65rem 0.75rem;
  border-top: 1px solid #e5e7eb;
}

body.admin input,
body.admin select,
body.admin textarea {
  background: #fff;
  color: #1f2937;
  border: 1px solid #cbd5f5;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font-size: 0.95rem;
}

body.admin label {
  font-weight: 600;
  color: #1e293b;
}

body.admin details {
  margin-top: 1.25rem;
}

body.admin details summary {
  cursor: pointer;
  font-weight: 600;
}

body.admin .success-message {
  color: #047857;
  background: rgba(16, 185, 129, 0.15);
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

body.admin footer {
  margin-top: auto;
  padding: 2rem 0 0;
  color: #6b7280;
}

@media (max-width: 960px) {
  body.admin {
    flex-direction: column;
  }

  body.admin nav.sidebar {
    position: relative;
    width: 100%;
    min-height: auto;
    padding: 1.5rem 1.25rem;
    box-shadow: none;
  }

  body.admin nav.sidebar a {
    padding: 0.5rem 0.75rem;
  }

  body.admin .content {
    padding: 1.75rem 1.25rem 2.5rem;
  }
}



.rich-editor {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  margin: 12px 0;
}

.rich-editor .editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-alt);
}

.rich-editor .editor-toolbar button {
  border: none;
  background: transparent;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.rich-editor .editor-toolbar button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.rich-editor .editor-surface {
  min-height: 220px;
  padding: 12px;
  line-height: 1.6;
  outline: none;
  background: transparent;
  white-space: pre-wrap;
}

.rich-editor .editor-surface:focus {
  box-shadow: 0 0 0 2px rgba(0, 173, 181, 0.35);
}

.rich-editor .editor-surface p {
  margin: 0 0 12px;
}

.rich-editor .editor-surface ul,
.rich-editor .editor-surface ol {
  padding-left: 24px;
  margin: 0 0 12px;
}

