/* ---------- RESET + ELEMENTOR FIX ---------- */
.elementor-widget-cg_gallery,
.elementor-widget-cg_gallery .elementor-widget-container,
.elementor-widget-cg_gallery .e-con-inner,
.elementor-widget-cg_gallery .e-con {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}

/* ---------- GALLERY CONTAINER ---------- */
.cg-gallery-container {
  position: relative;
  display: block;
  width: 100%;
  clear: both;
  overflow: visible !important;
}

/* ---------- GALLERY ITEMS ---------- */
.cg-gallery-item {
  position: absolute;
  transition: all 0.3s ease-in-out;
  box-sizing: border-box;
  border-radius: 6px;
  overflow: hidden;
}

.cg-gallery-item img {
  width: 100%;
  display: block;
  border-radius: 6px;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.cg-gallery-item:hover img {
  transform: scale(1.05);
}

/* ---------- LIGHTBOX ---------- */
.cg-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.cg-lightbox-overlay.active {
  display: flex;
}

.cg-lightbox-content img {
  max-width: 90%;
  max-height: 75vh;
  border-radius: 6px;
  margin-bottom: 15px;
}

.cg-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 35px;
  cursor: pointer;
  font-weight: bold;
}

.cg-lightbox-nav {
  display: flex;
  justify-content: space-between;
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 40px;
}

.cg-lightbox-prev,
.cg-lightbox-next {
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  user-select: none;
}

.cg-lightbox-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  max-width: 90%;
  justify-content: center;
}

.cg-lightbox-thumbs img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  border-radius: 4px;
  transition: 0.3s;
}

.cg-lightbox-thumbs img.active {
  opacity: 1;
  border: 2px solid #fff;
}
