html, body {
    height: 100%;
    margin: 0;
    padding: 0;
	overflow: hidden;
}

@font-face {
    font-family: "Pretendard-ExtraBold";
    src: url("/service/img/font/Pretendard-ExtraBold.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Pretendard-SemiBold";
    src: url("/service/img/font/Pretendard-SemiBold.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

/* 탭(설명, 이미지, XR콘텐츠) 이미지 레이아웃 */
#_img-id {
    display: flex;
    flex-wrap: wrap;
    /*gap: 15px; sssss */
    justify-content: flex-start; /* 중요)space-between -> flex-start, 왼쪽 정렬 + gap 간격 유지 */
    padding: 0; /* 좌우 여백 제거 */
}

/* 탭(설명, 이미지, XR콘텐츠) 개별 이미지 컨테이너 */
#_img-id div {
    margin: 3px; /* sssss */
    width: calc(33.33% - 8px); /* 한 줄에 3개씩 정렬, 간격 감안 */
    height: 130px;
    box-sizing: border-box;
    overflow: hidden; /* 넘치는 부분 숨김 */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5; /* 배경색 추가 (선택사항) */
}

/* 탭(설명, 이미지, XR콘텐츠) 이미지 */
#_img-id img, video {
    /* max-width: 100%; */
    max-height: 100%;
    object-fit: cover; /* 원본 비율 유지하며 컨테이너에 맞춤 */
}


/* IOS 팝업 HELP 이미지 */
#popupImage {
    width: 80%;
    height: 80%;
    object-fit: contain;
    border-radius: 10px;
	position: relative;
}

/* 일반 팝업 이미지 */
#popupImage1 {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
	position: relative;
}

/* 배경 오버레이 */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#_3dviewer {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
}

#_head {
    position: relative;
    background: #a4b0be;
    justify-content: space-between;
    align-items: center;
}

/* 20250302 IOS User을 위한 안내 페이지 */
#layerPopup {
    display: none; /* 초기에는 숨김 */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
    border-radius: 10px;
    z-index: 1000;
    cursor: pointer;
	justify-content: center;	/* 이미지세로 정렬 */
	align-items: center;		/* 이미지세로 정렬 */
}

#closeBtn-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#close-img {
    width: 20px;
    height: 20px;
    cursor: pointer;
}


#_desc-id {
    overflow-x: hidden;
}

#_desc-id p {
    margin-bottom: 0.5rem;
    width: inherit;
    word-break: break-all;
    font-weight: normal;                            /* 글자 두께: 얇게 */
    font-family: Pretendard-Regular, sans-serif;    /* 글꼴: 일반체 */
    line-height: 1.3; /* 위아래 간격 */
}

#_desc-id a {
    display: block;
    width: inherit;
    white-space: normal;
}

#btn-ko {
    background-image: url("/_img/linkcopy.png");
    position: absolute;
    right: 294px;
    width: 40px;
    height: 40px;
}

#btn-en {
    background-image: url("/_img/linkcopy.png");
    position: absolute;
    right: 253px;
    width: 40px;
    height: 40px;
}

#btn-zh {
    background-image: url("/_img/linkcopy.png");
    position: absolute;
    right: 212px;
    width: 40px;
    height: 40px;
}

#btn-ar {
    background-image: url("/_img/linkcopy.png");
    position: absolute;
    right: 171px;
    width: 40px;
    height: 40px;
}

#btn-pt {
    background-image: url("/_img/whatapp.png");
    position: absolute;
    right: 130px;
    width: 40px;
    height: 40px;
}


#btn-fr {
    background-image: url("/_img/facebook.png");
    position: absolute;
    right: 89px;
    width: 40px;
    height: 40px;
}

#btn-es {
    background-image: url("/_img/kakaotalk.png");
    position: absolute;
    right: 48px;
    width: 40px;
    height: 40px;
}

#btn-vi {
    background-image: url("/_img/Favorites.png");
    position: absolute;
    right: 8px;
    width: 40px;
    height: 40px;
}

#btn-tts {
    background-image: url("/_img/mn_tts_on2.png");
    width: 36px;
    height: 36px;
}

#btn-sound-play {
    background-image: url("/_img/mn_sound.png");
    width: 36px;
    height: 36px;
	margin-left: 3px;
}

