* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: #626262;
  font: 15px/1.2 "Raleway", sans-serif;
  padding: 0 16px 100px;
}

a, a:visited { color: #5199a8; text-decoration: none; }
a:hover { color: #8dc7d3; }

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

header { text-align: center; padding: 52px 0 25px; }

.sitename, .sitename:visited, .sitename:hover {
  color: #484848;
  font: 700 22px "Oxygen", sans-serif;
  letter-spacing: 4px;
}

nav {
  max-width: 960px;
  margin: 0 auto;
  padding-bottom: 40px;
  overflow: hidden;
  text-align: center;
}

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

nav ul::before, nav ul::after {
  content: "";
  display: inline-block;
  position: relative;
  width: 50%;
  height: 1px;
  vertical-align: middle;
  background: #d0d0d0;
}

nav ul::before { right: 29px; margin-left: -50%; }
nav ul::after { left: 29px; margin-right: -50%; }

nav li { display: inline-block; padding: 10px 14px; }
nav li.active, nav li:hover { background: #f6f6f6; }

nav a, nav a:visited, nav a:hover {
  color: #8e8e8e;
  font: 16px "Oxygen", sans-serif;
  text-transform: uppercase;
  letter-spacing: 4px;
}

nav li.active a { color: #484848; }

main { max-width: 960px; margin: 0 auto; }

p { margin: 0 0 1.2em; }

hr { height: 0; margin: 32px 0; border: 0; }

.row { display: grid; gap: 30px; }
.row.wide { grid-template-columns: 60fr 40fr; }
.row.half { grid-template-columns: 1fr 1fr; }
.row.third { grid-template-columns: 34fr 66fr; }
.row .text { padding-top: 16px; }
.row .media { display: grid; gap: 10px; align-content: start; }
.row.third .text { padding-top: 40px; }

.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.gallery { display: grid; gap: 10px; padding: 10px 5px; }
.gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 20px; }
.single { margin-bottom: 20px; }

figure { margin: 0; }
figcaption { padding-top: 10px; line-height: 1.4; }
.link { margin-bottom: 20px; }
.link figcaption { font-size: 90%; }

.series { margin-top: 40px; }

h2.group {
  margin: 48px 0 16px;
  color: #484848;
  font: 700 15px "Raleway", sans-serif;
}

@media (max-width: 767px) {
  .row.wide, .row.half, .row.third, .pair { grid-template-columns: 1fr; }
  nav ul::before, nav ul::after { display: none; }
  nav li { padding: 6px 8px; }
  nav a, nav a:visited, nav a:hover { font-size: 13px; letter-spacing: 2px; }
  .gallery.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
