.ti-media-gallery-block {
  width: 884px;
  margin: 60px -115px;
}

@media (max-width: 1024px) {
  .ti-media-gallery-block {
  width: 100%;
  margin: 30px auto;
}
}

.ti-media-gallery-block__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.ti-media-gallery-block__image-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 66.66%;
}

.ti-media-gallery-block__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

a.ti-media-gallery-block__lightbox-trigger {
  all: unset !important;
  cursor: zoom-in !important;
  display: block;
}

@media (max-width: 767px) {
  a.ti-media-gallery-block__lightbox-trigger {
    width: 100% !important;
  }
}

button.ti-media-gallery-block__lightbox-trigger:hover {
  all: unset;
}

.ti-media-gallery-block__description {
  margin: 24px auto 0 auto;
  width: 654px;

  color: var(--Black, #666);

  /* Desktop/Body-Small */
  font-family: "Roboto";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%; /* 18.2px */
  letter-spacing: 0.28px;
  text-align: start;
}

@media (max-width: 767px) {
  .ti-media-gallery-block__description {
    /* Mobile/Body-small */
    font-family: "Roboto";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%; /* 15.6px */
    letter-spacing: 0.24px;
    width: 100%;
  }
}

.ti-media-gallery-block__placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  background: #f2f2f2;
  color: #666;
}

/* CUSTOM PAGINATION (nicht Swiper default) */
.ti-media-gallery-block__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  height: 8px;
}

.ti-media-gallery-block__pagination button {
  all: unset;
}

.ti-media-gallery-block__pagination button.ti-media-gallery-block__bullet {
  height: 4px;
  width: 26px;
  background: #666;
  border: none;
  border-radius: 0;
  transition: all 0.2s ease-in-out;
}

@media (max-width: 767px) {
  .ti-media-gallery-block__pagination button.ti-media-gallery-block__bullet {
    width: 20px;
  }
}

.ti-media-gallery-block__pagination
  button.ti-media-gallery-block__bullet.is-active {
  opacity: 1;
  width: 100px;
  background: #e46713;
  height: 8px;
}

@media (max-width: 767px) {
  .ti-media-gallery-block__pagination
    button.ti-media-gallery-block__bullet.is-active {
    width: 50px;
  }
}

/* TI Lightbox */
.ti-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  justify-content: center;
}

.ti-lightbox.ti-lightbox--open {
  display: flex;
}

.ti-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.ti-lightbox__dialog {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 100vh;
}
@media (max-width: 767px) {
  .ti-lightbox__dialog {
    padding: 0 16px;
  }
}

.ti-lightbox__image {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.ti-lightbox__caption {
  margin-top: 10px;
  color: #fff;
  font-size: 14px;
  text-align: center;
  max-width: 900px;
}

.ti-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 0 !important;
  z-index: 3;
  border-radius: 50%;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 44 44' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M31.625 31.625L12.375 12.375' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M31.625 12.375L12.375 31.625' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 44px 44px; /* Größe des X anpassen */
  cursor: pointer;
  color: transparent !important; /* falls noch Text/Icon-Font im Button steckt */
  font-size: 0 !important; /* verhindert, dass altes "×"-Zeichen sichtbar bleibt */
}

html.ti-lightbox-open,
html.ti-lightbox-open body {
  overflow: hidden;
}
