
/*** Spinner Start ***/
/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}
/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    transition: 0.5s;
    z-index: 99;
}

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-xl-square {
    width: 66px;
    height: 66px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square,
.btn-xl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn.btn-primary {
    color: var(--bs-white);
    border: none;
}

.btn.btn-primary:hover {
    background: var(--bs-dark);
    color: var(--bs-primary);
}

.btn.btn-light {
    color: var(--bs-primary);
    border: none;
}

.btn.btn-light:hover {
    color: var(--bs-white);
    background: var(--bs-primary);
}


/*** Topbar Start ***/
.topbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "IBMPlexSansKR-Regular", "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
    margin-left: 8px;
    color: var(--bs-primary);
}

.topbar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1050; /* navbar보다 위 */
}

.topbar .dropdown .dropdown-menu a:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.topbar .dropdown .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light);
    padding-top: 11px;
    border: 0;
    transition: .5s;
    opacity: 1;
}

/*** Topbar End ***/
.navbar-light .navbar-nav .nav-link {
    font-family: 'IBMPlexSansKR-Regular', 'Roboto', sans-serif;
    position: relative;
    margin-right: 25px;
    padding: 35px 0;
    color: var(--bs-white);
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link,
.sticky-top.navbar-light .navbar-nav .nav-item .nav-link {
    padding: 20px 0;
    color: var(--bs-dark);
}

.navbar-light .navbar-nav .nav-item .nav-link {
	color: var(--bs_dark);
}

/* 모바일 / 태블릿 마우스오버 및 활성 메뉴 */
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-item .nav-link:hover,
.navbar-light .navbar-nav .nav-item .nav-link.active,
.navbar-light .navbar-nav .nav-item.show > .nav-link {
	color: var(--bs_dark);
	font-weight: 600;
}

@media (min-width: 992px) {

	.navbar-light .navbar-nav .nav-item .nav-link {
		color: var(--bs-white);
	}

	.navbar-light .navbar-nav .nav-link:hover,
	.navbar-light .navbar-nav .nav-link.active,
	.navbar-light .navbar-nav .nav-item .nav-link:hover,
	.navbar-light .navbar-nav .nav-item .nav-link.active,
	.navbar-light .navbar-nav .nav-item.show > .nav-link {
		color: var(--bs-white);
		font-weight: 600;
	}

	.cemetery-menu:hover {
		color: var(--bs-white);
		text-shadow:
			-2px -2px 0 var(--bs-dark),
			 2px -2px 0 var(--bs-dark),
			-2px  2px 0 var(--bs-dark),
			 2px  2px 0 var(--bs-dark);
	}
}

.navbar-light .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-brand img {
    max-height: 45px;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "catholic", "IBMPlexSansKR-Regular", "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
    margin-left: 8px;
}

.dropdown .dropdown-menu a:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light);
    transition: .5s;
    opacity: 1;
	font-size: 16px;
	
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-light {
        position: relative;
        background: var(--bs-white);
    }

    .navbar.navbar-expand-lg .navbar-toggler {
        padding: 10px 20px;
        border: 1px solid var(--bs-primary);
        color: var(--bs-primary);
    }

    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid #DDDDDD;
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
        color: var(--bs-dark);
    }

    .navbar-light .navbar-nav .nav-item .nav-link {
        color: var(--bs-dark);
    }

    .navbar-light .navbar-brand img {
        max-height: 45px;
    }
}

@media (min-width: 992px) {

    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: calc(100% - 20px); /* 10px 위로 이동 */
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        border-radius: 10px;
        transition: .5s;
        opacity: 0;
    }

    .navbar-light {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        /*border-bottom: 1px solid rgba(255, 255, 255, .1);*/
        z-index: 999;
    }
    
    .sticky-top.navbar-light {
        position: fixed;
        background: var(--bs-light);
    }

    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--bs-primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: calc(100% - 2px);
        left: 1px;
    }

	.navbar-light .navbar-nav .nav-link::before, /* 선 삭제를 위함 추가 */
    .navbar-light .navbar-nav .nav-link::after {
		display: none !important;
		/*
        position: absolute;
        content: "";
        width: 0;
        height: 0;
        bottom: -1px;
        left: 50%;
        background: var(--bs-primary);
        transition: .5s;
		*/
    }

    .navbar-light .navbar-nav .nav-link:hover::after,
    .navbar-light .navbar-nav .nav-link.active::after {
		height: 0 !important;
		width: 0 !important;
		/*
		width: 2px;
        height: 12px;
		*/
    }
}
/*** Navbar End ***/

