main {
	display: flex;
	flex-direction: column;
}
.pin-icon {
	margin-left: 0.5vw;
	color: #f39c12;
	font-size: 0.9em;
}
html,
body {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

.left-section {
	display: flex;
	justify-content: center;
	flex-direction: column;
	padding: 5%;
	margin-top: 20px;
	margin-bottom:20px;
}

#slideshow-wrapper {
	width: 70vw;
	height: 70vw;
	margin: 2vh auto;
	/* 가운데 정렬을 위한 margin 설정 */
	padding: 1vh;
	box-sizing: border-box;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
	display: flex;
	flex-direction: column;
	background-color: #E3D5CA;
}

#slideshow-container {
	position: relative;
	flex: 1;
	overflow: hidden;
	background: #f8f8f8;
}

#slideshow {
	position: relative;
	width: 100%;
	height: 100%;
}

#slideshow img {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	object-fit: contain;
	object-position: center;
	display: none;
	background-color: #E3D5CA;
}

#slideshow-controls {
	text-align: center;
	margin-top: 1vh;
}

#slideshow-controls button {
	font-size: 1.2em;
	margin: 0 1vw;
	padding: 0.5vh 1vw;

	cursor: pointer;
	background-color: #F1E6E1;
	border: 1px solid #D5BDAF;
}

.right-section {
	padding: 5%;
}

.notice-title {
	white-space: nowrap;
	/* 줄 바꿈 방지 */
	overflow: hidden;
	/* 넘친 부분 잘림 */
	text-overflow: ellipsis;
	/* 말줄임표(...) 표시 */
	display: block;
	/* 또는 inline-block */
	max-width: 100%;
	/* 너비 제한 */
}

.gallery {
	margin-top: 20px;
	margin-left: 6%;
	margin-bottom: 10px;
}

.gallery-wrapper {
	display: flex;
	align-items: center;
	margin-top: 3%;
}

/* 이전/다음 버튼 */
#gallery-prev,
#gallery-next {
	background: none;
	border: none;
	font-size: 1.5rem;
	width: 40px;
	height: 40px;
	cursor: pointer;
	transition: opacity .2s;
	background-color: #F1E6E1;
}

#gallery-prev:disabled,
#gallery-next:disabled {
	opacity: .3;
	cursor: default;
}

/* 보이는 영역: 딱 5개만 보여줄 너비 (150px × 5) */
.gallery-container {
	width: 150px * 5;
	/* CSS 계산 불가 → 아래처럼 직접 지정 */
	width: 80%;
	overflow: hidden;
	box-sizing: border-box;
	margin: 0 10px;
}

/* 트랙: 전체 너비 1000px (이미지 150px + 여유) */
.gallery-track {
	display: flex;
	width: 50vw;
	transition: transform .3s ease-in-out;
}



.gallery-item img {
	display: block;
	width: 150px;
	height: 150px;
}

/* 네비게이션 버튼 */
#gallery-prev,
#gallery-next {
	background: none;
	border: none;
	font-size: 1.5rem;
	padding: 0 10px;
	cursor: pointer;
}

#gallery-prev:disabled,
#gallery-next:disabled {
	opacity: 0.3;
	cursor: default;
}

/* 아이템: 고정 150px 폭, 오른쪽 마진 10px */
.gallery-item {
	flex: 0 0 150px;
	margin-right: 10px;
	width: 150px;
	height: 150px;
	box-sizing: border-box;
}

.gallery-item:last-child {
	margin-right: 0;
}

.order-col {
	display: none;
	width: 5vw;
	text-align: center;
}


#notification-list {
	position: relative;
	flex: 1;
	margin-left: 5%;
	margin-top: 2vh;
}


#notification-list table {
	width: 100%;
	border-collapse: collapse;
}

#notification-list th,
#notification-list td {
	border-bottom: 1px solid #D6CCC2;
	padding: 1vh 0.5vw;
	text-align: left;
}

#notification-list th {
	background: #EDEDE9;
}


.notice-title {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 150px;
	/* 원하는 너비로 조정 가능 */
	display: inline-block;
}

#notification-list a {
	text-decoration: none;
	color: inherit;
}

.datetime-full {
	display: none;
}

.datetime-dateonly {
	display: inline;
}

.mobile-box {
	width: 100%;
	height: 500px;
}

.mobile-img {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.mobile-img::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url('/img/main.png');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0.2;
	/* 투명도 조절 */
	z-index: -1;
}

.mobile-btn {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	/* 수평 가운데 정렬 */
	gap: 20px 30px;
	/* 세로 20px, 가로 30px 간격 */
	width: 100%;
	max-width: 320px;
	margin: 0 auto;
	padding-top: 150px;
	

}

/* 공통 버튼 스타일 */
.btn {
	width: 70px;
	height: 70px;
	border-radius: 50%;
background: linear-gradient(145deg, #CBBFB4, #B6A093);
 	text-shadow: 1px 1px 1px rgba(0, 0, 0, 1), 0px 0px 2px rgba(0, 0, 0, 0.9);
	color: white;
	border: none;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	padding: 5px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	transition: all 0.25s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	letter-spacing: -0.5px;
}

.btn:hover {
	background-color: #357abd;
}


.mobile-text {
	text-align: center;
	font-family: 'Segoe UI', 'Pretendard', sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.6;
	color: #333;
	padding: 20px 10px;
	border-radius: 15px;
	margin: 20px auto;
	width: 90%;
	max-width: 300px;
}

/* 강조 텍스트 */
.highlight {
	color: #2699E6;
	padding: 2px 6px;
	border-radius: 12px;
	font-weight: 700;
}

.popup-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.popup-content {
	position: relative;
	background-color: #fff;
	padding: 10px;
	border-radius: 10px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.popup-image {
	width: 300px;
	height: 300px;
	
	border-radius: 6px;
	margin-bottom: 10px;
}

.popup-footer {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
}

.popup-footer button {
	background-color: #007bff;
	color: white;
	border: none;
	padding: 5px 10px;
	border-radius: 4px;
	cursor: pointer;
}
#close-popup-btn:hover {
	background-color: #0056b3;
}