/* Shared theme for the four pages about the churches and their artworks. */
body {
  margin: 8px;
  background: #f1e9dc url("bilder/bgmedeival.gif") repeat-y left top;
  color: #400000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}

main {
  width: 600px;
  margin: 0 auto;
  padding-top: 12px;
}

h1 {
  margin: 0 0 24px;
  text-align: center;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

.introduction {
  font-family: "Arial Rounded MT Bold", Arial, sans-serif;
}

p {
  margin: 1em 0;
}

a {
  color: #800000;
}

a:active {
  color: #f00;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.sculpture {
  display: block;
  box-sizing: border-box;
  margin: 0 auto;
  border: 1px solid #400000;
}

section {
  margin-top: 36px;
}

h2 {
  font-size: 1em;
  margin: 1.33em 0;
}

footer {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: 16px;
}

footer > div {
  flex: 1;
}

footer > a {
  flex: 0 0 86px;
}

.home-link {
  display: inline-block;
  margin: 12px 0;
  font-family: "Times New Roman", serif;
  font-size: 16px;
}

.text-title {
  font-family: "Times New Roman", serif;
  font-size: 2em;
}

.centered-image, .ornament {
  display: block;
  margin: 24px auto;
}

.madonna-images {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.madonna-images img {
  min-width: 0;
}

.historical-text {
  font-family: Verdana, Arial, sans-serif;
}

.source {
  font-size: 0.875em;
}

.related-pages {
  padding-left: 24px;
}

.related-pages li {
  padding: 8px 0;
}

.related-pages a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.related-pages img {
  flex: 0 0 63px;
}

.page-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 24px 0;
}

.page-navigation a {
  padding: 12px 0;
}

/* A centered 600px column needs 150px on each side to clear the border. */
@media (max-width: 900px) {
  body {
    background-image: none;
  }
}

/* Switch to the flexible layout on smaller screens. */
@media (max-width: 760px) {
  body {
    margin: 0;
    background-image: none;
    font-size: 16px;
    line-height: 1.6;
  }

  main {
    box-sizing: border-box;
    width: 100%;
    max-width: 632px;
    margin: 0 auto;
    padding: 24px 16px;
  }

  .home-link {
    padding: 10px 0;
  }
}
