@font-face {
  font-family: "Linux Libertine";
  src: url("../fonts/LinLibertine_R.otf") format("opentype");
  font-weight: normal;
}

@font-face {
  font-family: "Linux Libertine";
  src: url("../fonts/LinLibertine_RB.otf") format("opentype");
  font-weight: bold;
}

@font-face {
  font-family: "Linux Libertine";
  src: url("../fonts/LinLibertine_RI.otf") format("opentype");
  font-style: italic;
}

@font-face {
  font-family: "Linux Libertine";
  src: url("../fonts/LinLibertine_RBI.otf") format("opentype");
  font-weight: bold;
  font-style: italic;
}


body {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 24px;
  font-family: sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #202122;
  background: white;
}

.site-title {
  font-family: "Linux Libertine", Georgia, Times, serif;
  font-size: 29px;
  line-height: 1.25;
  margin: 0 0 18px 0;
}

/* Headings */

h1 {
  font-family: "Linux Libertine", Georgia, Times, serif;
  font-size: 28px;
  line-height: 1.25;
  font-weight: normal;
  margin: 0 0 20px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #a2a9b1;
}

h2 {
  font-family: "Linux Libertine", Georgia, Times, serif;
  font-size: 24px;
  line-height: 1.3;
  font-weight: normal;
  margin: 30px 0 10px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #a2a9b1;
}

h3 {
  font-family: "Linux Libertine", Georgia, Times, serif;
  font-size: 20px;
  line-height: 1.4;
  font-weight: bold;
  margin: 24px 0 8px 0;
}


/* Navigation */

nav {
  margin: 18px 0 28px 0;
}

nav a {
  margin-right: 18px;
}


/* Links */

a {
  color: #36c;
}

a:hover {
  color: #36c;
  text-decoration: underline;
}


/* Paragraphs */

p {
  margin: 0 0 12px 0;
}


/* Horizontal rules */

hr {
  border: 0;
  border-top: 1px solid #a2a9b1;
  margin: 20px 0;
}


/* Images */

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

figure {
  margin: 24px 0;
}

figcaption {
  font-size: 14px;
}


/* Tables */

table {
  border-collapse: collapse;
  margin: 16px 0;
}

td,
th {
  padding: 3px 12px 3px 0;
  vertical-align: top;
}


/* Blockquotes */

blockquote {
  margin: 24px 0;
  padding-left: 18px;
  border-left: 2px solid #a2a9b1;
}


/* Footer */

footer {
  margin-top: 50px;
  padding-top: 15px;
  border-top: 1px solid #a2a9b1;
  font-size: 14px;
}


/* Mobile */

@media (max-width: 600px) {
  body {
    margin: 30px auto;
    padding: 0 16px;
    font-size: 16px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  nav a {
    display: inline-block;
    margin: 0 14px 8px 0;
  }
}


/* Photo grid */

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 20px -7px;
}

.photo-grid img {
  width: 31%;
  margin: 0 1% 15px 1%;
  height: 180px;
  object-position: center top;
  object-fit: contain;
}

@media (max-width: 600px) {
  .photo-grid img {
    width: 47%;
  }
}


/* Photo captions */

.photo-caption {
  font-size: 14px;
  line-height: 1.4;
  margin: 5px 0 25px 0;
}


/* People */

.person {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.person > div {
  flex: 1;
}

.person img {
  width: 180px;
  height: auto;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .person img {
    width: 100px;
  }
}


/* News images */

.imgnews {
  height: 350px;
  width: auto;
}


/* YouTube */

figure iframe {
  width: 480px;
  height: 270px;
  max-width: 100%;
}


/* Text wrapping around images */

.text-image {
  float: left;
  width: 250px;
  height: auto;
  margin: 0 20px 10px 0;
}