/* ------------------------------ swiper slider ----------------------------- */
img.swiper-slide-image {
  position: relative !important;
  display: inline-block !important;
  float: left !important;
  -o-object-fit: contain;
  object-fit: contain;
  -o-object-position: center center;
  object-position: center center;
  width: auto !important;
  height: 100% !important;
  margin: 0 1rem 2rem;
}

.swiper-slide {
  margin: 0 !important;
}

.swiper.wst-swiper-gallery {
  height: 25rem !important;
  overflow: visible;
  padding-bottom: 5rem !important;
}

/* -------------------------------- next/prev ------------------------------- */
.swiper-button-next,
.swiper-button-prev {
  min-width: auto !important;
  min-height: auto !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  margin: 0 !important;
  transform: rotate(45deg) skew(12deg, 12deg);
  border-color: var(--color-2) !important;
  transform-origin: 50% 50%;
  outline: none !important;
}

.swiper-button-prev {
  border-bottom: 1px solid !important;
  border-left: 1px solid !important;
}

.swiper-button-next {
  border-top: 1px solid !important;
  border-right: 1px solid !important;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  display: none;
}

.swiper-button-prev {
  left: 2rem !important;
}

.swiper-button-next {
  right: 2rem !important;
}

.swiper-button-next,
.swiper-button-prev {
  border-width: 2px;
  border-color: var(--color-white) !important;
}

.swiper-button-prev,
.swiper-button-next {
  top: auto !important;
  bottom: 0 !important;
}

.grid-10 .wpgb-area-bottom-1 {
  justify-content: center;
  gap: .75rem;
}

/* ------------------------------ gallery cards ----------------------------- */
/* card 7  */
.wpgb-card-7 .wpgb-block-1 picture,
.wpgb-card-7 .wpgb-block-1 img {
  width: 100% !important;
  height: auto !important;
  display: block;
}

.wpgb-card-8 [style*=background-image] {
  display: none !important;
}

.wpgb-card-8:focus-within {
  outline: 1px solid var(--current-color-text);
}

/* ========================================================================== */
/*                                   DEFAULT                                  */
/* ========================================================================== */

.wso-section-image-gallery:not(.wso-section-image-gallery-chaotic) .wpgb-grid-9 .wpgb-viewport,
.wso-section-image-gallery:not(.wso-section-image-gallery-chaotic) .wpgb-grid-9 .wpgb-layout,
.wso-section-image-gallery:not(.wso-section-image-gallery-chaotic) .wpgb-grid-9 .wpgb-main,
.wso-section-image-gallery:not(.wso-section-image-gallery-chaotic) .wpgb-grid-9 .wpgb-masonry {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  height: auto !important;
  justify-content: center !important;
}

.wso-section-image-gallery:not(.wso-section-image-gallery-chaotic) .wpgb-grid-9 .wpgb-card {
  display: block !important;
  position: relative !important;
  width: 33.33% !important;
  transform: none !important;
  top: unset !important;
  left: unset !important;
  height: auto !important;
}

.wso-section-image-gallery:not(.wso-section-image-gallery-chaotic) .wp-grid-builder .wpgb-layout:after, 
.wso-section-image-gallery:not(.wso-section-image-gallery-chaotic) .wp-grid-builder .wpgb-layout:before {
  display: none !important;
}

.wso-section-image-gallery:not(.wso-section-image-gallery-chaotic) .wpgb-grid-9 .wpgb-card svg {
  padding-top: 75% !important;
}

.wso-section-image-gallery:not(.wso-section-image-gallery-chaotic) .wpgb-grid-9 .wpgb-card:nth-child(5n+4),
.wso-section-image-gallery:not(.wso-section-image-gallery-chaotic) .wpgb-grid-9 .wpgb-card:nth-child(5n+5) {
  width: 50% !important;
}

