.gallery.offset .images {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  margin-top: min(2em, 1vw);
  max-width: 1920px;
}
.gallery.offset a.tab {
  display: none;
}
@media screen and (max-width: 768px) {
  .gallery.offset a.tab {
    background: #fff;
    opacity: 0.98;
    display: block;
    width: 100%;
    padding: 0.5em 1em;
    color: var(--color-font);
    text-decoration: none;
    margin-bottom: 2px;
    position: relative;
  }
  .gallery.offset a.tab + figure {
    max-height: 0px;
    overflow: hidden;
    position: absolute;
    margin: 0;
  }
  .gallery.offset a.tab::after {
    content: "rechts";
    position: absolute;
    font-family: deister-icons;
    right: 4%;
    color: var(--color-primary);
    font-size: 1.4em;
    top: 0.15em;
    z-index: 10;
  }
  .gallery.offset a:target::after {
    content: "unten";
  }
  .gallery.offset a:target + figure {
    max-height: 100%;
    overflow: visible;
    position: relative;
  }
}
.gallery.offset figure {
  position: relative;
  overflow: hidden;
  margin-right: 2%;
  flex: 1 1 auto;
  margin-bottom: 2%;
}
@media screen and (min-width: 768px) {
  .gallery.offset figure {
    flex: 0 0 25%;
    max-width: 340px;
  }
}
.gallery.offset figure img {
  width: 100%;
  margin-bottom: 0;
}
@media screen and (max-width: 768px) {
  .gallery.offset figure a {
    display: flex;
    width: 100%;
    background-color: var(--color-primary);
    color: #fff;
  }
  .gallery.offset figure a::before {
    content: inherit;
  }
  .gallery.offset figure a figcaption {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: var(--color-primary);
    opacity: 0.9;
    padding: 2em 1em 1em;
  }
  .gallery.offset figure a figcaption h3,
.gallery.offset figure a figcaption p {
    text-decoration: none;
  }
}
@media screen and (min-width: 768px) {
  .gallery.offset figure figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: max(3em, 10px);
    padding-bottom: max(3em, 10px);
    padding-left: max(2em, 10px);
    padding-right: max(2em, 10px);
    margin-top: 0;
    font-size: 1.2em;
    transform: translateY(72%);
    transform: translateY(calc(100% - 4.25em));
    transition: all 300ms ease-out;
  }
}
@media screen and (min-width: 768px) and (min-width: 1220px) {
  .gallery.offset figure figcaption {
    transform: translateY(76%);
    transform: translateY(calc(100% - 5.3em));
  }
}
@media screen and (min-width: 768px) {
  .gallery.offset figure figcaption h3 {
    width: 100%;
    font-size: 1.2em;
    font-size: clamp(1em, 1vw, 1.2em);
    font-weight: bold;
    color: var(--color-font);
  }
}
@media screen and (min-width: 768px) {
  .gallery.offset figure figcaption p {
    transition: all 200ms;
    transform: translateY(2em);
    font-size: 0.8em;
    line-height: 1.25em;
  }
}
@media screen and (min-width: 768px) and (min-width: 1100px) {
  .gallery.offset figure figcaption p {
    font-size: 1.1em;
  }
}
@media screen and (min-width: 768px) {
  .gallery.offset figure a figcaption h3::after {
    content: "right";
    position: absolute;
    right: 2em;
    bottom: 2em;
    top: 2.8rem;
    font-family: deister-icons;
    color: var(--color-primary);
    z-index: 10;
  }
  .gallery.offset figure a::before {
    content: "";
    background: #fff;
    opacity: 0.8;
    left: 0;
    right: 0;
    bottom: 0;
    height: 15%;
    position: absolute;
  }
}
@media screen and (min-width: 768px) {
  .gallery.offset figure a:hover::before {
    content: none;
  }
}
@media screen and (min-width: 768px) {
  .gallery.offset figure a:hover figcaption {
    transform: inherit;
    justify-content: center;
    background-color: var(--color-primary);
    opacity: 0.95;
  }
  .gallery.offset figure a:hover figcaption h3 {
    color: #fff;
  }
  .gallery.offset figure a:hover figcaption h3::after {
    color: #fff;
    bottom: 1.5em;
    top: inherit;
  }
  .gallery.offset figure a:hover figcaption p {
    transform: translateY(0);
    color: #fff;
  }
}
@media screen and (min-width: 1120px) {
  .gallery.offset figure:nth-child(8n) {
    margin-left: 18%;
    margin-left: calc(94% - 1020px);
  }
}
.gallery.offset .images.count1,
.gallery.offset .images.count2,
.gallery.offset .images.count3 {
  justify-content: center;
}
.gallery.offset .images.count5 figure:nth-child(2) {
  margin-right: 28%;
}
.gallery.offset .images.count5 figure:nth-child(3n) {
  margin-left: 18%;
}
.gallery.offset .images.count5 figure:nth-child(4n) {
  margin-left: 0;
}

/*# sourceMappingURL=galleryOffset.css.map */
