.c-aktuell {
  display: grid;
  margin-bottom: var(--element-margin);
}

.c-aktuell__list {
  display: grid;
  gap: var(--element-margin);
  grid-column: 2 / -2;
}

.c-aktuell__item {
  display: grid;
  gap: 0.75rem;
}

.c-aktuell__date {
  background-color: var(--color-lightgrey);
  border-radius: 0.15rem;
  color: var(--color-black);
  display: inline-block;
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  justify-self: start;
  line-height: 1;
  margin-bottom: 0.5rem;
  padding: 0.35rem 0.5rem;
}

.c-aktuell__item h2 {
  color: var(--color-black);
  font-size: 1.5rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.5rem;
}

.c-aktuell__item h2 + p {
  line-height: 1.6;
}

.c-aktuell__item a {
  color: var(--color-black);
  display: inline-grid;
  grid-template-columns: auto 15px;
  align-items: center;
  column-gap: 0.5rem;
  font-weight: var(--font-weight-semibold);
  justify-self: start;
  line-height: 1;
  text-decoration: none;
}

.c-aktuell__item a::after {
  content: "";
  display: block;
  width: 15px;
  height: 12px;
  background-image: url("../images/layout/sprites.svg");
  background-position: -150px -90px;
  background-repeat: no-repeat;
  margin-top: 3px;
  transition: transform 0.15s ease-in-out;
}

.c-aktuell__item a:hover::after {
  transform: translateX(0.5rem);
}

.c-aktuell-artikel__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: var(--element-margin);
}

.c-aktuell-artikel__content > * {
  grid-column: 1 / -1;
}

.c-aktuell-artikel__date {
  background-color: var(--color-lightgrey);
  border-radius: 0.15rem;
  color: var(--color-black);
  display: inline-block;
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  justify-self: start;
  line-height: 1;
  margin-bottom: 0.5rem;
  padding: 0.35rem 0.5rem;
}

.c-aktuell-artikel__content h2 {
  color: var(--color-black);
  margin-bottom: 1.5rem;
}

.c-aktuell-artikel__content .c-text {
  margin-bottom: 0;
}

.c-gallery {
  display: grid;
  gap: 1rem;
  margin-bottom: var(--element-margin);
}

.c-gallery__grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.c-gallery figure {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.c-gallery__grid a,
.c-gallery__grid picture,
.c-gallery__grid img {
  display: block;
  height: 100%;
  width: 100%;
}

.c-gallery img {
  object-fit: cover;
  transition: transform 0.2s ease-in-out;
}

.c-gallery a:hover img {
  transform: scale(1.04);
}

.c-gallery__overlay {
  background-color: var(--color-white);
  display: none;
  inset: 0;
  padding: 4rem 1rem 1rem;
  position: fixed;
  z-index: 101;
}

.c-gallery__overlay:target {
  display: grid;
  place-items: center;
}

.c-gallery__overlay figure {
  aspect-ratio: auto;
  display: grid;
  height: min(80vh, 900px);
  width: min(1200px, 100%);
  overflow: visible;
}

.c-gallery__overlay picture,
.c-gallery__overlay img {
  height: 100%;
  width: 100%;
}

.c-gallery__overlay img {
  object-fit: contain;
}

.c-gallery__close {
  align-items: center;
  border: 2px solid var(--color-black);
  column-gap: 0.5rem;
  color: var(--color-black);
  display: grid;
  font-weight: var(--font-weight-semibold);
  grid-template-columns: auto 16px;
  line-height: 1;
  padding: 0.75rem 1rem;
  position: fixed;
  right: 1rem;
  text-decoration: none;
  top: 1rem;
}

.c-gallery__close::after {
  content: "";
  display: block;
  width: 15px;
  height: 12px;
  background-image: url("/assets/images/layout/sprites.svg");
  background-repeat: no-repeat;
  background-position: -150px -90px;
  margin-top: 2px;
  transition: transform 0.15s ease-in-out;
}

.c-gallery__close:hover::after {
  transform: translateX(0.5rem);
}

@media screen and (min-width: 1024px) {
  .c-aktuell {
    grid-column: 2 / -2;
  }

  .c-aktuell__item {
    grid-template-columns: minmax(0, 1fr);
  }

  .c-aktuell-artikel__content {
    grid-column: 2 / -4;
  }

  .c-gallery {
    grid-column: 2 / -2;
  }

  .c-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media screen and (min-width: 1280px) {
  .c-aktuell {
    grid-column: 2 / -2;
  }

  .c-aktuell-artikel__content {
    grid-column: 2 / 10;
  }

  .c-gallery {
    grid-column: 2 / -4;
  }
}
