#wpgs-gallery {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

#wpgs-gallery * {
  box-sizing: border-box;
}

#wpgs-gallery img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: auto;
  box-shadow: none;
}

#wpgs-gallery .wcgs-carousel {
  position: relative;
  order: 1;
  overflow: hidden;
}

#wpgs-gallery .wcgs-carousel .wcgs-slider-image {
  display: none;
}

#wpgs-gallery .wcgs-carousel .wcgs-slider-image.is-active {
  display: block;
}

#wpgs-gallery .wcgs-lightbox {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 9;
}

#wpgs-gallery .wcgs-lightbox a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 13px;
  text-decoration: none;
}

#wpgs-gallery .wcgs-lightbox a:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

#wpgs-gallery .gallery-navigation-carousel {
  order: 2;
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

#wpgs-gallery .wcgs-thumb {
  width: calc((100% - 30px) / 6);
  border: 1px solid #dddddd;
  cursor: pointer;
}

#wpgs-gallery .wcgs-thumb.is-active,
#wpgs-gallery .wcgs-thumb:hover {
  border-color: #5eabc1;
}

#wpgs-gallery .wcgs-thumb img {
  width: 100%;
  transition: all 0.3s;
}

.lubri-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: rgba(0, 0, 0, 0.85);
  cursor: zoom-out;
}

.lubri-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lubri-lightbox button {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: none;
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
}