#stamp-pop-btn {
    background-image: url("/_img/stamp_pop_btn.png");
    display: none;
    position: absolute; /* 추가 */
    right: 114px; /* 126 -> 114 */
    width: 36px;
    height: 36px;
}

#btn-linkcp-sharing {
    background-image: url("/_img/linkcopy.png");
    position: absolute;
    top: 40px;
    right: 114px; /* 128 -> 114 */
    width: 36px;
    height: 36px;
    background-size: cover;
}

#btn-whatapp-sharing {
    background-image: url("/_img/whatapp.png");
    position: absolute;
    top: 40px; /* 45 -> 40 */
    right: 38px; /* 88 -> 38 */
    width: 36px;
    height: 36px;
    background-size: cover;
}

/* 확대 버튼 */
#btn-expand {
    background-image: url("/_img/bt_expand.png");
    position: absolute;
    right: 38px; /* 42 -> 38 */
    width: 36px;
    height: 36px;
}

#btn-kakaotalk-sharing {
    background-image: url("/_img/kakaotalk.png");
    position: absolute;
    top: 40px;
    right: 76px; /* 48 -> 76 */
    width: 36px;
    height: 36px;
    background-size: cover;
}

#btn-upload {
    background-image: url("/_img/Favorites.png");
    position: absolute;
    right: 38px; /* 42 -> 38 */
    width: 36px;
    height: 36px;
}

#btn-map {
    background-image: url("/_img/mn_location2.png");
}

#stamp-btn {
    background-image: url("/service/img/stamp.png");
    /*flex-grow: 1;*/
    background-repeat: no-repeat;
    margin-right: 5px;
    margin-top: 3px;
}

#audioPlayer {
    display: none
}

#stamp-box {
    flex-grow: 1;
    display: none;
    justify-content: flex-end;
    margin-right: 5px;
}


/* 20250224  XR콘텐츠 모바일 스타일 */
/* 리스트 전체 가운데 정렬 */
#_xr-id .list_thumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* center -> flex-start */
    align-items: center; /* 세로 정렬 중앙 */
    gap: 1px; /* 20250404 간격보정 */
    /* text-align: center; */
}
/* XR콘텐츠 모바일 3x3 수정 */
#_xr-id .list_thumb li,
#_xr-id .list_thumb li + li {
    width: 31%; /* 31.6% -> 31 */
    margin: 2px 2px 2px 2px !important;
}
/* 컨텐츠 이미지 */
#_xr-id .list_thumb img{
    /*height: auto;*/
    object-fit: cover;
}
#_xr-id .list_thumb .thumb{
    height: 100px;
}
#_xr-id .thumb .info_thumb,
#_xr-id .thumb .info_thumb * {
    padding: 0px;
}
/* 아이콘 글자 크기 조정 */
#_xr-id .thumb .info_thumb .num {
    font-size: 10px;
}
/* 아이콘 크기 조정 */
#_xr-id .thumb .info_thumb .ico_comm {
}
/* 아이콘 간격 조정 */
#_xr-id .thumb .info_thumb dl + dl {
    margin-left: 3px;
}
#_xr-id .list_thumb .cont img{
    height: 40%; 
    margin: 8px 0 0 0;
}
#_xr-id .list_thumb .cont {
    padding: 0px;
}
/* 아이콘과 컨텐츠명 간격 및 위치 조정 */
#_xr-id .list_thumb .cont .thumb_profile {
    width: 30px; /* 10px -> 30px */
    margin: 0 5px 0 5px;
}
/* 텍스트 크기 조정 및 숨김 방지 */
#_xr-id .list_thumb .cont strong {
    max-width: calc(100% - 10px); /* 좌우 여백 고려하여 최대 너비 설정 */
}
/* 글자 크기 */
#_xr-id .list_thumb .cont .thumb_profile + strong {
    font-size: 10px;
}
/* 다운로드 안보이게 */
#_xr-id .list_thumb .download i {
    display: none;
}
/* 애니메이션 및 사운드 아이콘 크기 조정 */
#_xr-id .list_thumb #ani_sound_box img {
    width: 15px;
    height: 15px;
}


