.fwma-account-chip {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 10050;
	display: flex;
	gap: 8px;
	align-items: center;
}

.fwma-account-chip__link {
	display: inline-block;
	background: #f5c518;
	color: #111 !important;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none !important;
	padding: 8px 14px;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.fwma-account-chip__save {
	display: inline-block;
	margin: 0;
	border: 0;
	background: #111;
	color: #fff;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 8px 14px;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	cursor: pointer;
}

.fwma-account-chip__save:hover,
.fwma-account-chip__save:focus {
	background: #2a2a2a;
	outline: none;
}

.fwma-account-chip__save[hidden] {
	display: none !important;
}

.fwma-save-bar[hidden] {
	display: none !important;
}

.fwma-account-chip__link:hover {
	background: #e0b310;
	color: #111 !important;
}

.admin-bar .fwma-account-chip {
	top: 48px;
}

.fwma-page {
	max-width: 560px;
	margin: 40px auto 80px;
	padding: 0 16px;
}

.fwma-page--wide {
	max-width: 900px;
}

.fwma-page--account {
	max-width: 1100px;
}

.fwma-account {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.fwma-account-nav {
	position: sticky;
	top: 24px;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	padding: 20px 16px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.admin-bar .fwma-account-nav {
	top: 56px;
}

.fwma-account-nav__intro h1 {
	margin: 0 0 8px;
	font-size: 24px;
}

.fwma-account-nav__intro .fwma-lead {
	margin-bottom: 16px;
	font-size: 14px;
}

.fwma-account-nav__intro .fwma-public-link {
	display: block;
	margin: 8px 0 0;
}

.fwma-account-menu {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fwma-account-menu__link {
	display: block;
	padding: 10px 12px;
	border-radius: 6px;
	color: #333 !important;
	text-decoration: none !important;
	font-weight: 600;
	background: transparent;
}

.fwma-account-menu__link:hover {
	background: #f7f7f7;
}

.fwma-account-menu__link.is-active {
	background: #f5c518;
	color: #111 !important;
}

.fwma-family-menu {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid #ececec;
}

.fwma-family-menu__title {
	margin: 0 0 6px;
	padding: 0 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #888;
}

.fwma-family-menu__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 6px;
	color: #333 !important;
	text-decoration: none !important;
	font-weight: 500;
}

.fwma-family-menu__link:hover {
	background: #f7f7f7;
}

.fwma-family-menu__link.is-active {
	background: #fff6cc;
	font-weight: 600;
}

.fwma-family-menu__tag {
	font-size: 11px;
	font-weight: 600;
	color: #777;
	background: #f0f0f0;
	border-radius: 999px;
	padding: 2px 8px;
}

.fwma-managing-banner {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 8px;
	background: #fff6cc;
	border: 1px solid #f1d867;
	color: #4a3d00;
}

.fwma-access-card {
	margin-top: 20px;
}

.fwma-access-form + .fwma-access-form {
	margin-top: 8px;
}

.fwma-access-form select {
	width: 100%;
	max-width: 420px;
}

.fwma-account-main .fwma-card h2 {
	margin: 0 0 8px;
	font-size: 24px;
}

.fwma-account-panel[hidden] {
	display: none !important;
}

@media (max-width: 860px) {
	.fwma-account {
		grid-template-columns: 1fr;
	}

	.fwma-account-nav {
		position: static;
	}

	.fwma-account-menu {
		flex-direction: row;
	}

	.fwma-account-menu__link {
		flex: 1;
		text-align: center;
	}
}

.fwma-card {
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	padding: 28px 24px 32px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.fwma-card h1 {
	margin: 0 0 8px;
	font-size: 28px;
}

.fwma-lead {
	color: #555;
	margin-bottom: 20px;
}

.fwma-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.fwma-form input[type="email"],
.fwma-form input[type="text"],
.fwma-form input[type="password"],
.fwma-form input[type="url"],
.fwma-form input[type="date"],
.fwma-form select,
.fwma-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

.fwma-form textarea {
	min-height: 90px;
	resize: vertical;
}

.fwma-form input[type="file"] {
	display: block;
	width: 100%;
}

.fwma-form input[type="file"][hidden],
.fwma-form input[data-fwma-photo-file],
.fwma-form input[data-fwma-photo-pick],
.fwma-form input[data-fwma-gallery-files],
.fwma-form input[data-fwma-attach-files],
.fwma-form input[data-fwma-video-files] {
	display: none !important;
}

body.fwma-crop-open,
body.fwma-lightbox-open {
	overflow: hidden;
}

.fwma-crop-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(20, 16, 12, 0.55);
}

.fwma-crop-modal[hidden] {
	display: none;
}

.fwma-crop-modal__dialog {
	width: min(640px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	background: #fff;
	border-radius: 12px;
	padding: 20px 22px 18px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
}

.fwma-crop-modal__dialog h3 {
	margin: 0 0 0.35rem;
	font-size: 1.25rem;
}

.fwma-crop-modal__stage {
	height: min(420px, 55vh);
	margin: 1rem 0;
	background: #1a1a1a;
	border-radius: 8px;
	overflow: hidden;
}

.fwma-crop-modal__stage img {
	display: block;
	max-width: 100%;
}

.fwma-crop-modal__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
}

.fwma-avatar-editor {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0 0 1rem;
}

.fwma-avatar-editor__frame {
	position: relative;
	width: 220px;
	max-width: 100%;
	aspect-ratio: 3 / 4;
	border-radius: 14px;
	overflow: hidden;
	background: #ece7df;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.fwma-avatar-editor__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.fwma-avatar-editor__img[hidden] {
	display: none !important;
}

.fwma-avatar-editor__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #8a8278;
}

.fwma-avatar-editor__placeholder[hidden] {
	display: none !important;
}

.fwma-avatar-editor__placeholder svg {
	width: 64px;
	height: 64px;
	fill: currentColor;
	opacity: 0.55;
}

.fwma-avatar-editor__overlay {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 6px;
	border-radius: 999px;
	background: rgba(20, 16, 12, 0.62);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.2s ease;
	box-sizing: border-box;
}

.fwma-avatar-editor__frame:hover .fwma-avatar-editor__overlay,
.fwma-avatar-editor__frame:focus-within .fwma-avatar-editor__overlay,
.fwma-avatar-editor.is-empty .fwma-avatar-editor__overlay {
	opacity: 1;
}

@media (hover: none) {
	.fwma-avatar-editor__overlay {
		opacity: 1;
	}
}

.fwma-avatar-editor__btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 1 1 0;
	width: auto;
	min-width: 0;
	max-width: none;
	height: 36px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: #1e1812 !important;
	line-height: 1 !important;
	font-size: 0 !important;
	text-indent: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
}

.fwma-avatar-editor__btn svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	flex-shrink: 0;
}

