.about_01-5 {
  background: #f7f7f7;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  width: 100vw !important;
  max-width: none !important;
  /* PC 모드에서 viewport 확대 문제 방지 */
  transform: scale(1) !important;
  zoom: 1 !important;
}

.about_01-5 .w1300 {
    max-width: 1300px !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1 !important;
}

.history-wrap {
  position: relative;
}

.history-tab {
    position: relative;
    padding-top: 70px;
}
.clear {
    clear: both;
}

.history-tab::before {
    content: "";
    position: absolute;
    display: block;
    bottom: 8px;
    left: -100%;
    right: -100%;
    height: 0.5px;
    background-color: #666;
}

.clear::after {
    content: "";
    display: block;
    clear: both;
}

.history-tab li {
  position: relative;
  float: left;
  width: 14.285714%;
}
.history-tab li a {
  position: relative;
  display: block;
  padding: 28px 0;
  font-family: "Poppins", sans-serif !important;
  font-size: 20px;
  font-weight: 700;
  color: #333;
  text-align: center;
}
.history-tab li.on a {
  color: #096975;
}

.history-tab li a span {
  position: absolute;
  bottom: -5px;
  left: 50%;
  margin-left: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
}
.history-tab li.on a span {
  background: #096975;
}
.cur {
  padding: 100px 0 30px;
  font-size: 180px;
  text-align: center;
}
.b-tit {
  font-size: 25px;
  font-weight: 300;
  color: #333;
  text-align: center;
  letter-spacing: -0.5px;
}
.history-box {
  position: relative;
}

/* 카테고리 구분선 */
.history-box + .history-box {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid #e0e0e0;
}

.bg_tit {
  color: #fff;
  font-family: "Poppins", sans-serif !important;
  font-size: 150px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 0.7;
  text-align: center;
  text-shadow: 0 0 20px rgb(0, 0, 0, 5%);
  padding-top: 85px;
  padding-bottom: 50px;
  box-sizing: border-box;
}

.h-line {
  position: absolute;
  left: 11%;
  top: 26px;
  margin-left: -1px;
  width: 1px;
  background: #ddd;
  height: 100%;
}

.history-list {
  margin-top: 60px;
  box-sizing: border-box;
}
.history-list .left {
  float: left;
  text-align: right;
  position: relative;
}
.history-list .right {
  float: right;
  width: 85%;
  position: relative;
  top: 0;
  line-height: 2;
}

.history-list .left h3 {
  font-size: 40px;
  font-family: "Poppins", sans-serif !important;
  font-weight: 600;
  color: #096975;
  padding-right: 25px;
}
.history-list .right .h-circle {
  position: absolute;
  top: 5px;
  left: -64px;
  z-index: 1;
}
.history-list .right .month {
  font-size: 16px;
  color: #555;
}
.history-list .right .month strong {
  font-family: "Poppins", sans-serif !important;
  font-weight: 600;
  color: #111;
  float: left;
}
.history-list .right .month span {
  width: 90%;
  float: right;
  font-weight: 400;
  color: #333;
  letter-spacing: -0.5px;
}

.history-box .history-list span.green_text {
  color: #096975;
}

.text-underline {
  text-decoration: underline;
  text-underline-position: under;
}

.history-box .history-list span.margin_text {
  position: relative;
  left: -8px;
}

/* PC 모드 기본 스타일 */
.history-list .right .photo {
  margin-top: 30px;
  margin-bottom: 30px;
}

.history-list .right .photo img {
  height: 210px;
  margin-top: 0;
  float: left;
  margin-right: 10px;
  display: block;
}

/* PC 모드에서 여러 이미지가 있는 경우 */
.history-list .right .photo p {
  margin: 0;
  padding: 0;
}

.history-list .right .photo p img {
  float: left;
  margin-right: 10px;
  margin-bottom: 10px;
}
/* 연혁 */

/* PC 모드에서 viewport 확대 문제 방지 */
@media (min-width: 769px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .about_01-5 {
    transform: scale(1) !important;
    zoom: 1 !important;
    -webkit-transform: scale(1) !important;
    -moz-transform: scale(1) !important;
    -ms-transform: scale(1) !important;
    -o-transform: scale(1) !important;
  }
}

