.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  padding-top: 100px;
  left: 10%;
  top: 0;
  width: 80%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.8);
}

/* モーダルコンテンツ（画像） */
.modal-content {
  margin: auto;
  display: block;
  width: 60%;
  max-width: 700px;
}

/* キャプション（テキスト） */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* 閉じるボタン */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 50px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 拡大画像のアニメーション */
.modal-content {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform: scale(0)}
  to {transform: scale(1)}
}

/* 画像コンテナ */
.img-container {
  position: relative;
  display: inline-block;
}

/* 画像にマウスオーバーしたときの効果 */
.myImg:hover {
  opacity: 0.7;
  transition: opacity 0.3s;
}

/* 虫眼鏡マーク */
.magnifier {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.img-container:hover .magnifier {
  opacity: 1;
}