.wso-section-image-gallery:not(.wso-section-image-gallery-chaotic) .wpgb-grid-9 .wpgb-card:nth-child(5n+4) svg,
.wso-section-image-gallery:not(.wso-section-image-gallery-chaotic) .wpgb-grid-9 .wpgb-card:nth-child(5n+5) svg {
  padding-top: 56.25% !important;
}



.wpgb-grid-9 .wpgb-card-media-content-top,
.wpgb-grid-9 .wpgb-block-1,
.wpgb-grid-9 .wpgb-block-1 img,
.wpgb-grid-10 .wpgb-card-media-content-top,
.wpgb-grid-10 .wpgb-block-2,
.wpgb-grid-10 .wpgb-block-2 img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.wpgb-grid-9 .wpgb-block-1 img {
  object-fit: cover !important;
  object-position: center center !important;
}

.wpgb-grid-9 .wpgb-card-media {
  margin: 0 !important;
}

.wpgb-grid-9 .wpgb-card-media-thumbnail div {
  display: none !important;
}

.wpgb-grid-9 .wpgb-block-1,
.wpgb-grid-10 .wpgb-block-2 {
  top: .375rem !important;
  left: .375rem !important;
  right: .375rem !important;
  bottom: .375rem !important;
  width: auto !important;
  height: auto !important;
}

.wpgb-grid-9 .wpgb-layout,
.wpgb-grid-10 .wpgb-layout {
  margin-top: -.375rem !important;
  margin-bottom: -.375rem !important;
}

.wpgb-grid-9 .wpgb-viewport,
.wpgb-grid-10 .wpgb-viewport {
  margin-left: -.375rem !important;
  margin-right: -.375rem !important;
}

@media only screen and (max-width: 991px) {
  .wso-section-image-gallery:not(.wso-section-image-gallery-chaotic) .wpgb-grid-9 .wpgb-card svg {
    padding-top: 100% !important;
  }
  .wso-section-image-gallery:not(.wso-section-image-gallery-chaotic) .wpgb-grid-9 .wpgb-card:nth-child(5n+4) svg,
  .wso-section-image-gallery:not(.wso-section-image-gallery-chaotic) .wpgb-grid-9 .wpgb-card:nth-child(5n+5) svg {
    padding-top: 75% !important;
  } 
  .wpgb-grid-9 .wpgb-block-1,
  .wpgb-grid-10 .wpgb-block-2 {
    top: .5rem !important;
    left: .5rem !important;
    right: .5rem !important;
    bottom: .5rem !important;
  }
  .wpgb-grid-9 .wpgb-layout,
  .wpgb-grid-10 .wpgb-layout {
    margin: -.5rem !important;
  }
}


@media only screen and (max-width: 767px) {
  .wso-section-image-gallery:not(.wso-section-image-gallery-chaotic) .wpgb-grid-9 .wpgb-card {
    width: 50% !important;
  }
  .wso-section-image-gallery:not(.wso-section-image-gallery-chaotic) .wpgb-grid-9 .wpgb-card svg,
  .wso-section-image-gallery:not(.wso-section-image-gallery-chaotic) .wpgb-grid-9 .wpgb-card:nth-child(5n+4) svg,
  .wso-section-image-gallery:not(.wso-section-image-gallery-chaotic) .wpgb-grid-9 .wpgb-card:nth-child(5n+5) svg {
    padding-top: 100% !important;
  }
  .wso-section-image-gallery:not(.wso-section-image-gallery-chaotic) .wpgb-grid-9 .wpgb-card:nth-child(5n+3) {
    width: 100% !important;
  }
  .wso-section-image-gallery:not(.wso-section-image-gallery-chaotic) .wpgb-grid-9 .wpgb-card:nth-child(5n+3) svg {
    padding-top: 62.5% !important;
  }  
}

/* ========================================================================== */
/*                                  CHAOTIC 1                                 */
/* ========================================================================== */