/* 모바일 반응형 스타일 */
@media (max-width: 768px) {
  .about_01-5 .w1300 {
    padding: 0 20px !important;
  }

  /* 탭 메뉴 - 가로 스와이프 */
  .history-tab {
    padding-top: 40px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
    display: flex;
    flex-wrap: nowrap;
  }

  .history-tab::-webkit-scrollbar {
    display: none;
  }

  .history-tab::before {
    bottom: 4px;
  }

  .history-tab li {
    float: none;
    display: inline-block;
    width: auto;
    min-width: 100px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .history-tab li a {
    padding: 20px 15px;
    font-size: 16px;
  }

  .history-tab li a span {
    bottom: -8px;
    width: 8px;
    height: 8px;
  }

  /* 큰 제목 */
  .cur {
    padding: 60px 0 20px;
    font-size: 80px;
  }

  .bg_tit {
    font-size: 70px;
    padding-top: 50px;
    padding-bottom: 30px;
  }

  .b-tit {
    font-size: 18px;
    padding: 0 10px;
  }

  /* 세로선 숨김 */
  .h-line {
    display: none;
  }

  /* 연혁 리스트 레이아웃 변경 */
  .history-list {
    margin-top: 40px;
  }
  
  /* 모바일 카테고리 구분선 */
  .history-box + .history-box {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
  }

  .history-list .left {
    float: none;
    text-align: left;
    width: 100%;
    margin-bottom: 20px;
  }

  .history-list .left h3 {
    font-size: 32px;
    padding-right: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #096975;
    display: inline-block;
  }

  .history-list .right {
    float: none;
    width: 100%;
    line-height: 1.8;
  }

  .history-list .right .h-circle {
    position: relative;
    top: auto;
    left: auto;
    display: inline-block;
    margin-bottom: 15px;
  }

  .history-list .right .month {
    font-size: 14px;
    margin-bottom: 15px;
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }

  .history-list .right .month strong {
    float: none;
    display: inline-block;
    margin-right: 0;
    min-width: 50px;
    flex-shrink: 0;
  }

  .history-list .right .month span {
    width: auto;
    float: none;
    display: inline-block;
    margin-top: 0;
    padding-left: 0;
    flex: 1;
  }

  .history-box .history-list span.margin_text {
    left: 0;
  }

  /* 이미지 가로 스크롤 컨테이너 */
  .history-list .right {
    display: none;
    position: relative;
  }
  .history-list .right .h-circle {display: none !important;}

  /* month 항목은 세로 배치 유지 */
  .history-list .right .month {
    white-space: normal;
    display: flex;
    width: 100%;
  }

  /* 모바일에서 이미지가 세로로 배치되지 않도록 강제 */
  /* .right는 항상 세로 배치 유지, 하지만 .photo는 가로 스크롤 가능 */
  .history-list .right {
    display: block !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-bottom: 0 !important;
    white-space: normal !important;
  }

  /* .right 자체는 overflow hidden, 하지만 .photo는 가로 스크롤 가능 */
  .history-list .right.has-scroll-container {
    overflow: hidden !important;
    white-space: normal !important;
  }
  
  /* has-scroll-container가 없어도 .photo는 가로 스크롤 가능 */
  .history-list .right:not(.has-scroll-container) {
    overflow: visible !important;
    white-space: normal !important;
  }

  /* 이미지 스크롤 컨테이너 - 스와이프 가능 */
  .photo-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
    padding-bottom: 10px;
    padding-left: 20px !important;
    margin-top: 20px;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
    scroll-snap-type: x mandatory;
    display: block !important;
    visibility: visible !important;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    position: relative;
    /* 가운데 정렬을 위한 스크롤 패딩 */
    scroll-padding: 0 20px;
  }

  .photo-scroll-container::-webkit-scrollbar {
    display: none;
  }

  /* 이미지들을 가로 스크롤로 배치 - 한 장씩 보이게 */
  .photo-scroll-container .photo {
    float: none !important;
    width: calc(100vw - 40px) !important;
    min-width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    height: 200px !important;
    margin-right: 15px !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    vertical-align: top !important;
    flex-shrink: 0 !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always;
    position: relative;
    box-sizing: border-box;
  }

  .photo-scroll-container .photo:first-child {
    margin-left: 0 !important;
    scroll-snap-align: start;
  }
  
  /* 컨테이너 좌측 여백 확실히 적용 */
  .photo-scroll-container {
    padding-left: 20px !important;
  }

  .photo-scroll-container .photo:last-child {
    margin-right: 20px;
    scroll-snap-align: end;
  }
  
  /* 첫 번째와 마지막을 제외한 중간 이미지들은 가운데 정렬 */
  .photo-scroll-container .photo:not(:first-child):not(:last-child) {
    scroll-snap-align: center;
  }

  .photo-scroll-container .photo img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    float: none !important;
    margin: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* month 항목은 세로 배치 유지 (가로 스크롤 안 됨) */
  .history-list .right .month {
    white-space: normal !important;
    display: flex !important;
    width: 100% !important;
    margin-bottom: 15px;
  }

  /* 기본 photo img 스타일 오버라이드 */
  .history-list .right .photo {
    float: none !important;
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
  }

  .history-list .right .photo img {
    float: none !important;
    height: 200px !important;
    width: auto !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-right: 0 !important;
    display: block !important;
  }

  /* 이미지들만 가로 스크롤되도록 - 강제 적용 */
  .history-list .right > .photo {
    display: inline-block !important;
    float: none !important;
    width: calc(100vw - 40px) !important;
    min-width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    height: 200px !important;
    margin-right: 15px !important;
    margin-bottom: 0 !important;
    margin-top: 20px !important;
    vertical-align: top !important;
    scroll-snap-align: start;
  }

  .history-list .right > .photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    float: none !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-right: 0 !important;
    display: block !important;
  }

  .history-list .right > .photo:first-of-type {
    margin-left: 20px !important;
  }

  .history-list .right > .photo:last-of-type {
    margin-right: 20px !important;
  }

  /* .right는 기본 레이아웃 유지 - 항상 세로 배치 */
  .history-list .right {
    position: relative;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    padding-bottom: 0 !important;
    display: block !important;
    white-space: normal !important;
    overflow: visible !important;
  }
  
  /* has-scroll-container가 있으면 overflow hidden */
  .history-list .right.has-scroll-container {
    overflow: hidden !important;
    white-space: normal !important;
  }

  /* month 항목은 세로 배치 유지 (가로 스크롤에서 제외) */
  .history-list .right .month {
    white-space: normal !important;
    display: block !important;
    width: calc(100vw - 40px) !important;
    min-width: calc(100vw - 40px) !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
    margin-bottom: 15px;
    flex: none !important;
  }

  /* month 내부 요소들 */
  .history-list .right .month strong,
  .history-list .right .month span {
    white-space: normal !important;
    display: inline !important;
  }

  /* 컨테이너 안의 이미지만 표시 - 최우선 규칙 */
  .photo-scroll-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 200px !important;
  }
  
  .photo-scroll-container .photo {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 200px !important;
  }
  
  .photo-scroll-container .photo img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* 컨테이너 밖의 이미지는 숨김 (JavaScript가 실행되면) */
  .history-list .right.has-scroll-container > .photo:not(.photo-scroll-container .photo) {
    display: none !important;
  }

  /* JavaScript 실행 전 fallback - 이미지만 가로 스크롤로 표시 (컨테이너 생성 전) */
  /* .right는 항상 white-space normal 유지, .photo 요소들만 가로 스크롤 */
  .history-list .right:not(.has-scroll-container) {
    white-space: normal !important;
    overflow: visible !important;
  }
  
  /* 모든 .photo 요소에 가로 스크롤 적용 (모든 카테고리, has-scroll-container 여부와 무관) */
  .history-list .right > .photo {
    display: block !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap !important;
    padding-bottom: 10px;
    padding-left: 20px !important;
    margin-left: 10px !important;
    margin-right: -20px !important;
    width: calc(100% + 40px) !important;
    scroll-snap-type: x mandatory !important;
    box-sizing: border-box !important;
    position: relative;
  }
  
  .history-list .right > .photo::-webkit-scrollbar {
    display: none !important;
  }
  
  /* .photo 안에 여러 p 태그가 있는 경우 - 각 p를 개별 슬라이드로 처리 */
  .history-list .right > .photo p {
    display: inline-block !important;
    width: calc(100vw - 40px) !important;
    min-width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    height: 200px !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-right: 15px !important;
    vertical-align: top !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
    box-sizing: border-box !important;
    float: none !important;
  }
  
  .history-list .right > .photo p:first-child {
    margin-left: 0 !important;
    scroll-snap-align: start !important;
  }
  
  .history-list .right > .photo p:last-child {
    margin-right: 20px !important;
    scroll-snap-align: end !important;
  }
  
  .history-list .right > .photo p img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    float: none !important;
  }
  
  /* .photo가 여러 개이고 각각에 하나의 img만 있는 경우 (p 태그 없이 직접 img) */
  .history-list .right > .photo > img {
    display: inline-block !important;
    width: calc(100vw - 40px) !important;
    min-width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    height: 200px !important;
    margin-right: 15px !important;
    vertical-align: top !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
    box-sizing: border-box !important;
    object-fit: cover !important;
    float: none !important;
  }
  
  .history-list .right > .photo > img:first-child {
    margin-left: 0 !important;
    scroll-snap-align: start !important;
  }
  
  .history-list .right > .photo > img:last-child {
    margin-right: 20px !important;
    scroll-snap-align: end !important;
  }
  
  /* has-scroll-container가 있으면 위의 스타일 무시하고 컨테이너 스타일 사용 */
  .history-list .right.has-scroll-container > .photo {
    display: none !important;
  }
  
  /* 강제로 float 제거 및 가로 배치 */
  .history-list .right > .photo,
  .history-list .right > .photo * {
    float: none !important;
  }
  
  /* .photo 내부 모든 요소를 인라인 블록으로 */
  .history-list .right > .photo > * {
    display: inline-block !important;
    vertical-align: top !important;
    float: none !important;
  }
  
  /* p 태그가 여러 개인 경우 강제로 가로 배치 */
  .history-list .right > .photo p {
    display: inline-block !important;
    float: none !important;
    vertical-align: top !important;
  }

  /* 컨테이너가 생성되면 컨테이너 밖의 이미지 숨김 */
  .history-list .right .photo-scroll-container ~ .photo,
  .history-list .right .photo-scroll-container + .photo {
    display: none !important;
  }
  
  /* 컨테이너 안의 이미지는 항상 표시 - 모든 규칙보다 우선 */
  .history-list .right .photo-scroll-container .photo,
  .photo-scroll-container .photo {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
  }
  
  .history-list .right .photo-scroll-container .photo img,
  .photo-scroll-container .photo img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 200px !important;
    object-fit: cover !important;
    background-color: transparent !important;
  }

  /* 컨테이너가 생성되면 .right의 가로 스크롤 제거 (JavaScript로 클래스 추가) */
  .history-list .right.has-scroll-container {
    overflow-x: visible !important;
    white-space: normal !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    padding-bottom: 0 !important;
  }
}

