/* Paparay Photography — Clean Wide Editorial
   Stable foundation. No duplicate rules. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root{
  --bg: #f9f8f6;
  --text: #161616;
  --muted: #5a5a5a;
  --accent: #1a1a1a;
  --accent2: #6a6a6a;
}

/* Base */
body{
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
}

/* ---- Layout ---- */
.page{
  max-width: 1800px;   /* was 1400 */
  margin: 0 auto;
  padding: 48px 48px;  /* slightly reduce side padding */
  display: grid;
  grid-template-columns: 260px 1fr; /* slightly wider rail */
  gap: 60px;           /* more breathing room between rail & content */
}

/* Left rail */
.page header{
  position: sticky;
  top: 32px;
  display: block;
}

.brand-link{
  text-decoration: none;
  color: var(--text);
  font-size: 22px;
  letter-spacing: 1px;
}

.page nav{
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page nav a{
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}

.page nav a:hover{ color: var(--accent2); }
.page nav a:visited{ color: var(--accent); }

/* Main column */
.page main{
  max-width: 1100px;
}

/* Typography */
h1{
  font-size: 42px;
  font-weight: normal;
  margin: 0 0 12px 0;
}

p{
  margin: 0 0 16px 0;
  max-width: 820px;
}

.tagline{
  font-style: italic;
  color: var(--muted);
  margin-top: -6px;
}

/* ---- Gallery ---- */
.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.gallery img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform .18s ease, box-shadow .18s ease;
}

.gallery img:hover{
  transform: scale(1.01);
  box-shadow: 0 12px 28px rgba(0,0,0,.15);
}

/* ---- Lightbox ---- */
.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.92);
  z-index: 9999;
}

.lightbox.is-open{ display: flex; }

.lightbox img{
  max-width: min(1400px, 95vw);
  max-height: 90vh;
  border-radius: 10px;
}

.lb-close{
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  font-size: 32px;
  background: rgba(0,0,0,.35);
  color: #fff;
  cursor: pointer;
}

.lb-close:hover{
  background: rgba(0,0,0,.6);
}

/* ---- Responsive ---- */
@media (max-width: 900px){
  .page{
    grid-template-columns: 1fr;
    padding: 32px 20px;
    gap: 24px;
  }

  .page header{
    position: static;
  }

  .page nav{
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .page nav a{
    text-transform: none;
    font-size: 13px;
    letter-spacing: .6px;
  }
}