img {
  max-width: 300px;
}
p {
  font-size: 1.4rem;
  text-align: justify;
}
h2 {
  font-size: 2.2rem;
}

.container-pagetwo {
  max-width: 1400px;
  display: flex;
  margin: 0 auto;
}

.page-two-leftside , .page-two-rightside {
  max-width: 680px;
  margin: 10px auto;
  padding-left: 10px;
  padding-right: 10px;
}


.leftside-units {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding-top: 100px;
}
.gallery img {
  max-width: 320px;
  border-radius: 10px;
  transition: 0.5s;
  transform: scale();
  cursor: pointer;
}
.gallery img:hover {
  transition: 0.5s;
  transform: scale(0.95);
  
}
.gallery {
  max-width: 680px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding-top: 30px;
  padding-bottom: 30px;
  flex-wrap:wrap;
}

/* 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;
}



/* MEDIA QUERIS */ 
@media only screen and (min-width: 320px) and (max-width: 500px){
  body {
    margin-left: 10px;
    margin-right: 10px;
  }
  
  .container-pagetwo {
    display: flex;
    flex-direction: column;
  }

  .page-two-leftside .leftside-units {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding-top: 30px;
  }
  .container-pagetwo h2 {
    font-size: 1.4rem;
    padding-bottom: 10px;
  }
  .container-pagetwo p {
    font-size: 1.05rem;
  }

  .container-pagetwo .page-two-rightside .gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .gallery {
    padding-right: 5px;
  }

}
