body.single-references .subpage-intro {
  position: relative;
}

body.single-references .subpage-intro > * {
  max-width: 1260px;
  line-height: 1;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

body.single-references .teaser-wrapper {
  width: calc(100% - (100vw / 6));
}

body.single-references h1 {
  line-height: inherit;
}

body.single-references .subpage-intro .section-headline {
  margin-bottom: 1rem;
}

body.single-references .subpage-intro .section-headline .lowerline {
  margin-top: 0;
  line-height: inherit;
}


body.single-references .subpage-intro .caption {
  position: absolute;
	background: rgba(255, 255, 255, 0.9);
	padding: .5rem 1rem;
  font-size: 1.5rem;
  bottom: 1rem;
  right: 1rem;
  max-width: calc(100% - 2rem);
}

.reference-list,
body.single-references .page-padding {
  padding-top: 5rem;
}

body.single-references .teaser-wrapper {
  align-items: flex-start;
}

.reference-list .teaser-wrapper {
  align-items: center;
}

article.references h2 {
  font-weight: 300;
  font-size: 3rem;
  font-family: Continuum-Medium, sans-serif;
}

article.references .section-headline h2 {
  margin-bottom: 0;
}

.ref_value + .section-headline {
  margin-top: 7.5rem;
}

.ref_value ul,
ul.ref_value {
    margin-bottom: 3rem;
    padding-left: 3rem;
    padding-right: 5rem;
}

.ref_value li {
    position: relative;
    font-family: "Merriweather Sans", sans-serif;
    color: var(--text, #5b646b);
    font-weight: 300;
}

.ref_value li:not(.no-point):before {
    content: "■";
    font-family: "Merriweather Sans", sans-serif;
    position: absolute;
    top: -0.2rem;
    left: -2.5rem;
    color: var(--secondary, #0098DC);
}

.ref_value li a {
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;
}

.ref_value li a:hover {
    color: var(--secondary, #0098DC);
}

.ref_blocks .swiper-container {
  max-width: none;
  height: auto;
}

.ref_blocks .swiper-slide {
    padding: 0;
    width: auto;
}

.ref_blocks .swiper-slide img {
  width: auto;
  height: auto;
  display: block;
  padding: 0;
}

.ref_blocks .swiper-slide {
  opacity: 0;
  transition: all .3s ease;
}

.ref_blocks .swiper-slide-active,
.ref_blocks .swiper-slide-active + .swiper-slide {
  opacity: 1;
}

.ref_blocks .swiper-button-prev {
  left: 5rem;
}

.ref_blocks .swiper-button-next {
  right: 5rem;
}

.ref_blocks .swiper-pagination-bullet-active {
  background-color: var(--primary, #0E285E);
}
.ref_blocks .teaser-text.box-border
.reference-list .caption,
.ref_blocks .caption {
  font-size: 1.5rem;
  margin-top: 1rem;
}

.ref_blocks .teaser-text:not(.box-border):not(:first-child) {
  max-width: 40rem;
  width: 100%;
  margin-left: 5rem;
  min-width: 300px;
}

.ref_blocks .teaser-text.box-border {
  width: 100%;
}

.ref_blocks .swiper-container-horizontal > .swiper-pagination-bullets,
.ref_blocks .swiper-pagination-custom, .swiper-pagination-fraction {
  bottom: 5rem;
}

.ref_blocks.teaser-wrapper .button-wrapper {
  margin: 2rem 0 2rem 0;
  text-align: right;
}

.ref_blocks.teaser-wrapper .button-wrapper .button {
  margin-left: auto;
}

.ref_blocks .gallery-img-wrapper {
  padding-bottom: calc(100% / 850 * 450);
  position: relative;
  overflow: hidden;
}

.ref_blocks .gallery-img-wrapper > img {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

/* old styles */

.post-type-archive-references .reference-list article {
  padding: 4rem calc(100vw / 24);
  position: relative;
}

.post-type-archive-references .references .teaser-img-wrapper {
  width: 50%;
  margin-right: 5rem;
}

.post-type-archive-references .reference-list .references .teaser-text {
  width: 50%;
}

.post-type-archive-references .references .detail-container p span {
  display: inline-flex;
}

.post-type-archive-references .references .detail-container p span:first-child {
  margin-right: 10px;
  width: calc(40% - 10px);
}

.post-type-archive-references .references .detail-container p span:last-child {
  margin-bottom: 10px;
  width: 60%;
}

.post-type-archive-references .references .detail-container {
  margin-top: 3rem;
}

.post-type-archive-references .references .detail-container p {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.post-type-archive-references .references h3 {
  margin: 0;
}

.post-type-archive-references .references h3 .lowerline {
  display: block;
}

.post-type-archive-references .only_print {
  display: none;
}

.post-type-archive-references .reference-list .back-button {
    padding: 0 calc(100vw / 24);
    margin-top: 0;
}
.post-type-archive-references .reference-list .back-button .teaser-wrapper2 {
    margin: auto;
}

.post-type-archive-references .reference-list.single article:first-of-type {
    padding-top: 0;
}

.post-type-archive-references .teaser-text-bottom.description .button {
  margin-top: 2rem;
}

@media screen and (max-width: 1080px) {
  .ref_blocks .swiper-container-horizontal > .swiper-pagination-bullets,
  .ref_blocks .swiper-pagination-custom, .swiper-pagination-fraction {
    bottom: 1rem;
  }
}

@media screen and (max-width: 840px) {

  body.single-references .teaser-wrapper {
  	width: 100%;
  }

  body.single-references .page-padding {
    padding-top: 0;
  }

  .post-type-archive-references .references .teaser-img-wrapper {
    width: 100%;
    margin-right: 0;
  }

  .post-type-archive-references .reference-list .references .teaser-text {
    width: 100%;
  }

  .teaser-wrapper.ref_blocks  {
    padding: 5rem calc(100vw / 12);
  }

  .ref_value + .section-headline {
    margin-top: 5rem;
  }

  .ref_blocks .swiper-slide-active + .swiper-slide {
    opacity: 0;
  }

  .ref_blocks .swiper-button-prev {
  	left: 0.5rem;
    transform: scale(.75);
  }

  .ref_blocks .swiper-button-next {
  	right: 0.5rem;
    transform: scale(.75);
  }

  .ref_blocks .teaser-text.box-border {
    margin-top: 5rem;
    max-width: none;
  }

  .ref_blocks .teaser-text:not(.box-border):not(:first-child) {
    max-width: none;
    margin-left: 0;
  }

  .ref_blocks .swiper-container-horizontal > .swiper-pagination-bullets,
  .ref_blocks .swiper-pagination-custom, .swiper-pagination-fraction {
    bottom: 1rem;
  }
}