/*** Carousel Hero Header Start ***/
.header-carousel .header-carousel-item img {
    object-fit: cover;
}

.header-carousel .header-carousel-item,
.header-carousel .header-carousel-item img {
        height: 750px;
}

/* 유튜브 슬라이드는 높이 제한 없이 가로 100%에 맞추기 */
.header-carousel .youtube-slide {
    width: 100vw;
    height: auto;
    min-height: 100vh; /* 필수 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: visible;
}

/* 유튜브 iframe 영상 - 가로 100%, 세로 자동 */
.header-carousel .youtube-slide iframe.video-full {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3; /* 4:3 비율 유지하면서 세로 자동 증가 */
    display: block;
    border: 0;
    object-fit: contain;
}

/* 캡션을 화면 전체로 */
.video-caption {
    position: absolute;
    inset: 0;
    padding: 0 !important;
    margin: 0 !important;
    background: black;
}

.video-full {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border: 0;
}

/* 세로가 더 긴 화면 대응 (모바일) */
@media (max-aspect-ratio: 16/9) {
    .video-full {
        width: 177.78vh;
        height: 100vh;
    }
}


/* ===============================
   VIDEO HERO (Owl 밖)
================================ */
.video-hero {
    position: relative;
    width: 100%;
    background: #000;
    overflow: hidden;
}

/* PC: HERO 전체화면 */
@media (min-width: 1025px) {
	display: none;
}

/* 태블릿 / 모바일 */
@media (max-width: 1024px) {

    .video-hero,
    .youtube-slide {
        height: auto;
    }

    .video-full {
        aspect-ratio: 16 / 9;
        height: auto;
        width: 100%;
    }
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 60px;
    background: var(--bs-primary);
    color: var(--bs-white);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.header-carousel .owl-nav .owl-prev {
    bottom: 30px;
    left: 30px;
}
.header-carousel .owl-nav .owl-next {
    bottom: 30px;
    left: 30px;
    margin-left: 90px;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    box-shadow: inset 0 0 100px 0 var(--bs-light);
    color: var(--bs-primary);
}


.header-carousel .header-carousel-item .carousel-caption {
    position: absolute;
    width: 100%;
    height: auto;
    min-height: 100vh; /* 이것도 반드시 필요 */	
    left: 0;
    bottom: 0;
    padding-top: 300px;
    background: rgba(0, 0, 0, .4);
    display: flex;
    align-items: center;
}

@media (max-width: 991px) {
    .header-carousel .header-carousel-item .carousel-caption {
        padding-top: 45px;
    }
}

@media (max-width: 767px) {
    .header-carousel .owl-nav .owl-prev {
        left: 50%;
        transform: translateX(-50%);
        margin-left: -45px;
    }


    .header-carousel .owl-nav .owl-next {
        left: 50%;
        transform: translateX(-50%);
        margin-left: 45px;
    }
}


.header-carousel .header-carousel-item img {
    animation-name: image-zoom;
    animation-duration: 10s;
    animation-delay: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    transition: 1s;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;	
}

@keyframes image-zoom {
    0%  {height: 100%; opacity: 0.9;}
    25% {height: 110%; opacity: 0.50;}
    50% {height: 115%; opacity: 1;}
    75% {height: 110%; opacity: 0.50;}
    100% {height: 100%; opacity: 0.9;}
}
/*** Carousel Hero Header End ***/


/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    position: relative;
    overflow: hidden;
    background-size: cover;
    padding: 140px 0 80px 0;
    transition: 0.5s;
}

@media (min-width: 992px) {
    .bg-breadcrumb {
        padding: 140px 0 60px 0;
    }
}

@media (max-width: 991px) {
    .bg-breadcrumb {
        padding: 60px 0 60px 0;
    }
}

.bg-breadcrumb .breadcrumb {
    position: relative;
}

.bg-breadcrumb .breadcrumb .breadcrumb-item a {
    color: var(--bs-white);
}
/*** Single Page Hero Header End ***/


/*** Service Start ***/
.service .service-item {
    background: var(--bs-light);
    border-radius: 10px;
    transition: 0.5s;
}

.service .service-item:hover {
    box-shadow: 0 0 45px rgba(0, 0, 0, .2);
}

.service .service-item .service-img {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: 0.5s;
}

.service .service-item .service-img img {
    transition: 0.5s;
}

.service .service-item:hover .service-img img {
    transform: scale(1.2);
}
/*** Service End ***/

/*** Blog Start ***/
.blog .blog-item {
    border-radius: 10px;
    background: var(--bs-white);
    box-shadow: inset 0 0 45px rgba(0, 0, 0, .1);
    transition: 0.5s;
}

.blog .blog-item a {
    transition: 0.5s;
}

.blog .blog-item:hover a:hover {
    color: var(--bs-primary);
}

.blog .blog-item .blog-img {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.blog .blog-item .blog-img img {
    transition: 0.5s;
}

.blog .blog-item:hover .blog-img img {
    transform: scale(1.2);
}

.blog .blog-item .blog-img::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 10px;
    background: rgba(0, 208, 132, 0.1);
    opacity: 0;
    transition: 0.5s;
    z-index: 1;
}

.blog .blog-item:hover .blog-img::after {
    opacity: 1;
}

.blog .blog-item .blog-img .blog-title {
    position: absolute;
    bottom: 25px;
    left: 25px;
    z-index: 5;
}

.blog .blog-item .blog-img .blog-title a {
    color: var(--bs-white);
    background: var(--bs-primary);
    transition: 0.5s;
}

.blog .blog-item:hover .blog-img .blog-title a:hover {
    color: var(--bs-dark);
}

.blog-carousel .owl-stage-outer {
    margin-top: 58px;
}

.blog .owl-nav .owl-prev {
    position: absolute;
    top: -58px;
    left: 0;
    background: var(--bs-primary);
    color: var(--bs-white);
    padding: 6px 35px;
    border-radius: 30px;
    transition: 0.5s;
}

.blog .owl-nav .owl-prev:hover {
    background: var(--bs-dark);
    color: var(--bs-primary);
}

.blog .owl-nav .owl-next {
    position: absolute;
    top: -58px;
    right: 0;
    background: var(--bs-primary);
    color: var(--bs-white);
    padding: 6px 35px;
    border-radius: 30px;
    transition: 0.5s;
}

.blog .owl-nav .owl-next:hover {
    background: var(--bs-dark);
    color: var(--bs-primary);
}
/*** Blog End ***/

/*** Team Start ***/
.team .team-item {
    position: relative;
    padding: 0 25px 25px 25px;
    border-radius: 10px;
    transition: 0.5s;
}

.team .team-item::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    background: var(--bs-light);
    border-radius: 10px;
    transition: 0.5s;
    z-index: -1;
}

