/* .text_accordeon_images .images {
  padding-right: 0;
  padding-bottom: 10rem;
} */

.text_accordeon_images .headline h2 {
  font-size: var(--entry-image-font);
  text-transform: uppercase;
  max-width: 100%;
  line-height: 1.1;
}

.text_accordeon_images .headline em {
  font-style: normal;
  font-weight: 700;
  color: var(--secondary);
}



.text_accordeon_images.content_block {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.text_accordeon_images+.text_and_headline {
  padding-top: 5rem;
}

.text_accordeon_images .content {
  display: grid;
  grid-template-columns: 11fr 7fr;
  gap: calc(var(--col) * 2);
  align-items: start;
}

.text_accordeon_images .headline {
  margin-bottom: 5rem;
}

.text_accordeon_images .left {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  gap: 3rem;
  height: 100%;
  height: auto;
  align-self: start;
  position: sticky;
  top: calc(var(--header) + 5rem);
}

.text_accordeon_images[data-size="large"] .left {
  position: static;
  height: max-content;
  overflow: auto;
}

.text_accordeon_images .accordeon {
  display: grid;
  flex-direction: row;
  gap: 2rem 3rem;
  grid-template-columns: 2fr 3fr;
}

.text_accordeon_images .accordeon .trigger {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: min-content;
  flex-grow: 1;
  grid-column-start: 1;
}

.accordeon .trigger {
  cursor: pointer;
  text-align: left;
  opacity: 0.7;
}

.accordeon .trigger.active {
  opacity: 1;
}

.text_accordeon_images .accordeon .contents {
  position: relative;
  min-width: 10em;
  margin-left: auto;
  margin-right: auto;
}

.accordeon .contents {
  display: none;
  grid-column-start: 2;
  grid-row-start: 1;
  grid-row-end: span var(--cnt, 1);
}

.accordeon .contents.active {
  display: block;
}

.item_headline {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  line-height: 1.3;
  font-size: var(--slightly-bigger-font);
}

.text_accordeon_images .gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 2rem;
  background-color: var(--white);
}

.text_accordeon_images .gallery img {
  width: 100%;
  object-fit: cover;
  max-height: 90vh;
}

.text_accordeon_images .more {
  margin-top: 10em;
}



/* MOBILES STYLING  */


@media screen and (max-width: 1330px) {

  .accordeon {
    padding-top: 3rem;
    margin-bottom: 3rem;
  }

  .text_accordeon_images .content {
    display: flex;
    flex-direction: column;
  }

  .text_accordeon_images .images {
    padding: 0rem var(--outside-padding-inner);
  }

  .text_accordeon_images .gallery {
    margin-top: 5rem;
    width: 100%;
  }

  .text_accordeon_images .left {
    position: static !important;
  }

  .text_accordeon_images .gallery {
    position: static;
  }

  .text_accordeon_images .more {
    margin-top: 2em;
  }

}


@media screen and (max-width: 768px) {
  .text_accordeon_images .accordeon {
    display: flex;
    flex-direction: column;
  }

  .text_accordeon_images .accordeon .contents {
    width: 100%;
    margin-bottom: 1em;
  }

  .text_accordeon_images .accordeon .trigger {
    display: flex;
    flex-direction: column;
    width: fit-content;
    flex-wrap: wrap;
  }

  .accordeon .trigger {
    max-width: fit-content;
  }
}