:root {
  --bg-main: #050608;
  --bg-panel: #111319;
  --bg-panel-alt: #181b22;
  --accent: #c9a45a;
  --accent-soft: #8b6b35;
  --text-main: #f5f5f5;
  --text-muted: #a0a4b0;
  --border-soft: #262a33;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.75);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition-fast: 0.18s ease-out;
  --transition-medium: 0.28s ease-out;
  --max-width: 1200px;
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #151822 0, #050608 55%, #020305 100%);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.page-shell {
  width: 100%;
  max-width: var(--max-width);
  padding: 24px 16px 40px;
}

/* HEADER */
.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #10131b 0, #181b22 40%, #10131b 100%);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header-name {
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-role {
  font-size: 0.95rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.header-contact a:hover {
  text-decoration: underline;
}

/* NAVIGATION */
.nav-shell {
  margin-top: 18px;
  margin-bottom: 22px;
}

.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: var(--radius-md);
  background: rgba(10, 12, 18, 0.9);
  border: 1px solid var(--border-soft);
}

.nav-tabs a {
  flex: 1 1 120px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-decoration: none;
  background: radial-gradient(circle at top, #151822 0, #0b0d13 60%);
  border: 1px solid transparent;
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.nav-tabs a:hover {
  color: var(--text-main);
  border-color: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

.nav-tabs a.active {
  color: var(--text-main);
  background: linear-gradient(135deg, #1b1f29 0, #252a35 40%, #1b1f29 100%);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

/* CONTENT PANEL */
.content-panel {
  padding: 22px 20px 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.content-title {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.content-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- VAULTS: SINGLE COLUMN --- */
.vaults-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 150px);
  margin-bottom: clamp(40px, 10vw, 150px);
}

/* --- URNS: 3 COLUMNS --- */
.urn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .urn-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .urn-grid {
    grid-template-columns: 1fr;
  }
}

/* --- ADS: 4 COLUMNS --- */
.ads-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

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

@media (max-width: 800px) {
  .ads-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .ads-grid {
    grid-template-columns: 1fr;
  }
}

/* GALLERY ITEM — SHARP CORNERS */
.gallery-item {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-panel-alt);
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast), background var(--transition-fast);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8);
  border-color: var(--accent-soft);
  background: #1a1e26;
}

/* PHOTO REPAIRS */
.repairs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.repairs-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-panel-alt);
  border: 1px solid var(--border-soft);
}

.repairs-cell {
  position: relative;
}

.repairs-label {
  position: absolute;
  top: 8px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-muted);
}

.repairs-pair img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

/* VIDEO GRID — KEEP ROUNDED CORNERS */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.video-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-panel-alt);
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.7);
}

.video-item iframe {
  width: 100%;
  height: 180px;
  border: none;
}

/* ABOUT */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
  gap: 22px;
}

.about-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.about-highlight {
  color: var(--accent);
}

.about-panel {
  border-radius: var(--radius-md);
  padding: 16px 14px;
  background: var(--bg-panel-alt);
  border: 1px solid var(--border-soft);
}

/* SHADOWBOX */
.shadowbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

.shadowbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.shadowbox-inner {
  max-width: 90vw;
  max-height: 90vh;

  /* REMOVE rounded corners */
  border-radius: 0;

  /* REMOVE gold border stroke */
  border: none;

  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  background: #050608;
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.shadowbox-inner img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.shadowbox-inner img.loaded {
  opacity: 1;
}

/* COUNTER — KEEP ROUNDED CORNERS */
.shadowbox-counter {
  position: static;
  margin-top: 20px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-align: center;
  display: inline-block;
  border-radius: 999px;
}

/* LEFT/RIGHT ZONES */
.shadowbox-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  cursor: pointer;
  transition: background 0.15s ease-out;
}

.shadowbox-zone.left {
  left: 0;
}

.shadowbox-zone.right {
  right: 0;
}

.shadowbox-zone:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-right {
    align-items: flex-start;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }
}
