@font-face {
  font-family: 'Lato';
  src: url('./lato-v25-latin/lato-v25-latin-300.woff2') format('woff2');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('./lato-v25-latin/lato-v25-latin-regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('./lato-v25-latin/lato-v25-latin-700.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

body {
  margin: 0;
  padding: 0 16px 24px;
  box-sizing: border-box;
  font-family: 'Lato', sans-serif;
}

.home-page,
.home-page h1,
.home-page h2,
.home-page h3,
.home-page p,
.home-page a,
.detail-page,
.detail-page h1,
.detail-page h2,
.detail-page h3,
.detail-page p,
.detail-page a {
  font-family: 'Lato', sans-serif;
}

.title {
  display: flex;
  font-family: 'Lato', sans-serif;
  font-size: 100px;
  justify-content: space-evenly;
  align-items: center;
  color: #000000;
  width: 100%;
  text-align: center;
  margin: 100px 0 0;
}

h3 {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  color: #000000;
  margin: 8px 0 0;
  font-weight: 400;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0;
}

.horizontal-container {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
  box-sizing: border-box;
  padding-top: 48px;
  margin: 20px 0 0;
}

.vertical-container {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  row-gap: 24px;
}

.project-card {
  text-align: center;
  position: relative;
  width: min(100%, 350px);
}

.featured-project {
  text-align: left;
}

.project-card img {
  display: block;
  width: 100%;
  height: auto;
}

.project-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-link img {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.project-link:hover img {
  transform: translateY(-4px);
  opacity: 0.92;
}

.featured-project>h2 {
  position: absolute;
  left: 0;
  top: -48px;
  margin: 0;
}

.detail-page {
  padding: 32px 16px 48px;
}

.detail-gallery-layout {
  --detail-card-width: 350px;
  --detail-gap: 32px;
  --detail-row-width: calc((3 * var(--detail-card-width)) + (2 * var(--detail-gap)));
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding-top: 100px;
}

.detail-gallery-layout .horizontal-container {
  padding-top: 48px;
}

.detail-gallery-layout .project-card p {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 8px 0 0;
  font-weight: 300;
}

.detail-heading {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 150px;
  position: absolute;
  left: max(0px, calc((100% - var(--detail-row-width)) / 4));
  top: 0;
}

.detail-title {
  font-family: 'Lato', sans-serif;
  font-size: 25px;
  font-weight: 300;
  margin: 0;
}

.detail-description {
  font-family: 'Lato', sans-serif;
  font-size: 20px;
  margin: 2px 0 0;
  font-weight: 300;
}

.detail-content {
  width: min(100%, 900px);
  margin: 0 auto;
}

.detail-content h1 {
  font-family: 'Lato', sans-serif;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 500;
  margin: 20px 0 24px;
}

.detail-content p {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

.detail-image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 24px;
}

.back-link {
  font-family: 'Lato', sans-serif;
  color: #000000;
  text-decoration: none;
  border-bottom: 1px solid #000000;
}

@media (max-width: 768px) {
  .title {
    font-size: clamp(40px, 14vw, 72px);
  }

  .horizontal-container {
    flex-direction: column;
    gap: 56px;
    padding-top: 32px;
  }

  .detail-gallery-layout {
    width: 100%;
    padding-top: 64px;
  }

  .detail-gallery-layout .horizontal-container {
    display: flex;
    width: 100%;
    padding-top: 32px;
  }

  .vertical-container {
    margin-top: 12px;
    padding-top: 0;
  }

  .project-card {
    width: 100%;
    max-width: 420px;
  }

  .detail-heading {
    width: 100%;
    max-width: 420px;
    height: 40px;
    position: static;
    justify-content: flex-start;
    gap: 2px;
  }

  .vertical-container .horizontal-container:first-child {
    padding-top: 0;
  }
}