.fwma-avatar-editor__btn:hover,
.fwma-avatar-editor__btn:focus {
	background: #f6d407 !important;
	color: #1e1812 !important;
	outline: none;
}

.fwma-avatar-editor__btn--danger:hover,
.fwma-avatar-editor__btn--danger:focus {
	background: #c62828 !important;
	color: #fff !important;
}

.fwma-avatar-editor__btn[hidden] {
	display: none !important;
}

.fwma-avatar-editor.is-marked-delete .fwma-avatar-editor__frame {
	opacity: 0.55;
	filter: grayscale(0.35);
}

.fwma-avatar-editor__note,
.fwma-avatar-editor__hint {
	margin: 0;
	max-width: 28rem;
}

.fwma-avatar-editor__note[hidden],
.fwma-avatar-editor__hint[hidden],
.fwma-avatar-editor [data-fwma-photo-undo][hidden] {
	display: none !important;
}

.fwma-photo-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(12, 10, 8, 0.82);
}

.fwma-photo-lightbox[hidden] {
	display: none;
}

.fwma-photo-lightbox img {
	display: block;
	max-width: min(90vw, 720px);
	max-height: calc(100vh - 48px);
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.fwma-photo-lightbox__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #1e1812;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

/* Keep public profile + related photos on the same 3:4 frame. */
.single-member-wrap.single-style-1 .single-member-avatar img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: center top;
}

.fwma-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}

.fwma-grid--3 {
	grid-template-columns: 1fr 1fr 1fr;
}

.fwma-public-link {
	display: inline-block;
	margin-left: 10px;
	font-size: 14px;
	font-weight: 600;
}

