@charset "utf-8";

/* 템플릿 */
.template_showcase {
  padding: 120px 0;
  background: #fff;
  overflow: hidden;
  border-bottom: 1px solid #ddd;
}

.template_showcase_inner {
  width: calc(100% - 40px);
  max-width: 80%;
  margin: 0 auto;
}

.template_showcase_title {
  margin-bottom: 40px;
  text-align: center;
}

.template_showcase_title p {
  margin: 0 0 10px;
  color: #a98c48;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
}

.template_showcase_title h2 {
  margin: 0;
  color: #111;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.35;
}

.template_showcase_swiper {
  position: relative;
  width: 100%;
  padding: 0 65px 62px;
  box-sizing: border-box;
}

.template_showcase_slide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  min-height: 430px;
  box-sizing: border-box;
}

.template_showcase_media {
  width: 44%;
  max-width: 700px;
  overflow: hidden;
  border-radius: 10px;
  background: #e9edf3;
}

.template_showcase_media img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.18;
  object-fit: cover;
}

.template_showcase_content {
  width: 38%;
  max-width: 430px;
}

.template_showcase_category {
  display: inline-flex;
  align-items: center;
  height: 34px;
  margin-bottom: 18px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef1f5;
  font-size: 1rem;
  font-weight: 700;
  color: #8b96a6;
}

.template_showcase_name {
  display: block;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.04em;
  color: #111;
  word-break: keep-all;
}

.template_showcase_text {
  margin-top: 22px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: -.03em;
  color: #111;
  word-break: keep-all;
}

.template_showcase_btn_group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
}

.template_showcase_preview_btn,
.template_showcase_inquiry_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.03em;
  text-decoration: none;
  box-sizing: border-box;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.template_showcase_preview_btn {
  border: 1px solid #e6eaf0;
  background: #fff;
  color: #8b96a6;
  cursor: pointer;
}

.template_showcase_preview_btn:hover {
  border-color: #cfd6df;
  background: #f4f6f9;
  color: #111;
}

.template_showcase_inquiry_btn {
  border: 1px solid #e4e8ee;
  background: #e4e8ee;
  color: #8b96a6;
}

.template_showcase_inquiry_btn:hover {
  border-color: #a98c48;
  background: #a98c48;
  color: #fff;
}

.template_showcase_nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-top: -44px;
  border: 0;
  border-radius: 50%;
  background: #edf1f6;
  color: #a2adba;
  font-size: 13px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, opacity .25s ease;
}

.template_showcase_prev {
  left: 34px;
}

.template_showcase_next {
  right: 34px;
}

.template_showcase_nav:hover {
  background: #d9dfe8;
  color: #66717f;
}

.template_showcase_nav.is_disabled {
  opacity: .45;
  cursor: default;
  pointer-events: none;
}

.template_showcase_pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.template_showcase_bullet {
  display: block;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #e4e8ee;
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.template_showcase_bullet.is_active {
  width: 32px;
  background: #a98c48;
}

/* 템플릿 모달 */
.template_modal_open {
  overflow: hidden;
}

.template_modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.template_modal.is_open {
  opacity: 1;
  visibility: visible;
}

.template_modal_dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
}

.template_modal_dialog {
  position: relative;
  width: calc(100% - 40px);
  max-width: 920px;
  max-height: calc(100vh - 60px);
  margin: 30px auto 0;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
}

.template_modal_close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .08);
  cursor: pointer;
}

.template_modal_close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background: #111;
}

.template_modal_close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.template_modal_close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.template_modal_head {
  padding: 28px 72px 20px 28px;
  border-bottom: 1px solid #eef3f8;
}

.template_modal_title {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.03em;
  color: #111;
}

.template_modal_body {
  max-height: calc(100vh - 250px);
  overflow-y: auto;
  background: #f8fbff;
}

.template_modal_preview {
  position: relative;
  min-height: 240px;
  background: #f8fbff;
}

.template_modal_preview img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity .35s ease;
}

.template_modal_preview.is_loaded img {
  opacity: 1;
}

.template_modal_loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(248, 251, 255, .92);
  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease, visibility .35s ease;
  pointer-events: none;
}

.template_modal_preview.is_loaded .template_modal_loading {
  opacity: 0;
  visibility: hidden;
}

.template_modal_loading_text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(17, 17, 17, .84);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .12);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.template_modal_loading_text::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .32);
  border-top-color: #fff;
  border-radius: 50%;
  animation: template_modal_spin .8s linear infinite;
}

@keyframes template_modal_spin {
  to {
    transform: rotate(360deg);
  }
}

.template_modal_foot {
  padding: 20px 28px 28px;
  background: #fff;
  border-top: 1px solid #eef3f8;
}

.template_modal_link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 58px;
  border-radius: 16px;
  background: #111;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

/* Tablet */
@media (max-width: 1199px) {
  .template_showcase {
    padding: 100px 0;
  }

  .template_showcase_swiper {
    padding: 0 60px 58px;
  }

  .template_showcase_slide {
    gap: 40px;
  }

  .template_showcase_media {
    width: 46%;
  }

  .template_showcase_content {
    width: 42%;
  }

  .template_showcase_name {
    font-size: 28px;
  }

  .template_showcase_prev {
    left: 24px;
  }

  .template_showcase_next {
    right: 24px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .template_showcase {
    padding: 70px 0;
  }

  .template_showcase_swiper {
    padding: 0 20px 56px;
  }

  .template_showcase_slide {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    min-height: auto;
  }

  .template_showcase_media,
  .template_showcase_content {
    width: 100%;
    max-width: none;
  }

  .template_showcase_content {
    border-top: 1px solid #d4dde6;
    padding: 30px 0;
    margin-top: 10px;
  }

  .template_showcase_media img {
    aspect-ratio: 1 / 1;
  }

  .template_showcase_category {
    margin-bottom: 14px;
  }

  .template_showcase_name {
    font-size: 26px;
  }

  .template_showcase_text {
    margin-top: 16px;
    font-size: 15px;
  }

  .template_showcase_btn_group {
    margin-top: 24px;
  }

  .template_showcase_preview_btn {
    flex: 1;
    min-width: 0;
    background-color: #fff;
    color: #111;
    border-color: #cfd6df;
  }

  .template_showcase_inquiry_btn {
    flex: 1;
    min-width: 0;
    background-color: #a98c48;
    color: #fff;
    border-color: #a98c48;
  }

  .template_showcase_nav {
    top: auto;
    bottom: 18px;
    margin-top: 0;
  }

  .template_showcase_prev {
    left: 20px;
  }

  .template_showcase_next {
    right: 20px;
  }

  .template_showcase_pagination {
    bottom: 25px;
    gap: 10px;
  }

  .template_showcase_bullet {
    width: 8px;
    height: 8px;
  }

  .template_showcase_bullet.is_active {
    width: 26px;
  }

  .template_modal_dialog {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    margin-top: 10px;
    border-radius: 20px;
  }

  .template_modal_close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .template_modal_head {
    padding: 20px 52px 16px 18px;
  }

  .template_modal_title {
    font-size: 20px;
  }

  .template_modal_body {
    max-height: calc(100vh - 170px);
  }

  .template_modal_foot {
    padding: 16px 18px 18px;
  }

  .template_modal_link {
    height: 50px;
    font-size: 15px;
    border-radius: 14px;
  }
}