/* Family Memorial Obituary - 기본 스타일 */

.fmo-form-wrap {
	max-width: 640px;
	margin: 0 auto;
}

.fmo-form h3 {
	margin: 28px 0 12px;
	font-size: 18px;
}
.fmo-form h3:first-child {
	margin-top: 0;
}

.fmo-form label {
	display: block;
	margin-bottom: 16px;
	font-weight: 600;
	font-size: 14px;
}

.fmo-form input[type="text"],
.fmo-form input[type="email"],
.fmo-form input[type="password"],
.fmo-form input[type="date"],
.fmo-form textarea {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-weight: 400;
	font-size: 15px;
	box-sizing: border-box;
}

.fmo-form input[type="file"] {
	display: block;
	margin-top: 6px;
}

.fmo-note {
	font-size: 13px;
	color: #666;
	margin: -6px 0 12px;
	font-weight: 400;
}

.fmo-submit-btn {
	background: #2c2c2a;
	color: #fff;
	padding: 12px 28px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 16px;
	margin-top: 8px;
}
.fmo-submit-btn:hover {
	opacity: 0.85;
}

.fmo-errors {
	background: #fcebeb;
	border: 1px solid #e24b4a;
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
	color: #791f1f;
}
.fmo-errors ul {
	margin: 0;
	padding-left: 18px;
}

.fmo-success {
	background: #eaf3de;
	border: 1px solid #639922;
	padding: 16px;
	border-radius: 6px;
	color: #27500a;
}
.fmo-success a {
	color: #27500a;
	font-weight: 600;
	text-decoration: underline;
}

/* 목록 그리드 */
.fmo-list-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}

.fmo-card {
	text-decoration: none;
	color: inherit;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	overflow: hidden;
	display: block;
	transition: box-shadow 0.2s ease;
	background: #fff;
}
.fmo-card:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.fmo-card-photo img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}

.fmo-card-photo-placeholder {
	width: 100%;
	height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f1efe8;
	color: #888780;
	font-size: 13px;
	text-align: center;
}

.fmo-card-name {
	font-weight: 600;
	padding: 10px 12px 0;
	font-size: 16px;
}

.fmo-card-years,
.fmo-card-loc {
	padding: 2px 12px 10px;
	font-size: 13px;
	color: #666;
}

/* 상세 페이지 메타 정보 */
.fmo-single-meta {
	background: #f7f7f5;
	padding: 16px 18px;
	border-radius: 8px;
	margin-bottom: 24px;
	font-size: 14px;
}
.fmo-single-meta p {
	margin: 4px 0;
}

.fmo-notice-block {
	border-left: 3px solid #ba7517;
	background: #faeeda;
	padding: 12px 16px;
	border-radius: 0 8px 8px 0;
	margin-bottom: 24px;
	font-size: 14px;
	color: #412402;
}
.fmo-notice-block strong {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
}
.fmo-notice-block p {
	margin: 0;
}

/* 부고 페이지의 가족 메모리 페이지 안내 박스 */
.fmo-fm-promo {
	background: #f2eee5;
	border: 1px solid #ddd3ba;
	border-radius: 10px;
	padding: 20px 22px;
	margin-bottom: 24px;
}
.fmo-fm-promo h3 {
	margin: 0 0 6px;
	font-size: 18px;
}
.fmo-fm-promo > p {
	margin: 0 0 12px;
	color: #5f5e5a;
}
.fmo-fm-features {
	margin: 0 0 16px;
	padding-left: 20px;
	font-size: 14px;
	color: #3d3c38;
}
.fmo-fm-features li {
	margin-bottom: 4px;
}
.fmo-fm-promo .fmo-submit-btn {
	display: inline-block;
	text-decoration: none;
}

/* 내 부고 목록 (수정용) */
.fmo-my-list ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.fmo-my-item {
	padding: 14px 16px;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	margin-bottom: 10px;
}
.fmo-my-item-row {
	display: flex;
	align-items: center;
	gap: 12px;
}
.fmo-my-name {
	font-weight: 600;
	flex: 1;
}
.fmo-my-status {
	font-size: 12px;
	padding: 3px 10px;
	border-radius: 999px;
	background: #f1efe8;
	color: #5f5e5a;
}
.fmo-status-publish {
	background: #eaf3de;
	color: #27500a;
}
.fmo-status-pending,
.fmo-status-draft {
	background: #faeeda;
	color: #633806;
}
.fmo-edit-link {
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	color: #185fa5;
}

.fmo-current-photo {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 8px 0 10px;
}
.fmo-current-photo img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 6px;
}
.fmo-current-photo span {
	font-size: 12px;
	color: #666;
	font-weight: 400;
}

