@charset "UTF-8";
/* CSS Document */




.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-item {
  width: 180px;
  height: 120px;
  object-fit: cover;
  cursor: pointer;
/*  border: 2px solid #ddd;*/
  border-radius: 2px;
  transition: transform 0.2s;
}

.gallery-item:hover {
  transform: scale(1.05);
}

/* モーダル */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.modal-content {
  max-width: 90%;
  max-height: 80%;
  margin: auto;
  display: block;
  border-radius: 2px;
  transition: transform 0.3s;
}

#caption {
  text-align: center;
  color: #fff;
  margin-top: 10px;
}

#close {
  position: absolute;
  top: 50px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
    z-index: 1000 !important;
}

#prev, #next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  user-select: none;
  transform: translateY(-50%);
}

#prev {
  left: 20px;
}

#next {
  right: 20px;
}

#prev:hover, #next:hover {
  color: #f1f1f1;
}


#caption {
  display: none;
}




.photo {
text-align: center;
margin: 0;
padding: 0;
}

.photo ul {
text-align: center !important;
}

.photo li {
list-style: none;
display: inline-block;
}

.photo li img {
margin: 5px;
}


@media screen and (max-width: 767px){
.gallery-item {
  width: 90% !important;
  height: auto;
}

.photo  {
text-align: center;
}

.photo li {
width: 49% !important;

}


}