.team .team-item:hover::before {
    height: 0;
}

.team .team-item::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    border-radius: 10px;
    transition: 0.5s;
    z-index: -1;
}

.team .team-item:hover::after {
    height: 100%;
    background: var(--bs-primary);
}

.team .team-item .team-img {
    width: 100%; 
    height: 100%;
    border-radius: 100%;
    position: relative;
    margin-top: 50%;
    transform: translateY(-50%);
    margin-bottom: -50%;
    display: flex;
    justify-content: center;
    border: 4px solid var(--bs-primary);
    border-style: dotted;
    padding: 4px;
    background: var(--bs-white);
    transition: 0.5s;
}

.team .team-item:hover .team-img {
    border: 4px solid var(--bs-white);
    border-style: dotted;
    background: 0;
}

.team .team-item .team-img img {
    width: 100%;
    height: 100%;
    border-radius: 100%;
    transition: 0.5s;
}

.team .team-item .team-title {
    padding: 25px 0 25px 0;
    text-align: center;
}

.team .team-item .team-title h4,
.team .team-item .team-title p {
    transition: 0.5s;
}

.team .team-item:hover .team-title h4,
.team .team-item:hover .team-title p {
    color: var(--bs-white);
}

.team .team-item .team-icon {
    display: flex;
    justify-content: center;
}