/* 부고 목록의 가족 메모리 페이지 생성/링크 컨트롤 */
.fmg-control {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #eee;
	font-size: 13px;
	color: #5f5e5a;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.fmg-control-exists strong {
	color: #2c2c2a;
}
.fmg-control a,
.fmg-control button.fmo-edit-link {
	color: #185fa5 !important;
	background: none !important;
	border: none !important;
	text-decoration: underline;
}
.fmg-control a:hover,
.fmg-control a:focus,
.fmg-control button.fmo-edit-link:hover,
.fmg-control button.fmo-edit-link:focus {
	color: #0f3d6e !important;
	background: none !important;
}

/* 게스트 입장(비밀번호) 화면 */
.fmg-gate {
	max-width: 480px;
	margin: 0 auto;
	text-align: center;
}
.fmg-gate-intro {
	color: #5f5e5a;
	margin-bottom: 20px;
}
.fmg-gate-form {
	text-align: left;
}
.fmg-gate-form input[type="text"] {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
	box-sizing: border-box;
}
.fmg-gate-form label {
	display: block;
	margin-bottom: 16px;
	font-weight: 600;
	font-size: 14px;
}

/* 갤러리 화면 */
.fmg-gallery-wrap {
	max-width: 1100px;
	margin: 0 auto;
}
.fmg-welcome {
	font-weight: 600;
	margin-bottom: 16px;
}

.fmg-page-grid {
	display: grid;
	grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr);
	gap: 28px;
	align-items: start;
}
@media (max-width: 800px) {
	.fmg-page-grid {
		grid-template-columns: 1fr;
	}
}
.fmg-main-full {
	width: 100%;
}

.fmg-cloud-bottom {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid #e5e5e5;
	max-width: 480px;
}
.fmg-cloud-bottom .fmg-widget {
	margin: 0;
}

.fmg-upload-form {
	background: #f7f7f5;
	padding: 16px;
	border-radius: 10px;
	margin-bottom: 24px;
	display: flex;
	align-items: flex-end;
	gap: 16px;
	flex-wrap: wrap;
}
.fmg-upload-form label {
	font-weight: 600;
	font-size: 14px;
	flex: 1;
	min-width: 220px;
}
.fmg-upload-form input[type="file"] {
	display: block;
	margin-top: 6px;
}

/* 사이드바 위젯 */
.fmg-sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: sticky;
	top: 20px;
}
.fmg-widget {
	background: #f7f7f5;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 18px;
}
.fmg-widget h3 {
	margin: 0 0 6px;
	font-size: 16px;
}
.fmg-widget .fmo-note {
	margin: 0 0 12px;
}
.fmg-widget-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 10px;
}
.fmg-widget-form input[type="text"],
.fmg-widget-form input[type="email"],
.fmg-widget-form input[type="number"],
.fmg-widget-form select,
.fmg-widget-form textarea {
	display: block;
	width: 100%;
	margin-top: 5px;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 400;
	box-sizing: border-box;
}
.fmg-widget-form .fmo-submit-btn {
	width: 100%;
	padding: 10px;
	font-size: 14px;
	margin-top: 4px;
}

.fmg-album {
	display: block;
}

/* Family Cloud 앨범(폴더) 목록 */
.fmg-folder-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px;
}
.fmg-folder-card {
	display: block;
	text-decoration: none;
	color: inherit;
	background: #f7f7f5;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 20px 14px;
	text-align: center;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.fmg-folder-card:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}
.fmg-folder-icon {
	font-size: 34px;
	margin-bottom: 8px;
}
.fmg-folder-name {
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 4px;
	word-break: break-word;
}
.fmg-folder-count {
	font-size: 12px;
	color: #888780;
}
.fmg-slideshow-btn {
	display: inline-block;
	margin-bottom: 16px;
	padding: 10px 20px;
	background: #2c2c2a;
	color: #fff !important;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
}
.fmg-slideshow-btn:hover {
	opacity: 0.85;
}

.fmg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 14px;
}

/* 라이트박스(슬라이드쇼) */
.fmg-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	z-index: 999999;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}
.fmg-lb-img {
	max-width: 90vw;
	max-height: 80vh;
	object-fit: contain;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.fmg-lb-caption {
	color: #fff;
	margin-top: 14px;
	font-size: 14px;
	text-align: center;
	max-width: 90vw;
}
.fmg-lb-close {
	position: absolute;
	top: 16px;
	right: 24px;
	background: none;
	border: none;
	color: #fff;
	font-size: 36px;
	line-height: 1;
	cursor: pointer;
}
.fmg-lb-prev,
.fmg-lb-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: #fff;
	font-size: 22px;
	padding: 14px 16px;
	cursor: pointer;
	border-radius: 6px;
}
.fmg-lb-prev {
	left: 16px;
}
.fmg-lb-next {
	right: 16px;
}
.fmg-lb-prev:hover,
.fmg-lb-next:hover,
.fmg-lb-close:hover {
	background: rgba(255, 255, 255, 0.2);
}
@media (max-width: 600px) {
	.fmg-lb-prev,
	.fmg-lb-next {
		padding: 10px 12px;
		font-size: 18px;
	}
}

