body.vmk-rotate-modal-open {
  overflow: hidden;
}

#vmk-lineup li > p:first-child img {
  cursor: grab;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#vmk-lineup li > p:first-child img:hover,
#vmk-lineup li > p:first-child img:focus-visible {
  opacity: 0.8;
  transform: translateY(-4px);
  outline: none;
}

.vmk-rotate-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}

.vmk-rotate-modal.is-open {
  display: flex;
}

.vmk-rotate-modal-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.78);
  cursor: pointer;
}

.vmk-rotate-modal-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(92vw, 680px);
  max-height: 92vh;
  padding: 24px;
  border-radius: 16px;
  background:url('../images/bg_04.png') top left repeat;
  background-size: auto auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.vmk-rotate-modal-dialog h2 {
  margin: 0 48px 16px;
  color: #fff;
  font-family: "League Spartan", sans-serif;
  font-size: 28px;
  line-height: 1.2;
  text-align: center;
}

.vmk-rotate-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color:#d60050;
  background: #fff;
  font-size: 34px;
  line-height: 38px;
  cursor: pointer;
}

.vmk-rotate-viewer-wrap {
  width: min(100%, 46.64vh);
  min-height: 240px;
  aspect-ratio: 510 / 853;
}

.vmk-rotate-viewer-wrap .cloudimage-360 {
  width: 100%;
  height: 100%;
}

.vmk-rotate-modal-guide {
  margin: 14px 0 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.vmk-rotate-guide-sp {
  display: none;
}

.vmk-rotate-viewer-error {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #d60050;
  font-size: 16px;
  text-align: center;
}

@media screen and (max-width: 767px) {
  .vmk-rotate-guide-pc {
    display: none;
  }

  .vmk-rotate-guide-sp {
    display: inline;
  }

  .vmk-rotate-modal {
    padding: 3vh 4vw;
  }

  .vmk-rotate-modal-dialog {
    padding: 18px 14px;
    border-radius: 12px;
  }

  .vmk-rotate-modal-dialog h2 {
    margin-bottom: 10px;
    font-size: 5vw;
  }

  .vmk-rotate-modal-close {
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
    font-size: 30px;
    line-height: 34px;
  }

  .vmk-rotate-viewer-wrap {
    width: min(100%, 43vh);
  }
}
