/** {*/
/*  box-sizing: border-box;*/
/*  font-family: Arial, sans-serif;*/
/*}*/


/*.wrapper {*/
/*  max-width: 1300px;*/
/*  margin: auto;*/
/*  padding: 20px;*/
/*}*/

/*h2 {*/
/*  text-align: center;*/
/*  margin-bottom: 25px;*/
/*}*/

/* ===== GALLERY GRID (NEWS STYLE) ===== */
/* ===== GALLERY GRID (NO WHITE GAP) ===== */
/* ===== MASONRY NEWS GALLERY ===== */
.gallery {
  column-count: 4;
  column-gap: 16px;
}

/* Each image wrapper */
.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  overflow: hidden;          /* needed for zoom */
  border-radius: 6px;
}

/* Image – ORIGINAL RATIO + ZOOM */
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease;
  cursor: pointer;
}
/* Thin yellow border around images */
.gallery-item img {
  border: 2px solid #ffcc00;   /* thin border */
}


/* Hover Zoom */
.gallery-item:hover img {
  transform: scale(1.05);
}

/* Responsive columns */
@media (max-width: 1200px) {
  .gallery { column-count: 3; }
}

@media (max-width: 768px) {
  .gallery { column-count: 2; }
}

@media (max-width: 480px) {
  .gallery { column-count: 1; }
}



/* Load More */
.load-more {
  display: block;
  margin: 30px auto;
  padding: 12px 35px;
  border: none;
  background: #000;
  color: #fff;
  border-radius: 30px;
  font-size: 15px;
  cursor: pointer;
}

/* ===== LIGHTBOX / POPUP ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox img {
  max-width: 92%;
  max-height: 78vh;
  border-radius: 6px;
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
}

/* Close */
.close {
  position: absolute;
  top: 18px;
  right: 28px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
}

/* Controls */
.popup-controls {
  margin-top: 15px;
}

.popup-controls button {
  padding: 12px 16px;
  margin: 0 6px;
  font-size: 18px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }

  .wrapper {
    padding: 12px;
  }
}