/* 관리자(부고 작성자) 전용 대시보드 */
.fmg-owner-panel {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 2px dashed #ccc;
}
.fmg-owner-panel h2 {
	font-size: 18px;
	margin-bottom: 16px;
}
.fmg-owner-panel h3 {
	font-size: 15px;
	margin: 24px 0 10px;
}
.fmg-owner-table-wrap {
	overflow-x: auto;
	margin-bottom: 10px;
}
.fmg-owner-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	min-width: 640px;
}
.fmg-owner-table th,
.fmg-owner-table td {
	border: 1px solid #e5e5e5;
	padding: 8px 10px;
	text-align: left;
	vertical-align: top;
}
.fmg-owner-table th {
	background: #f7f7f5;
	font-weight: 600;
}
.fmg-photo {
	position: relative;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}
.fmg-photo-select {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	background: rgba(255, 255, 255, 0.85);
	border-radius: 6px;
	padding: 4px;
	display: block;
}
.fmg-photo-select input {
	width: 18px;
	height: 18px;
	margin: 0;
	cursor: pointer;
}

/* 이용 기간 만료 화면 */
.fmg-rsvp-bio {
	line-height: 1.7;
	color: #3d3c38;
	margin: 16px 0;
}

/* 앨범 관리자 목록 + 초대 */
.fmg-admins-block {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	background: #f7f7f5;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 20px;
	font-size: 14px;
}
.fmg-admin-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 999px;
	padding: 3px 10px;
	font-size: 13px;
}
.fmg-admin-pending {
	opacity: 0.65;
	font-style: italic;
}
.fmg-admin-remove {
	border: none;
	background: none;
	color: #a32d2d;
	cursor: pointer;
	padding: 0 0 0 2px;
	font-size: 14px;
	line-height: 1;
}
.fmg-invite-form {
	display: flex;
	gap: 6px;
	margin-left: auto;
}
.fmg-invite-form input[type="email"] {
	padding: 6px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 13px;
}

.fmg-expired {
	max-width: 560px;
	margin: 60px auto;
	text-align: center;
	background: #f7f7f5;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	padding: 40px 32px;
}
.fmg-expired h2 {
	margin: 0 0 12px;
	font-size: 22px;
}
.fmg-expired p {
	color: #5f5e5a;
	margin-bottom: 24px;
}
.fmg-expired-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.fmo-submit-btn-secondary {
	background: #fff !important;
	color: #2c2c2a !important;
	border: 1px solid #2c2c2a !important;
}
.fmg-photo img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}
.fmg-photo-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 10px;
	font-size: 12px;
	color: #5f5e5a;
	gap: 8px;
}
.fmg-photo-meta span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.fmg-delete-form button {
	background: none;
	border: none;
	color: #a32d2d;
	font-size: 12px;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
	white-space: nowrap;
}

/* 동영상 주문 사진 폴더 (가족 메모리 페이지, 부고 작성자 전용) */
.fmg-video-folder {
	margin-top: 32px;
	padding: 18px;
	border: 2px dashed #b7c4d4;
	border-radius: 8px;
	background: #f7f9fc;
}
.fmg-video-folder h3 {
	margin: 0 0 8px;
	font-size: 16px;
}
.fmg-video-folder-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 10px 0 14px;
}
.fmg-danger-btn {
	color: #a32d2d !important;
	border-color: #a32d2d !important;
}
.fmg-video-folder-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 10px;
}
.fmg-video-folder-item {
	position: relative;
}
.fmg-video-folder-item img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}
.fmg-video-folder-del {
	position: absolute;
	top: 4px;
	right: 4px;
	margin: 0;
}
.fmg-video-folder-del button {
	background: #a32d2d;
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 22px;
	height: 22px;
	font-size: 14px;
	line-height: 1;
	padding: 0;
	cursor: pointer;
}

