:root.rwglb-open {
  overflow: hidden;
}

:root.rwglb-open body {
  overflow: hidden;
}

.rwglb-masonry {
  column-count: var(--rwglb-cols, 2);
  column-gap: 24px;
}

.rwglb-masonry-item {
  break-inside: avoid;
  margin: 0 0 24px;
}

.rwglb-thumb-img,
.rwglb-featured-img {
  display: block;
  width: 100%;
  height: auto;
}

.rwglb-featured-img {
  border-radius: 15px !important;
  border: 2px solid #efbf75 !important;
}

.rwglb-thumb-img {
  border-radius: 15px !important;
  border: 2px solid #efbf75 !important;
}

.rwglb-link {
  display: inline-block;
  text-decoration: none;
}

.rwglb-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 200ms ease,
    visibility 0s linear 200ms;
}

.rwglb-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 220ms ease,
    visibility 0s;
}

.rwglb-backdrop {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  transition: opacity 220ms ease;
}

.rwglb-overlay[aria-hidden="false"] .rwglb-backdrop {
  opacity: 1;
}

.rwglb-frame {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  padding: clamp(12px, 2.2vw, 24px);
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  overflow: hidden;
}

.rwglb-overlay[aria-hidden="false"] .rwglb-frame {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.rwglb-swiper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.rwglb-swiper .swiper-wrapper,
.rwglb-swiper .swiper-slide {
  height: 100%;
}

.rwglb-frame .swiper-slide {
  box-sizing: border-box;
  padding: clamp(12px, 2.2vw, 24px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rwglb-figure {
  margin: 0;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rwglb-zoom {
  --rwglb-zoom: 2.2;
  --rwglb-lens: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .rwglb-zoom {
    cursor: default;
  }
  .rwglb-img {
    cursor: zoom-in;
  }
}

.rwglb-lens {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--rwglb-lens);
  height: var(--rwglb-lens);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.55);
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0.15);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.rwglb-zoom.is-zooming .rwglb-lens {
  opacity: 1;
  transform: scale(1);
}

@media (hover: none), (pointer: coarse) {
  .rwglb-lens {
    display: none !important;
  }

  .rwglb-zoom {
    cursor: default;
  }
}

.rwglb-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.rwglb-frame .swiper-pagination {
  bottom: max(12px, env(safe-area-inset-bottom));
}

.rwglb-caption {
  display: none;
}

.rwglb-btn {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  z-index: 2;
}

.rwglb-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.rwglb-close {
  transform: none;
  font-size: 28px;
  line-height: 1;
}

.rwglb-frame .swiper-button-prev,
.rwglb-frame .swiper-button-next {
  color: rgba(255, 255, 255, 0.95);
}

.rwglb-frame .swiper-button-prev:after,
.rwglb-frame .swiper-button-next:after {
  font-size: 24px;
}

.rwglb-frame .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
}

.rwglb-frame .swiper-pagination-bullet-active {
  background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 680px) {
  .rwglb-masonry {
    column-count: 1;
  }

  .rwglb-featured-img {
    border: 0 !important;
    border-bottom: 2px solid #efbf75 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }
}
