.photo_section {
  position: relative;
}

.photo_section::before {
  content: '';
  aspect-ratio: 84/272.7;
  width: calc(84 * var(--window-width));
  height: calc(272.7 * var(--window-width));
  background: url(../img/photo/sec_title_photo.svg) center center / cover no-repeat;
  position: absolute;
  top: 0;
  left: 0;
}

.photo_page {
  padding: 65px 0 150px;
  background-color: #C9C9C9;
}

.photo_page .main_head_mv {
  margin-bottom: 100px;
  background: url(../img/photo/head_mv.jpg) top center / auto 100% no-repeat;
}

.photo_page .photo_list {
  display: flex;
  flex-wrap: wrap;
  gap: min(calc(7.5 * var(--window-width)), 7.5px);
}

.photo_page .photo_list .photo_item {
  width: min(calc(335 * var(--window-width)), 335px);
  height: min(calc(335 * var(--window-width)), 335px);
  cursor: pointer;
  position: relative;
}

.photo_page .photo_list .photo_item::before {
  content: '';
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.photo_page .photo_list .photo_item:hover:before {
  opacity: 1;
}

.photo_page .photo_list .photo_item:hover::after {
  content: '';
  width: min(calc(40 * var(--window-width)), 40px);
  height: min(calc(40 * var(--window-width)), 40px);
  background: url(../img/icon_search.svg) center center / 50% no-repeat;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
}

.photo_page .btn_wrapper {
  display: flex;
  justify-content: center;
  margin-top: 65px;
}

.photo_page .btn_wrapper .primary_btn {
  background-color: #000;
  color: #fff;
  cursor: pointer;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.open {
  visibility: visible;
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal .modal_bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal .modal_content .modal_inner {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}
.modal._01 .modal_content .modal_inner {
  aspect-ratio: 9/6;
  width: min(calc(900 * var(--window-width)), 900px);
  height: auto;
}
.modal._02 .modal_content .modal_inner,
.modal._04 .modal_content .modal_inner,
.modal._07 .modal_content .modal_inner,
.modal._12 .modal_content .modal_inner {
  aspect-ratio: 12/8;
  width: min(calc(900 * var(--window-width)), 900px);
  height: auto;
}
.modal._03 .modal_content .modal_inner,
.modal._05 .modal_content .modal_inner,
.modal._08 .modal_content .modal_inner,
.modal._09 .modal_content .modal_inner,
.modal._10 .modal_content .modal_inner,
.modal._13 .modal_content .modal_inner {
  aspect-ratio: 6/9;
  width: auto;
  height: min(calc(800 * var(--window-width)), 800px);
}
.modal._06 .modal_content .modal_inner {
  aspect-ratio: 60/49;
  width: auto;
  height: min(calc(800 * var(--window-width)), 800px);
}
.modal._11 .modal_content .modal_inner {
  aspect-ratio: 6/8;
  width: auto;
  height: min(calc(800 * var(--window-width)), 800px);
}

.modal .modal_content .modal_img img {
  width: 100%;
  height: 100%;
}

.modal .modal_content .modal_foot_tab {
  width: 100%;
  height: 28px;
  background-color: #000;
  color: #fff;
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  align-items: center;
  padding-left: 10px;
}

.modal .modal_content .modal_foot_tab .modal_close {
  padding: 0 24px;
  cursor: pointer;
}

.modal .modal_content .modal_foot_tab .modal_close:hover {
  opacity: 0.7;
}


@media screen and (max-width: 800px) {
  .photo_section .inner_wrapper {
    width: calc(290 * var(--window-width));
    margin: auto;
  }
  .photo_section::before {
    width: auto;
    height: calc(129.7 * var(--window-width));
  }

  .photo_page {
    padding: 40px 0 80px;
  }

  .photo_page .main_head_mv {
    aspect-ratio: 390/220;
    margin-bottom: 50px;
    background: url(../img/photo/head_mv_sp.jpg) top center / auto 100% no-repeat;
  }

  .photo_page .photo_list {
    gap: calc(3 * var(--window-width));
  }
  
  .photo_page .photo_list .photo_item {
    width: calc(143.5 * var(--window-width));
    height: calc(143.5 * var(--window-width));
  }

  .photo_page .photo_list .photo_item:hover::after {
    width: calc(30 * var(--window-width));
    height: calc(30 * var(--window-width));
  }

  .modal._01 .modal_content .modal_inner,
  .modal._02 .modal_content .modal_inner,
  .modal._03 .modal_content .modal_inner,
  .modal._04 .modal_content .modal_inner,
  .modal._05 .modal_content .modal_inner,
  .modal._06 .modal_content .modal_inner,
  .modal._07 .modal_content .modal_inner,
  .modal._08 .modal_content .modal_inner,
  .modal._09 .modal_content .modal_inner,
  .modal._10 .modal_content .modal_inner,
  .modal._11 .modal_content .modal_inner,
  .modal._12 .modal_content .modal_inner,
  .modal._13 .modal_content .modal_inner {
    width: min(100%, 500px);
    height: auto;
  }
}