.container-swiper {
  max-width: 100%;
}

.swiper-gallery-wrapper {
  display: flex;
  gap: 10px;
  height: 100%;
  width: 100%;
}

.swiper,
.mySwiper2,
.mySwiper {
  width: 100%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-weight: 500;
  color: #fff !important;
  font-size: 35px;
}

.swiper-button-next,
.swiper-button-prev {
  width: 55px;
  height: 55px;
  border-radius: 100%;
  background-color: #444444ab;
}

.swiper-button-next {
  padding-left: 6px;
}

.swiper-button-prev {
  padding-right: 6px;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.open-lightbox {
  height: 100%;
  width: 100%;
}

.mySwiper2 {
  width: 78%;
  order: 1;
  border-radius: 15px;
}

.mySwiper2 .swiper-slide {
  height: 100%;
}

.mySwiper2 .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mySwiper {
  width: 20%;
  order: 2;
  box-sizing: border-box;
  padding: 0 10px 0 0;
  border-radius: 15px;
}

.mySwiper .swiper-slide {
  width: 100%;
  height: auto;
  opacity: 0.4;
  border-radius: 15px;
}

.layout-top .swiper-slide,
.layout-bottom .swiper-slide {
  height: 100%;
}

.mySwiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  display: block;
}

.mySwiper .swiper-slide-thumb-active {
  opacity: 1;
}

.lazy-slide,
.lazy-thumb {
  filter: blur(8px);
  transition: filter .4s ease;
}

.lazy-slide.loaded,
.lazy-thumb.loaded {
  filter: blur(0);
}

/* --- CORREÇÃO DO "PULO" (FLASH) DE ORIENTAÇÃO --- */
.mySwiper .swiper-wrapper {
  flex-direction: row;
}

@media (min-width: 768px) {

  .container-swiper[data-layout="right"] .mySwiper .swiper-wrapper,
  .container-swiper[data-layout="left"] .mySwiper .swiper-wrapper {
    flex-direction: column;
  }

  .container-swiper[data-layout="right"] .mySwiper,
  .container-swiper[data-layout="left"] .mySwiper {
    height: 100%;
  }
}

/* ===========================================
   LAYOUT: thumbs à direita (padrão)
=========================================== */
.container-swiper[data-layout="right"] .swiper-gallery-wrapper {
  flex-direction: row;
}

.container-swiper[data-layout="right"] .mySwiper2 {
  order: 1;
  width: 78%;
}

.container-swiper[data-layout="right"] .mySwiper {
  order: 2;
  width: 20%;
  padding: 0 10px 0 0;
}

/* ===========================================
   LAYOUT: thumbs à esquerda
=========================================== */
.container-swiper[data-layout="left"] .swiper-gallery-wrapper {
  flex-direction: row;
}

.container-swiper[data-layout="left"] .mySwiper {
  order: 1;
  width: 20%;
  padding: 0 0 0 10px;
}

.container-swiper[data-layout="left"] .mySwiper2 {
  order: 2;
  width: 78%;
}

/* ===========================================
   LAYOUT: thumbs embaixo
=========================================== */
.container-swiper[data-layout="bottom"] .swiper-gallery-wrapper {
  flex-direction: column;
}

.container-swiper[data-layout="bottom"] .mySwiper2 {
  order: 1;
  width: 100%;
}

.container-swiper[data-layout="bottom"] .mySwiper {
  order: 2;
  width: 100%;
  height: 25%;
  padding: 10px 0 0 0;
}

/* ===========================================
   LAYOUT: thumbs em cima
=========================================== */
.container-swiper[data-layout="top"] .swiper-gallery-wrapper {
  flex-direction: column;
}

.container-swiper[data-layout="top"] .mySwiper {
  order: 1;
  width: 100%;
  height: 25%;
  padding: 0 0 10px 0;
}

.container-swiper[data-layout="top"] .mySwiper2 {
  order: 2;
  width: 100%;
}

/* ===========================================
   LAYOUT: sem thumbs
=========================================== */
.container-swiper[data-layout="notumbs"] .mySwiper {
  display: none !important;
}