/* 20250414 위도/경도 있을 때 추가 스타일 */
.image-container .xr-container.location-mode {
    top: 8px;     /* 상단 여백 */
    left: 8px;    /* 좌측 여백 */
    bottom: auto; /* bottom 해제 (하단 고정 없애기) */
    transform: none; /* 중앙 정렬 해제 */
}

/* 20250504 말풍선 */
.bubble {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	margin-left: -150px;
	translateY: (-50%);
	background: #cceeff;
	color: #000;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.5;			// 글줄간격 50%
	box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
	white-space : pre-line;
	z-index: 101;
	width: 300px;
	height: 280px;
	overflow-y: auto;			// 글자 스크롤
	text-align: left;
}

.bubble::after {
	content: "";
	position: absolute;
	top: -10px;
	left: 25px;
	width: 0;
	height: 0;
	border: 10px solid transparent;
	border-bottom-color: #cceeff;
}



.fitsize {
    object-fit: cover;         /* 박스를 꽉 채우며 비율 유지, 잘림 있음 */
    object-position: center;   /* 중심 기준으로 자름 */
}


.data_tp_icon {
    position: absolute;
    z-index: 1;
    top: 10px;
    left: 10px;
    width: 30px !important;
    height: 30px !important;
    border-radius: unset !important;
}	


._title {
    position: relative;
    font-size: 240%;
    font-family: Pretendard-ExtraBold, serif;
    font-weight: bold;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f7f9fc; /* #202020 */
    text-align: left; /* center */
}

._descr::-webkit-scrollbar {
    width: 8px; /* 스크롤바의 너비 */
}

._descr::-webkit-scrollbar-thumb {
    height: 30%; /* 스크롤바의 길이 */
    background: #9F9F9F; /* 스크롤바의 색상 */
    border-radius: 15px;
}



.image-container img.background {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.overlay-frame {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 2; /* 이미지보다 위 */
  background: transparent;
}

.image-container a {
  display: block;
  height: 100%;
  width: 100%;
}

/* 20250319  XR 버튼과 텍스트를 감싸는 div 추가 */
.image-container .xr-container {
    position: absolute;
    bottom: 2px;
    left: 64%; 
    transform: translateX(-50%);
    display: flex;
    align-items: center;
	z-index: 3; /* 이미지보다 위 */
}

/* 20250319  XR 버튼과 텍스트를 감싸는 div 추가 */
.image-container img.button {
    position: static; /* 기존 absolute 제거 */
    width: 36px; /* 버튼 크기 */
    height: auto;
    cursor: pointer;
	z-index: 3; /* 이미지보다 위 */
}

/* 20250319  XR 버튼과 텍스트를 감싸는 div 추가 */
.bgimage-text {
    position: static; 			/* 기존 absolute 제거 */
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    white-space: nowrap; 		/* 줄바꿈 방지 */
    color: white;             	/* 글씨 색을 흰색으로 설정 */
    text-shadow:
		0 0 2px black,
		0 0 4px black,
		-1px -1px 0 black,     	/* 왼쪽 위 */
		1px -1px 0 black,      	/* 오른쪽 위 */
		-1px  1px 0 black,     	/* 왼쪽 아래 */
		1px  1px 0 black;      	/* 오른쪽 아래 */
}

.image-row {
  display: flex;
    justify-content: center;
  gap: 1px; /* 이미지 간 1px 간격 */
}

.image-row img {
    /*margin-top: 5px; !* 위 마진 *!*/
  width: 40px; /* 원하는 크기 설정 */
  height: auto; /* 비율 유지 */
}

/* 20250203  언어 드롭다운 스타일 */
.dropdown {
    position: relative;
    display: inline-block;
}

.selected-image {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 40px; /* 드롭다운 위치 */
    z-index: 10;
}

/* 드롭다운 활성화 시 */
.dropdown.active .dropdown-menu {
    display: grid;
}

.dropdown-menu img {
    padding: 1px 0 1px 0;
}

/* 20250203  상단 좌측 아이콘 컨테이너 */
.top-left-icons {
    position: absolute;
    top: 5px; /* 상단 여백 */
    left: 10px; /* 좌측 여백 */
	height: 36px;
    display: flex;
    z-index: 10; /* 배경 이미지 위로 배치 */
}

/* 20250203  상단 우측 아이콘 컨테이너 (즐겨찾기 버튼) */
.top-right-icons {
    position: absolute;
    top: 5px; /* 상단 여백 */
    right: 5px; /* 우측 여백 */
    display: flex;
    z-index: 10;
}

/* 20250518  좌측 상단 PWA 설치버트 */
#installBtn {
  padding: 5px 5px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  display: none;
  cursor: pointer;
}

