@charset "utf-8";

/* auto_scrolling - 자동 스크롤 이미지 갤러리 (3열 무한스크롤) */

.auto_scrolling {
  position: relative;
  width: 100%;
  float: left;
}

/* admin_div 오버라이드 */
.auto_scrolling.admin_div,
.auto_scrolling.admin_div:hover {
  overflow: visible !important;
  position: relative !important;
  border: none !important;
  outline: none !important;
}

/* === 전체 래퍼 === */
.auto_scrolling .asc_wrap {
  position: relative;
  overflow: hidden;
  background: var(--asc-bg, #efefef);
  padding-top: var(--asc-pt, 26.4rem);
  padding-bottom: var(--asc-pb, 26.4rem);
}

.auto_scrolling .contents-container {
  position: relative;
  z-index: 1;
}

.auto_scrolling .asc_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8rem;
  width: 100%;
}

/* === 타이틀 영역 === */
.auto_scrolling .asc_title_area {
  max-width: 62rem;
  width: 40vw;
  position: relative;
  z-index: 1;
  float: left;
}

.auto_scrolling .asc_title {
  font-size: clamp(3rem, calc(1.56vw + 25px), 5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #111;
}

.auto_scrolling .asc_sub {
  margin-top: 2rem;
  font-size: clamp(1.4rem, calc(0.16vw + 13.5px), 1.8rem);
  line-height: 1.7;
  color: #555;
  font-weight: 400;
}

.auto_scrolling .asc_desc {
  margin-top: 1.6rem;
  font-size: clamp(1.3rem, calc(0.16vw + 12.5px), 1.6rem);
  line-height: 1.7;
  color: #666;
  font-weight: 400;
}

.auto_scrolling .asc_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4rem;
  padding: 1.4rem 3.2rem;
  background: #111;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 500;
  border-radius: 0.6rem;
  text-decoration: none;
  transition: background 0.3s;
}

.auto_scrolling .asc_btn:hover {
  background: #333;
}

/* MORE 버튼 시스템 오버라이드 */
.auto_scrolling .asc_title_area .hymore_wrap {
  position: static;
  margin-top: 4rem;
}

.auto_scrolling .asc_title_area .hymore_wrap .hymore {
  display: inline-flex;
}

/* === PC 이미지 영역 (absolute) === */
.auto_scrolling .asc_banner.asc_pc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
}

/* === 모바일 이미지 영역 === */
.auto_scrolling .asc_banner.asc_mo {
  display: none;
}

/* === 이미지 리스트 (세로 무한 스크롤) === */
.auto_scrolling .asc_img_list {
  height: max-content;
  display: flex;
  flex-direction: column;
  animation: asc_loop calc(var(--asc-speed, 20) * 1s) linear infinite;
}

.auto_scrolling .asc_img_list.asc_reverse {
  animation-name: asc_loop_reverse;
  animation-duration: calc(var(--asc-speed, 20) * 1.25 * 1s);
}

/* === 이미지 박스 === */
.auto_scrolling .asc_img_box {
  height: var(--asc-img-h, 43rem);
}

.auto_scrolling .asc_img_box:not(:first-child) {
  margin-top: 2rem;
}

.auto_scrolling .asc_img_box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.8rem;
}

.auto_scrolling .asc_img_box video,
.auto_scrolling .asc_img_box iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.8rem;
  border: 0;
}

/* === 이미지 오버레이 텍스트 === */
.auto_scrolling .asc_img_box {
  position: relative;
  overflow: hidden;
}

.auto_scrolling .asc_img_overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  border-radius: 0 0 0.8rem 0.8rem;
}

.auto_scrolling .asc_img_txt {
  color: #fff;
  font-size: clamp(1.3rem, calc(0.16vw + 12.5px), 1.6rem);
  font-weight: 500;
  line-height: 1.5;
  pointer-events: auto;
  position: relative;
  z-index: 5;
}

/* === 키프레임 (세로) === */
@keyframes asc_loop {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, calc(-50% - 1rem), 0); }
}

@keyframes asc_loop_reverse {
  0% { transform: translate3d(0, calc(-50% - 1rem), 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* === 키프레임 (가로 - 모바일) === */
@keyframes asc_loop_mo {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(calc(-50% - 0.6rem), 0, 0); }
}

@keyframes asc_loop_mo_reverse {
  0% { transform: translate3d(calc(-50% - 0.6rem), 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* ========== 반응형 1400px ========== */
@media (max-width: 1400px) {
  .auto_scrolling .asc_img_box {
    height: auto;
  }
}

/* ========== 반응형 992px ========== */
@media (max-width: 992px) {
  .auto_scrolling .asc_wrap {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    height: auto;
  }

  .auto_scrolling .asc_banner.asc_pc {
    display: none;
  }

  .auto_scrolling .asc_banner.asc_mo {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100vw;
    height: auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
  }

  .auto_scrolling .asc_inner {
    flex-direction: column;
    gap: 5rem;
  }

  .auto_scrolling .asc_title_area {
    width: 100%;
    max-width: 100%;
  }

  .auto_scrolling .asc_sub {
    margin-top: 1.4rem;
    color: #111;
    font-weight: 500;
  }

  .auto_scrolling .asc_btn,
  .auto_scrolling .asc_title_area .hymore_wrap {
    margin-top: 2.5rem;
  }

  /* 모바일: 가로 스크롤 (3줄 각각) */
  .auto_scrolling .asc_mo .asc_img_list {
    height: auto;
    flex-direction: row;
    flex-shrink: 0;
    gap: 1.2rem;
    animation: asc_loop_mo calc(var(--asc-speed, 20) * 1.5 * 1s) linear infinite;
  }

  .auto_scrolling .asc_mo .asc_img_list.asc_reverse {
    animation-name: asc_loop_mo_reverse;
    animation-duration: calc(var(--asc-speed, 20) * 2 * 1s);
  }

  .auto_scrolling .asc_mo .asc_img_box {
    width: 100%;
    max-width: 20rem;
    max-height: 26rem;
    height: auto;
    flex-shrink: 0;
  }

  .auto_scrolling .asc_mo .asc_img_box:not(:first-child) {
    margin-top: 0;
  }
}
