/* ---- Image Gallery section ---- */

.gallery__item {
  position: relative;
}

.gallery__item .gallery__item-container {
  position: relative;
  overflow: hidden;
  height: auto;
  width: 100%;
  background: transparent;
  background: transparent;
}

.gallery__item-image {
  position: relative;
}

.gallery__item-image:after {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: var(--overlay-color);
  content:"";
}

.gallery__item .gallery__item-container img {
  position: relative;
  display: block;
  max-width: 100%;
  width: 100%;
  opacity: 1;
}

.gallery__item .gallery__item-container .gallery__item-caption {
  margin-top: 10px;
}

.gallery__item .gallery__item-container h3,
.gallery__item .gallery__item-container p,
.gallery__item .gallery__item-container a:not(.btn) {
  color: var(--text-color);
}

.gallery__item .gallery__item-container .gallery__item-caption::before,
.gallery__item .gallery__item-container .gallery__item-caption::after {
  pointer-events: none;
}

.gallery__item.floating__text .gallery__item-container .gallery__item-caption {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.gallery__item.floating__text .gallery__item-container .gallery__item-caption > a {
  z-index: 2;
  text-indent: 200%;
  white-space: nowrap;
  font-size: 0;
  opacity: 0;
}
/* Handle fixed height sections. */
.gallery__image-section.is-fixed_height .gallery__item-image img {
  object-fit: cover;
}
.gallery__image-section.is-fixed_height .gallery__item-image,
.gallery__image-section.is-fixed_height .gallery__item-image img {
  height: var(--desktop-fixed-height);
}
.gallery__image-section.is-fixed_height .gallery__item-image .box-ratio {
  padding-bottom: var(--desktop-fixed-height) !important;
}
@media screen and (max-width: 740px) {
  .gallery__image-section.is-fixed_height .gallery__item-image,
  .gallery__image-section.is-fixed_height .gallery__item-image img {
    height: var(--mobile-fixed-height);
  }
  .gallery__image-section.is-fixed_height .gallery__item-image .box-ratio {
    padding-bottom: var(--mobile-fixed-height) !important;
  }
}
