.imgfotoU {
  cursor: pointer;
}

.imgfotoU img {
  width: 20%;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
}

.imgfoto img {
  width: 10%;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
}

.imgfoto2 img {
  width: 30%;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
}

/* Modal/Lightbox */
.modals {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modals.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modals-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.5);
  }
  to {
    transform: scale(1);
  }
}

.modals-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 50px;
  color: white;
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.2s ease;
  font-weight: 300;
  line-height: 1;
}

.close-btn:hover {
  transform: scale(1.2);
  color: #ff4444;
}

@media screen and (max-width: 720px) {
  .imgfotoU img {
    width: 50%;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
  }

  .modals-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
  }

  .imgfoto img {
    width: 40%;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
  }

  .imgfoto2 img {
    width: 40%;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
  }
}
