@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,400;1,700&family=IM+Fell+English:ital@0;1&family=Special+Elite&display=swap');

/* ============================================================
   cameras.css — styles for cameras.html
   PHOTOBOOK :: OISIN PATENALL
   ============================================================ */

/* ── PAGE CHROME (cameras/lenses specific) ── */
.gear-page {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 24px 20px 40px;
}


.page-body {
  padding: 20px 16px 28px;
  /* lift above CRT pseudo-elements */
  position: relative;
  z-index: 10000;
}

.sec-bar {
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  letter-spacing: 2px;
  padding: 2px 8px;
  display: inline-block;
  margin-bottom: 16px;
}

/* ── CARD DIVIDER (gap between cards, dark site bg shows through) ── */
.card-divider {
  height: 20px;
  background: var(--bg);
}

/* ── ROLLEI-STYLE CAMERA CARD ── */
.camera-card {
  background: #e0dbc0;
  color: var(--ink);
  position: relative;
  border: 1px solid #3a3525;
  font-family: 'IM Fell English', serif;
  overflow: hidden;
}

/* newsprint halftone dot texture */
.camera-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(20, 15, 5, 0.055) 1px, transparent 1px);
  background-size: 5px 5px;
  pointer-events: none;
  z-index: 0;
}

.camera-card > * { position: relative; z-index: 1; }

/* ── CARD TOP: headline col + carousel col ── */
.card-top {
  display: grid;
  grid-template-columns: 1fr 460px;
  border-bottom: 2px solid var(--ink);
  min-height: 310px;
}

/* ── HEADLINE COLUMN ── */
.card-headline-col {
  padding: 20px 20px 16px;
  border-right: 1.5px solid rgba(30, 25, 10, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-kicker {
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--ink-ghost);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card-headline {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-lg);
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: 0.3px;
}
.card-headline em {
  font-style: italic;
  font-weight: 400;
}

.card-subheadline {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  color: var(--ink-faint);
  margin-top: 6px;
  line-height: 1.4;
}

.card-rule {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
}
.card-rule span { flex: 1; height: 1px; background: rgba(30, 25, 10, 0.35); }
.card-rule i    { font-style: normal; font-size: 10px; color: rgba(30, 25, 10, 0.35); }

.card-intro {
  font-size: var(--text-base);
  line-height: 1.78;
  color: var(--ink-light);
}
.card-intro .dropcap {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 900;
  float: left;
  line-height: 0.78;
  margin-right: 4px;
  margin-top: 6px;
  color: var(--ink);
}

.card-bottom-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(30, 25, 10, 0.25);
}

.card-acq {
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--ink-ghost);
  text-transform: uppercase;
}
.card-acq strong {
  color: var(--ink);
  font-weight: normal;
}

.card-stars {
  font-size: 14px;
  color: #8a5020;
  letter-spacing: 3px;
}

/* ── CAROUSEL COLUMN ── */
.carousel-col {
  background: #181410;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* image track */
.carousel-track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;           
  flex-direction: column;  
}

/* actual image fills the slide */
.carousel-slide img {
  width: 100%;
  flex: 1;
  object-fit: cover;
  display: block;
  border: 20px solid #fff7e4ff; 
  /* placeholder tint until real photos loaded */
  background: #111;
}

/* placeholder SVG fills exactly like an img would */
.carousel-slide .img-placeholder {
  width: 100%;
  height: 100%;
  display: block;
}

/* caption bar sits at bottom of image area */
.slide-caption {
  position: static;
  bottom: unset;
  left: 0;
  right: 0;
  background: rgba(10, 8, 4, 0.82);
  padding: 5px 10px;
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(240, 235, 184, 0.8);
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ── ARROW BUTTONS ── */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(10, 8, 4, 0.72);
  border: 1px solid rgba(200, 160, 64, 0.4);
  color: rgba(240, 235, 184, 0.85);
  font-family: 'VT323', monospace;
  font-size: 24px;
  width: 34px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  line-height: 1;
  padding: 0;
  /* offset slightly inward */
  margin: 0 6px;
}
.carousel-arrow:hover {
  background: rgba(26, 16, 8, 0.95);
  border-color: var(--ink-gold);
  color: var(--paper);
}
.carousel-arrow.prev { left: 0; }
.carousel-arrow.next { right: 0; }