.team .team-item .team-icon a {
    transition: 0.5s;
}

.team .team-item:hover .team-icon a {
    color: var(--bs-dark);
    background: var(--bs-white);
}

.team .team-item:hover .team-icon a:hover {
    color: var(--bs-primary);
    background: var(--bs-dark);
}
/*** Team End ***/

/*** Footer Start ***/
.footer {
    background: #111; /*var(--bs-secondary);*/
	color: #888;
}

.footer .footer-item {
    display: flex;
    flex-direction: column;
}

.footer .footer-item a {
    line-height: 28px;
    color: var(--bs-body);
    transition: 0.5s;
}

.footer .footer-item p {
    line-height: 35px;
}

.footer .footer-item a:hover {
    color: var(--bs-primary);
}

.footer .footer-item .footer-btn a,
.footer .footer-item .footer-btn a i {
    transition: 0.5s;
}

.footer .footer-item .footer-btn a:hover {
    background: var(--bs-white);
}

.footer .footer-item .footer-btn a:hover i {
    color: var(--bs-primary);
}
/*** Footer End ***/

/*** copyright Start ***/
.copyright {
    background: var(--bs-dark);
}
/*** copyright end ***/


/* ==================================================
   모바일·태블릿 메뉴 간격 고정
================================================== */
@media (max-width: 991.98px) {

	/* 일반 상태와 스크롤 고정 상태를 동일하게 처리 */
	.navbar-light .navbar-nav .nav-link,
	.navbar-light.sticky-top .navbar-nav .nav-link,
	.sticky-top.navbar-light .navbar-nav .nav-link {
		padding: 12px 0 !important;
		margin: 0 !important;
		line-height: 1.4;
		color: #111111 !important;
	}

	/* 메뉴 자체에 적용된 간격 제거 */
	.navbar-light .navbar-nav .nav-item {
		margin: 0 !important;
		padding: 0 !important;
	}

	/* navbar-nav 높이 분배 방지 */
	.navbar-light .navbar-nav {
		height: auto !important;
		min-height: 0 !important;
		gap: 0 !important;
		justify-content: flex-start !important;
	}

	/* 펼쳐진 하위 메뉴 */
	.navbar-light .dropdown-menu {
		position: static !important;
		float: none;
		margin: 0 0 2px 0 !important;
		padding: 7px 0 !important;
	}

	.navbar-light .dropdown-menu .dropdown-item {
		padding: 7px 16px;
		margin: 0;
	}
}

.memorial-wrap {
	--memorial-primary: #75604e;
	--memorial-primary-dark: #4e4035;
	--memorial-light: #f7f3ef;
	--memorial-line: #e6ddd5;
	--memorial-text: #403a35;
	color: var(--memorial-text);
}

.memorial-person-menu {
	margin-bottom: 25px;
	padding: 20px;
	border: 1px solid var(--memorial-line);
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 8px 25px rgba(72, 57, 44, 0.06);
}

.memorial-person-menu-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 15px;
}

.memorial-person-menu-title h3 {
	margin: 0;
	color: var(--memorial-primary-dark);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.5px;
}

.memorial-person-menu-title p {
	margin: 0;
	color: #8b8178;
	font-size: 14px;
}

.memorial-person-scroll {
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 4px;
	scrollbar-width: thin;
}

.memorial-person-list {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	min-width: max-content;
}

.memorial-person-button {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 18px 9px 9px;
	border: 1px solid var(--memorial-line);
	border-radius: 50px;
	background: #ffffff;
	color: #665b52;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.25s ease;
}

.memorial-person-button:hover {
	border-color: var(--memorial-primary);
	background: var(--memorial-light);
	color: var(--memorial-primary-dark);
}

.memorial-person-button.active {
	border-color: var(--memorial-primary);
	background: var(--memorial-primary);
	color: #ffffff;
	box-shadow: 0 6px 15px rgba(85, 67, 53, 0.18);
}

