body.gallery-showing{
  height: 100vh;
  overflow: hidden;
}
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.show { opacity: 1; }

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  text-align: center;
  color: #fff;
  position: relative;
  margin: 1.5rem auto;
}
.lightbox-img{
  margin:0;
  height: 450px;
  width: 100%;
}
.lightbox-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 2rem;
  transform: scale(1);
  transition: .2s;
  cursor:zoom-in
}
.lightbox-footer{width:100%;}
.lightbox-caption {
  margin-top: 10px;
  text-align: center;
}
.lightbox-caption strong{color:#fff; font-size:1.5rem}
.lightbox-caption em{color:#fff; font-size:1rem}
/* Navigation */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #fff;
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 8px;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

/* Category buttons */
.lightbox-categories {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.lightbox-categories button {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 2px 10px;
  border-radius: 1rem;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s, transform 0.2s;
}
.lightbox-categories button:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.05);
}
.lightbox-categories button.active {
  background: #fff;
  color: #000;
  font-weight: normal;
}

/* Thumbnails */
.lightbox-thumbs {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  margin: auto;
  margin-top: 15px;
  max-width: 63%;
  overflow: hidden;
}
.lightbox-thumbs img {
  width: 50px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  transition: transform 0.2s, opacity 0.2s;
}
.lightbox-thumbs img:hover { opacity: 1; transform: scale(1.05); }
.lightbox-thumbs img.active { border: 2px solid #fff; opacity: 1; }
.lightbox-actions{
  display:flex;
  align-items:center;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  height: 40px;
  width: auto;
  background: transparent;
  flex-direction: row-reverse;
  gap: 30px;
}
.lightbox-actions svg{
  fill:#fff;
}
.lightbox-close {
  transition: .2s;
  color: #fff;
  fill: #fff;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 10;
  opacity: .5;
  height: auto;
}
.lightbox-close:hover {opacity: 1;}
/* Zoom button */
.lightbox-zoom {
color: #fff;
background: transparent;
border: none;
cursor: pointer;
z-index: 10;
transition: .2s;
opacity:.5
}
.lightbox-zoom:hover {
  opacity:1
}

/* Zoomed image */
.lightbox-content.zoomed img {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
  transform: scale(1.5);
  z-index: 9;
  position: relative;
}