html {
	scroll-behavior: smooth; /* 페이지 내 앵커 이동 시 부드럽게 스크롤 */
}
body {
	margin: 0;
	padding: 0;
	position: relative;
	font-family: Arial, sans-serif;
}
nav {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 1000;
}
nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
nav li {
	display: block;
	margin: 8px 0;
	padding: 20px;
	border-radius: 30px 0 0 30px;
	
	transition: background 0.3s ease, transform 0.3s ease;
}
nav li:hover {
	
}
nav a {
	display: block;
	text-decoration: none;
	color: #fff;
	font-size: 14px;
	background: #525b51;
}
nav a:hover {background: #2c3128;}
.gallery {
	text-align: center;
}
.gallery img {
    width: 100%; 
    max-width: 980px; 
    height: auto;
    display: block;
    margin: 0 auto;
}

#top_btn_wrap {
    position: fixed;
    right: 10px;
    bottom: 10px;
    border: 0;
    background: none;
    opacity: 1;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#top_btn_wrap img {
    width: 60px;
    border-radius: 10px;
	cursor:pointer;
}
.popup-layer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
    border-radius: 4px;
    text-align: center;
}
.popup-content img {
    width: 200px;
    margin-bottom: 20px;
}
popup-content .number {
    font-size: 20px;
    color: #555;
    font-weight: bold;
    line-height: 1.6;
}
.popup-close {
    border: 0;
    background-color: #598924;
    font-weight: bold;
    font-size: 16px;
    padding: 15px 30px;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}


@media (max-width: 768px) {
	nav {
		position: fixed;
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		width: 100%;
		z-index: 1000;
	}
	nav ul {
		display: flex;
		justify-content: space-around;
		align-items: center;
		margin: 0;
		padding: 0;
		background: #525b51;
	}
	nav li {
		display: inline-block;
		margin: 0;
		padding: 15px 0;
		border-radius: 0;
		text-align: center;
		line-height: 1.2;
	}
	nav a {
		display: block;
		width: 100%;
		text-align: center;
		font-size: 14px;
	}
	.m_none {
		display: none;
	}
	.m_br {
		display: block;
	}
	#top_btn_wrap {
		position: fixed;   
		top: 10px;       
		bottom: auto;      
		right: 10px;
		gap: 5px;
	}
	#top_btn_wrap img {
		width: 35px;
		border-radius: 10px;
		cursor: pointer;
	}
	.gallery {
		margin-bottom:63px;
	}
}


#loader {
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: white;
	z-index: 9999;
}