:root{
  --black:#070707;
  --white:#fff;
  --red:#f04e37;
  --red-dark:#d84430;
  --max:1240px;
}

*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
}

body{
  font-family:'Inter', sans-serif;
  background:#070707;
  color:#fff;
}

img{
  max-width:100%;
  display:block;
}

a{
  text-decoration:none;
  color:inherit;
}

button{
  font-family:inherit;
}

h1,h2,h3,h4{
  font-family:'Montserrat', sans-serif;
}

.container{
  width:min(var(--max), calc(100% - 48px));
  margin:0 auto;
}

/* =========================
   NAV
========================= */
.topbar{
  background:var(--black);
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.08);
  position:sticky;
  top:0;
  z-index:20;
}

.nav{
  min-height:64px;
  display:flex;
  align-items:center;
  gap:16px;
  position:relative;
}

.brand{
  display:flex;
  align-items:center;
  min-width:140px;
}

.brand-logo{
  width:180px;
  height:auto;
}

.nav-links{
  display:flex;
  gap:22px;
  margin-left:20px;
  color:rgba(255,255,255,.92);
  font-size:14px;
}

.nav-links a{
  opacity:.85;
}

.nav-links a:hover{
  opacity:1;
  text-decoration:underline;
}

.nav-links a.active{
  opacity:1;
  font-weight:700;
}

.nav-toggle{
  display:none;
  margin-left:auto;
  width:44px;
  height:40px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(0,0,0,.25);
  color:#fff;
  border-radius:8px;
  cursor:pointer;
}

.btn{
  display:inline-block;
  padding:12px 18px;
  border-radius:3px;
  font-size:12px;
  font-weight:800;
}

.btn-header{
  margin-left:auto;
  background:var(--red);
  color:#fff;
}

.btn-header:hover{
  background:var(--red-dark);
}

/* =========================
   PAGE
========================= */
.gallery-page{
  background:#070707;
}

.gallery-hero{
  padding:58px 0 34px;
  text-align:center;
}

.gallery-hero h1{
  color:var(--red);
  font-size:42px;
  margin:0 0 10px;
  font-weight:800;
}

.gallery-hero p{
  margin:0;
  color:rgba(255,255,255,.72);
  font-size:15px;
}

/* =========================
   GALLERY GRID
========================= */
.gallery-section{
  padding:0 0 70px;
}

.gallery-grid{
  width:100%;
  max-width:none;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:8px;
  padding:0 8px;
}

.gallery-item{
  padding:0;
  border:0;
  cursor:pointer;
  overflow:hidden;
  background:#111;
  height:320px;
}

.gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease, filter .35s ease;
}

.gallery-item:hover img{
  transform:scale(1.06);
  filter:brightness(1.08);
}

/* =========================
   LIGHTBOX
========================= */
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.96);
  z-index:999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.lightbox.show{
  display:flex;
}

.lightbox img{
  max-width:92vw;
  max-height:90vh;
  width:auto;
  height:auto;
  object-fit:contain;
  box-shadow:none;
}

.lightbox-close{
  position:absolute;
  top:22px;
  right:28px;
  width:44px;
  height:44px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:34px;
  line-height:1;
  cursor:pointer;
  z-index:1000;
}

.lightbox-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:56px;
  height:56px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:48px;
  line-height:1;
  cursor:pointer;
  z-index:1000;
}

.lightbox-arrow:hover,
.lightbox-close:hover{
  background:var(--red);
}

.lightbox-prev{
  left:28px;
}

.lightbox-next{
  right:28px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px){
  .gallery-grid{
    grid-template-columns:repeat(2, 1fr);
  }

  .gallery-item{
    height:260px;
  }
}

@media (max-width: 640px){
  .container{
    width:min(var(--max), calc(100% - 28px));
  }

  .brand-logo{
    width:78px;
  }

  .nav-toggle{
    display:block;
  }

  .nav-links{
    display:none;
    position:absolute;
    top:56px;
    right:20px;
    background:rgba(0,0,0,.85);
    border:1px solid rgba(255,255,255,.18);
    padding:10px 12px;
    border-radius:10px;
    flex-direction:column;
    gap:10px;
    margin-left:0;
    z-index:30;
  }

  .nav-links.show{
    display:flex;
  }

  .btn-header{
    display:none;
  }

  .gallery-hero{
    padding:42px 0 26px;
  }

  .gallery-hero h1{
    font-size:28px;
  }

  .gallery-grid{
    grid-template-columns:1fr;
    padding:0;
    gap:8px;
  }

  .gallery-item{
    height:260px;
  }

  .lightbox{
    padding:16px;
  }

  .lightbox img{
    max-width:94vw;
    max-height:84vh;
  }

  .lightbox-arrow{
    width:42px;
    height:42px;
    font-size:38px;
  }

  .lightbox-close{
    top:14px;
    right:14px;
  }

  .lightbox-prev{
    left:12px;
  }

  .lightbox-next{
    right:12px;
  }
}