/* img#myImage {
  border-radius: 10px;
} */

#imgBox {
  position: relative;
  z-index: 100;
  width: 80%;
  height: 80%;
  display: none;
  align-items: center;
  user-select: none;
  border: 1px solid green;
}

#imgBox:hover .prev,
#imgBox:hover .next,
#imgBox:hover + #overlayText,
#myVideo:hover #overlayText {
  opacity: 0.5;
}

#imgBox img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  margin: 0 auto;
  opacity: 0;
  cursor: pointer;
  border-radius: 15px;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.6);
  transition: opacity 1s ease-in-out;
  -webkit-transition: opacity 1s ease-in-out;
  -moz-transition: opacity 1s ease-in-out;
  -o-transition: opacity 1s ease-in-out;

  /* -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; */
  /* filter: alpha(opacity=0); */
}

#imgBox img.opaque {
  opacity: 1;
  /* -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; */
  /* filter: alpha(opacity=1); */
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  z-index: 100;
  top: 40%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 10rem;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  opacity: 0;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  /* background-color: rgba(0, 0, 0, 0.8); */
  color: yellow;
  opacity: 0.7;
  text-shadow: 1px 1px 5px black, 0 0 40px blue, 0 0 20px darkblue;
}

/*
 imgBox를 모바일에서는 가득채우도록 하기 위해
 position을 모바일이 아닌경우에만 적용
 position을 지정하면 초기화가 안된다.

 모바일이 아닌경우는 이미지가 화면에 가득 차는 것을 방지하기 위해

*/
/* @media (min-width: 768px) {
  #imgBox {
    position: relative;
  }
} */
