:root {
  --bg: #000000;
  --panel: #0d0d0d;
  --panel-2: #121212;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f3;
  --muted: rgba(245, 245, 243, 0.46);
  --orange: #fb5a1a;
  --green: #26d07c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #000;
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

button {
  font: inherit;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
}

.age-gate.is-hidden {
  display: none;
}

.age-gate-panel {
  width: min(560px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #050505;
  text-align: center;
}

.age-gate-copy {
  margin: 16px auto 0;
  max-width: 48ch;
  color: rgba(245, 245, 243, 0.66);
  line-height: 1.65;
}

.age-gate-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.age-gate-button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  cursor: pointer;
}

.age-gate-enter {
  background: #fff;
  color: #000;
}

.age-gate-leave {
  background: transparent;
  color: var(--text);
}

.simple-page {
  width: min(1440px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.hero-header {
  padding: 22px 0 36px;
}

.eyebrow,
.mono-label {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

h1 {
  font-size: clamp(4.2rem, 12vw, 8.8rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 38px;
}

.site-logo {
  width: 60px;
  height: auto;
  max-width: 40vw;
  object-fit: contain;
}

.hero-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 96px 0 74px;
}

.hero-content h1 {
  max-width: 10ch;
}

.hero-mark {
  width: 64px;
  height: 1px;
  margin: 40px 0 34px;
  background: rgba(255, 255, 255, 0.22);
}

.hero-subtitle,
.hero-note {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-subtitle {
  color: rgba(245, 245, 243, 0.42);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.9;
}

.hero-note {
  margin-top: 22px;
  color: rgba(245, 245, 243, 0.78);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.hero-disclaimer {
  margin: 14px 0 0;
  color: rgba(245, 245, 243, 0.34);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  max-width: 920px;
}

.tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 22px;
}

.subtabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: -12px 0 24px;
}

.subtabs:empty {
  display: none;
}

.tab {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.tab.active {
  background: #fff;
  border-color: #fff;
  color: #000;
}

.subtab {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.subtab.active {
  background: rgba(255, 255, 255, 0.12);
}

.gallery-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-top: 6px;
}

.count {
  margin: 0;
  color: var(--green);
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-bar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(251, 90, 26, 0.35);
  border-radius: 16px;
  background: rgba(20, 20, 20, 0.94);
}

.admin-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.admin-button-primary {
  border-color: rgba(251, 90, 26, 0.5);
  background: rgba(251, 90, 26, 0.16);
}

.admin-output {
  width: 100%;
  min-height: 180px;
  margin-top: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0d0d0d;
  color: #fff;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
}

.admin-output.is-success {
  border-color: rgba(38, 208, 124, 0.45);
}

.admin-output.is-error {
  border-color: rgba(251, 90, 26, 0.5);
}

.gallery-grid .card.is-draggable {
  cursor: grab;
}

.gallery-grid .card.is-dragging {
  opacity: 0.45;
  transform: scale(0.98);
}

.gallery-grid .card.drag-over {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.card {
  border-radius: 10px;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  content-visibility: auto;
  contain-intrinsic-size: 480px;
  position: relative;
  align-self: start;
}

.media {
  background: transparent;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}

.media .media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 180ms ease;
}

.media .media-image.loaded {
  opacity: 1;
}

.watermark {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 44px;
  height: auto;
  opacity: 0.72;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.watermark-lightbox {
  right: 18px;
  bottom: 18px;
  width: 82px;
  opacity: 0.8;
}

.pin-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.78);
  color: #fff;
  cursor: pointer;
}

.pin-toggle.active {
  background: linear-gradient(135deg, #ff7c47 0%, var(--orange) 60%, #d8440a 100%);
  border-color: transparent;
}

.pin-order {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: flex;
  gap: 6px;
}

.pin-order button {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.78);
  color: #fff;
  cursor: pointer;
}

.delete-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(140, 22, 22, 0.92);
  color: #fff;
  cursor: pointer;
}

.drag-handle {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.78);
  color: #fff;
  cursor: grab;
}

.scroll-sentinel {
  height: 1px;
}

.purchase-note,
.footer-note {
  display: block;
  margin-bottom: 22px;
  padding: 16px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.purchase-note p,
.footer-note p,
.note-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.footer-note {
  margin-top: 28px;
  margin-bottom: 0;
  padding-top: 18px;
  border-bottom: 0;
  text-align: center;
}

.lightbox {
  width: min(1100px, calc(100vw - 24px));
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(8, 8, 8, 0.98);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.lightbox-close {
  margin-left: auto;
  display: block;
  margin-bottom: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.lightbox-media {
  position: relative;
}

#lightbox-image {
  width: 100%;
  border-radius: 16px;
}

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero-header {
    padding-top: 10px;
  }

  .hero-topline {
    min-height: 34px;
  }

  .hero-content {
    align-items: flex-start;
    text-align: left;
    padding: 64px 0 48px;
  }

  .gallery-header {
    align-items: start;
    flex-direction: column;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .age-gate-panel {
    padding: 22px;
  }

  .hero-topline {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
  }

  .site-logo {
    width: 54px;
  }

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