/* ── CAROUSEL FOOTER: dots + counter ── */
.carousel-footer {
  background: #100e0a;
  border-top: 1px solid #2a2010;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  flex-shrink: 0;
  gap: 8px;
}

.carousel-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.c-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a2a10;
  border: 1px solid #5a4020;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  padding: 0;
  outline: none;
}
.c-dot.active,
.c-dot:hover {
  background: var(--ink-gold);
  border-color: var(--ink-gold);
}

.carousel-counter {
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--ink-faint);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── THREE-COLUMN BODY ── */
.card-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.body-col {
  padding: 14px 16px 18px;
  border-right: 1px solid rgba(30, 25, 10, 0.2);
}
.body-col:last-child { border-right: none; }

.body-head {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  padding-bottom: 3px;
  border-bottom: 1.5px solid var(--ink);
}

.body-text {
  font-size: var(--text-base);
  line-height: 1.74;
  color: var(--ink-light);
  margin-top: 6px;
}

.body-text b {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 13px;
  display: block;
  margin-top: 10px;
  margin-bottom: 2px;
  color: var(--ink);
}

/* ── SPEC TABLE ── */
.spec-table {
  margin-top: 12px;
  border-top: 1px dotted rgba(30, 25, 10, 0.2);
  padding-top: 8px;
  width: 100%;
}

.spec-table tr td {
  font-size: 11px;
  padding: 2px 0;
  border-bottom: 1px dotted rgba(30, 25, 10, 0.2);
  vertical-align: top;
}
.spec-table tr:last-child td { border-bottom: none; }

.spec-table .sk {
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--ink-ghost);
  text-transform: uppercase;
  padding-right: 12px;
  white-space: nowrap;
}
.spec-table .sv {
  font-style: italic;
  color: var(--ink);
}

/* ── CARD FOOTER BAR ── */
.card-footer-bar {
  background: var(--ink);
  color: var(--paper);
  padding: 5px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.card-footer-bar .accent { color: var(--ink-gold); }


/* ── RESPONSIVE ── */
@media (max-width: 800px) {
  .card-top {
    grid-template-columns: 1fr;
  }
  .carousel-col {
    min-height: 260px;
    border-top: 1.5px solid rgba(30, 25, 10, 0.25);
  }
  .card-body {
    grid-template-columns: 1fr;
  }
  .body-col {
    border-right: none;
    border-bottom: 1px solid rgba(30, 25, 10, 0.2);
  }
  .body-col:last-child { border-bottom: none; }
}

/* ════════════════════════════════════════════════════════════
   LIGHTBOX
   Injected by carousel.js — these styles match the site's
   existing CRT / teletext / paper aesthetic.
   ════════════════════════════════════════════════════════════ */

/* Prevent page scroll while lightbox is open */
body.lb-active {
  overflow: hidden;
}

/* ── OVERLAY ── */
#lb-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;

  position: fixed;
  inset: 0;
  z-index: 99999;

  background: rgba(0, 0, 10, 0.93);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;

  padding: 40px 24px 24px;
}

#lb-overlay.lb-open {
  opacity: 1;
  pointer-events: all;
}

/* ── CLOSE BUTTON ── */
#lb-close {
  position: absolute;
  top: 12px;
  right: 16px;

  background: transparent;
  border: 1px solid rgba(200, 160, 64, 0.5);
  color: var(--ink-gold);
  font-family: 'Share Tech Mono', monospace;
  font-size: 18px;
  line-height: 1;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  z-index: 1;
}
#lb-close:hover,
#lb-close:focus-visible {
  background: var(--ink-gold);
  color: var(--black);
  border-color: var(--ink-gold);
  outline: none;
}

/* ── LOADING SPINNER ── */
#lb-spinner {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--ink-gold);
  animation: blink 1s steps(1) infinite;
}

/* ── HIGH-RES IMAGE ── */
#lb-img {
  display: block;
  max-width: min(90vw, 1200px);
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;

  border: 3px solid #fff7e4cc;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);

  opacity: 0;
  transition: opacity 0.2s ease;
}
#lb-img.lb-loaded {
  opacity: 1;
}

/* ── CAPTION ── */
#lb-caption {
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(240, 235, 184, 0.7);
  text-transform: uppercase;
  text-align: center;
  max-width: 700px;
}

/* ── CURSOR HINT: show pointer on slides to signal clickability ── */
.carousel-slide {
  cursor: zoom-in;
}