.fwma-repeat-row {
	border: 1px solid #eee;
	border-radius: 6px;
	padding: 12px 14px;
	margin: 0 0 12px;
	background: #fafafa;
}

.fwma-current-media,
.fwma-media-list--photos li {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 12px;
}

.fwma-media-list {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.fwma-media-list li {
	margin: 0 0 10px;
}

.fwma-media-list img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 4px;
}

.fwma-attach-item__file {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 6px;
	width: 100%;
	aspect-ratio: 1;
	padding: 12px 10px;
	text-align: center;
	border: 1px dashed #cfcfcf;
	background: #fff;
	box-sizing: border-box;
	border-radius: 8px;
}

.fwma-attach-item__file-icon {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 4px;
	background: #111;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.fwma-attach-item__file-name {
	font-size: 12px;
	line-height: 1.3;
	word-break: break-word;
}

.fwma-gallery-item.is-marked-delete[data-fwma-attach-item] {
	opacity: 0.72;
}

.fwma-gallery-item.is-marked-delete[data-fwma-attach-item] .fwma-gallery-item__preview {
	filter: grayscale(1);
	opacity: 0.55;
}

.fwma-gallery-item.is-marked-delete[data-fwma-attach-item] .fwma-gallery-item__overlay {
	display: flex;
}

.fwma-gallery-list,
.fwma-gallery-pending {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
}

.fwma-gallery-list {
	margin-bottom: 18px;
}

.fwma-gallery-item,
.fwma-gallery-pending__item {
	margin: 0;
	padding: 10px;
	border: 1px solid #ececec;
	border-radius: 10px;
	background: #fafafa;
}

.fwma-gallery-item__preview {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
}

.fwma-gallery-item__preview img,
.fwma-gallery-item__preview video,
.fwma-gallery-pending__frame img,
.fwma-gallery-pending__frame video {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 8px;
	background: #1a1a1a;
}

.fwma-gallery-item__overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	height: 34px;
}

