body {
 background-color: #FFFFFF;
 background-size: 1000px;
  margin: 0;
  padding-top: 0;
}


.HEAD {
  padding:0;
  margin-left: 0;
  margin-right: 0;
  width: 1%;
  }

.linktext img{
    display: block;
    width: 50%;
    height: 50%;
    padding-top: 300px;
    margin: auto
  }
  
.text-block {
  position: absolute;
  left: 20px;              
  top: 30%;               
  max-width: 400px;
}

.text-block p {
  text-align: left;
  margin: 10px;
  font-size: 22px;
}


  
.credits img{
  display: block;
  width: 7%;
  height: 7%;
  padding-top: 75px;
  margin: auto
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 per row */
  gap: 20px;
  padding: 20px;
}


.container img {
  position: absolute;
  width: 18%;
  cursor: pointer;

}
.containter {
  position: relative;
  }


.img1 {
  position: absolute;
  top: 7%;
  left: 50%;
  width: 18%;
}

.img2 {
  position: absolute;
  top: 12%;
  left: 72%;
  width: 18%;
}

.img3 {
  position: absolute;
  top: 40%;
  left: 47%;
  width: 18%;
}

.img4 {
  position: absolute;
  top: 42%;
  left: 74%;
  width: 18%;
}

.img5 {
  position: absolute;
  top: 70%;
  left: 39%;
  width: 18%;
}

.img6 {
  position: absolute;
  top: 72%;
  left: 70%;
  width: 18%;
}



.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);

  
}

.modal.show {
  display: block;
  opacity: 1;
}


.modal-content {
  display: flex;
  flex-direction: row;            
  align-items: center;
  justify-content: flex-start;      
  gap: 60px;

  width: 80%;
  height: 100%;
  margin: auto;

  padding-left: 10%;              
}



.modal-content img {
  max-width: 40%;
  max-height: 70%;
  object-fit: contain;

}

.modal.show .modal-content img {
  transform: translateX(0);
  opacity: 1;
}




#modal-text {
  color: white;
  max-width: 400px;
  font-size: 18px;
  line-height: 1.6;

  background: rgba(255, 255, 255, 0.08);
  padding: 24px;


}

.modal.show #modal-text {
  transform: translateX(0);
  opacity: 1;
}


#close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#close:hover {
  transform: scale(1.2);
}


@media (max-width: 768px) {
  .modal-content {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 0;
    text-align: center;
    gap: 30px;
  }

  .modal-content img {
    max-width: 80%;
    max-height: 50%;
  }

  #modal-text {
    max-width: 80%;
    font-size: 16px;
  }
  
  
  
}