/* http/static/css/pages/portfolio.css */
main {
  padding: 6rem 1rem 6rem 1rem;
  font-size: 1.3rem;
}
main section .image {
  width: 100%;
  min-width: 300px;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  box-shadow: 5px 5px 0 #f3c07f;
}
main section .image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
main h2 {
  margin-top: 4rem;
  margin-bottom: 2rem;
}
main h3,
main .foundation {
  font-size: 1.6rem;
  font-weight: 500;
  margin: 0;
}
main section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  width: 100%;
  margin-top: 0.5rem;
}
@media screen and (min-width: 40rem) {
  main section {
    flex-direction: row;
  }
  main section .image {
    max-width: 400px;
  }
}
main section .description {
  display: flex;
  flex-direction: column;
}
main section .description p {
  margin: 0;
  padding-top: 1rem;
  font-size: 1.3rem;
}
main .line {
  min-height: 3rem;
  border-left: 1px solid #e2d5c7;
  padding-left: 1.5rem;
  flex-grow: 1;
}
main .foundation {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
main .numbers {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  color: #0d640d;
}
main .counter {
  width: fit-content;
  font-size: 0.9rem;
  max-width: 100px;
  text-align: center;
}
main .counter .number {
  font-weight: 500;
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 0.3rem;
}
main .other-projects ul {
  padding-left: 1rem;
  font-size: 1.3rem;
  list-style-type: square;
}
main .other-projects .images {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
@media screen and (min-width: 730px) {
  main .other-projects .images {
    width: 280px;
  }
}
main .other-projects .images .image {
  height: 220px;
  margin-bottom: 1rem;
  box-shadow: none;
}
main .photo-grid {
  margin-top: 2rem;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  grid-gap: 0.5rem;
}
@media screen and (min-width: 40rem) {
  main .photo-grid {
    grid-gap: 1rem;
  }
}
main .photo-grid .image {
  aspect-ratio: 1;
  position: relative;
  background-color: dimgray;
  cursor: pointer;
}
main .photo-grid .image img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  transition: opacity 0.05s ease-in-out;
}
main .photo-grid .image:hover img {
  opacity: 0.8;
}
