/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* BACKGROUND */
.catboy-img {
  position: fixed; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
  filter: blur(4px) brightness(0.6) saturate(1.1);
  transform: scale(1.05);
  transition: transform 0.15s ease-out;
}

body {
  font-family: "Segoe UI", sans-serif;
  color: #fff; min-height: 100vh;
  background: linear-gradient(135deg, #140018, #1f0030, #2b0045);
  overflow-x: hidden;
}

body::before {
  content: ""; position: fixed; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,120,255,0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(180,100,255,0.12), transparent 40%);
  filter: blur(20px); z-index: -1;
}

body::after {
  content: ""; position: fixed; inset: 0;
  background: linear-gradient(300deg, rgba(255,120,255,0.08), rgba(120,80,255,0.08));
  z-index: 0;
}

/* CONTAINER */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

/* HEADER */
.page-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 1.5rem;
}

.back-btn {
  position: absolute; left: 0;
  display: flex; align-items: center; gap: 0.4rem;
  text-decoration: none;
  color: rgba(240,171,252,0.7);
  font-size: 0.9rem; letter-spacing: 0.04em;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(240,171,252,0.2);
  background: rgba(240,171,252,0.06);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.back-btn:hover {
  color: #f0abfc;
  border-color: rgba(240,171,252,0.5);
  background: rgba(240,171,252,0.12);
}

.back-btn::before { content: "‹"; font-size: 1.2rem; line-height: 1; }

.page-title {
  font-size: 3rem; color: #f0abfc;
  text-shadow: 0 0 20px rgba(240,171,252,0.9);
}

/* =============================================
   3-COLUMN LAYOUT: card | gallery | card
   ============================================= */
.page-layout {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 20px;
  align-items: start;
}

/* Sidebar cards stick as you scroll */
.setup-sidebar {
  position: sticky;
  top: 2rem;
}

/* CAMERA CARD */
.camera-card {
  background: rgba(40,20,60,0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  text-align: left;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.camera-card:hover {
  box-shadow: 0 0 28px rgba(200,120,255,0.2);
  border-color: rgba(240,171,252,0.25);
}

.camera-card .badge {
  display: inline-block;
  font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 20px;
  margin-bottom: 0.7rem;
}

.badge-primary {
  background: rgba(240,171,252,0.15);
  border: 1px solid rgba(240,171,252,0.35);
  color: #f0abfc;
}

.badge-secondary {
  background: rgba(180,180,255,0.1);
  border: 1px solid rgba(180,180,255,0.25);
  color: #c4c4ff;
}

.camera-card h3 {
  font-size: 1.1rem; font-weight: 600;
  margin-bottom: 0.9rem; color: #fff;
}

.lens-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.55rem;
}

.lens-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.84rem; color: rgba(255,255,255,0.75);
  line-height: 1.4;
}

.lens-list li::before {
  content: "⌀"; color: #f0abfc; opacity: 0.6;
  flex-shrink: 0; margin-top: 0.05rem;
}

.lens-note {
  display: block;
  font-size: 0.72rem; opacity: 0.4;
  margin-top: 0.15rem;
}

/* MASONRY GALLERY */
.gallery-grid {
  columns: 2;
  column-gap: 14px;
}

@media (min-width: 1400px) { .gallery-grid { columns: 3; } }

.gallery-item {
  cursor: zoom-in; overflow: hidden;
  border-radius: 12px; break-inside: avoid;
  margin-bottom: 14px;
  background: rgba(40,20,60,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 25px rgba(200,120,255,0.35);
}

.gallery-item img {
  width: 100%; height: auto; display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(0.85) saturate(1.2);
}

/* Collapse to single column on narrow screens */
@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
  .setup-sidebar { position: static; }
  .gallery-grid { columns: 2; }
}

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

/* =============================================
   FOCUS OVERLAY
   ============================================= */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(14,0,24,0.5);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  display: none; justify-content: center; align-items: center;
  z-index: 999;
}

.lightbox.open {
  display: flex;
  animation: backdropIn 0.2s ease forwards;
}

@keyframes backdropIn {
  from { opacity: 0; } to { opacity: 1; }
}

.lightbox-inner {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  animation: zoomIn 0.28s cubic-bezier(0.34,1.4,0.64,1) forwards;
}

@keyframes zoomIn {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

#lb-img {
  max-width: 90vw; max-height: 80vh;
  width: auto; height: auto;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 8px 60px rgba(0,0,0,0.55),
    0 0 40px rgba(200,120,255,0.2);
  object-fit: contain; cursor: zoom-out;
}

.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  font-size: 1.4rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: white; cursor: pointer; opacity: 0.75;
  transition: opacity 0.2s, background 0.2s;
}

.lightbox-close:hover { opacity: 1; background: rgba(255,255,255,0.18); }

.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  color: white; cursor: pointer; opacity: 0.6;
  transition: opacity 0.2s, background 0.2s;
}

.lightbox-nav:hover { opacity: 1; background: rgba(255,255,255,0.15); }

.lb-prev { left: 18px; }
.lb-next { right: 18px; }

.lightbox-caption {
  opacity: 0.5; font-size: 0.82rem; letter-spacing: 0.05em;
}

.lb-actions {
  display: flex; gap: 0.7rem; justify-content: center;
}

.lb-actions button,
.lb-actions a {
  padding: 0.4rem 1rem; border-radius: 8px;
  font-size: 0.8rem; font-family: inherit;
  cursor: pointer; text-decoration: none;
  border: 1px solid rgba(240,171,252,0.3);
  background: rgba(240,171,252,0.07);
  color: #f0abfc;
  transition: background 0.2s, border-color 0.2s;
}

.lb-actions button:hover,
.lb-actions a:hover {
  background: rgba(240,171,252,0.16);
  border-color: rgba(240,171,252,0.6);
}