/* 작은 모바일 (480px 이하) */
@media (max-width: 480px) {
  .about_01-5 .w1300 {
    padding: 0 15px !important;
  }

  .history-tab {
    padding-top: 30px;
  }

  .history-tab li {
    min-width: 90px;
  }

  .history-tab li a {
    padding: 12px 12px;
    font-size: 15px;
  }

  .cur {
    padding: 50px 0 15px;
    font-size: 80px;
  }

  .bg_tit {
    font-size: 55px;
    padding-top: 40px;
    padding-bottom: 25px;
  }

  .b-tit {
    font-size: 16px;
  }

  .history-list {
    margin-top: 30px;
  }

  .history-list .left h3 {
    font-size: 28px;
    padding-bottom: 12px;
  }

  .history-list .right .month {
    font-size: 14px;
    color:#333 !important;
    margin-bottom: 6px;
  }

  .history-list .right .month strong {
    min-width: 45px;
    font-size: 14px;
  }

  .history-list .right .photo {
    margin-top: 15px;
    margin-bottom: 15px;
  }

  /* 작은 모바일 이미지 스크롤 컨테이너 */
  .photo-scroll-container {
    margin-top: 15px;
    padding-bottom: 8px;
    margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
    scroll-padding: 0 15px;
    display: block !important;
    visibility: visible !important;
  }

  .photo-scroll-container .photo {
    width: calc(100vw - 30px) !important;
    min-width: calc(100vw - 30px) !important;
    max-width: calc(100vw - 30px) !important;
    height: 170px !important;
    margin-right: 12px !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always;
    box-sizing: border-box;
  }
  
  .photo-scroll-container .photo img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .photo-scroll-container .photo:first-child {
    margin-left: 15px;
    scroll-snap-align: start;
  }

  .photo-scroll-container .photo:last-child {
    margin-right: 15px;
    scroll-snap-align: end;
  }
  
  /* 첫 번째와 마지막을 제외한 중간 이미지들은 가운데 정렬 */
  .photo-scroll-container .photo:not(:first-child):not(:last-child) {
    scroll-snap-align: center;
  }
}