html, body {width:100%;height: auto;}
body {overflow-y:auto; background:#EFEFEF}
#main_body { width:100%;height: auto; margin:0 auto;}
#mask {display:none;background-color:#000;}
a {text-decoration: none!important;}
a,
a:hover,
a:focus{ text-decoration: none; }
#webzine_wrap a {text-decoration: none!important;}
#webzine_wrap a,
a:hover,
a:focus{ text-decoration: none;}

/* Header Styles - Full Width */
#webzine_header {
    background: linear-gradient(135deg, #2C3E50 0%, #3A506B 100%);
    padding: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
}

#webzine_header.scrolled {
    padding: 10px 20px;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-content {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-toggle {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 2;
}

.thumbnail-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.thumbnail-toggle .material-icons-outlined {
    font-size: 20px;
    color: #ffffff !important;
}

.thumbnail-panel {
    position: fixed;
    left: 0;
    top: 80px;
    width: 420px;
    height: calc(100vh - 80px);
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 15px;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.thumbnail-panel.active {
    transform: translateX(0);
}

.thumbnail-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 5px;
}

.thumbnail-item {
    position: relative;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    aspect-ratio: 3/4;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.thumbnail-item.active {
    border: 3px solid rgb(179, 0, 0);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.page-number {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.title-link {
    display: inline-block;
    position: relative;
    z-index: 1;
}

#webzine_header .title1 {
    font-family: 'Pretendard', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
    display: inline-block;
    padding: 8px 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;

}

#webzine_header .title1:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.zine-share {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.zine-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.zine-share a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.zine-share .material-icons-outlined {
    font-size: 20px;
    color: #ffffff !important;
}

@media (max-width: 570px) {
    #webzine_header {
        padding: 0;
    }

    .header-content {
        width: 100%;
    }

    .thumbnail-toggle {
        left: 0;  /* Changed from 20px to 10px for mobile */
    }

    .zine-share {
        right: 0;
    }

    .zine-share a {
        width: 35px;
        height: 35px;
    }

    .zine-share .material-icons-outlined {
        font-size: 18px;
    }

    #webzine_header {
        padding: 12px 15px;
    }

    #webzine_header .title1 {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .zine-share {
        right: 0;
    }

    #webzine_wrap {
        width: 100%;
        padding: 0;
    }

    #main_swiper_container {
        width: 100%;
        border-radius: 0;
    }
}

/* Main Content - Fixed Width */
#webzine_wrap {
    width: 100%;
    max-width: 570px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0;
}

#main_swiper_container {
    width: 100%;
    max-width: 570px;
    margin: 0 auto;
    background: #FFF;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 570px) {
    #webzine_wrap {
        width: 100%;
        padding: 0;
    }

    #main_swiper_container {
        width: 100%;
        border-radius: 0;
    }
}

@media (min-width: 571px) {
    #webzine_wrap {
        width: 570px;
        padding: 0;
    }

    #main_swiper_container {
        width: 570px;
        border-radius: 0;
    }
}

@media (min-width: 571px) {
    #webzine_wrap #main_swiper_container {
        top: 0;
    }
}

@media (max-width: 570px) {
    #webzine_wrap #main_swiper_container {
        top: 0;
    }
}

#main_swiper_container .main_detailCon-next,
#main_swiper_container .main_detailCon-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

#main_swiper_container .main_detailCon-next {
  right: -50px;
}

#main_swiper_container .main_detailCon-prev {
  left: -50px;
}

.webzine_content::-webkit-scrollbar {
  width: 100%;
}

.webzine_content {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.image-container::after {
  content: '';
  display: block;
  padding-bottom: inherit;
}

.swiper-slide.current-slide {
  overflow: hidden !important;
}

.obj-nm {
  margin: 0;
  padding:0;
  position: absolute;
}

.obj-nm img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    margin: 0;
    padding: 0;
  }
.objUrl{display:none;}

/*백그라운드 이미지 애니메이션 최적화 */
@keyframes grayscaleTransition {
  0% {
    filter: grayscale(0);
  }
  100% {
    filter: grayscale(100%);
  }
}

@keyframes colorTransition {
  0% {
    filter: grayscale(100%);
  }
  100% {
    filter: grayscale(0);
  }
}

