/* ------------------ */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  overflow: auto;
}

/* ------------------ */
.modal-bottom-right {
  bottom: 5px;
  right: 0px;
    top: auto;
    left: auto;
  margin: 10px;
}

.modal-content {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ff9900;
  padding: 0px;
  border: 1px solid #888;
  border-radius: 10px;
  width: 280px;
  height: 316px;
  overflow-y: auto;
}

.modal-content img {
  max-width: 100%;
  max-height: 100%;
}

.close {
  position: absolute;
  top: 0;
  right: 2px;
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}

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


/* ------------------ */
.sp-only {
  display: none;
}

/* ------------------ */
@media screen and (max-width: 767px) {
  .modal {
    bottom: 5px;
    left: 5px;
    top: auto;
    right: auto;
    transform: none;
    margin: 0;
    border-radius: 0;
  }

.sp-only {
    display: block;
  }
  picture {
    display: none;
  }

.modal-content {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ff9900;
  padding: 0px;
  border: 1px solid #888;
  width: 75%;
  max-height: 240px;
  overflow-y: auto;
}

.close {
  position: absolute;
  top: 2px;
  right: 66px;
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}

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