/* HEADER: #29322e  #364037 #96b298  #fafafa */

.homepage-header {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  width: 100%;
  height: 100vh;
  background-image: url('/img/bg_fallbacks/homepage-fallback.webp');
  background-size: cover;
  background-position: center;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.homepage-header h1 {
  font-size: 6.8rem;
  color: #0a0a0a;
}

.homepage-header p {
  font-size: 2.8rem;
  color: #0a0a0a;
}

/* FEATURED LIST */

.featured-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.featured-card {
  display: flex;
  flex-direction: row;
  gap: 4rem;
  max-width: 50vw;
  height: auto;
  color: #fafafa;
  background-color: #364037;
  padding: 2rem 4rem;
  margin: 0 4rem;
  margin-bottom: 2rem;
  font-size: 2rem;
  translate: 0 -75%;
  transition: 200ms;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.473);
}

.featured-card:hover {
  transform: scale(1.02);
}

.featured-post-image {
  width: 30rem;
  height: 30rem;
  background-image: url('/img/bg_fallbacks/homepage-article-fallback.webp');
  background-position: center;
  background-size: cover;
  justify-self: center;
  align-self: center;
}

.featured-post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-post-head {
  display: block;
  font-size: 1.4rem;
  color: #bbd8bd;
  margin-bottom: 4rem;
  align-self: flex-end;
}

.featured-post-date {
  display: block;
  font-size: 1.8rem;
  margin-top: auto;
  color: #bbd8bd;
  align-self: flex-end;
  justify-self: flex-end;
}

.featured-post-title {
  font-size: 3.6rem;
  margin-bottom: 1.5rem;
}

.featured-card a:link,
.featured-card a:visited {
  color: #bbd8bd;
  text-decoration: none;
  transition: all 200ms;
}
.featured-card a:hover,
.featured-card a:active {
  color: #96b298;
}

/* ARTICLES LIST */
.center-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20rem;
}

.article-list-header {
  align-self: start;
  grid-column: 1 / -1;
  font-size: 3.6rem;
}

.article-list-link {
  display: block;
  grid-column: 1 / -1;
  font-size: 2.4rem;
  margin-left: auto;
}

.article-list-link:link,
.article-list-link:visited {
  color: #29322e;
  text-decoration: none;
  transition: all 200ms;
}
.article-list-link:hover,
.article-list-link:active {
  color: #5f7760;
  text-decoration: underline solid #5f7760;
}

.article-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
  max-width: 120rem;
  justify-content: space-around;
}

.article-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 50rem;
  font-size: 1.8rem;
  gap: 1rem;
  border: 0.1rem solid #96b298;
  padding: 1rem;
  transition: 200ms;
}

.article-card:hover {
  transform: scale(1.02);
}

.article-post-image {
  width: 100%;
  height: 25rem;
  background-image: url('/img/bg_fallbacks/homepage-article-fallback.webp');
  background-position: center;
  background-size: cover;
  justify-self: center;
  align-self: center;
}

.article-post-date {
  display: block;
  font-size: 1.4rem;
  margin-top: auto;
  color: #29322e;
  align-self: flex-end;
  justify-self: flex-end;
}

.article-post-title {
  font-size: 3.6rem;
  margin-bottom: 1.5rem;
}

.article-card a:link,
.article-card a:visited {
  color: #29322e;
  text-decoration: none;
  transition: all 200ms;
}
.article-card a:hover,
.article-card a:active {
  color: #5f7760;
  text-decoration: underline solid #5f7760;
}

/* CONTENT */
.content-container {
  background-color: #364037;
  width: 100%;
}

.homepage-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 120rem;
  width: auto;
  padding: 4rem 8rem;
  font-size: 2.4rem;
  color: #fafafa;
}

/* GALLERY */
.gallery-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  max-width: 120rem;
  justify-content: space-around;
}

.gallery-card {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  min-height: 40rem;
  min-width: 40rem;
  width: auto;
  height: auto;
  font-size: 1.8rem;
  gap: 1rem;
  border: 0.1rem solid #96b298;
  padding: 0;
  transition: 200ms;
}

.gallery-card:hover {
  transform: scale(1.02);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
  gap: 2rem;
  text-wrap: wrap;
  opacity: 0;
  background-color: #0f0f0f;
  text-decoration: none;
  transition: all 200ms;
}

.gallery-card-content:hover {
  opacity: 0.75;
}

.gallery-post-date {
  display: block;
  font-size: 1.8rem;
  color: #fafafa;
}

.gallery-post-title {
  font-size: 1.8rem;
  color: #fafafa;
}