/* 사진 업로더 진행률 */
.fmg-upload-hint {
	display: block;
	font-weight: 400;
	font-size: 12px;
	color: #666;
	margin-top: 6px;
}
.fmg-upload-progress {
	flex-basis: 100%;
	width: 100%;
}
.fmg-upload-progress[hidden],
.fmg-upload-done[hidden] {
	display: none !important;
}
.fmg-upload-bar {
	height: 10px;
	background: #e3e3df;
	border-radius: 5px;
	overflow: hidden;
}
.fmg-upload-bar span {
	display: block;
	height: 100%;
	width: 0;
	background: #2e5a88;
	transition: width 0.2s ease;
}
.fmg-upload-status {
	margin: 8px 0 0;
	font-size: 14px;
}
.fmg-upload-errors {
	margin: 8px 0 0;
	padding-left: 18px;
	font-size: 13px;
	color: #a32d2d;
}
.fmg-upload-errors:empty {
	display: none;
}
.fmg-upload-done {
	margin-top: 10px;
}

/* ===========================================================
 * 부고 페이지 (RSVP 포함) — 부고 70% + RSVP 사이드바 30%, 아래 명단
 * 가족 메모리 페이지의 .fmg-page-grid / .fmg-sidebar / .fmg-widget 을 그대로 씁니다.
 * =========================================================== */
.fmo-obit-layout {
	container-type: inline-size; /* 테마 본문 폭 기준으로 2단/1단을 정합니다 */
	container-name: fmo-obit;
}
/* 블록 테마는 본문을 약 650px로 좁게 묶어두므로, 부고 페이지만 넓은 폭(wide)을 씁니다. (클래식 테마에는 영향 없음) */
.is-layout-constrained > .fmo-obit-layout {
	max-width: var(--wp--style--global--wide-size, 1200px);
}
.fmo-obit-grid {
	grid-template-columns: minmax(0, 7fr) minmax(260px, 3fr);
	gap: 32px;
}
.fmo-obit-sidebar {
	position: static; /* 폼이 길어서 따라 내려오면 아래쪽이 잘립니다 */
}
.fmo-obit-body > *:first-child {
	margin-top: 0;
}
/* 테마 본문이 좁거나 휴대폰이면 1단: 부고 → RSVP → 명단 순서 */
@container fmo-obit (max-width: 720px) {
	.fmo-obit-grid {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 800px) {
	.fmo-obit-grid {
		grid-template-columns: 1fr;
	}
}

/* RSVP 사이드바 위젯 */
.fmo-rsvp-widget {
	scroll-margin-top: 80px;
}
.fmo-rsvp-summary {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 8px;
	margin: 8px 0 12px;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	font-size: 14px;
}
.fmo-rsvp-summary strong {
	font-size: 22px;
	line-height: 1;
}
.fmo-rsvp-summary span {
	margin-left: auto;
	font-size: 12px;
	color: #2e5a88;
}
.fmo-rsvp-widget .fmo-success,
.fmo-rsvp-widget .fmo-errors {
	font-size: 13px;
	margin-bottom: 10px;
}
.fmo-rsvp-row {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 8px;
}
.fmo-rsvp-form input[type="tel"] {
	display: block;
	width: 100%;
	margin-top: 5px;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-weight: 400;
	box-sizing: border-box;
}
/* 아이폰은 16px 미만 입력칸을 누르면 화면을 확대하므로, 휴대폰에서는 16px */
@media (max-width: 800px) {
	.fmo-rsvp-form input,
	.fmo-rsvp-form select,
	.fmo-rsvp-form textarea {
		font-size: 16px !important;
	}
}
.fmo-rsvp-visibility {
	border: 1px solid #d8d8d2;
	border-radius: 8px;
	background: #fff;
	padding: 8px 10px 4px;
	margin: 4px 0 12px;
	min-width: 0;
}
.fmo-rsvp-visibility legend {
	font-weight: 600;
	font-size: 13px;
	padding: 0 4px;
}
.fmo-rsvp-form .fmo-radio {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-weight: 400;
	font-size: 12.5px;
	line-height: 1.45;
	margin: 6px 0 8px;
	cursor: pointer;
}
.fmo-rsvp-form .fmo-radio input {
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	flex-shrink: 0;
}
.fmo-rsvp-visibility .fmo-note {
	font-size: 11.5px;
	margin: 4px 0 6px;
}

/* 아래 전체 폭: 참석 예정 명단 */
.fmo-rsvp-list-section {
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid #e5e5e5;
	scroll-margin-top: 80px;
}
.fmo-rsvp-list-section h2 {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 12px;
	margin: 0 0 14px;
	font-size: 22px;
}
.fmo-rsvp-list-count {
	font-size: 13px;
	font-weight: 400;
	color: #666;
}
.fmo-rsvp-cards {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}
.fmo-rsvp-cards li {
	background: #f7f7f5;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 12px 14px;
	margin: 0;
}
.fmo-rsvp-card-head {
	display: flex;
	flex-wrap: wrap; /* 이름이 길면 인원이 아래 줄로 내려갑니다 */
	justify-content: space-between;
	align-items: baseline;
	gap: 2px 8px;
}
.fmo-rsvp-card-head strong {
	font-size: 16px;
	line-height: 1.35;
	word-break: keep-all; /* 한글 이름이 글자 중간에서 끊기지 않게 */
}
.fmo-rsvp-count {
	font-size: 12px;
	color: #666;
	white-space: nowrap;
}
.fmo-rsvp-cards p {
	margin: 6px 0 0;
	font-size: 14px;
	color: #444;
	line-height: 1.5;
}

/* 작성자·관리자용 전체 응답 표 */
#fmo-rsvp-owner {
	scroll-margin-top: 80px;
}
#fmo-rsvp-owner .fmg-owner-table td:first-child,
#fmo-rsvp-owner .fmg-owner-table td:nth-child(9) {
	white-space: nowrap;
}
.fmo-rsvp-del {
	background: none;
	border: 1px solid #a32d2d;
	color: #a32d2d;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	line-height: 1;
	padding: 0;
	cursor: pointer;
}