/* 깜박임 애니메이션 최적화 */
 @keyframes blink {
      0% {
        opacity: 1;
      }
      50% {
        opacity: 0;
      }
      100% {
        opacity: 1;
      }
    }
.blinking-element {
  animation: blink 0.5s steps(4) 6;
  animation-delay: 1s;
}

.blink-infinite {
  animation: blink 0.5s step-end infinite;
  animation-delay: 1s;
}

.subSlide {display:none}

.swiper-slide {
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-button-next,
.swiper-button-prev {
  display: none;
  position: absolute;
}

.swiper-pagination {
display: flex;
justify-content: center;
position: absolute;
left: 0;
right: 0;
bottom: 10px;
z-index: 10;
}

.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.swiper-pagination {
  padding: 10px;
  text-align: center;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: #999;
  border-radius: 50%;
  display: inline-block;
  margin: 0 5px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.swiper-pagination-bullet-active {
  background-color: #000;
  opacity: 1;
}

.material-icons-outlined {
  transition: transform 0.3s ease-in-out;
}

.rotate-180 {
  transform: rotate(180deg);
}

.root_daum_roughmap {width:100%;height:100%;object-fit:fill;}

/* 공유 모달 최적화 */
#cardNews_share {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  display: none;
  overflow-y: auto;
  will-change: opacity;
}

.share-toggle-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 350px;
}

.share-center-btn {
  display: none;
}

.share-items-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.share-item {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  opacity: 0;
  transform: translate(-50%, -80%) scale(0);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  border:2px solid #fdf2f2;
  will-change: transform, opacity;
}