.memorial-person-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	overflow: hidden;
	border-radius: 50%;
	background: #ece7e2;
	color: #9f958c;
}

.memorial-person-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.memorial-person-button.active .memorial-person-thumb {
	border: 2px solid rgba(255, 255, 255, 0.8);
}

.memorial-hero {
	position: relative;
	overflow: hidden;
	padding: 50px;
	border: 1px solid var(--memorial-line);
	border-radius: 24px;
	background: linear-gradient(135deg, #fbfaf8 0%, #f1ebe4 100%);
	box-shadow: 0 15px 40px rgba(74, 58, 43, 0.08);
}

.memorial-hero::before {
	content: "";
	position: absolute;
	top: -130px;
	right: -100px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
}

.memorial-hero::after {
	content: "";
	position: absolute;
	bottom: -160px;
	left: -100px;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background: rgba(123, 102, 83, 0.05);
}

.memorial-hero-content {
	position: relative;
	z-index: 2;
}

.memorial-portrait-wrap {
	position: relative;
	width: 100%;
	max-width: 280px;
	margin: 0 auto;
	padding: 12px;
	border: 1px solid rgba(123, 102, 83, 0.2);
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 15px 30px rgba(66, 52, 40, 0.12);
}

.memorial-portrait {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 14px;
	background: #ece8e3;
}

.memorial-portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.memorial-portrait.is-empty::before {
	content: "\f030";
	position: absolute;
	top: 46%;
	left: 50%;
	z-index: 2;
	font-family: "Font Awesome 6 Free";
	font-size: 42px;
	font-weight: 900;
	color: #b6aea6;
	transform: translate(-50%, -70%);
}

.memorial-portrait.is-empty::after {
	content: "영정사진 준비중";
	position: absolute;
	top: 57%;
	left: 50%;
	z-index: 2;
	width: 100%;
	color: #99918a;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	transform: translateX(-50%);
}

.memorial-portrait-button {
	margin-top: 12px;
}

.memorial-symbol {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: rgba(123, 102, 83, 0.1);
	color: var(--memorial-primary);
	font-size: 26px;
}

.memorial-name {
	margin-bottom: 12px;
	color: var(--memorial-primary-dark);
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 700;
	letter-spacing: -2px;
}

.memorial-life-date {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 25px;
	padding: 8px 18px;
	border-radius: 50px;
	background: rgba(255, 255, 255, 0.75);
	color: #776c63;
	font-size: 16px;
}

.memorial-message {
	max-width: 680px;
	margin-bottom: 25px;
	color: #645b54;
	font-size: 18px;
	line-height: 1.9;
	word-break: keep-all;
}

.memorial-profile-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.memorial-profile-list li {
	padding: 8px 0;
}

.memorial-manage-menu {
	margin-top: 30px;
	padding: 18px;
	border: 1px solid var(--memorial-line);
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 10px 30px rgba(74, 58, 43, 0.05);
}

.memorial-manage-button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 82px;
	padding: 12px 8px;
	border: 1px solid var(--memorial-line);
	border-radius: 14px;
	background: #ffffff;
	color: #61564d;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.25s ease;
}

.memorial-manage-button i {
	color: var(--memorial-primary);
	font-size: 21px;
}

.memorial-manage-button:hover {
	border-color: var(--memorial-primary);
	background: var(--memorial-primary);
	color: #ffffff;
	transform: translateY(-2px);
}

.memorial-manage-button:hover i {
	color: #ffffff;
}

.memorial-section {
	padding-top: 75px;
	scroll-margin-top: 100px;
}

.memorial-section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--memorial-line);
}