/* 부고 알리기(공유) 위젯 */
.fmo-share-preview {
	display: block;
	margin: 8px 0 8px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #ddd3ba;
	background: #f2eee5;
}
.fmo-share-preview img {
	display: block;
	width: 100%;
	height: auto;
}
.fmo-share-buttons {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.fmo-share-buttons .fmo-submit-btn,
.fmo-share-buttons .fmo-submit-btn-secondary {
	display: block;
	width: 100%;
	margin: 0;
	text-align: center;
	text-decoration: none;
	box-sizing: border-box;
	font-size: 14px;
	padding: 10px;
}
.fmo-share-buttons [hidden] {
	display: none !important;
}
.fmo-share-status:empty {
	display: none;
}
/* 내 부고 목록(관리 화면): 왼쪽에 작은 카드 썸네일, 오른쪽에 안내·버튼 */
.fmo-share-manage {
	display: block !important;
}
.fmo-share-manage h3 {
	margin: 0 0 8px;
	font-size: 14px;
}
.fmo-share-manage .fmo-share-body {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}
.fmo-share .fmo-share-manage .fmo-share-preview,
.fmo-share-manage .fmo-share-preview {
	flex: 0 0 96px;
	width: 96px !important;
	max-width: 96px !important;
	margin: 0 !important;
}
.fmo-share-manage .fmo-share-preview img {
	width: 96px !important;
	max-width: 96px !important;
	height: auto !important;
}
.fmo-share-manage .fmo-share-info {
	flex: 1 1 auto;
	min-width: 0;
}
.fmo-share-manage .fmo-share-info p {
	margin: 0 0 6px;
	line-height: 1.5;
}
.fmo-share-manage .fmo-share-buttons {
	flex-direction: row;
	flex-wrap: wrap;
}
.fmo-share-manage .fmo-share-buttons > * {
	width: auto !important;
	padding: 8px 12px !important;
}
@media (max-width: 480px) {
	.fmo-share-manage .fmo-share-preview,
	.fmo-share-manage .fmo-share-preview img {
		flex-basis: 72px;
		width: 72px !important;
		max-width: 72px !important;
	}
}
/* 내 부고 목록(.fmg-control)의 "링크는 파란 글자" 규칙보다 우선하도록 */
.fmo-share .fmo-share-buttons a.fmo-submit-btn-secondary,
.fmo-share .fmo-share-buttons a.fmo-submit-btn-secondary:visited,
.fmo-share .fmo-share-buttons a.fmo-submit-btn-secondary:hover,
.fmo-share .fmo-share-buttons a.fmo-submit-btn-secondary:focus {
	color: #2c2c2a !important;
	background: #fff !important;
	border: 1px solid #2c2c2a !important;
	text-decoration: none !important;
	font-weight: 400;
}
.fmo-share a.fmo-share-preview {
	border: 1px solid #ddd3ba !important;
	background: #f2eee5 !important;
}
.fmo-share .fmo-share-buttons a.fmo-submit-btn:not(.fmo-submit-btn-secondary),
.fmo-share .fmo-share-buttons a.fmo-submit-btn:not(.fmo-submit-btn-secondary):visited,
.fmo-share .fmo-share-buttons a.fmo-submit-btn:not(.fmo-submit-btn-secondary):hover,
.fmo-share .fmo-share-buttons a.fmo-submit-btn:not(.fmo-submit-btn-secondary):focus {
	color: #fff !important;
	background: #2c2c2a !important;
	border: 1px solid #2c2c2a !important;
	text-decoration: none !important;
}

/* 부고 등록·수정: 부고 카드에 넣을 이미지 선택 (고인 사진 / 사이트 이미지 / 근조 엠블럼) */
.fmo-card-image-choice {
	border: 1px solid #ddd3ba;
	border-radius: 8px;
	background: #faf8f3;
	padding: 10px 14px 12px;
	margin: 0 0 18px;
	scroll-margin-top: 80px;
}
.fmo-card-image-choice legend {
	font-weight: 600;
	font-size: 14px;
	padding: 0 4px;
}
.fmo-card-image-options {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.fmo-form .fmo-card-image-option,
.fmo-card-image-option {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	width: 92px;
	margin: 0;
	cursor: pointer;
	font-weight: 400;
}
.fmo-card-image-option input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.fmo-card-image-frame {
	position: relative;
	display: block;
	width: 84px;
	height: 104px;
	border-radius: 42px 42px 6px 6px; /* 카드와 같은 아치 모양 */
	border: 3px solid #e5e5e5;
	box-sizing: border-box;
	overflow: hidden;
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.fmo-card-image-frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.fmo-card-emblem-thumb {
	display: block;
	width: 100%;
	height: 100%;
	color: #5f5e5a;
	font-size: 19px;
	text-align: center;
	line-height: 98px;
	font-family: serif;
}
.fmo-card-photo-thumb {
	font-size: 28px;
	opacity: 0.6;
}
.fmo-card-image-check {
	display: none;
	position: absolute;
	right: 4px;
	bottom: 4px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #2c2c2a;
	color: #fff;
	font-size: 14px;
	line-height: 24px;
	text-align: center;
	font-family: sans-serif;
}
.fmo-card-image-caption {
	font-size: 12px;
	color: #5f5e5a;
	text-align: center;
	line-height: 1.3;
}
/* 선택된 이미지: 진한 테두리 + ✓ 표시 + 굵은 글씨 */
.fmo-card-image-option input:checked + .fmo-card-image-frame {
	border-color: #2c2c2a;
	box-shadow: 0 0 0 2px #faf8f3, 0 0 0 4px #2c2c2a;
}
.fmo-card-image-option input:checked + .fmo-card-image-frame .fmo-card-image-check {
	display: block;
}
.fmo-card-image-option input:checked ~ .fmo-card-image-caption {
	color: #2c2c2a;
	font-weight: 700;
}
.fmo-card-image-option input:focus-visible + .fmo-card-image-frame {
	outline: 2px solid #2e5a88;
	outline-offset: 4px;
}
.fmo-card-image-selected {
	margin: 10px 0 0;
	font-size: 14px;
}
.fmo-card-used {
	margin: 4px 0 6px;
}

/* 부고 페이지 사이드바: 카드는 작은 썸네일로 (누르면 새 창에서 크게) */
.fmo-obit-sidebar .fmo-share-preview {
	width: 150px !important;
	max-width: 150px !important;
	margin: 6px auto 10px !important;
}
.fmo-obit-sidebar .fmo-share-preview img {
	width: 150px !important;
	max-width: 150px !important;
	height: auto !important;
}

/* 사진이 없는 부고: 근조(謹弔) 엠블럼 자리 표시 (부고 목록) */
.fmo-emblem-placeholder span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	border: 2px solid #ddd3ba;
	box-shadow: inset 0 0 0 8px #f1efe8, inset 0 0 0 9px #ddd3ba;
	color: #5f5e5a;
	font-family: serif;
	font-size: 30px;
	letter-spacing: 2px;
}

/* 사진이 없는 부고 페이지: 본문 맨 위에 기본 이미지를 아치 모양으로 */
.fmo-obit-photo {
	max-width: 280px;
	margin: 0 auto 20px;
}
.fmo-obit-photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 140px 140px 8px 8px;
	border: 6px solid #ddd3ba;
	box-sizing: border-box;
}
.fmo-obit-photo .fmo-card-photo-placeholder {
	height: 240px;
	border-radius: 10px;
}

/* ===========================================================
 * 추억 앨범 (Memory Album) — /obituary/{링크}/memories/
 * =========================================================== */
.fmo-mem {
	max-width: 900px;
	margin: 0 auto;
}
.is-layout-constrained > .fmo-mem {
	max-width: 900px;
}
.fmo-mem-head {
	text-align: center;
	margin-bottom: 20px;
}
.fmo-mem-kicker {
	margin: 0;
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #888780;
}
.fmo-mem-head h2 {
	margin: 4px 0 6px;
	font-size: 30px;
}
.fmo-mem-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 12px;
}
.fmo-mem-actions .fmo-submit-btn {
	display: inline-block;
	margin: 0;
	padding: 10px 16px;
	font-size: 14px;
	text-decoration: none;
}
.fmo-mem-actions a.fmo-submit-btn-secondary,
.fmo-mem-actions a.fmo-submit-btn-secondary:visited {
	color: #2c2c2a !important;
}
.fmo-mem-empty {
	text-align: center;
	padding: 40px 20px;
	border: 1px dashed #ddd3ba;
	border-radius: 12px;
	background: #faf8f3;
	color: #5f5e5a;
}

