.g2-gallery {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
}

.g2-gallery .owl-stage-outer {
  direction: ltr;
}

.g2-gallery figure {
  width: 100% !important;
}

.g2-gallery img {
  object-fit: unset !important;
}

.g2-gallery__slider {
  position: relative;
  margin-bottom: 0 !important;
}

.g2-gallery__slider::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 88px;
  background: linear-gradient(360deg, var(--wp--preset--color--secondary-1000) 0%, rgba(0, 0, 0, 0) 100%);
  bottom: 0;
  z-index: 1;
}

.g2-gallery .owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 28px;
  z-index: 2;
}

.g2-gallery .owl-nav .owl-prev,
.g2-gallery .owl-nav .owl-next {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  position: absolute;
  background-color: rgba(255, 255, 255, 0.8) !important;
  top: -6px;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.g2-gallery .owl-nav .owl-prev span,
.g2-gallery .owl-nav .owl-next span {
  display: none;
}

.g2-gallery .owl-nav .owl-prev.disabled,
.g2-gallery .owl-nav .owl-next.disabled {
  display: none;
}

.g2-gallery .owl-nav .owl-prev {
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='12' viewBox='0 0 8 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.66797 10.6668L6.33464 6.00016L1.66797 1.3335' stroke='%23191921' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

.g2-gallery .owl-nav .owl-next {
  background-image: url("data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' width='12' height='12' viewBox='0 0 256 256' xml:space='preserve'%3E%3Cdefs%3E%3C/defs%3E%3Cg style='stroke: %23191921; stroke-width: 1.5; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: none; fill-rule: nonzero; opacity: 1;' transform='translate(1.4065934065934016 1.4065934065934016) scale(2.81 2.81)' %3E%3Cpath d='M 65.75 90 c 0.896 0 1.792 -0.342 2.475 -1.025 c 1.367 -1.366 1.367 -3.583 0 -4.949 L 29.2 45 L 68.225 5.975 c 1.367 -1.367 1.367 -3.583 0 -4.95 c -1.367 -1.366 -3.583 -1.366 -4.95 0 l -41.5 41.5 c -1.367 1.366 -1.367 3.583 0 4.949 l 41.5 41.5 C 63.958 89.658 64.854 90 65.75 90 z' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: rgb(0,0,0); fill-rule: nonzero; opacity: 1;' transform=' matrix(1 0 0 1 0 0) ' stroke-linecap='round' /%3E%3C/g%3E%3C/svg%3E") !important;
}

.g2-gallery .owl-dots {
  position: absolute;
  width: 100%;
  z-index: 2;
}

@media (max-width: 575.99px) {

  .g2-gallery {
    max-height: 250px;
  }

  .g2-gallery img {
    max-height: 250px !important;
    min-height: 250px !important;
  }

  .g2-gallery__slider {
    height: 250px;
  }

  .g2-gallery .owl-nav .owl-prev {
    right: 20px;
  }

  .g2-gallery .owl-nav .owl-next {
    left: 26px;
  }

  .g2-gallery .owl-dots {
    bottom: 10px;
  }
}

@media (min-width: 576px) and (max-width: 767.99px) {

  .g2-gallery {
    max-height: 250px;
  }

  .g2-gallery img {
    max-height: 250px !important;
    min-height: 250px !important;
  }

  .g2-gallery__slider {
    height: 250px;
  }

  .g2-gallery .owl-nav .owl-prev {
    right: 20px;
  }

  .g2-gallery .owl-nav .owl-next {
    left: 26px;
  }

  .g2-gallery .owl-dots {
    bottom: 10px;
  }
}

@media (min-width: 767.5px) and (max-width: 991.9px) {

  .g2-gallery {
    max-height: 300px;
  }

  .g2-gallery img {
    max-height: 300px !important;
    min-height: 300px !important;
  }

  .g2-gallery__slider {
    height: 300px;
  }

  .g2-gallery .owl-nav .owl-prev {
    right: 20px;
  }

  .g2-gallery .owl-nav .owl-next {
    left: 26px;
  }

  .g2-gallery .owl-dots {
    bottom: 10px;
  }

}

@media (min-width: 992px) and (max-width: 1199.9px) {

  .g2-gallery {
    max-height: 438px;
  }

  .g2-gallery img {
    max-height: 438px !important;
    min-height: 438px !important;
  }

  .g2-gallery__slider {
    height: 438px;
  }

  .g2-gallery .owl-nav .owl-prev {
    right: 30px;
  }

  .g2-gallery .owl-nav .owl-next {
    left: 36px;
  }

  .g2-gallery .owl-dots {
    bottom: 12px;
  }
}

@media (min-width: 1200px) and (max-width: 1400px) {

  .g2-gallery {
    max-height: 438px;
  }

  .g2-gallery img {
    max-height: 438px !important;
    min-height: 438px !important;
  }

  .g2-gallery__slider {
    height: 438px;
  }

  .g2-gallery .owl-nav .owl-prev {
    right: 30px;
  }

  .g2-gallery .owl-nav .owl-next {
    left: 36px;
  }

  .g2-gallery .owl-dots {
    bottom: 12px;
  }
}

@media (min-width: 1400px) {

  .g2-gallery {
    max-height: 438px;
  }

  .g2-gallery img {
    max-height: 438px !important;
    min-height: 438px !important;
  }

  .g2-gallery__slider {
    height: 438px;
  }

  .g2-gallery .owl-nav .owl-prev {
    right: 30px;
  }

  .g2-gallery .owl-nav .owl-next {
    left: 36px;
  }

  .g2-gallery .owl-dots {
    bottom: 12px;
  }
}