.memorial-section-label {
	display: block;
	margin-bottom: 5px;
	color: var(--memorial-primary);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.memorial-section-title {
	margin: 0;
	color: var(--memorial-primary-dark);
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -1px;
}

.memorial-section-description {
	margin: 8px 0 0;
	color: #81766d;
	font-size: 15px;
}

.memorial-section-action {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 10px;
}

.memorial-count {
	color: #8c8178;
	font-size: 14px;
	white-space: nowrap;
}

.memorial-register-button {
	border-color: var(--memorial-primary);
	background: var(--memorial-primary);
	color: #ffffff;
}

.memorial-register-button:hover {
	border-color: var(--memorial-primary-dark);
	background: var(--memorial-primary-dark);
	color: #ffffff;
}

.memorial-album-card {
	position: relative;
	width: 100%;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 18px;
	background: #ece8e3;
	text-align: left;
	box-shadow: 0 8px 24px rgba(63, 49, 37, 0.08);
}

.memorial-album-image {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #ece8e3;
}

.memorial-album-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.memorial-album-image.is-empty::before {
	content: "\f03e";
	position: absolute;
	top: 48%;
	left: 50%;
	z-index: 2;
	font-family: "Font Awesome 6 Free";
	font-size: 36px;
	font-weight: 900;
	color: #b7afa8;
	transform: translate(-50%, -70%);
}

.memorial-album-image.is-empty::after {
	content: "사진 준비중";
	position: absolute;
	top: 59%;
	left: 50%;
	z-index: 2;
	width: 100%;
	color: #9a928b;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	transform: translateX(-50%);
}

.memorial-album-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(35, 29, 24, 0);
	transition: background 0.3s ease;
}

.memorial-album-zoom {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--memorial-primary-dark);
	font-size: 20px;
	opacity: 0;
	transform: scale(0.8);
	transition: all 0.3s ease;
}

.memorial-album-caption {
	padding: 17px 18px;
	background: #ffffff;
}

.memorial-album-caption strong {
	display: block;
	overflow: hidden;
	color: #514941;
	font-size: 16px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.memorial-album-caption span {
	display: block;
	margin-top: 4px;
	color: #968c83;
	font-size: 13px;
}

.memorial-album-card:hover .memorial-album-image img {
	transform: scale(1.07);
}

.memorial-album-card:hover .memorial-album-overlay {
	background: rgba(35, 29, 24, 0.34);
}

.memorial-album-card:hover .memorial-album-zoom {
	opacity: 1;
	transform: scale(1);
}

.memorial-media-card {
	height: 100%;
	padding: 28px;
	border: 1px solid var(--memorial-line);
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 8px 25px rgba(65, 50, 39, 0.05);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.memorial-media-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 15px 35px rgba(65, 50, 39, 0.1);
}

.memorial-media-icon {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 16px;
	background: var(--memorial-light);
	color: var(--memorial-primary);
	font-size: 23px;
}

.memorial-media-title {
	margin-bottom: 5px;
	color: #4f4740;
	font-size: 18px;
	font-weight: 700;
}

.memorial-media-info {
	margin: 0;
	color: #978c83;
	font-size: 13px;
}

.memorial-media-description {
	margin: 18px 0;
	color: #746a62;
	font-size: 14px;
	line-height: 1.7;
}

.memorial-audio {
	width: 100%;
	height: 42px;
}

.memorial-video-wrap {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	background: #1f1d1b;
}

.memorial-video-wrap video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #1f1d1b;
	object-fit: cover;
}

.memorial-tribute-card {
	height: 100%;
	padding: 25px;
	border: 1px solid var(--memorial-line);
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 8px 24px rgba(65, 50, 39, 0.05);
}

.memorial-tribute-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 18px;
}

.memorial-tribute-writer {
	display: flex;
	align-items: center;
	gap: 10px;
}

.memorial-tribute-writer-icon {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--memorial-light);
	color: var(--memorial-primary);
}

.memorial-tribute-writer strong {
	display: block;
	color: #514941;
	font-size: 15px;
}

.memorial-tribute-writer span {
	display: block;
	margin-top: 2px;
	color: #9b9188;
	font-size: 12px;
}

.memorial-tribute-date {
	color: #a0978f;
	font-size: 12px;
	white-space: nowrap;
}

.memorial-tribute-title {
	margin-bottom: 10px;
	color: var(--memorial-primary-dark);
	font-size: 18px;
	font-weight: 700;
}

.memorial-tribute-content {
	margin: 0;
	color: #736960;
	font-size: 15px;
	line-height: 1.85;
	word-break: keep-all;
}

