/* Mr Outdoor Living — Blog Gallery Lightbox */
.mol-post-gallery {
  margin-top: 2rem;
}
.mol-post-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.mol-post-gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  cursor: zoom-in;
}
.mol-post-gallery-grid a img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.25s ease;
}
.mol-post-gallery-grid a:hover img {
  transform: scale(1.04);
}

/* Modal overlay */
.mol-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: mol-lb-fade 0.2s ease;
}
.mol-lightbox.open { display: flex; }
@keyframes mol-lb-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.mol-lightbox__stage {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mol-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}
.mol-lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.mol-lightbox__btn:hover { background: rgba(255, 255, 255, 0.25); }
.mol-lightbox__btn:disabled { opacity: 0.3; cursor: default; }
.mol-lightbox__prev { left: 0.5rem; }
.mol-lightbox__next { right: 0.5rem; }
.mol-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  z-index: 2;
}
.mol-lightbox__close:hover { background: rgba(255, 255, 255, 0.25); }
.mol-lightbox__counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 14px;
  border-radius: 20px;
}
body.mol-lightbox-open { overflow: hidden; }

@media (max-width: 640px) {
  .mol-post-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .mol-lightbox__btn { width: 44px; height: 44px; font-size: 22px; }
  .mol-lightbox { padding: 0.5rem; }
}
