.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
  margin-bottom: 1rem;
}
.higai-pic {
  position: relative;
  /* padding-bottom: 1rem; */
  overflow: auto;
  margin: 0.2rem auto;
  font-size: 1.1rem;
}
.higai-pic-title {
  padding: 5px;
}
.higai-pic-main {
  position: relative;
  text-align: center;
}
.higai-pic-main img {
  max-height: 295px;
  object-fit: cover;
  aspect-ratio: 320 / 213;
}
.higai-pic-credit {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 4px 12px;
  background: #ffffff;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.12em;
}
.v_title {
  text-align: center;
  margin: 0.2rem auto;
  font-size: 1.1rem;
}


.img_sort {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* padding: 0 0 30px 15px; */
  padding: 0;
  text-align: center;
  gap: 1rem;
}

.img_sort div {
    padding-bottom: 1rem;
    width: 300px;
    max-width: 90%;
}

.img_sort p.title {
  padding-bottom: 5px;
}

div.img_title {
  padding-bottom: 5px;
  text-align: center;
}

div.img_caption {
  text-align: center;
  margin-top: -5px;
  padding-bottom: 1rem;
}

.img_sort p.caption {
  padding-top: 5px;
}

.waveform_img {
  max-width: 50%;
  text-align: center;
}

.image-multi img {
  aspect-ratio: 191 / 180;
}

@media screen and (max-width: 600px) {
  /* .img_sort {
    display: block;
    margin: auto;
    width: 80%;
  }
  .img_sort div {
    padding-bottom: 1rem;
    width: 70% !important;
    max-width: 100% !important;
  } */
  .waveform_img {
  max-width: 100%;
  }
}

@media only screen and (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    /* display: grid; */
    max-width: 100%;
  }
 .pic {
/*    height: 250px; */
    height: 270px;
  }
  .pic p img {
    max-height: 200px;
  }
}

@media only screen and (max-width: 540px) {
  .gallery {
    grid-template-columns: 1fr;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
  .pic {
    height: auto;
  }
}