/*********************************/
/*********************************/
/*********************************/
/*********************************/
/*********************************/
/*********************************/
/******************************/
/******************************/
@media screen and (min-width: 835px) {
  .modal {
    display: none;
  }
  .modal.active {
    max-height: 650px;
    max-width: 1152px;
    width: 90%;
    aspect-ratio: 1150 / 650;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    margin: auto;
    background: #fff;
    z-index: 1100;
    box-sizing: border-box;
    display: flex;
  }
  .modal.active ul li img {
    width: 100%;
    height: auto;
  }
  .modal.active .detail_wrap {
    display: flex;
    width: 100%;
  }
  .modal.active .detail_wrap .image_area {
    overflow: hidden;
    width: 68.2%;
    max-width: 780px;
    position: relative;
  }
  .modal.active .detail_wrap .image_area .swiper-button-prev {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(51, 51, 51, 0.5);
  }
  .modal.active .detail_wrap .image_area .swiper-button-prev::after {
    content: "";
    width: 9px;
    height: 9px;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
    position: relative;
    left: 1px;
  }
  .modal.active .detail_wrap .image_area .swiper-button-next {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(51, 51, 51, 0.5);
  }
  .modal.active .detail_wrap .image_area .swiper-button-next::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(-45deg);
    position: relative;
    right: 1px;
  }
  .modal.active .detail_wrap .image_area .swiper-button-disabled {
    display: none;
  }
  .modal.active .detail_wrap .detail_area {
    width: 31.8%;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    padding: 0 65px 50px 47px;
    overflow-y: auto;
  }
  .modal.active .detail_wrap .detail_area .slide_info {
    padding: 50px 0 34px;
  }
  .modal.active .detail_wrap .detail_area .slide_info ul {
    display: flex;
    flex-direction: column;
  }
  .modal.active .detail_wrap .detail_area .slide_info ul .info_title {
    padding-bottom: 22px;
    border-bottom: 1px solid #d3d3d3;
  }
  .modal.active .detail_wrap .detail_area .slide_info ul .info_title h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.25;
  }
  .modal.active .detail_wrap .detail_area .slide_info ul .info_title h2 .tag {
    display: block;
    width: fit-content;
    border: 1px solid #3da66c;
    font-weight: 500;
    padding: 5px 6px;
    color: #3da66c;
    font-size: 1.4rem;
    margin-bottom: 17px;
  }
  .modal.active .detail_wrap .detail_area .slide_info ul .info_year {
    padding: 25px 0;
    border-bottom: 1px solid #d3d3d3;
  }
  .modal.active .detail_wrap .detail_area .slide_info ul .info_year dl dt {
    font-weight: 600;
    margin-bottom: 13px;
    font-size: 1.6rem;
  }
  .modal.active .detail_wrap .detail_area .slide_info ul .info_year dl dd {
    font-size: 1.5rem;
    line-height: 1.25;
  }
  .modal.active .detail_wrap .detail_area .slide_info ul .info_type {
    padding: 25px 0 24px;
    border-bottom: 1px solid #d3d3d3;
  }
  .modal.active .detail_wrap .detail_area .slide_info ul .info_type dl dt {
    font-weight: 600;
    margin-bottom: 13px;
    font-size: 1.6rem;
  }
  .modal.active .detail_wrap .detail_area .slide_info ul .info_type dl dd {
    font-size: 1.5rem;
    line-height: 1.2;
    letter-spacing: normal;
  }
  .modal.active .detail_wrap .detail_area .thumbnail_pager {
    max-width: 250px;
    margin: 0;
  }
  .modal.active .detail_wrap .detail_area .thumbnail_pager .slider_thumbnail {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 8px;
  }
  .modal.active .detail_wrap .detail_area .thumbnail_pager .slider_thumbnail li {
    opacity: 0.5;
    display: block;
    width: calc((100% - 16px) / 3) !important;
    height: 100%;
    cursor: pointer;
  }
  .modal.active .detail_wrap .detail_area .thumbnail_pager .slider_thumbnail li:hover {
    opacity: 0.3;
  }
  .modal.active .detail_wrap .detail_area .thumbnail_pager .slider_thumbnail li.swiper-slide-thumb-active {
    opacity: 1;
  }
  .modal.active .detail_wrap .detail_area .thumbnail_pager .slider_thumbnail li.swiper-slide-thumb-active:hover {
    opacity: 0.8;
  }
  .modal.active .detail_wrap .detail_area .thumbnail_pager .slider_thumbnail li img {
    width: 100%;
    height: auto;
  }
  .modal.active .close_btn {
    position: absolute;
    right: 27px;
    top: 28px;
    display: block;
    width: 22px;
    height: 22px;
    cursor: pointer;
  }
  .modal.active .close_btn span {
    width: 22px;
    height: 1px;
    display: block;
    background: #3da66c;
    position: absolute;
  }
  .modal.active .close_btn span:nth-of-type(1) {
    transform: rotate(45deg) translateY(-50%);
    bottom: 9px;
  }
  .modal.active .close_btn span:nth-of-type(2) {
    transform: rotate(-45deg) translateY(-50%);
    bottom: 10px;
  }
}

