@charset "UTF-8";

#contents {
  background-color: #fff;
  max-width: 90%;
  margin: 0 auto;
}

/* section_header */
.section_header {
  display: flex;
  flex-direction: column;
  color: #000;
  text-align: left;

  .section_header_title_bg {
    line-height: 1.1;
    font-size: 120px;
    color: #fafafa;
  }

  .section_header_title {
    line-height: 1;
    font-size: 36px;
    font-weight: bold;
  }

  .section_header_desc {
    padding: 30px 0 25px;
    font-size: 16px;
    font-weight: bold;
  }

  .select_tag {
    ul {
      list-style: none;
      padding: 0;
      display: flex;
      flex-wrap: wrap;
      gap: 24px 8px;

      li {
        a {
          display: block;
          padding: 11px 35px 9px;
          line-height: 1.1;
          text-align: center;
          font-weight: bold;
          font-size: 16px;
          color: #000;
          white-space: nowrap;
          border-radius: 50px;
          border: 1px solid #000;
          cursor: pointer;
        }
      }
    }
  }
}

/* gallery_list */
.gallery_list {
  margin-top: 45px;

  .gallery_list_inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
    width: 100%;
    justify-content: center;
    gap: 24px 20px;
    margin: 60px auto 100px;

    .gallery_list_item {
      position: relative;
      display: flex;
      flex-direction: column;
      box-sizing: border-box;
      cursor: pointer;
      color: #000;
      width: 100%;
      max-width: 100%;
      min-width: 200px;
      aspect-ratio: 1 / 1;

      img {
        width: 100%;
        height: 100%;
        border-radius: 10px;
        object-fit: cover;
        vertical-align: bottom;
      }


	.cms_topic_tag {
        position: absolute;
        bottom: 10px;
        right: 10px;
        min-width: 82px;
        padding: 6px 20px 4px;
        line-height: 1;
        font-size: 12px;
        font-weight: bold;
        text-align: center;
        background-color: #fff;
        border-radius: 5px;
      }
    }
  }
}

/* modal */
#gallery_modal {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  z-index: 10;

  .modal_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
  }

  .modal_content {
    position: relative;
    z-index: 10;
    width: 1300px;
    max-width: 90%;
    max-height: 90%;
  }

  .modal_close {
    position: absolute;
    top: 0;
    right: 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 40px;
    color: #fff;
    z-index: 2;
  }

  .swiper-wrapper {
    align-items: center;
  }

  .gallery_slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;

    .swiper-slide {
      text-align: center;
    }

    img {
      width: 100%;
      height: auto;
      display: block;
    }

    .modal_image_wrap {
      img {
        max-height: 80vh;
        object-fit: contain;
        padding: 50px 50px 0;
      }

      .modal_image_desc {
        color: #fff;
        font-size: 16px;
        margin-top: 15px;
      }
    }
  }

  .swiper-button-prev,
  .swiper-button-next {
    color: #fff !important;
    font-size: 24px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
  }
}

@media screen and (min-width: 1440px) {
  /* gallery_list */
  .gallery_list_inner {
    grid-template-columns: repeat(5, 1fr) !important;
  }
}

@media screen and (max-width: 768px) {
  /* gallery_list */
  .gallery_list_inner {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;

    .gallery_list_item {
      min-width: 50% !important;
    }
  }

  /* modal */
  #gallery_modal {
    .modal_close {
      top: -60px;
      right: 0;
    }

    .gallery_slider {
      .modal_image_wrap {
        img {
          padding: 0;
        }

        .modal_image_desc {
          font-size: clamp(14px, 4.2vw, 16px);
        }
      }
    }
  }

  /* section_header */
  .section_header {
    margin-bottom: 20px;
    gap: 0;

    .section_header_title_bg {
      font-size: clamp(50px, 18vw, 70px);
    }

    .section_header_title {
      font-size: clamp(28px, 7.3vw, 42px);
    }

    .section_header_desc {
      padding: 20px 0;
      font-size: clamp(12px, 3vw, 14px);
    }

    .select_tag {
      ul {
        gap: 10px 7px;

        li {
          a {
            padding: 7px 15px 5px;
            font-size: clamp(9px, 3vw, 12px);
          }
        }
      }
    }
  }
}
