:root{
  --primary-color:#008AE6;
  --light-primary-color:#E6F4FF;
  --secondary-color:#005999;
  --light-secondary-color:#CCE7FF;
  --tertiary-color:#B3D9FF;
  --dark-color:#31333A;
  --light-color:#FFFFFF;
  --grey-color:#BBC7D4;
  --light-dark-color:#727272;
  --light-grey-color:#f5f5f5;

  --body-font:'Inter',sans-serif;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  background:var(--light-grey-color);
  font-family:var(--body-font);
  color:var(--dark-color);
}

/* HEADER */
.gallery-header{
  text-align:center;
  padding:40px 20px;
  background:var(--light-primary-color);
  border-bottom:1px solid var(--grey-color);
}
.gallery-header h1{
  margin:0;
  font-size:2rem;
  color:var(--primary-color);
}
.gallery-header .sub{
  margin-top:8px;
  color:var(--light-dark-color);
}

/* GALLERY GRID */
.gallery-container{
  width:95%;
  max-width:1400px;
  margin:40px auto;
}

.gallery-grid{
  columns:4;
  column-gap:15px;
}

.gallery-card{
  width:100%;
  margin-bottom:15px;
  break-inside:avoid;
  cursor:pointer;
  display:block;
}

.gallery-card img{
  width:100%;
  height:auto;
  border-radius:8px;
  transition:0.3s;
  box-shadow:0 6px 18px rgba(0,0,0,0.1);
}

.gallery-card img:hover{
  transform:scale(1.02);
}

/* RESPONSIVE */
@media(max-width:1200px){
  .gallery-grid{ columns:3; }
}
@media(max-width:800px){
  .gallery-grid{ columns:2; }
}
@media(max-width:500px){
  .gallery-grid{ columns:1; }
}

/* LIGHTBOX */
.lightbox{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.85);
  justify-content:center;
  align-items:center;
  z-index:9999;
}

.lightbox-content{
  position:relative;
  width:90%;
  max-width:850px;

  display:flex;
  justify-content:center;
  align-items:center;
}

.lightbox img {
  max-height: 90vh;       /* Fit image inside screen vertically */
  width: auto;            /* Preserve aspect ratio */
  max-width: 90vw;        /* Fit image horizontally */
  object-fit: contain;    /* Prevent distortion */
  border-radius: 8px;
}


.close{
  position:absolute;
  top:20px;
  right:40px;
  color:#fff;
  font-size:40px;
  cursor:pointer;
}

.prev, .next{
  cursor:pointer;
  position:absolute;
  top:50%;
  padding:12px;
  font-size:40px;
  color:white;
  user-select:none;
  transform:translateY(-50%);
}

.prev{ left:-60px; }
.next{ right:-60px; }

@media(max-width:600px){
  .prev, .next{
    font-size:28px;
    left:10px;
    right:10px;
  }
}