.memorial-empty-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	padding: 30px;
	border: 1px dashed #d7cec6;
	border-radius: 18px;
	background: #f8f6f3;
	color: #9a9189;
	text-align: center;
}

.memorial-empty-box i {
	margin-bottom: 15px;
	font-size: 38px;
	color: #b6ada5;
}

.memorial-empty-box strong {
	display: block;
	margin-bottom: 5px;
	color: #80766e;
	font-size: 17px;
}

.memorial-footer-message {
	margin-top: 80px;
	padding: 45px 25px;
	border-radius: 24px;
	background: var(--memorial-primary-dark);
	color: rgba(255, 255, 255, 0.88);
	text-align: center;
}

.memorial-footer-message i {
	display: block;
	margin-bottom: 15px;
	font-size: 30px;
	color: rgba(255, 255, 255, 0.75);
}

.memorial-footer-message p {
	margin: 0;
	font-size: 18px;
	line-height: 1.8;
	word-break: keep-all;
}

.memorial-footer-message span {
	display: block;
	margin-top: 12px;
	color: rgba(255, 255, 255, 0.58);
	font-size: 14px;
}

.memorial-modal-image {
	display: block;
	max-width: 100%;
	max-height: 75vh;
	margin: 0 auto;
	object-fit: contain;
}

.memorial-modal-person {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 15px;
	border: 1px solid #e8e0d9;
	border-radius: 12px;
	background: #f9f7f5;
	color: #675c53;
	font-size: 14px;
}

.memorial-modal-person i {
	color: var(--memorial-primary);
	font-size: 18px;
}

.memorial-file-box {
	padding: 18px;
	border: 1px dashed #cfc5bc;
	border-radius: 12px;
	background: #faf8f6;
}

.memorial-file-info {
	margin-top: 10px;
	color: #8c8279;
	font-size: 13px;
}

.memorial-preview {
	display: none;
	width: 100%;
	max-width: 220px;
	max-height: 280px;
	margin: 15px auto 0;
	border-radius: 12px;
	object-fit: cover;
}

.memorial-help {
	margin-top: 7px;
	color: #938980;
	font-size: 12px;
	line-height: 1.6;
}

.memorial-form-required {
	color: #dc3545;
}

@media (max-width: 991.98px) {
	.memorial-hero {
		padding: 38px 30px;
		text-align: center;
	}

	.memorial-message {
		margin-right: auto;
		margin-left: auto;
	}

	.memorial-profile-list {
		justify-content: center;
	}
}

@media (max-width: 767.98px) {
	.memorial-person-menu {
		padding: 16px;
		border-radius: 16px;
	}

	.memorial-person-menu-title {
		display: block;
	}

	.memorial-person-menu-title p {
		margin-top: 5px;
	}

	.memorial-person-button {
		padding: 7px 14px 7px 7px;
		font-size: 14px;
	}

	.memorial-person-thumb {
		width: 38px;
		height: 38px;
	}

	.memorial-hero {
		padding: 30px 20px;
		border-radius: 18px;
	}

	.memorial-portrait-wrap {
		max-width: 230px;
	}

	.memorial-name {
		font-size: 34px;
	}

	.memorial-life-date {
		font-size: 14px;
	}

	.memorial-message {
		font-size: 16px;
		line-height: 1.8;
	}

	.memorial-manage-menu {
		padding: 12px;
	}

	.memorial-manage-button {
		min-height: 72px;
		font-size: 12px;
	}

	.memorial-manage-button i {
		font-size: 19px;
	}

	.memorial-section {
		padding-top: 55px;
	}

	.memorial-section-heading {
		display: block;
	}

	.memorial-section-title {
		font-size: 25px;
	}

	.memorial-section-action {
		justify-content: space-between;
		margin-top: 15px;
	}

	.memorial-media-card {
		padding: 22px;
	}

	.memorial-tribute-card {
		padding: 20px;
	}

	.memorial-footer-message {
		margin-top: 60px;
		padding: 35px 20px;
	}

	.memorial-footer-message p {
		font-size: 16px;
	}
}