.ovaex-photo-gallery {
  --ovaex-photo-gap: 30px;
  --ovaex-photo-height: 554px;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.ovaex-photo-gallery .ovaex-photo-gallery-swiper {
  width: 100%;
  height: var(--ovaex-photo-height);
  overflow: hidden;
}

.ovaex-photo-gallery .swiper-wrapper {
  height: 100%;
  align-items: stretch;
}

.ovaex-photo-gallery .ovaex-photo-column {
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ovaex-photo-gap);
}

.ovaex-photo-gallery .ovaex-photo-column-single .ovaex-photo-item {
  height: 100%;
}

.ovaex-photo-gallery .ovaex-photo-column-stack .ovaex-photo-item {
  height: calc((100% - var(--ovaex-photo-gap)) / 2);
}

.ovaex-photo-gallery .ovaex-photo-item,
.ovaex-photo-gallery .gallery-fancybox {
  position: relative;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.ovaex-photo-gallery .gallery-fancybox {
  height: 100%;
}

.ovaex-photo-gallery .gallery-fancybox > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}

.ovaex-photo-gallery .gallery-container {
  position: absolute;
  inset: 0;
}

.ovaex-photo-gallery .gallery-container:before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--primary, #c3262e);
  transition: opacity .3s ease;
  opacity: 0;
}

.ovaex-photo-gallery .gallery-content {
  position: absolute;
  width: 100%;
  left: 50%;
  bottom: 18%;
  transform: translate(-50%, 50%);
  padding: 18px;
  visibility: hidden;
  opacity: 0;
  transition: all .3s ease;
  z-index: 1;
}

.ovaex-photo-gallery .gallery-icon {
  text-align: center;
}

.ovaex-photo-gallery .gallery-icon .icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 55px;
  height: 55px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: transform .3s linear, background-color .2s ease;
  appearance: none;
}

.ovaex-photo-gallery .gallery-icon .icon:hover,
.ovaex-photo-gallery .gallery-icon .icon:focus-visible {
  transform: rotate(-45deg);
  background: rgba(255,255,255,.08);
}

.ovaex-photo-gallery .ovaex-gallery-arrow {
  display: inline-flex;
  font-size: 22px;
  line-height: 1;
  font-family: Arial, sans-serif;
  font-weight: 300;
}

.ovaex-photo-gallery .gallery-title-link {
  text-decoration: none;
}

.ovaex-photo-gallery .gallery-title {
  text-align: center;
  margin: 20px 0 0;
  font-size: 22px;
  color: #fff;
  line-height: 1.3;
}

.ovaex-photo-gallery .gallery-title:hover {
  text-decoration: underline;
}

.ovaex-photo-gallery .ovaex-photo-item:hover .gallery-container:before,
.ovaex-photo-gallery .ovaex-photo-item:focus-within .gallery-container:before {
  opacity: .78;
}

.ovaex-photo-gallery .ovaex-photo-item:hover .gallery-content,
.ovaex-photo-gallery .ovaex-photo-item:focus-within .gallery-content {
  visibility: visible;
  opacity: 1;
  bottom: 50%;
}

.ovaex-photo-gallery .ovaex-photo-item:hover .gallery-fancybox > img {
  transform: scale(1.025);
}

.ovaex-photo-gallery .ovaex-photo-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #111;
  font-size: 32px;
  line-height: 42px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 3px 18px rgba(0,0,0,.18);
  transition: opacity .2s ease, transform .2s ease;
}

.ovaex-photo-gallery .ovaex-photo-nav:hover {
  transform: scale(1.06);
}

.ovaex-photo-gallery .ovaex-photo-prev {
  left: 14px;
}

.ovaex-photo-gallery .ovaex-photo-next {
  right: 14px;
}

.ovaex-photo-gallery .ovaex-photo-nav.swiper-button-disabled {
  opacity: .35;
  cursor: default;
}

.ovaex-photo-gallery .ovaex-photo-pagination {
  position: relative;
  margin-top: 14px;
  text-align: center;
}

.ovaex-photo-gallery .ovaex-photo-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 5px;
}

.ovaex-photo-gallery-empty {
  padding: 20px;
  border: 1px dashed #bbb;
  text-align: center;
}

.ovaex-photo-gallery .fancybox__caption {
  text-align: center;
}

@media screen and (max-width: 767px) {
  .ovaex-photo-gallery .ovaex-photo-nav {
    width: 40px;
    height: 40px;
    margin-top: -20px;
    line-height: 36px;
    font-size: 28px;
  }

  .ovaex-photo-gallery .ovaex-photo-prev {
    left: 8px;
  }

  .ovaex-photo-gallery .ovaex-photo-next {
    right: 8px;
  }
}