.share-items-container.animate .share-item {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.share-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

.share-item .share-label {
  font-size: 12px;
  color: white;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  transition: all 0.3s ease;
}

/* 각 SNS 버튼 위치 최적화 */
.share-item:nth-child(1) {
  top: 10%;
  left: 50%;
  background-color: #FCE000;
  transition-delay: 0.1s;
}

.share-item:nth-child(2) {
  top: 25%;
  left: 75%;
  background-color: #007BB6;
  transition-delay: 0.15s;
}

.share-item:nth-child(3) {
  top: 50%;
  left: 90%;
  background-color: #F36523;
  transition-delay: 0.2s;
}

.share-item:nth-child(4) {
  top: 75%;
  left: 75%;
  background-color: #30B87A;
  transition-delay: 0.25s;
}

.share-item:nth-child(5) {
  top: 90%;
  left: 50%;
  background-color: #324e97;
  transition-delay: 0.3s;
}

.share-item:nth-child(6) {
  top: 75%;
  left: 25%;
  background-color: #33a936;
  transition-delay: 0.35s;
}

.share-item:hover {
  transform: translate(-50%, -50%) scale(1.1);
  z-index: 1002;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.share-item:hover img {
  transform: scale(1.1) rotate(10deg);
  filter: brightness(1.2) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

.share-item:hover .share-label {
  transform: translateY(-3px) scale(1.1);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.5px;
}

/* 각 SNS별 개별 호버 효과 최적화 */
.share-item:nth-child(1):hover {
  background: linear-gradient(135deg, #FFE066, #FFC107);
  border: 2px solid #FFD700;
  transform: translate(-50%, -50%) scale(1.1);
}

.share-item:nth-child(2):hover {
  background: linear-gradient(135deg, #42A5F5, #1976D2);
  border: 2px solid #64B5F6;
  transform: translate(-50%, -50%) scale(1.1);
}

.share-item:nth-child(3):hover {
  background: linear-gradient(135deg, #FF8A65, #F4511E);
  border: 2px solid #FF7043;
  transform: translate(-50%, -50%) scale(1.1);
}

.share-item:nth-child(4):hover {
  background: linear-gradient(135deg, #66BB6A, #2E7D32);
  border: 2px solid #4CAF50;
  transform: translate(-50%, -50%) scale(1.1);
}

.share-item:nth-child(5):hover {
  background: linear-gradient(135deg, #5C6BC0, #303F9F);
  border: 2px solid #3F51B5;
  transform: translate(-50%, -50%) scale(1.1);
}

.share-item:nth-child(6):hover {
  background: linear-gradient(135deg, #81C784, #388E3C);
  border: 2px solid #4CAF50;
  transform: translate(-50%, -50%) scale(1.1);
}

.share-item:active {
  transform: translate(-50%, -50%) scale(1.05);
  transition: transform 0.1s ease;
}

.share-item::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: inherit;
  opacity: 0;
  z-index: -1;
  transition: all 0.3s ease;
}

.share-item:hover::before {
  opacity: 0.3;
  transform: scale(1.1);
}

/* URL 공유 영역 최적화 */
.url-share-area {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    opacity: 0;
    transition: all 0.5s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1010;
}

.share-items-container.animate + .url-share-area {
  opacity: 1;
  bottom: -180px;
}

.url-share-area input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.url-share-area button {
  width: 100%;
  padding: 12px;
  background-color: #2291ff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.url-share-area button:hover {
  background-color: #1a7ce8;
}

/* 닫기 버튼 최적화 */
.close-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  color: white;
  transition: all 0.3s ease;
  z-index: 1003;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  border: 3px solid white;
  will-change: transform;
}

.close-btn:hover {
  background: linear-gradient(135deg, #5a67d8, #553c9a);
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.close-btn:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.close-btn span {
  transition: transform 0.2s ease;
}

.close-btn:hover span {
  transform: rotate(90deg);
}

/* 모바일 반응형 최적화 */
@media (max-width: 480px) {
  .share-toggle-container {
    width: 280px;
    height: 280px;
    top: 35%;
  }

  .share-item {
    width: 70px;
    height: 70px;
  }

  .share-item img {
    width: 32px;
    height: 32px;
  }

  .share-label {
    font-size: 9px;
  }

  .url-share-area {
    width: 260px;
    padding: 15px;
    bottom: auto;
    top: 105%;
  }

  .share-items-container.animate + .url-share-area {
    bottom: auto;
    top: 105%;
  }

  .close-btn {
    top: 35%;
    width: 55px;
    height: 55px;
    font-size: 22px;
    border: 2px solid white;
  }

  .close-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

#address_input, .snstitle {
  font-size: 14px;
}

.grayed-out {
  filter: grayscale(90%);
  opacity: 0.7;
}

/* 배경 동영상 최적화 */
.main_webzine_content.has-video[data-obj-gubun-cnt="0"] {
  height: 100vh !important;
  min-height: 100vh !important;
  width: 100% !important;
  overflow: hidden !important;
}

.main_webzine_content.has-video[data-obj-gubun-cnt="0"] .background-container {
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
}

.main_webzine_content.has-video[data-obj-gubun-cnt="0"] .background-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Footer Styles */
.foot_contents {
    width: 100%;
    padding: 10px 0 30px;
    background-color: #FFF;
    text-align: center;
    font-size: 1rem;
    color: #666;
}

.foot_contents p {
    margin: 0;
    line-height: 1.5;
}

.foot_contents a {
    color: #666;
    text-decoration: none;
}

.foot_contents a:hover {
    color: #333;
}

/* 반응형 최적화 - 통합된 미디어 쿼리 */
@media (max-width: 570px) {
  .foot_contents,
  div.foot_contents,
  .cols-100.foot_contents,
  #webzine_wrap .foot_contents,
  body .foot_contents {
    position: relative !important;
    background-color: #FFF !important;
    color: #000 !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 99999 !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 10px 0 30px 0 !important;
    font-size: 1rem !important;
  }

  .main_webzine_content.has-video[data-obj-gubun-cnt="0"] {
    height: 100vh !important;
    min-height: 100vh !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }

  .main_webzine_content.has-video[data-obj-gubun-cnt="0"] .background-container {
    width: 100vw !important;
    height: 100vh !important;
  }

  .main_webzine_content.has-video[data-obj-gubun-cnt="0"] .background-video {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: cover !important;
  }
}

@media (min-width: 571px) {
  .foot_contents,
  div.foot_contents,
  .cols-100.foot_contents,
  #webzine_wrap .foot_contents,
  body .foot_contents {
    position: relative !important;
    background-color: #FFF !important;
    color: #000 !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 99999 !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 10px 0 30px 0 !important;
    font-size: 1rem !important;
  }

  .main_webzine_content.has-video[data-obj-gubun-cnt="0"] {
    height: 100vh !important;
    min-height: 100vh !important;
    width: 570px !important;
    max-width: 570px !important;
  }

  .main_webzine_content.has-video[data-obj-gubun-cnt="0"] .background-container {
    width: 570px !important;
    height: 100vh !important;
  }

  .main_webzine_content.has-video[data-obj-gubun-cnt="0"] .background-video {
    width: 570px !important;
    height: 100vh !important;
    object-fit: cover !important;
  }
}

@media (max-width: 570px) {
    .thumbnail-panel {
        width: 300px;
        padding: 10px;
    }

    .thumbnail-list {
        gap: 8px;
        padding: 3px;
    }

    .page-number {
        font-size: 10px;
        padding: 2px 5px;
    }
}

.webzine-thumbnail {
    position: absolute;
    left: 0;
    top: 80px;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.webzine-thumbnail.active {
    opacity: 1;
    visibility: visible;
}

.webzine-thumbnail .thumbnail-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 10px;
    max-width: 570px;
    margin: 0 auto;
}

.webzine-thumbnail .thumbnail-item {
    position: relative;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    aspect-ratio: 3/4;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.webzine-thumbnail .thumbnail-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.webzine-thumbnail .thumbnail-item.active {
    border: 2px solid rgba(255, 255, 255, 1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.webzine-thumbnail .thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 570px) {
    .webzine-thumbnail {
        width: 100%;
        padding: 10px;
    }

    .webzine-thumbnail .thumbnail-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 5px;
    }

    .webzine-thumbnail .page-number {
        font-size: 10px;
        padding: 2px 5px;
    }
}

/* Popup Layer Styles */
.popup-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-layer.show {
    opacity: 1;
}

.popup-header {
    position: relative;
    width: 100%;
    padding: 8px 15px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    height: 35px; /* Fixed header height */
    min-height: 35px;
    line-height: normal; /* Reset line-height for header */
    font-size: 14px; /* Reset font-size for header */
}

.popup-title {
    display: block;
    margin: 0;
    font-size: 14px;
    color: #fff;
    font-weight: 500;
    line-height: 1.2;
}

.popup-close {
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: 12px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.popup-close:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
}

.popup-close:active {
    transform: scale(0.95);
}

.popup-close::before,
.popup-close::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 1.5px;
    background-color: rgba(255, 255, 255, 0.9);
    top: 50%;
    left: 50%;
    transition: all 0.2s ease;
}

.popup-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.popup-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.popup-close:hover::before,
.popup-close:hover::after {
    background-color: #fff;
    width: 13px;
}

.popup-content {
    position: absolute;
    left: 50%;
    top: 3%;
    transform: translateX(-50%) scale(0.9);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    line-height: 0;
    font-size: 0;
    transition: all 0.3s ease;
}

.popup-layer.show .popup-content {
    transform: translateX(-50%) scale(1);
}

.popup-body {
    position: relative;
    width: 100%;
    height: calc(100% - 35px); /* Adjust header height */
    overflow: hidden;
    line-height: 0;
    font-size: 0;
}

.popup-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    vertical-align: top;
    margin: 0;
    padding: 0;
}

@media (max-width: 570px) {
    .popup-content {
        width: 90% !important;
        max-height: 90vh;
    }

    .popup-header {
        padding: 6px 12px;
    }

    .popup-title {
        font-size: 13px;
    }

    .popup-close {
        width: 20px;
        height: 20px;
    }

    .popup-close::before,
    .popup-close::after {
        width: 10px;
        height: 1.5px;
    }

    .popup-close:hover::before,
    .popup-close:hover::after {
        width: 11px;
    }
}

@media (min-width: 571px) {
    .popup-content {
        width: auto;
        height: auto;
    }

    .popup-image {
        width: 100%;
        height: 100%;
        object-fit: fill;
    }
}

.responsive-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.has-video {
  overflow: hidden;
  position: relative;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

@media screen and (max-width: 570px) {
  .responsive-video {
    object-fit: contain;
  }
}

@media screen and (max-width: 768px) {
  .swiper-navigation {
    display: none !important;
  }
  .main_detailCon-next,
  .main_detailCon-prev {
    display: none !important;
  }
}