/******************************/
/******************************/
@media screen and (max-width: 834px), screen and (max-height: 680px) {
  .modal {
    display: none;
  }
  .modal.active {
    height: 90vh;
    width: calc(100% - 20px);
    overflow-y: scroll;
    overflow-x: hidden;
    position: fixed;
    top: -15px;
    right: 0;
    left: 0;
    bottom: 0;
    margin: auto;
    background: #fff;
    z-index: 1100;
    box-sizing: border-box;
    display: flex;
  }
  .modal.active .detail_wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .modal.active .detail_wrap .image_area {
    order: 2;
    width: 100%;
    overflow: unset !important;
    max-width: none !important;
    position: relative;
    margin-bottom: 27px;
  }
  .modal.active .detail_wrap .image_area ul li img {
    display: block;
    aspect-ratio: 750 / 520;
    width: 100%;
    height: auto;
  }
  .modal.active .detail_wrap .image_area .swiper-button-prev {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(51, 51, 51, 0.5);
  }
  .modal.active .detail_wrap .image_area .swiper-button-prev::after {
    content: "";
    width: 9px;
    height: 9px;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
    position: relative;
    left: 1px;
  }
  .modal.active .detail_wrap .image_area .swiper-button-next {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(51, 51, 51, 0.5);
  }
  .modal.active .detail_wrap .image_area .swiper-button-next::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(-45deg);
    position: relative;
    right: 1px;
  }
  .modal.active .detail_wrap .image_area .swiper-button-disabled {
    display: none;
  }
  .modal.active .detail_wrap .detail_area {
    display: contents;
  }
  .modal.active .detail_wrap .detail_area .slide_info {
    order: 1;
    padding: 27px 0 37px;
  }
  .modal.active .detail_wrap .detail_area .slide_info ul {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
  }
  .modal.active .detail_wrap .detail_area .slide_info ul .info_title {
    padding-bottom: 14px;
    border-bottom: 1px solid #d3d3d3;
  }
  .modal.active .detail_wrap .detail_area .slide_info ul .info_title h2 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.5;
  }
  .modal.active .detail_wrap .detail_area .slide_info ul .info_title h2 .tag {
    display: block;
    width: fit-content;
    border: 1px solid #3da66c;
    font-weight: 500;
    padding: 7px 12px;
    color: #3da66c;
    font-size: 1.4rem;
    margin-bottom: 13px;
    line-height: normal;
    line-height: 1;
  }
  .modal.active .detail_wrap .detail_area .slide_info ul .info_year {
    padding: 17px 0 16px;
    border-bottom: 1px solid #d3d3d3;
  }
  .modal.active .detail_wrap .detail_area .slide_info ul .info_year dl {
    display: flex;
  }
  .modal.active .detail_wrap .detail_area .slide_info ul .info_year dl dt {
    font-weight: 600;
    font-size: 1.4rem;
    width: 88px;
    letter-spacing: 0.15em;
  }
  .modal.active .detail_wrap .detail_area .slide_info ul .info_year dl dd {
    font-size: 1.2rem;
  }
  .modal.active .detail_wrap .detail_area .slide_info ul .info_type {
    padding: 17px 0 16px;
    border-bottom: 1px solid #d3d3d3;
  }
  .modal.active .detail_wrap .detail_area .slide_info ul .info_type dl {
    display: flex;
  }
  .modal.active .detail_wrap .detail_area .slide_info ul .info_type dl dt {
    font-weight: 600;
    font-size: 1.4rem;
    width: 88px;
    letter-spacing: 0.15em;
  }
  .modal.active .detail_wrap .detail_area .slide_info ul .info_type dl dd {
    font-size: 1.2rem;
    line-height: 1.2;
    letter-spacing: normal;
  }
  .modal.active .detail_wrap .detail_area .thumbnail_pager {
    margin: 0;
    order: 3;
    padding-bottom: 28px;
    margin: 0 auto;
    width: 90% !important;
    max-width: none !important;
  }
  .modal.active .detail_wrap .detail_area .thumbnail_pager .slider_thumbnail {
    display: flex;
    flex-wrap: wrap;
    height: auto !important;
    width: 100%;
    gap: 9px 9px !important;
  }
  .modal.active .detail_wrap .detail_area .thumbnail_pager .slider_thumbnail li {
    width: calc((100% - 27px) / 4) !important;
    opacity: 0.5;
    display: block;
  }
  .modal.active .detail_wrap .detail_area .thumbnail_pager .slider_thumbnail li.swiper-slide-thumb-active {
    opacity: 1;
  }
  .modal.active .detail_wrap .detail_area .thumbnail_pager .slider_thumbnail li:nth-of-type(4n) {
    margin-right: 0 !important;
  }
  .modal.active .detail_wrap .detail_area .thumbnail_pager .slider_thumbnail li img {
    width: 100%;
    height: auto;
  }
  .modal.active .close_btn {
    position: absolute;
    right: 27px;
    top: 28px;
    display: block;
    width: 20px;
    height: 20px;
    cursor: pointer;
  }
  .modal.active .close_btn span {
    width: 26px;
    height: 2px;
    display: block;
    background: #3da66c;
    position: absolute;
  }
  .modal.active .close_btn span:nth-of-type(1) {
    transform: rotate(45deg) translateY(-50%);
    bottom: 10px;
    left: -1px;
  }
  .modal.active .close_btn span:nth-of-type(2) {
    transform: rotate(-45deg) translateY(-50%);
    bottom: 10px;
  }
}
