/* Custom text styles */
.green-text {
  color: #2e7d32;
}

.post__content a {
  color: #2e7d32;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post__content a:hover,
.post__content a:focus {
  color: #1f5a25;
}

.post__content figcaption {
  text-align: center;
}

.figure--limited img {
  max-height: 350px;
  width: auto;
  margin: 0 auto;
  display: block;
}

/* Image + wrapped text block for posts */
.imgaside-wrap {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 1rem 0;
}

.imgaside-wrap--right {
  flex-direction: row-reverse;
}

.imgaside-figure {
  margin: 0;
  flex: 0 0 auto;
}

.imgaside-img {
  width: 180px;
  max-width: 40%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.imgaside-caption {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #666;
  text-align: center;
}

.imgaside-text {
  flex: 1 1 auto;
}

@media (max-width: 640px) {
  .imgaside-wrap,
  .imgaside-wrap--right {
    flex-direction: column;
  }

  .imgaside-img {
    max-width: 100%;
    width: 100%;
  }

  .imgaside-figure {
    width: 100%;
  }
}

/* Home page hero banner */
.hero {
  position: relative;
  width: 100%;
  min-height: 340px;
  background-size: cover;
  background-position: center;
}

.hero .header__container {
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero .logo {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero .logo__link {
  flex-direction: column;
  align-items: center;
}

.hero .logo__title,
.hero .logo__tagline {
  color: #fff;
}

.hero .logo__tagline {
  border-top-color: rgba(255,255,255,0.4);
}

.hero .menu__link,
.hero .menu__btn-title {
  color: #fff;
}

.hero .menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero .menu__list {
  background: rgba(0, 0, 0, 0.35);
}

/* Logo title & tagline: preserve original casing */
.logo__title,
.logo__tagline {
  text-transform: none;
  font-variant: normal;
}

/* Site-wide font size override */
:root {
  font-size: 18px; /* Change this value to scale all text site-wide */
  color: rgb(51, 51, 51);
}
