/* ============================================================
   Southwest MX Park · June 2008  |  swmx.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700&family=Barlow:wght@300;400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0b1518;
  --surface:   #111d22;
  --card:      #142029;
  --border:    #a6bac6;
  --orange:    #f0732e;
  --orange-d:  #c45820;
  --text:      #dce8ec;
  --text-dim:  #e1ecf1;
  --white:     #ffffff;
  --nav-h:     70px;
  --r:         5px;
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', 'lucida grande', sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ── Nav ── */
#sitenav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: #07100f;
  border-bottom: 1px solid #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 24px;
  z-index: 500;
}

.nav-brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-brand .sep {
  color: var(--orange);
  margin: 0 6px;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link, .nav-current {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-current {
  background: var(--orange);
  color: #fff;
}

.nav-link {
  color: var(--text);
  border: 1px solid var(--border);
  background: transparent;
}

.nav-link:hover {
  color: var(--white);
  border-color: #3d5560;
  background: var(--orange);
}

/* ── Page intro ── */
.intro {
  max-width: 580px;
  margin: 40px auto 32px;
  text-align: center;
  color: var(--text);
  font-size: 20px;
  line-height: 1.6;
  padding: 0 20px;
}

p.intro a:link, a:visited {
  text-decoration: none;
  color: #dd8150;
}

p.intro a:hover, a:active {
  text-decoration: none;
  color: #fff;
}

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  text-align: center;
  margin-bottom: 24px;
}

/* ── Photo Gallery Grid ── */
.gallery {
  max-width: 1080px;
  margin: 0 auto 100px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery-item {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--card);
  aspect-ratio: 3/2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--r);
  transition: transform 0.35s ease, opacity 0.2s;
}

.gallery-item:hover img {
  transform: scale(1.04);
  opacity: 0.82;
}

.gallery-item .photo-caption-flag {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  padding: 18px 10px 8px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  border-radius: 0 0 var(--r) var(--r);
}

.gallery-item:hover .photo-caption-flag {
  opacity: 1;
}

.gallery-item .photo-caption-flag span {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  display: block;
  line-height: 1.4;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 12, 15, 0.96);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.hidden { display: none; }

.lb-inner {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lb-inner img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--r);
  display: block;
  object-fit: contain;
}

.lb-meta {
  margin-top: 14px;
  text-align: center;
}

.lb-caption-text {
  color: var(--text);
  font-size: 16px;
  max-width: 560px;
  line-height: 1.7;
  font-weight: 300;
}

.lb-counter {
  color: var(--text-dim);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

.lb-close {
  position: fixed;
  top: 18px; right: 22px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 801;
  transition: background 0.15s;
  line-height: 1;
}

.lb-close:hover { background: rgba(255,255,255,0.15); }

.lb-prev, .lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
  width: 44px; height: 68px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 801;
  transition: background 0.15s;
  line-height: 1;
}

.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.14); }

/* ── Videos Page ── */
.videos-wrap {
  max-width: 940px;
  margin: 0 auto 100px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.videos-wrap.single {
  grid-template-columns: 1fr;
  max-width: 680px;
}

.video-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.2s;
}

.video-card:hover {
  border-color: #2e4455;
}

.video-card-head {
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.vc-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vc-desc {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 300;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ── Fixed Floating Buttons ── */
.btn-fixed {
  position: fixed;
  bottom: 22px;
  padding: 8px 16px;
  border-radius: 3px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--border);
  background: #07100f;
  color: var(--text);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-fixed:hover {
  color: var(--white);
  border-color: var(--text-dim);
  background: rgba(255,255,255,0.04);
}

.btn-top {
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s, opacity 0.3s;
}

.btn-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Responsive ── */
@media (max-width: 800px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .videos-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; gap: 6px; }
  .nav-brand { font-size: 16px; }
  .btn-fixed { font-size: 11px; padding: 7px 12px; }
}
