small {
  font-size: 0.8em;
}

/* =========================
   Homepage
========================= */
.homepage-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(240px, 1fr));

  gap: 2rem;
}


.homepage-grid article {
  padding: 1rem;
}


.homepage-grid img {
  width: 100%;

  aspect-ratio: 16 / 9;

  object-fit: cover;

  border-radius: 8px;

  margin-bottom: 1rem;
}


.homepage-grid h3 {
  font-size: 1rem;

  margin-bottom: 0;
}

.homepage-grid a {
  text-decoration: none;
}

/* =========================
   Articles and Gallery Navigation
========================= */
.page-nav {
  display: flex;

  justify-content: space-between;

  margin-top: 4rem;
  padding-top: 2rem;

  border-top: 1px solid #380606;
}

/* =========================
   Dark / Light Mode
========================= */

#theme-toggle {
  text-decoration: none;
}

#theme-toggle,
#theme-toggle:hover,
#theme-toggle:focus {
  text-decoration: none;
}

/* =========================
   404 Page
========================= */
.link-columns {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 2rem;

  align-items: start;
}


.link-columns ul {
  font-size: 0.9rem;

  margin-bottom: 0;
}
.link-columns ul {
  line-height: 1.4;
}


.link-columns li {
  margin-bottom: 0.35rem;
}

@media (max-width: 768px) {

  .link-columns {
    grid-template-columns: 1fr;
  }

}

.link-columns article {
  max-height: 500px;
  overflow-y: auto;
}

/* =========================
   Tag Cloud
========================= */

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.tag-cloud a {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  background-color: var(--card-background-color);
  border: 1px solid var(--muted-border-color);
  font-size: 0.85rem;
}

.tag-cloud a:hover {
  background-color: var(--primary);
  color: var(--primary-inverse);
}

/* =========================
   Press and Captions
========================= */

figcaption {
  font-size: 0.85rem;
  color: #777777;

  margin-top: 0.5rem;
}

/* =========================
   Nav and Shell
========================= */

.masthead img {
  width: 100%;
  height: auto;

  display: block;
}

.site-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* =========================
   Footer
========================= */

footer {
  text-align: center;
  font-size: 0.85rem;
}

 main.container {
    max-width: 850px;
  }

.site-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  figure iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
  
    border: none;
    border-radius: 8px;
  }

/* =========================
   Gallery
========================= */
  .gallery-grid {
    display: grid;
  
    grid-template-columns:
      repeat(auto-fit, minmax(150px, 1fr));
  
    gap: 1rem;
  
    margin-top: 2rem;
  }
  
  
  .gallery-grid img {
    width: 100%;
    height: auto;
  
    border-radius: 8px;
  
    display: block;
  }