@media only screen and (min-width: 768px) {
  .wso-section-image-gallery-chaotic .wpgb-grid-9 .wpgb-card:nth-child(7n+1) .wpgb-card-inner {
    max-width: 80%;
    margin-left: auto;
  }
  .wso-section-image-gallery-chaotic .wpgb-grid-9 .wpgb-card:nth-child(7n+1) svg {
    padding-top: 40rem !important;
  }
  
  
  .wso-section-image-gallery-chaotic .wpgb-grid-9 .wpgb-card:nth-child(7n+2) .wpgb-card-inner {
    max-width: 80%;
  }
  .wso-section-image-gallery-chaotic .wpgb-grid-9 .wpgb-card:nth-child(7n+2) svg {
    padding-top: 31rem !important;
  }
  
  
  .wso-section-image-gallery-chaotic .wpgb-grid-9 .wpgb-card:nth-child(7n+3) svg {
    padding-top: 34rem !important;
  }
  
  
  .wso-section-image-gallery-chaotic .wpgb-grid-9 .wpgb-card:nth-child(7n+4) svg {
    padding-top: 34rem !important;
  }
  
  
  .wso-section-image-gallery-chaotic .wpgb-grid-9 .wpgb-card:nth-child(7n+5) .wpgb-card-inner {
    max-width: 60%;
    margin-right: auto;
  }
  .wso-section-image-gallery-chaotic .wpgb-grid-9 .wpgb-card:nth-child(7n+5) svg {
    padding-top: 23rem !important;
  }
  
  
  .wso-section-image-gallery-chaotic .wpgb-grid-9 .wpgb-card:nth-child(7n+6) .wpgb-card-inner {
    max-width: 70%;
    margin-left: auto;
  }
  .wso-section-image-gallery-chaotic .wpgb-grid-9 .wpgb-card:nth-child(7n+6) svg {
    padding-top: 34rem !important;
  }
  
  
  .wso-section-image-gallery-chaotic .wpgb-grid-9 .wpgb-card:nth-child(7n+7) .wpgb-card-inner {
    max-width: 100%;
    margin-left: 0;
    margin-right: auto;
  }
  .wso-section-image-gallery-chaotic .wpgb-grid-9 .wpgb-card:nth-child(7n+7) svg {
    padding-top: 20.015rem !important; /* Larger than required in order to prevent wp grid builder JS calculation error for masonry layout */
  }
  
  
  /* Change first item for stepped appearance */
  .wso-section-image-gallery-chaotic .wpgb-grid-9 .wpgb-card:nth-child(1) .wpgb-card-inner {
    margin-top: 8rem;
  }
  .wso-section-image-gallery-chaotic .wpgb-grid-9 .wpgb-card:nth-child(1) .wpgb-card-inner svg {
    padding-top: 32rem !important;
  }
}

/*
@media only screen and (max-width: 767px) {
  .wso-section-image-gallery-chaotic .wpgb-grid-9 .wpgb-card:nth-child(1) .wpgb-card-inner {
    margin-top: 0;
  }
  .wso-section-image-gallery-chaotic .wpgb-grid-9 .wpgb-card:nth-child(7n+5) .wpgb-card-inner {
    max-width: 70%;
  }
  .wso-section-image-gallery-chaotic .wpgb-grid-9 .wpgb-card:nth-child(7n+6) .wpgb-card-inner {
    max-width: 80%;
  }
  .wso-section-image-gallery-chaotic .wpgb-grid-9 .wpgb-card:nth-child(7n+7) svg {
    padding-top: 34rem !important;
  }
}
*/

/* ===========================================
Gallery section
=========================================== */

.wso-section-image-gallery .wso-section-wrapper .wso-wrap {
  --bs-gutter-y: 2rem;
}

.wso-section-image-gallery .wso-wrap-content .wso-column-attr {
  max-width: var(--container-big-xxl);
  margin-left: auto !important;
  margin-right: auto !important;
}

.wso-section-image-gallery .wp-grid-builder .wpgb-layout {
  overflow: hidden !important;
}