.text-image-gallery__content-inner {
  width: 80%;
  max-width: 530px !important;
  margin-left: auto;
  margin-right: auto;
}

.text-image-gallery__content h2,
.text-image-gallery__content span {
  max-width: 100%;
}

@media (max-width: 992px) {
  .text-image-gallery__content-inner {
    width: auto;
    max-width: none;
    margin-left: 24px;
    margin-right: 24px;
  }

  .text-image-gallery__image img {
    min-height: 420px;
  }
}

/* Effekte */
.text-image-gallery__figure {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 640px;
}

.text-image-gallery__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 640px;
  object-fit: cover;
  transition:
    transform 1s ease-in-out,
    opacity 1s ease-in-out;
  will-change: transform, opacity;
}

/* second_img */
.effect-second_img .text-image-gallery__img--primary {
  position: relative;
  z-index: 1;
}

.effect-second_img .text-image-gallery__img--secondary {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transform: scale(1);
}

.effect-second_img:hover .text-image-gallery__img--secondary {
  opacity: 1;
}

/* flow */
.effect-flow .text-image-gallery__img--primary {
  width: 120%;
  max-width: none;
  transform: translateX(0);
  object-fit: cover;
  object-position: left center;
  transition: transform 1s ease-in-out;
}

.effect-flow:hover .text-image-gallery__img--primary {
  transform: translateX(-16.666%);
}

.text-image-gallery__figure {
  overflow: hidden;
}

/* zoom */
.effect-zoom .text-image-gallery__img--primary {
  transform: scale(1);
}

.effect-zoom:hover .text-image-gallery__img--primary {
  transform: scale(1.25);
}

@media (max-width: 992px) {
  .text-image-gallery__figure,
  .text-image-gallery__img {
    min-height: 420px;
  }
}

.text_image_gallery-block h2 {
  margin-block-start: 0;
}
