#location-meta {
  display: flex;
  flex-direction: column;
  gap: 2rem 1rem;
}

#content > .max-width:not(:last-child) {
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  #content > .max-width:not(:last-child) {
    margin-bottom: 3rem;
  }
}

.map-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.map-wrapper .embedded-map {
  aspect-ratio: unset;
  flex: 1 1 200px; 
}

.contact-information {
  flex: 0;
}

.contact-information h2 {
  border: none;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

@media (min-width: 1024px) {
  #location-meta {
    flex-direction: row;
  }

  .map-wrapper,
  .opening-times {
    flex: 1 0 50%;
  }

  .map-wrapper:only-child {
    flex-direction: row-reverse;
  }

  .map-wrapper:only-child .embedded-map {
    aspect-ratio: 3/1;
    flex: 1;
  }

  .map-wrapper:only-child .embedded-map:nth-last-child(3) {
    aspect-ratio: 2/1;
  }

  .map-wrapper:only-child .contact-information {
    flex: 1 0 50%;
  }
}

.facilities-wrapper.teaser-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 1rem;
}

@media (min-width: 540px) {
  .facilities-wrapper.teaser-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 928px) {
  .facilities-wrapper.image-wrapper,
  .facilities-wrapper.card-wrapper[data-distribution-parity="odd"] {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.facilities-wrapper.image-wrapper .teaser {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--primary);
  background-color: var(--primary);
  color: var(--primary-contrast);
}

.facilities-wrapper.image-wrapper .teaser:hover {
  background-color: var(--secondary);
  color: var(--secondary-contrast);
}

.facilities-wrapper.image-wrapper .teaser a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.facilities-wrapper.image-wrapper .teaser picture {
  display: block;
}

.facilities-wrapper.image-wrapper .teaser *:where(h1, h2, h3, h4, h5, h6, figcaption) {
  color: inherit;
  text-align: center;
  padding: 0.5rem 1rem;
  font-weight: 700;
  text-decoration: none !important;
  margin: 0;
  font-size: inherit;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.facilities-wrapper.image-wrapper .teaser:focus-within {
  background-color: transparent;
  border-color: transparent;
}

.facilities-wrapper.image-wrapper .teaser a:not(:focus) {
  color: inherit;
}
