.lia-ffig-wrapper { position: relative; max-width: 100%; margin: 0 auto; }
.lia-ffig-swiper { width: 100%; overflow: hidden;}
.lia-ffig-swiper .swiper-slide { display: flex; align-items: center; justify-content: center; background: #fff; }
.lia-ffig-link { display: block; line-height: 0; }
.lia-ffig-link img { max-width: 100%; height: auto; display: block; cursor: zoom-in; pointer-events: none; }
.lia-ffig-swiper .swiper-pagination { bottom: 10px; }
.lia-ffig-swiper .swiper-pagination-bullet-active { background: #fff; }
.lia-ffig-thumbs { margin-top: 10px;}
.lia-ffig-thumbs.lia-ffig-top { margin-top: 0; margin-bottom: 10px; }
.lia-ffig-thumbs.lia-ffig-hidden { display: none !important; }
.lia-ffig-thumbs .swiper-slide { 
  width: var(--gw-thumb-w, 138px) !important; 
  height: var(--gw-thumb-h, 90px) !important; 
  position: relative; 
  cursor: pointer;
  margin-right: 10px !important;
}
.lia-ffig-thumbs .swiper-slide:hover {outline: 2px solid #fd8749; outline-offset: -2px;}
.lia-ffig-thumbs .swiper-slide.swiper-slide-thumb-active:after { background: #fd8749; content: ""; position: absolute; top: 0; left: 0; height: 100%; width: 100%; opacity: 0.6; }
.lia-ffig-thumb { width: 100%; height: 100%; object-fit: cover;}
.lia-ffig-wrapper .pswp { z-index: 10000 !important; }
.lia-ffig-wrapper .pswp__img--placeholder { display: none; }

/* === УНИФИЦИРОВАННЫЕ СТИЛИ КНОПОК-СТРЕЛОК === */
.lia-ffig-wrapper .lia-ffig-swiper .swiper-button-prev,
.lia-ffig-wrapper .lia-ffig-swiper .swiper-button-next,
.lia-ffig-wrapper .pswp__button--arrow--left,
.lia-ffig-wrapper .pswp__button--arrow--right {
  width: var(--gw-arrow-w, 40px);
  height: var(--gw-arrow-h, 40px);
  top: 50% !important;
  margin: 0 !important;
  background-color: var(--gw-arrow-bg, transparent);
  background-image: var(--gw-arrow-icon, none);
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 0;
  border: none;
  cursor: pointer;
}
.lia-ffig-wrapper .lia-ffig-swiper .swiper-button-prev:hover,
.lia-ffig-wrapper .lia-ffig-swiper .swiper-button-next:hover,
.lia-ffig-wrapper .pswp__button--arrow--left:hover,
.lia-ffig-wrapper .pswp__button--arrow--right:hover { opacity: 1; }
.lia-ffig-wrapper .lia-ffig-swiper .swiper-button-prev,
.lia-ffig-wrapper .pswp__button--arrow--left {
  transform: translateY(-50%) scaleX(-1) rotate(0deg) !important;
  left: var(--gw-arrow-offset, 10px);
}
.lia-ffig-wrapper .lia-ffig-swiper .swiper-button-next,
.lia-ffig-wrapper .pswp__button--arrow--right {
  transform: translateY(-50%) !important;
  right: var(--gw-arrow-offset, 10px);
}
.lia-ffig-wrapper .lia-ffig-swiper .swiper-button-prev::after,
.lia-ffig-wrapper .lia-ffig-swiper .swiper-button-next::after,
.lia-ffig-wrapper .lia-ffig-swiper .swiper-navigation-icon{ content: none !important; display: none !important;}

/* === КНОПКА ЗАКРЫТИЯ === */
.lia-ffig-wrapper .pswp__button--close,
.pswp__button.pswp__button--close{
  width: var(--gw-close-w, 40px);
  height: var(--gw-close-h, 40px);
  top: var(--gw-close-offset, 20px) !important;
  right: var(--gw-close-offset, 20px) !important;
  left: auto !important;
  margin: 0 !important;
  background-color: #fd8749;
  background-image: var(--gw-close-icon, none);
  background-size: 20px;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 0;
  border: none;
}
.lia-ffig-wrapper .pswp__button--close:hover,
.pswp__button .pswp__button--close:hiver{
	opacity: 1;
}
.pswp__button--arrow--left:before,
.pswp__button--arrow--right:before,
.pswp__button.pswp__button--share,
.pswp__button.pswp__button--fs,
.pswp__button.pswp__button--zoom,
.pswp__counter{
	display: none !important;
}

.pswp__ui--fit .pswp__top-bar,
.pswp__ui--fit .pswp__caption,
.pswp__top-bar,
.pswp__caption{
	background: transparent !important;
}