.container-about-us {
  display: flex;
  flex-direction: row;
  max-width: 1400px;
  margin: 10px auto;
  gap: 40px;
}

.container-about-us div:last-child {
  padding-bottom: 30px;
  padding-top: 15px;
}

.about-us-text {
  max-width: 500px;
  width: 100%;
}
.about-us-text p {
  font-size: 1.4rem;
  text-align: justify;
}
.about-us-text h2 {
  font-size: 2.2rem;
  padding-bottom: 10px;
}


.gallery {
  --s: 250px; /* control the size */
  --g: 20px;  /* control the gap */
  --f: 1.5;   /* control the scale factor */
  
  display: grid;
  gap: var(--g);
  width: calc(4*var(--s) + 2*var(--g));
  aspect-ratio: 1;
  grid-template-columns: repeat(3,auto);
  margin: auto;
  padding-top: 24px;
}

.gallery > img {
  width: 0;
  height: 0;
  min-height: 100%;
  min-width: 100%;
  object-fit: cover;
  cursor: pointer;
  filter: grayscale(80%);
  transition: .35s linear;
  border-radius: 5px;
}

.gallery img:hover{
  filter: grayscale(0);
  width:  calc(var(--s)*var(--f));
  height: calc(var(--s)*var(--f));
}

/* Popup Overlay */
.popup-overlay {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.popup-overlay.active {
  display: flex;
}

.popup-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 0 10px #000;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.icon {
  display: none;
}







@media only screen and (min-width: 320px) and (max-width: 500px){
  body {
    margin-left: 10px;
    margin-right: 10px;
  }
  
    .icon {
    display: block;
    font-size: 28px;
    cursor: pointer;
    padding: 10px;
  }
  
  .container-about-us {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .about-us-text h2 {
    font-size: 1.4rem;
  }
  .about-us-text p {
    font-size: 1.05rem;
    padding-bottom: 20px;
  }

  .home-btn, .identification-data .reference-list {
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
  }
  
  i {
    margin-right: 8px;
    margin-left: 0 auto;
  }

  .home-btn {
  display: flex;
  flex-direction: column;
  max-width: 200px;
  gap: 12px;
  margin: 0 auto;
  justify-content: space-between;
}

  .gallery {
    all: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 25px
  }

  .gallery > img {
    all: unset;
    width: 320px;
    height: auto;
    display: block;
    border-radius: 5px;
  }
}
