* {
  box-sizing: border-box;
}

html {
  background: darkseagreen;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

html.page--party {
  background: #13182f;
  color: white;
}

html.page--dinner {
  background: #ecd48b;
}

html.page--roll-call {
  background: #b1def4;
}

html.page--gauntlet {
  background: #efdbe4;
}

html.page--ceremony {
  background: white;
}

html.page--morning-of {
  background: #8eb0b0;
}

html.page--week-of {
  background: #2f4d1b;
  color: white;
}

body {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Lora;
  font-weight: 900;
}

button,
fieldset,
input,
legend,
select,
textarea,
button[type="submit"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

input,
select,
textarea,
button[type="submit"] {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  border: 1px solid black;
  background-color: white;
  border-radius: 2px;
}

input[type="text"],
input[type="email"],
select,
textarea,
button[type="submit"] {
  font-size: 1rem;
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
}

select {
  background:
    url("arrow.svg") no-repeat center right 0.5rem,
    white;
  background-size: 20px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}


/* Site layout */
.page-wrapper {
  padding: 1rem;
}

/* Site headers */
header {
  text-align: center;
}

header h1 {
  margin-bottom: 0;
}

header h1 a {
  color: inherit;
  text-decoration: none;
}

header h1 a:hover {
  text-decoration: underline;
}

header h2 {
  margin-top: 0;
}

/* Site navigation */
nav {
  display: inline-block;
  margin: 1rem auto;
  text-align: center;
}

nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  margin-right: .5rem;
}

@media screen and (max-width: 745px) {
  nav ul {
    flex-wrap: wrap;
  }
}

nav li:not(:last-child)::after {
  content: ">";
  margin-left: .5rem;
}

nav .active {
  font-weight: bold;
}

/* Photo pages */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  grid-gap: 1rem;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media screen and (max-width: 745px) {
  .gallery {
    display: block;
  }

  .gallery img {
    margin-bottom: 1rem;
  }

  .gallery img:cover {
    object-fit: unset;
    height: unset;
  }
}

.gallery img.full {
  grid-column: 1 / -1;
}

.gallery img.middle {
  grid-column: 2 / -2;
}

.gallery img.right {
  grid-column: -3 / -1;
}

.gallery img.cover {
  object-fit: cover;
  height: 100%;
}

figure {
  margin: 0 0 4rem;
}

figcaption {
  margin-top: .5rem;
  text-align: center;
  font-family: Lora;
  font-size: 1.3rem;
  font-weight: bold;
}

/* Intro page */
.index-menu {
  display: flex;
  justify-content: center;
  align-items: center;
}

.introduction {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1rem;
}