.projekt {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 12px;
  -webkit-margin-after: 2.5em;
          margin-block-end: 2.5em;
}

nav .link {
  text-align: center;
}

.article-section {
  padding-left: var(--padding);
  padding-right: var(--padding);
}

.projekt-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  font-size: var(--fontsizetext);
  line-height: var(--lineheight);
  gap: 10px;
}

.projekt-text p,
.projekt-link {
  padding-bottom: 0.5em;
  font-size: var(--fontsizetext);
  line-height: var(--lineheight);
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
}

.projekt-images-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  position: relative;
  scroll-padding-left: 0;
  direction: ltr;
  padding-bottom: 0.5em;
}

.projekt-images {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  gap: calc(var(--padding) / 1.5);
  height: auto;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  min-width: 100%;
  margin-left: 0;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding-right: var(--padding);
}

.projekt-images img {
  display: block;
  max-height: 50vh;
  max-width: 80vw;
  height: auto;
  width: auto;
  -o-object-fit: contain;
     object-fit: contain;
}

.projekt-images figure {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  position: relative;
  width: auto;
  max-width: 80vw;
}

.projekt-images img {
  height: auto;
  display: block;
  -o-object-fit: contain;
     object-fit: contain;
}

.custom-audio-player {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    width: 100%;
}

.projekt-videos {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-left: var(--padding);
  margin-right: var(--padding);
  gap: var(--padding);
}

.embed-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 15px;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
}

.embed-wrapper {
  position: relative;
  width: calc(50% - (var(--padding) * 0.5));
  padding-bottom: 28.125%;
  height: 0;
  overflow: hidden;
  border-radius: 15px;
  max-width: 100%;
  position: relative;
  margin-bottom: 2rem;
}

.embed-preview {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  padding-bottom: 56.25%;
  height: 0;
}

.embed-preview img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  background: var(--active-color);
  border-radius: 15px;
}

.embed-overlay {
  position: relative;
  top: 1em;
  -ms-grid-column-align: center;
      justify-self: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
  text-align: center;
}

.embed-consent-button {
  color: #000;
  padding: 0.5rem 1rem;
  border: none;
  margin-top: 0.5rem;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.embed-consent-button:hover {
  color: white;
}

@media screen and (max-width: 1400px) {
  .projekt-images img {
    max-height: 35vh;
  }
}

@media screen and (max-width: 800px) {
  .embed-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
  }

  .projekt-images img {
    max-height: 25vh;
  }
}