.fwma-gallery-item__view {
	flex: 3 1 75%;
	width: 75%;
	max-width: 75%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	background: rgba(20, 16, 12, 0.78);
	color: #fff !important;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none !important;
	border: 0;
	border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.fwma-gallery-item__view:hover,
.fwma-gallery-item__view:focus {
	background: rgba(20, 16, 12, 0.92);
	outline: none;
}

.fwma-page .fwma-gallery-item__delete,
.fwma-page button.fwma-gallery-item__delete,
.fwma-page [type="button"].fwma-gallery-item__delete {
	flex: 1 1 25%;
	width: 25%;
	max-width: 25%;
	min-width: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: rgba(20, 16, 12, 0.78) !important;
	color: #fff !important;
	box-shadow: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	font-size: inherit !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	cursor: pointer;
}

.fwma-page .fwma-gallery-item__delete:hover,
.fwma-page .fwma-gallery-item__delete:focus,
.fwma-page button.fwma-gallery-item__delete:hover,
.fwma-page button.fwma-gallery-item__delete:focus,
.fwma-page [type="button"].fwma-gallery-item__delete:hover,
.fwma-page [type="button"].fwma-gallery-item__delete:focus {
	background: rgba(20, 16, 12, 0.92) !important;
	color: #fff !important;
	box-shadow: none !important;
	outline: none;
}

.fwma-icon-bin {
	display: block;
	width: 15px;
	height: 15px;
	fill: currentColor;
}

.fwma-gallery-item__details {
	margin-top: 10px;
}

.fwma-gallery-item__details p {
	margin: 0 0 8px;
}

.fwma-gallery-pending__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.fwma-gallery-pending__delete {
	background: #8c1e1e;
	color: #fff;
}

.fwma-gallery-pending__delete:hover,
.fwma-gallery-pending__delete:focus {
	background: #6e1616;
	outline: none;
}

.fwma-gallery-item.is-marked-delete {
	opacity: 0.72;
}

.fwma-gallery-item.is-marked-delete .fwma-gallery-item__preview {
	filter: grayscale(1);
	opacity: 0.55;
}

.fwma-gallery-item.is-marked-delete .fwma-gallery-item__overlay {
	display: flex;
}

.fwma-gallery-item__note {
	margin: 8px 0 0;
}

.fwma-gallery-item__note[hidden],
.fwma-gallery-item [data-fwma-gallery-undo][hidden],
.fwma-page .fwma-button[hidden],
.fwma-page button.fwma-button[hidden],
.fwma-gallery-pending[hidden] {
	display: none !important;
}

.fwma-gallery-pending__item {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fwma-gallery-pending__frame {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
}

.fwma-gallery-pending__details {
	margin-top: 2px;
}

.fwma-gallery-pending__details p {
	margin: 0;
}

.fwma-gallery-pending__details label {
	display: block;
	margin-bottom: 4px;
}

.fwma-button--small {
	padding: 6px 12px;
	font-size: 13px;
}

.fwma-save-bar {
	position: sticky;
	bottom: 12px;
	background: #fff;
	padding-top: 12px;
}

.fwma-form .description {
	color: #666;
	font-size: 13px;
	margin-top: 0;
}

@media (max-width: 700px) {
	.fwma-grid,
	.fwma-grid--3 {
		grid-template-columns: 1fr;
	}

	.fwma-public-link {
		display: block;
		margin: 8px 0 0;
	}
}

.fwma-form input[readonly] {
	background: #f4f4f4;
}

.fwma-password {
	position: relative;
	display: block;
}

.fwma-password input[type="password"],
.fwma-password input[type="text"] {
	padding-right: 44px;
}

.fwma-page .fwma-password-toggle,
.fwma-page button.fwma-password-toggle,
.fwma-page [type="button"].fwma-password-toggle {
	position: absolute;
	top: 1px;
	right: 1px;
	bottom: 1px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	line-height: 0;
	border: 0;
	border-radius: 0 3px 3px 0;
	background: transparent;
	background-color: transparent;
	color: #555;
	fill: currentColor;
	box-shadow: none;
	transform: none;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.fwma-page .fwma-password-toggle:hover,
.fwma-page .fwma-password-toggle:focus,
.fwma-page button.fwma-password-toggle:hover,
.fwma-page button.fwma-password-toggle:focus,
.fwma-page [type="button"].fwma-password-toggle:hover,
.fwma-page [type="button"].fwma-password-toggle:focus {
	background: transparent;
	background-color: transparent;
	color: #111;
	box-shadow: none;
}

.fwma-forgot {
	margin-top: 8px;
}

.fwma-forgot a {
	color: #7a1f32;
	font-weight: 600;
	text-decoration: none;
}

.fwma-forgot a:hover {
	text-decoration: underline;
}

.fwma-page .fwma-button,
.fwma-page button.fwma-button,
.fwma-page [type="button"].fwma-button,
.fwma-page [type="submit"].fwma-button,
.fwma-page a.fwma-button {
	display: inline-block;
	background: #f6d407;
	background-color: #f6d407;
	color: #111;
	fill: #111;
	border: 0;
	font-weight: 600;
	padding: 10px 18px;
	height: auto;
	line-height: 1.4;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.fwma-page .fwma-button:hover,
.fwma-page .fwma-button:focus,
.fwma-page button.fwma-button:hover,
.fwma-page button.fwma-button:focus,
.fwma-page [type="button"].fwma-button:hover,
.fwma-page [type="button"].fwma-button:focus,
.fwma-page [type="submit"].fwma-button:hover,
.fwma-page [type="submit"].fwma-button:focus,
.fwma-page a.fwma-button:hover,
.fwma-page a.fwma-button:focus {
	background: #ddbf06;
	background-color: #ddbf06;
	color: #111;
	fill: #111;
}

.fwma-page .fwma-button--secondary,
.fwma-page button.fwma-button--secondary,
.fwma-page [type="button"].fwma-button--secondary {
	background: #f3f3f3;
	background-color: #f3f3f3;
	color: #222;
	fill: #222;
	border: 1px solid #ddd;
}

.fwma-page .fwma-button--secondary:hover,
.fwma-page .fwma-button--secondary:focus,
.fwma-page button.fwma-button--secondary:hover,
.fwma-page button.fwma-button--secondary:focus,
.fwma-page [type="button"].fwma-button--secondary:hover,
.fwma-page [type="button"].fwma-button--secondary:focus {
	background: #e9e9e9;
	background-color: #e9e9e9;
	color: #111;
	fill: #111;
	border-color: #ccc;
}

.fwma-notice {
	padding: 10px 12px;
	border-radius: 4px;
	margin-bottom: 16px;
}

.fwma-notice--error {
	background: #fde8e8;
	color: #8a1f11;
}

.fwma-notice--success {
	background: #e7f6e9;
	color: #1e5a28;
}

.fwma-fieldset {
	border: 1px solid #eee;
	padding: 12px 14px 16px;
	margin: 18px 0;
}

.fwma-check {
	display: block;
	font-weight: 400;
	margin: 8px 0;
}

.fwma-remember label {
	font-weight: 400;
}

.fwma-secondary {
	margin-top: 24px;
}

body.fwma-hide-current_address .info-item:has(.single-member-current-address):not(:has(.member-social)),
body.fwma-hide-date_of_birth .info-item:has(.single-member-born),
body.fwma-hide-birth_place .info-item:has(.single-member-born-place),
body.fwma-hide-social .info-item:has(.member-social),
body.fwma-hide-jobs .single-member-job,
body.fwma-hide-jobs .single-title:has(+ .single-member-job),
body.fwma-hide-events .single-member-event,
body.fwma-hide-additional_info .single-member-more,
body.fwma-hide-attachments .single-member-file,
body.fwma-hide-photo_gallery .single-member-images,
body.fwma-hide-video_gallery .single-member-wrap .single-member-videos-wrap,
body.fwma-hide-video_gallery .single-member-wrap.single-style-1 .single-member-videos-wrap,
body.fwma-hide-biography .single-member-content {
	display: none !important;
}

/* Drop the grey gallery band when both galleries are hidden (keep scrolling text if present). */
body.fwma-hide-photo_gallery.fwma-hide-video_gallery .single-member-bottom:not(:has(.member-text-scroll)) {
	display: none !important;
}

body.fwma-hide-photo_gallery.fwma-hide-video_gallery .single-member-bottom:has(.member-text-scroll) {
	padding-top: 3%;
	padding-bottom: 3%;
}

/* Related members sits flush when no gallery/video block is rendered. */
.single-member-wrap.single-style-1 .single-related-member {
	margin-top: 6%;
	margin-bottom: 6%;
}

.single-member-wrap.single-style-1 .single-member-bottom + .single-related-member {
	margin-top: 0;
}

@media screen and (max-width: 767px) {
	.single-member-wrap.single-style-1 .single-related-member {
		margin-top: 10%;
		margin-bottom: 10%;
	}

	.single-member-wrap.single-style-1 .single-member-bottom + .single-related-member {
		margin-top: 0;
	}
}

/* Uniform card photos in "You Might Be Interested In". */
.single-related-member .member-item__thumbnail {
	aspect-ratio: 3 / 4;
	width: 100%;
	display: block;
}

.single-related-member .member-item__thumbnail a {
	display: block;
	width: 100%;
	height: 100%;
}

.single-related-member .member-item__thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center top;
}

/* "You Might Be Interested In": hide the birth year under each name. */
.single-related-member .member-item .member-item__content .member-item__meta {
	display: none;
}

/* Event page "Joined Members": hide the birth year under each name. */
.single-event-member .member-item.style-4 .member-item__date {
	display: none;
}

/* Uniform public profile Images Gallery tiles. */
.single-member-wrap .single-member-images .image-item a,
.single-member-wrap .single-member-images-gallery .image-item a,
.single-member-wrap .single-member-intro-gallery .image-item a {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 12px;
}

.single-member-wrap .single-member-images .image-item img,
.single-member-wrap .single-member-images-gallery .image-item img,
.single-member-wrap .single-member-intro-gallery .image-item img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

.single-member-wrap.single-style-1 .single-member-images,
.single-member-wrap.single-style-1 .single-member-videos-wrap {
	padding-top: 4%;
	padding-bottom: 2%;
}

/*
 * Stack Video Gallery like Images Gallery (theme uses side-by-side flex).
 * !important beats theme style.css which loads after plugin CSS.
 * Skip when the section is hidden so display:none can win.
 */
body:not(.fwma-hide-video_gallery) .single-member-wrap.single-style-1 .single-member-videos-wrap {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
}

.single-member-wrap.single-style-1 .single-member-videos-left {
	flex: 0 0 auto !important;
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
	text-align: center;
	order: 1;
}

.single-member-wrap.single-style-1 .single-member-videos-left .single-title-2 {
	padding: 0 20% !important;
	margin-bottom: 2% !important;
	text-align: center !important;
}

.single-member-wrap.single-style-1 .single-member-videos-left .video-description {
	padding: 0 20% 1%;
	margin-bottom: 2%;
	text-align: center;
	color: #777;
}

.single-member-wrap.single-style-1 .single-member-videos-left .video-more-link {
	margin-top: 0;
	margin-bottom: 2%;
	text-align: center;
}

.single-member-wrap.single-style-1 .single-member-videos-right {
	flex: 0 0 auto !important;
	width: 100% !important;
	max-width: none !important;
	order: 2;
}

/* Keep video carousel chevrons visible (match Images Gallery affordance). */
.single-member-wrap.single-style-1 .single-member-videos .haru-slick--nav-opacity .slick-prev,
.single-member-wrap.single-style-1 .single-member-videos .haru-slick--nav-opacity .slick-next {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

@media screen and (max-width: 1440px) {
	.single-member-wrap.single-style-1 .single-member-videos-left .single-title-2,
	.single-member-wrap.single-style-1 .single-member-videos-left .video-description {
		padding-left: 15%;
		padding-right: 15%;
	}
}

@media screen and (max-width: 991px) {
	.single-member-wrap.single-style-1 .single-member-videos-left .single-title-2,
	.single-member-wrap.single-style-1 .single-member-videos-left .video-description {
		padding-left: 10%;
		padding-right: 10%;
	}
}

@media screen and (max-width: 767px) {
	.single-member-wrap.single-style-1 .single-member-videos-left .single-title-2,
	.single-member-wrap.single-style-1 .single-member-videos-left .video-description {
		padding-left: 5%;
		padding-right: 5%;
	}
}

/* Public profile Video Gallery tiles + soft play. */
.single-member-wrap .single-member-videos .video-item {
	padding: 0 10px;
	box-sizing: border-box;
}

.single-member-wrap .single-member-videos .video-item__wrap {
	display: block;
}

.single-member-wrap .single-member-videos .video-item__thumbnail {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 12px;
	background: #1a1a1a;
	margin-bottom: 12px;
}

.single-member-wrap .single-member-videos .video-item__thumbnail a.fwma-video-thumb-link {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.single-member-wrap .single-member-videos .video-item__thumbnail img,
.single-member-wrap .single-member-videos .video-item__thumbnail video.fwma-video-poster {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.single-member-wrap .single-member-videos .video-item__thumbnail .fwma-video-poster--empty {
	display: block;
	width: 100%;
	height: 100%;
	background: #2a2a2a;
}

.single-member-wrap .single-member-videos .fwma-video-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.18));
	transition: background 0.25s ease;
}

.single-member-wrap .single-member-videos .fwma-video-play svg {
	width: 52px;
	height: 52px;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.single-member-wrap .single-member-videos .fwma-video-play circle {
	fill: rgba(255, 255, 255, 0.82);
	stroke: rgba(255, 255, 255, 0.95);
	stroke-width: 1.5;
}

.single-member-wrap .single-member-videos .fwma-video-play path {
	fill: #111;
}

.single-member-wrap .single-member-videos .fwma-video-thumb-link:hover .fwma-video-play {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.28));
}

.single-member-wrap .single-member-videos .fwma-video-thumb-link:hover .fwma-video-play circle {
	fill: rgba(255, 255, 255, 0.94);
}

.single-member-wrap .single-member-videos .video-item__content {
	text-align: center;
}

.single-member-wrap .single-member-videos .video-item__title {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.35;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.single-member-wrap .single-member-videos .video-item__title a {
	color: inherit;
	text-decoration: none;
}

.single-member-wrap .single-member-videos .video-item__meta,
.single-member-wrap .single-member-videos .video-item__desc,
.single-member-wrap .single-member-videos .video-item__icon {
	display: none !important;
}

/* Mobile tree: native drag + pinch; buttons stay as secondary controls. */
@media screen and (max-width: 991px) {
	.haru-fp-tree.fwma-tree-mobile-ready,
	.haru-fp-tree.fwma-tree-mobile-ready .haru-fp-tree-wrap {
		touch-action: none;
		overscroll-behavior: contain;
		-webkit-user-select: none;
		user-select: none;
	}

	.haru-fp-tree.fwma-tree-mobile-ready .haru-fp-tree-wrap {
		cursor: grab;
	}

	.haru-fp-tree.fwma-tree-mobile-ready .haru-fp-tree-wrap:active {
		cursor: grabbing;
	}

	.haru-fp-tree.fwma-tree-mobile-ready .buttons {
		opacity: 0.9;
	}

	.haru-fp-tree.fwma-tree-mobile-ready .tree-zoom-range {
		display: none;
	}

	.haru-fp-tree.fwma-tree-mobile-ready .member-item a {
		-webkit-touch-callout: none;
	}
}

/* Uniform card photos in homepage / member birth & anniversary widgets. */
.haru-member-slider-anniversary .member-item__thumbnail,
.haru-member-list-anniversary .member-item__thumbnail {
	aspect-ratio: 3 / 4;
	width: 100%;
	display: block;
	overflow: hidden;
}

.haru-member-slider-anniversary .member-item__thumbnail a,
.haru-member-list-anniversary .member-item__thumbnail a {
	display: block;
	width: 100%;
	height: 100%;
}

.haru-member-slider-anniversary .member-item__thumbnail img,
.haru-member-list-anniversary .member-item__thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center top;
}

/* Uniform card photos on member archive / family pages (e.g. member-family/*). */
.haru-archive-member .member-item__thumbnail {
	aspect-ratio: 3 / 4;
	width: 100%;
	display: block;
	overflow: hidden;
}

.haru-archive-member .member-item__thumbnail a {
	display: block;
	width: 100%;
	height: 100%;
}

.haru-archive-member .member-item__thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center top;
}

/* Members archive (/member/) and family pages: hide the born/died year above each name. */
.post-type-archive-haru_member .haru-archive-member .member-item .member-item__meta,
.family-member .haru-archive-member .member-item .member-item__meta {
	display: none;
}

/* Family pages (member-family/*): hide the top title + image/View Tree block. */
.tax-member_family .haru-family-title-content,
.tax-member_family .haru-family-content .haru-family-tax {
	display: none;
}

.tax-member_family .family-root-wrap {
	padding-top: 40px;
}

.tax-member_family .family-root-wrap .family-root-thumbnail {
	margin-top: 0;
}

/* Family pages: hide the birth date under the root member's name. */
.tax-member_family .family-root-info .member-item__date {
	display: none;
}

/* Family trees (full tree and a single family's tree): hide the year under each name. */
.haru-fp-tree .member-item--style-1 .member-info .member-date {
	display: none;
}

/* Family list (/family-list/): uniform landscape family photos. */
.haru-member-family-list .family-item__image {
	aspect-ratio: 4 / 3;
	width: 100%;
	background-color: #ece8e4;
}

.haru-member-family-list .family-item__image > a {
	display: block;
	width: 100%;
	height: 100%;
}

.haru-member-family-list .family-item__image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

.haru-member-family-list .family-item__image img[src=""] {
	visibility: hidden;
}

/* Contact Us page (page 5131): only the enquiry form, centred. */
body .elementor-5131 .elementor-element.elementor-element-6bf4894,
body .elementor-5131 .elementor-element.elementor-element-e9baa5e {
	display: none;
}

body .elementor-5131 .elementor-element.elementor-element-2b7ea5d {
	--justify-content: center;
	--padding-top: 3%;
}

body .elementor-5131 .elementor-element.elementor-element-5475113 {
	--width: 100%;
	width: 100%;
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

body .elementor-5131 .elementor-element.elementor-element-64eacf3,
body .elementor-5131 .elementor-element.elementor-element-64eacf3 * {
	text-align: center;
}

.wpcf7 .fwma-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.fwma-contact-captcha {
	display: flex;
	justify-content: center;
}

.fwma-contact-captcha .wpcf7-turnstile {
	width: 100%;
	max-width: 400px;
}

/* Homepage heritage CTA row (Discover your heritage… banners). */
.elementor-5315 .elementor-element-c597955 .haru-banner--style-7 > a {
	display: block;
	width: 100%;
}

.elementor-5315 .elementor-element-c597955 .haru-banner--style-7 .haru-banner__image {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
}

.elementor-5315 .elementor-element-c597955 .haru-banner--style-7 .haru-banner__image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