/* 개별 아이콘 스타일 */
.top-icon {
    width: 28px; /* 아이콘 크기 */
    height: 28px;
}

/* 20250318 탭을 겹쳐서 배치하는 스타일 적용 */
.tab-container {
    position: relative;
    width: 100%;
    /*margin-left: 4px;*/
    height: 28px;
    display: flex;
    justify-content: flex-start;
}

/* 20250318 각 탭 버튼을 겹치게 배치 (기존 스타일 유지) */
.tab-button {
    position: relative;
    border: none;
    background: url('../_img/Tab_Off2.png') no-repeat center;
    background-size: contain;
    cursor: pointer;
    font-weight: bold;
    width: 100px;
    height: 30px;
    color: #373737;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

/* 20250318 기존 gap 대신 margin을 음수로 설정해 탭이 겹쳐지도록 조정 */
.tab-button:not(:first-child) {
    margin-left: -30px; /* 기본적으로 겹치게 조정 */
}

/* 20250318 선택된 탭이 앞으로 나오도록 조정 */
.tab-button.active {
    background: url('../_img/Tab_Off2.png') no-repeat center;
    background-size: contain;
    color: #075981;
}

/* 선택된 탭(설명, 이미지, XR콘텐츠) */
.tab-content {
    display: none;
    padding: 1px;
}

/* 선택된 탭(설명, 사진, 영상)만 보이기 */
.tab-content.active {
    display: block;
}


/* 20250217  탭 버튼 내 텍스트 스타일 */
.tab-text {
    display: inline-block;
    width: 100px; /* 최대 50px까지만 표시 */
    overflow: hidden; /* 넘치는 글자 숨김 */
    text-overflow: ellipsis; /* 초과 시 '...' 표시 */
    white-space: nowrap; /* 줄바꿈 방지 */
    text-align: center; /* 중앙 정렬 (필요 시 추가 가능) */
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 262px;
    height: 200px;
}

.swiper-slide img {
    display: block;
    width: 262px;
    height: 200px;
    object-fit: cover;
    /*border-radius: 15px;*/
}

._descr_head {
    position: relative;
    height: unset;
    /*overflow-x: auto;*/
}

._descr_menus {
    display: flex;
    justify-content: flex-start;
    margin-top: 5px;
    margin-bottom: 5px;
    margin-left: 0;
}

._descr_menu {
    background-size: contain;
    width: 40px; /* 50 */
    height: 40px; /* 50 */
    margin-right: 0px;
    cursor: pointer;
}


/* 공통 설정 */
._win {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100); /* JS로 정확한 높이 지정 */
  overflow: hidden;
}

._win1 {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* 이미지/비디오 영역 */
._viewer {
  position: relative;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1 / 1.2;
  overflow: hidden;
}

._viewer > div {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
}

._viewer img,
._viewer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 설명 영역 */
._descr_frm {
  width: 100%;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-size: 35px;
  font-family: Pretendard-SemiBold, serif;
  background: #f4f4f4;
}

._descr {
  font-size: 15px;
  position: relative;
  padding: 16px;
  border-radius: 10px;
  background: #f1f1f196;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}


/* === 가로모드 (좌우 분할: viewer 60%, descr 40%) === */
@media screen and (orientation: landscape) {
  ._win1 {
    flex-direction: row;
  }

  ._viewer {
    width: 65vw;
    height: 100%;
    aspect-ratio: auto;
  }

  ._descr_frm {
    width: 35vw;
    height: 100%;
  }
}

/* === 세로모드: 핸드폰 === */
@media screen and (orientation: portrait) and (max-width: 767px) {
  ._viewer {
    height: 70svh;
  }

  ._descr_frm {
    height: 30svh;
  }
}

/* === 세로모드: 태블릿 === */
@media screen and (orientation: portrait) and (min-width: 768px) {
  ._viewer {
    height: 60svh;
  }

  ._descr_frm {
    height: 40svh;
  }
}