/* 슬라이드 */
.fmo-mem-viewer {
	position: relative;
	border-radius: 14px;
	background: #f2eee5;
	border: 1px solid #ddd3ba;
	overflow: hidden;
	outline: none;
}
.fmo-mem-viewer:focus-visible {
	box-shadow: 0 0 0 3px #2e5a88;
}
.fmo-mem-slide[hidden] {
	display: none !important;
}
.fmo-mem-photos {
	position: relative;
	height: min(62vh, 560px);
	background: #1f1e1c;
}
.fmo-mem-photo {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: contain;
	opacity: 0;
	transition: opacity 0.9s ease;
}
.fmo-mem-photo.is-active {
	opacity: 1;
}
.fmo-mem-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.fmo-mem-dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
}
.fmo-mem-dots button.is-active {
	background: #fff;
}
.fmo-mem-text {
	padding: 22px 26px 12px;
	background: #faf8f3;
}
.fmo-mem-text h3 {
	margin: 0 0 10px;
	font-size: 20px;
}
.fmo-mem-story {
	font-size: 16px;
	line-height: 1.75;
	color: #3d3c38;
	word-break: keep-all;
	white-space: normal;
}
.fmo-mem-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 16px 16px;
	background: #faf8f3;
}
.fmo-mem-nav button {
	min-width: 110px;
	padding: 10px 16px;
	border: 1px solid #2c2c2a;
	border-radius: 24px;
	background: #fff;
	color: #2c2c2a;
	font-size: 15px;
	cursor: pointer;
}
.fmo-mem-nav button:hover {
	background: #2c2c2a;
	color: #fff;
}
.fmo-mem-counter {
	font-size: 14px;
	color: #5f5e5a;
}
@media (max-width: 600px) {
	.fmo-mem-photos {
		height: 52vh;
	}
	.fmo-mem-nav button {
		min-width: 0;
	}
	.fmo-mem-nav button span {
		display: none; /* 휴대폰에서는 ‹ › 만 */
	}
	.fmo-mem-text {
		padding: 18px 16px 8px;
	}
}

