* {
    box-sizing: border-box;
    position: relative;
  }
  
  html,
  body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background:rgb(160, 160, 160);
  }
  .header {
    padding: 60px;
    text-align: center;
    background: #5e5e5e;;
    color: white;
    font-size: 30px;
  }
  
  img {
    max-width: 100%;
    height: 95%;
    transform-origin: top left;
  }
  
  .gallery {
    display: flow-root;
    overflow: hidden;
    margin-left: 1.5em;
  }

  .gallery .gallery-image {
    width: 23%;
  }
  .gallery .gallery-image[data-flipping] {
    opacity: 1;
    z-index: 3;
  }

  .gallery::before, .gallery::after {
    content: "";
    flex-basis: 100%;
    width: 0;
    order: 2;
  }
  
  .gallery-image {
    margin: 1em;
    display: inline-block;
    position: relative;
  }
  .gallery-image img {
    display: block;
    width: 100%;
  }
  .gallery-image figcaption {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    color: #fff;
    text-shadow: 0 0 1px #000;
    opacity: 0.8;
    padding: 1em;
    text-align: left;
    transition: opacity 0.4s linear;
    font-family: monospace;
  }
  .gallery-image:hover figcaption {
    opacity: 1;
  }
  
 .detail {
  z-index: 2;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(25, 25, 25, 0);
  box-shadow: 0 0 30px #000;
  display: flex;
  flex-direction: column; /* Stack children vertically */
  align-items: center; /* Center children horizontally */
  justify-content: center; /* Center children vertically */
  pointer-events: none;
  transition: background 0.3s linear;
}

.detail .gallery-image {
  padding: 5vmin;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column; /* Stack children vertically */
  align-items: center; /* Center children horizontally */
  justify-content: center; /* Center children vertically */
}

.detail .gallery-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80vh; /* Adjust as needed */
}


.detail-close {
  position: absolute;
  top: -40px; /* Position above the image */
  right: -10px; /* Position to the right of the image */
  color: white;
  font-size: 30px;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.5);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3; /* Ensure it is above other elements */
}

.detail-close:hover {
  color: #ccc;
}


#moreInfoBtn {
  margin-top: 20px; /* Space between the image and the button */
  background-color: #1d95b3;
  color: white;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  z-index: 3;
  width: 200px;
}




#moreInfoBtn {
  width: 100%; /* Make the button full width of its container */
  padding: 15px; /* Increase padding to make the button taller */
  background-color: #1d95b3;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px; /* Adjust font size as needed */
  margin-top: 10px; /* Space between the image and the button */
}

#moreInfoBtn:hover {
  background-color: #0f4b5a;
}


#moreInfoBtn:hover {
  background-color: #0f4b5a;
}

  .detail .gallery-image figcaption {
  display: none;
   /*font-size: 5em;
   max-width:600px;*/
  }
  
  [data-state=detail] .detail {
    background: rgba(25, 25, 25, 0.85);
    pointer-events: auto;
  }
  [data-state=detail] .detail .gallery-image {
    opacity: 1;
  }
  
  [data-state=gallery] .detail .gallery-image {
    opacity: 0;
    transition: none;
  }

  a {
    display:none;
  }

  [data-state=detail] a {
    display:block;
  }

  button {
    font-size: 24px;
    background-color: #d0cff7;
    color: black;
    padding-left: 10px;
    padding-right: 10px;
  }
  
  /* ---------------------------------- */
 
  
  #app {
    pointer-events: none;
  }
  #app .gallery .gallery-image {
    pointer-events: auto;
  }
  
  .gallery-image {
    transition: opacity 0.5s linear;
  }
  
  #app:hover .gallery .gallery-image {
    opacity: 0.3;
  }
  #app:hover .gallery .gallery-image[data-flipping],
  #app:hover .gallery .gallery-image:hover {
    opacity: 1;
    transition-duration: 0.3s;
  }

  @media screen and (max-width: 1800px) {
    .gallery .gallery-image {
      width: 17%;
    }

  }

  @media screen and (max-width: 1485px) {
    .gallery .gallery-image {
      width: 21%;
    }
    .detail .gallery-image figcaption {
      /* display: none;*/
      font-size: 3em;
     }
  }

  @media screen and (max-width: 1040px) {
    .gallery .gallery-image {
      width: 40%;
    }
    .gallery {
      margin-left: 4em;
    }
    #app:hover .gallery .gallery-image {
      opacity: 0.7;
    }
    .detail .gallery-image {
      display: grid;
    
    }
    
  }

  @media screen and (max-width: 697px) {
    .gallery .gallery-image {
      width: 100%;
    }
    .gallery {
      margin-right: 1em;
      margin-left: 0em;
    }

    .detail .gallery-image figcaption {
      /* display: none;*/
      font-size: 2em;
     }

 
} 

@media only screen and (max-width: 697px) {
   .header {
    hyphens: auto;
  }
    #moreInfoBtn {
  
  padding: 35px; /* Increase padding to make the button taller */
  font-size: 32px; /* Adjust font size as needed */
}
}

/*modal---------------------------------*/
.modal {
  display: none;
  position: fixed;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  width: 90%; /* Adjust width for mobile */
  max-width: 500px;
  height: auto; /* Adjust height as needed */
  max-height: 80vh; /* Use viewport height to make it responsive */
  text-align: center;
  overflow-y: auto; /* Enable vertical scrolling if content overflows */
}

#infoForm textarea {
  width: 100%;
  height: 150px; /* Increase the height of the textarea */
  padding: 10px;
  margin: 10px 0;
  box-sizing: border-box; /* Ensure padding is included in the width and height */
}


.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover {
  color: #bbb;
  cursor: pointer;
}

#infoForm input, #infoForm textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
}

#infoForm button {
  background-color: #1d95b3;
  color: white;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  width: 100%;
}

#infoForm button:hover {
  background-color: #1d95b3;
}

