@media screen and (max-width: 768px) and (orientation: portrait) {
  #l-container._profile-history .js-expandmodal .c-simple-modal {
    overflow: hidden;
    padding: 16px 0;
  }

  #l-container._profile-history .js-expandmodal .c-simple-modal__container {
    width: 91.66666666666666vw;
    border-radius: 0;
  }

  #l-container._profile-history .js-expandmodal .c-simple-modal__strech {
    flex: 0 0 auto;
    width: 100%;
    height: 66.6666667vh;
    height: 66.6666667dvh;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pinch-zoom;
  }

  #l-container._profile-history .js-expandmodal .c-simple-modal__strech figure {
    width: max-content;
    height: 100%;
    margin: 0;
    text-align: left;
  }

  #l-container._profile-history .js-expandmodal .c-simple-modal__strech img {
    display: block;
    width: auto;
    max-width: none;
    height: 100%;
  }

  #l-container._profile-history .js-expandmodal .c-simple-modal__btn-close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.55);
  }

  #l-container._profile-history
    .js-expandmodal
    .c-simple-modal__container::after {
    content: "横スクロールしてご覧ください。";
    align-self: stretch;
    margin-top: 8px;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
  }

  html[lang|="en"]
    #l-container._profile-history
    .js-expandmodal
    .c-simple-modal__container::after {
    content: "Swipe horizontally to view the full image.";
  }
}