/* 올리기·수정 폼 */
.fmo-mem-form-box {
	margin-top: 32px;
	padding: 22px;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	background: #fff;
	scroll-margin-top: 80px;
}
.fmo-mem-form-box h3 {
	margin: 0 0 8px;
}
.fmo-mem-email-note {
	display: block;
	margin-top: 6px;
	font-weight: 400;
}
.fmo-mem-form textarea,
.fmo-mem-form input[type="text"],
.fmo-mem-form input[type="email"] {
	font-size: 16px;
}
.fmo-mem-label {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
}
.fmo-mem-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.fmo-mem-thumb {
	position: relative;
	display: block;
	width: 84px;
	height: 84px;
	margin: 0 !important;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	font-weight: 400;
}
.fmo-mem-thumb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
}
.fmo-mem-thumb input {
	position: absolute;
	opacity: 0;
}
.fmo-mem-thumb-x {
	position: absolute;
	inset: auto 0 0 0;
	padding: 3px 0;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 11px;
	text-align: center;
}
.fmo-mem-thumb input:checked ~ img {
	opacity: 0.3;
}
.fmo-mem-thumb input:checked ~ .fmo-mem-thumb-x {
	background: #a32d2d;
}
.fmo-mem-thumb.is-over {
	outline: 3px solid #a32d2d;
	opacity: 0.5;
}
.fmo-mem-current,
.fmo-mem-new-previews {
	margin: 0 0 14px;
}
.fmo-mem-new-previews:empty {
	display: none;
}
.fmo-mem-new-previews {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.fmo-mem-file {
	margin-bottom: 8px !important;
}
.fmo-mem-progress .fmg-upload-status.is-error {
	color: #a32d2d;
}
.fmo-mem-resend {
	margin-top: 18px;
	font-size: 14px;
	scroll-margin-top: 80px;
}
.fmo-mem-resend summary {
	cursor: pointer;
	color: #185fa5;
}
.fmo-mem-resend form {
	margin-top: 10px;
}

/* 상태 표시 */
.fmo-mem-status {
	display: inline-block;
	margin: 4px 0 8px;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 12px;
}
.fmo-mem-status-pending {
	background: #faeeda;
	color: #8a5a00;
}
.fmo-mem-status-approved {
	background: #eaf3de;
	color: #27500a;
}
.fmo-mem-status-hidden {
	background: #eee;
	color: #5f5e5a;
}
.fmo-mem-status a {
	color: inherit;
}

/* 가족 확인 패널 */
.fmo-mem-review {
	scroll-margin-top: 80px;
}
.fmo-mem-upgrade {
	margin: 10px 0 16px;
	padding: 14px 16px;
	border-radius: 10px;
	background: #faeeda;
}
.fmo-mem-upgrade .fmo-submit-btn {
	display: inline-block;
	text-decoration: none;
	color: #fff !important;
}
.fmo-mem-review-item {
	display: flex;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid #e5e5e5;
}
.fmo-mem-review-item .fmo-mem-thumbs {
	flex: 0 0 180px;
}
.fmo-mem-review-item .fmo-mem-thumb {
	width: 56px;
	height: 56px;
}
.fmo-mem-new-badge {
	position: absolute;
	top: 2px;
	left: 2px;
	padding: 1px 5px;
	border-radius: 4px;
	background: #a32d2d;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
}
.fmo-mem-review-body {
	flex: 1 1 auto;
	min-width: 0;
}
.fmo-mem-review-name {
	margin: 0;
}
.fmo-mem-review-body details {
	margin: 4px 0 10px;
	font-size: 14px;
}
.fmo-mem-review-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.fmo-mem-review-actions .fmo-submit-btn {
	margin: 0;
	padding: 8px 14px;
	font-size: 13px;
}
.fmo-mem-need-upgrade {
	font-size: 13px;
	color: #8a5a00;
	align-self: center;
}
.fmo-mem-review-hidden {
	opacity: 0.65;
}
@media (max-width: 600px) {
	.fmo-mem-review-item {
		flex-direction: column;
	}
	.fmo-mem-review-item .fmo-mem-thumbs {
		flex-basis: auto;
	}
}

/* 부고 페이지 사이드바 위젯 */
.fmo-mem-widget-cover {
	display: block;
	margin: 6px 0 8px;
	border-radius: 8px;
	overflow: hidden;
}
.fmo-mem-widget-cover img {
	display: block;
	width: 100% !important;
	height: 150px !important;
	object-fit: cover;
}
.fmo-mem-widget .fmo-share-buttons a.fmo-submit-btn {
	display: block;
	margin: 0;
	text-align: center;
	text-decoration: none;
	font-size: 14px;
	padding: 10px;
}
.fmo-mem-widget .fmo-share-buttons a.fmo-submit-btn:not(.fmo-submit-btn-secondary) {
	color: #fff !important;
}
.fmo-mem-widget .fmo-share-buttons a.fmo-submit-btn-secondary {
	color: #2c2c2a !important;
}

/* 가족 메모리 페이지: TV 버튼 */
.fmg-tv-btn {
	display: inline-block;
	margin-left: 8px;
	text-decoration: none;
	background: #fff !important;
	color: #2c2c2a !important;
	border: 1px solid #2c2c2a !important;
}

/* 부고 페이지 왼쪽(본문 아래)의 부고 카드·알리기: 가로 배치, 참석 예정 명단 바로 위 */
.fmo-obit-main .fmo-share-inline {
	margin: 28px 0 0;
	padding: 18px 20px;
}
.fmo-obit-main .fmo-share-inline h3 {
	margin: 0 0 12px;
	font-size: 17px;
}
.fmo-obit-main .fmo-share-inline .fmo-share-preview,
.fmo-obit-main .fmo-share-inline .fmo-share-preview img {
	flex-basis: 110px;
	width: 110px !important;
	max-width: 110px !important;
}
@media (max-width: 480px) {
	.fmo-obit-main .fmo-share-inline {
		padding: 14px;
	}
	.fmo-obit-main .fmo-share-inline .fmo-share-preview,
	.fmo-obit-main .fmo-share-inline .fmo-share-preview img {
		flex-basis: 72px;
		width: 72px !important;
		max-width: 72px !important;
	}
}

/* 부고 알리기: "문자가 전송되지 않나요?" 접이식 도움말 */
.fmo-share-help {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.55;
	color: #5f5e5a;
}
.fmo-share-help summary {
	cursor: pointer;
	color: #8a6d3b;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.fmo-share-help p {
	margin: 8px 0 4px;
}
.fmo-share-help ol {
	margin: 0;
	padding-left: 20px;
}
.fmo-share-help li {
	margin: 0 0 6px;
}
