/* ================================
   Gallery Groups Masonry - v1.3
   Tight Masonry layout (no gaps)
   ================================ */

/* Masonry Grid */
.ggm-grid {
  margin: 0 auto;
}

/* Each grid item */
.ggm-item {
  width: 33.3333%;
  margin: 0; /* No space between items */
  padding: 0;
  cursor: pointer;
  position: relative;
  display: inline-block;
  vertical-align: top;
  border: 1px solid #fff; /* 1px white border */
  box-sizing: border-box;
}

/* Grid images */
.ggm-item img {
  width: 100% !important;
  margin-bottom: 0 !important;
  height: auto;
  object-fit: cover;
  border-radius: 0; /* Flush edges */
  display: block;
}

/* Overlay title (optional) */
.ggm-title {
  position: absolute;
  bottom: 8px;
  left: 0px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
}

/* Load More Button */
#ggm-load-more {
  display: inline-block;
  padding: 10px 20px;
  margin: 20px auto;
  cursor: pointer;
  background-color: #333;
  color: #fff;
  border-radius: 5px;
  text-align: center;
  font-size: 14px;
  transition: background 0.2s ease;
}
#ggm-load-more:hover {
  background-color: #555;
}

/* ================================
   Lightbox Styles
   ================================ */
.ggm-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.ggm-lightbox img {
  max-width: 90%;
  max-height: 80vh;
  display: block;
  margin: auto;
  border-radius: 8px;
}

.ggm-lightbox-caption {
  text-align: center;
  color: #fff;
  font-size: 14px;
  margin-top: 10px;
}

/* Navigation arrows */
.ggm-lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 30px;
  box-sizing: border-box;
}

.ggm-lightbox-prev,
.ggm-lightbox-next {
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px 20px;
  user-select: none;
  transition: color 0.2s ease;
}

.ggm-lightbox-prev:hover,
.ggm-lightbox-next:hover {
  color: #ddd;
}

/* Close button */
.ggm-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.ggm-lightbox-close:hover {
  color: #ddd;
}

/* ================================
   Responsive Layouts
   ================================ */
@media (max-width: 1024px) {
  .ggm-item {
    width: 50%;
  }
}

@media (max-width: 640px) {
  .ggm-item {
    width: 100%;
  }
}
