.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}
.modal-content {
  position: relative;
  width: auto;
  height: 90%;
  max-width: 90%;
  max-height: 90%;
  border-radius: 5px;
  overflow: hidden;
  animation: zoomIn 0.3s;
}
@keyframes zoomIn {
  from {transform: scale(0.6);}
  to {transform: scale(1);}
}
.modal.show {
  display: flex;
  opacity: 1;
}
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #ffffff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s;
}
.galleryheader {
  display: flex;
  width: 100%;
  justify-content: center;
  height: auto;
}
#title {
  text-align: left;
  padding: 15px;
  width: 85%;
  flex-grow: 1;
}
.pagination {
  display: flex;
  padding:15px;
  text-align: center;
  justify-content: right;
  flex-grow: 1;
}
.prev, .next {
  font-family: "Comic Sans MS", cursive;
  background-color: #BDF5FF;
  border-radius: 12px;
  border: 5px solid #003D47;
  font-size: 30px;
  padding: 5px 20px 5px 20px;
  color: #561B7A;
  transition-duration: 0.4s;
}
.prev:hover, .next:hover {
  background-color: #FFCC8A;
  box-shadow: 0px 8px 8px 8px rgba(0,0,0,0.6);
}
.prev.disabled, .next.disabled {
  background-color: #CCDCE0;
  border: 5px solid #1F3033;
  color: #4B315C;
  pointer-events: none;
}
.gallery {
  display: flex;
  flex-wrap: wrap;
  margin-left: 10%;
  margin-right: 10%;
  justify-content: center;
  align-items: stretch;
  color: #561B7A;
  background-color: #B38AFF;
  border-radius: 25px;
  border: 5px solid #120075;
  padding: 5px;
}
.gallery-item {
  height: 300px; 
  border-radius: 15px;
  border: 5px solid #120075;
}
.gallery-item:hover {
  box-shadow: 0px 8px 8px 8px rgba(0,0,0,0.6)
}
.gallery-item.hide{
  display: none;
}
.gallery-item.show{
  display: flex;
  animation: show .3s ease;
}
@keyframes show{
  0%{
    opacity:0;
  }
  100%{
    opacity:1;
  }
}
@media screen and (max-width: 1800px) {
  .prev, .prev.disabled, .next, .next.disabled {
    border-radius: 10px;
    border: 5px solid #003D47;
    font-size: 20px;
    padding: 3px 6px 3px 6px;
  }
}
@media screen and (max-width: 900px) {
  .prev, .prev.disabled, .next, .next.disabled {
    width: 50%;
    border-radius: 8px;
    border: 2px solid #003D47;
    font-size: 15px;
    padding: 0px 0px 0px 0px;
  }
  #title {
    width: 50%;
  }
  .gallery {
    margin-left: 3%;
    margin-right: 3%;
  }
}