.container-swiper[data-layout="notumbs"] .mySwiper2 {
  width: 100% !important;
}




/* MODAL */
.lightboxModal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.swiper-wrapper {
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: rgb(83, 83, 83);
  background-color: rgb(250, 250, 250, .6);
  font-size: 38px;
  border-radius: 100%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.myLightbox .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.myLightbox {
  max-width: 1200px;
}

.myLightbox .swiper-slide img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 8px;
}

/* MEDIA QUERY MOBILE */
@media (max-width:475px) {

  .carousel-modal-nav {
    font-size: 30px;
    padding: 8px;
  }

  .carousel-modal-nav.next {
    right: 15px;
  }

  .carousel-modal-nav.prev {
    left: 15px;
  }
}

@media (max-width:475px) {
  .swiper-gallery-wrapper {
    flex-direction: column !important;
    gap: 5px !important;
  }

  .mySwiper2 {
    width: 100% !important;
    height: 300px !important;
    order: 1;
    border-radius: 5px !important;
    padding: 0 !important;
  }

  .mySwiper {
    width: 100% !important;
    height: 85px !important;
    order: 2;
    box-sizing: border-box;
    padding: 0 !important;
    border-radius: 5px;
  }

  .mySwiper .swiper-slide {
    height: 100%;
  }

  .mySwiper .swiper-wrapper {
    flex-direction: row !important;
  }

  .mySwiper .swiper-slide:last-child {
    margin-right: 0;
  }

  .mySwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0px !important;
    display: block;
    border-radius: 5px !important;
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 25px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 45px;
    height: 45px;
  }

  .carousel-modal-nav {
    font-size: 30px;
  }

  .carousel-modal-nav.next {
    right: 15px;
  }

  .carousel-modal-nav.prev {
    left: 15px;
  }
}

@media (min-width: 476px) and (max-width: 575px) {
  .swiper-gallery-wrapper {
    flex-direction: column !important;
    gap: 5px;
  }

  .mySwiper2 {
    width: 100% !important;
    height: 300px !important;
    order: 1;
    border-radius: 5px !important;
  }

  .mySwiper {
    width: 100% !important;
    height: 100px !important;
    order: 2;
    box-sizing: border-box;
    padding: 0 !important;
    border-radius: 5px;
  }

  .mySwiper .swiper-slide {
    height: 100%;
  }

  .mySwiper .swiper-wrapper {
    flex-direction: row !important;
  }

  .mySwiper .swiper-slide:last-child {
    margin-right: 0;
  }

  .mySwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0px !important;
    display: block;
    border-radius: 5px !important;
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 25px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 45px;
    height: 45px;
  }

  .carousel-modal-nav {
    font-size: 30px;
  }

  .carousel-modal-nav.next {
    right: 15px;
  }

  .carousel-modal-nav.prev {
    left: 15px;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .swiper-gallery-wrapper {
    flex-direction: column !important;
    gap: 5px;
  }

  .mySwiper2 {
    width: 100% !important;
    height: 300px !important;
    order: 1;
    border-radius: 5px !important;
  }

  .mySwiper {
    width: 100% !important;
    height: 100px !important;
    order: 2;
    box-sizing: border-box;
    padding: 0 !important;
    border-radius: 5px;
  }

  .mySwiper .swiper-slide {
    height: 100%;
  }

  .mySwiper .swiper-wrapper {
    flex-direction: row !important;
  }

  .mySwiper .swiper-slide:last-child {
    margin-right: 0;
  }

  .mySwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0px !important;
    display: block;
    border-radius: 5px !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {

  .layout-right,
  .layout-left {
    height: 350px;
  }

  .layout-top,
  .layout-bottom {
    height: 450px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {

  .layout-right,
  .layout-left {
    height: 400px;
  }

  .layout-top,
  .layout-bottom {
    height: 500px;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {

  .layout-right,
  .layout-left {
    height: 400px;
  }

  .layout-top,
  .layout-bottom {
    height: 550px;
  }
}

@media (min-width: 1400px) {

  .layout-right,
  .layout-left {
    height: 450px;
  }

  .layout-top,
  .layout-bottom {
    height: 600px;
  }
}