@charset "UTF-8";

/*
 photogallery
************************/

.inquiry-box-gallery {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
}
.inquiry-box-gallery img {
    aspect-ratio: 4/3;
    object-fit: cover;
    cursor: pointer;
}
.wedding-gallery-box {
    padding: 180px 2% 20px;
}
.gallery-tab__link {
        background-color: #756253;
        color: #fff;
        padding: 14px 1%;
            width: 90%;
        display: block;
        text-align: center;
        margin: 5px;
    transition: color 0.3s ease-in-out;
}
.gallery-tab__link:hover {
    opacity: .8;
    color: #fff;
    transition: color 0.3s ease-in-out;
}
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(117, 98, 83, .7);
  justify-content: center;
  align-items: center;
}

.image-modal.active {
  display: flex;
}

.image-modal img.modal-img {
  max-width: 800px;
  width: 100%;
  max-height: 80%;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}

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

.modal-prev { left: 30px; }
.modal-next { right: 30px; }

.modal-prev:hover,
.modal-next:hover,
.modal-close:hover {
  color: #ccc;
}

@media (max-width:768px) {
.inquiry-box-gallery {
    grid-template-columns: 1fr 1fr;
}
    .wedding-gallery-box {
    padding: 70px 2% 20px;
}
.image-modal img.modal-img {
max-width: 90%;
}
}
