/*
Theme Name: Story Atlas Child
Template: twentytwentyfive
*/

/* Global remove focus border after mouse click */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
	outline: none !important;
	box-shadow: none !important;
}

/* =========================
   Dashboard Sidebar
   ========================= */
   
 .dashboard-layout {
	display: flex !important;
	align-items: stretch !important;

	width: 100% !important;
	max-width: none !important;
	min-height: 100vh;

	gap: 0;
	box-sizing: border-box;
}

.dashboard-sidebar {
	width: 296px;
	min-width: 296px;
	height: 100vh;
	margin: 0 !important;

	padding: 36px 12px 48px;

	background-color: #FBF9F4;

	display: flex !important;
	flex-direction: column !important;
	justify-content: space-between !important;

	box-sizing: border-box;

	position: sticky;
	top: 0;
	align-self: flex-start !important;

	overflow: hidden;
}

/* =========================
   Sidebar Top
   ========================= */

.side-top {
	width: 100%;
	margin: 0;
}

.dashboard-content {
	flex: 1 1 0 !important;

	width: auto !important;
	min-width: 0;
	max-width: none !important;

	box-sizing: border-box;
}


/* =========================
   Sidebar Menu
   ========================= */

.sidebar-menu {
    width: 100%;
    margin-top: 36px;

}

.sidebar-menu-item {
	width: 100%;
	margin: 0;
}

.sidebar-menu-item a {
	display: block;
	padding: 10px 12px;
	color: #1f1a17;
	font-family: Inter, sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	border-radius: 6px;
}

.sidebar-menu-item a:hover {
	background-color: #EDE3DA;
	color: #2E6B63;
}

/* =========================
   Sidebar Bottom
   ========================= */

.side-bottom {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* =========================
   Add Memory Button
   ========================= */

.sidebar-add-memory {
	width: 100%;
	margin: 0;
	display: flex;
	justify-content: flex-start;
}

.sidebar-add-memory .wp-block-button__link {
	width: 152px;
	padding: 10px 18px;
	background-color: #352c27;
	color: #ffffff;
	border: none;
	border-radius: 30px;
	font-family: Inter, sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	box-sizing: border-box;
}

.sidebar-add-memory .wp-block-button__link:hover {
	background-color: #2A5A52;
}


/* =========================
   Profile
   ========================= */


.sidebar-profile {
	width: 100%;
	margin: 0;
}

.sidebar-profile a {
	display: block;
	width: 100%;
	padding: 9px 12px;
	color: #1f1a17;
	font-family: Inter, sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	border-radius: 6px;
	box-sizing: border-box;
}

.sidebar-profile a:hover {
	background-color: #EFE5DC;
	color: #2E6B63;
}

/* =========================
   Sidebar Logout
========================= */

.sidebar-logout-wrap {
	width: 100%;
	margin: 0;
	padding: 0;

	box-sizing: border-box;
}

.sidebar-logout-wrap p {
	margin: 0 !important;
	padding: 0 !important;
}


.sidebar-logout {
	display: block;
	width: 100%;
	margin: 0;
	padding: 9px 12px;
	color: #1f1a17;
	font-family: Inter, sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	border-radius: 6px;
	box-sizing: border-box;
}

.sidebar-logout p {
	margin: 0 !important;
	padding: 0 !important;
}

.sidebar-logout br {
	display: none;
}


.sidebar-logout:hover {
	background-color: #EFE5DC;

	color: #2E6B63;
}


/* =========================
   Home page
========================= */

#home-map-animation {
	width: 100%;

	overflow: hidden;
}


#home-map-animation canvas {
	display: block;

	width: 100% !important;
	height: auto !important;
}

.home-map-instruction {
	pointer-events: none;
}

/* Video Frame */

.story-video-frame {
	position: relative;

	width: 100%;

	padding: 12px;

	background: #ffffff;

	border: 1px solid #e8dedb;
	border-radius: 24px;

	box-shadow:
		0 16px 40px rgba(51, 45, 41, 0.08);

	box-sizing: border-box;

	isolation: isolate;
}


/* Default offset background */

.story-video-frame::before {
	content: "";

	position: absolute;

	width: 100%;
	height: 100%;

	top: 18px;
	left: 18px;

	background: #dde5d2;

	border-radius: 24px;

	z-index: -1;
}


/* Default offset outline */

.story-video-frame::after {
	content: "";

	position: absolute;

	width: 96%;
	height: 96%;

	top: -14px;
	left: -14px;

	background: transparent;

	border: 1px solid #b7c2ad;
	border-radius: 24px;

	z-index: -2;

	pointer-events: none;
}


/* =========================
   Floating Memory Button
========================= */

.floating-memory-btn {
	position: fixed;

	right: 30px;
	bottom: 30px;

	width: 64px;
	height: 64px;

	display: flex;
	align-items: center;
	justify-content: center;

	background: radial-gradient(
    	circle,
    	#ffffff 0%,
    	#ffffff 30%,
    	#f8edbb 65%,
    	#E5C85C 100%
    );

	border: 1px solid #E5C85C;
	border-radius: 50%;

	color: #A96E50;

	font-size: 34px;
	font-weight: 400;
	line-height: 1;

	text-decoration: none;

	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);

	z-index: 9999;
}

.floating-memory-btn:hover {
	transform: scale(1.08);

	color: #A96E50;
}
/* =========================
   Registration page 
   ========================= */



/*
Registration card
 */

.reg-card, .login-card  {
	width: 100%;
	max-width: 420px;
	padding: 34px 32px 30px;

	background-color: #f8f7f3;
	border: 1px solid #ddd7cd;
	border-radius: 10px;

	box-sizing: border-box;
}


/*
Heading and subtitle
*/

.reg-title {
	margin: 0 0 8px;

	color: #3b322d;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 38px;
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
}

.reg-subtitle {
	margin: 0;

	color: #665d57;
	font-size: 15px;
	line-height: 1.5;
	text-align: center;
}


/*
Registration form
*/

.reg-form {
	margin-top: 30px;
}

.reg-form .form-group {
	margin-bottom: 19px;
}

.reg-form label {
	display: block;
	margin-bottom: 7px;

	color: #403834;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.03em;
}


/*
Form inputs
*/

.reg-form input {
    display: block;
	width: 100%;
	height: 42px;
	padding: 9px 8px;

	color: #332d29;
	background-color: #ffffff;

	border: none;
	border-bottom: 1px solid #9ba0a4;
	border-radius: 0;
	box-shadow: none;
	outline: none;

	font-family: inherit;
	font-size: 15px;

	box-sizing: border-box;
}

.reg-form input::placeholder {
	color: #92969b;
	opacity: 1;
}

.reg-form input:focus {
	border-bottom-color: #6d7f70;
	background-color: #ffffff;
	box-shadow: none;
}


/*
Privacy policy text
*/

.reg-policy {
	margin: 24px 0 29px;

	color: #504943;
	font-size: 12px;
	line-height: 1.6;
	text-align: center;
}

.reg-policy a {
	color: #8b4e39;
	font-weight: 500;
	text-decoration: none;
}

.reg-policy a:hover {
	text-decoration: underline;
}


/*
Create account button
*/

.reg-button {
	display: block;
	width: 100%;
	min-height: 52px;
	padding: 14px 24px;

	color: #ffffff;
	background-color: #352e2a;
	border: none;
	border-radius: 999px;
	box-shadow: none;

	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.02em;

	cursor: pointer;
	appearance: none;
}

.reg-button:hover {
	color: #ffffff;
	background-color: #493f39;
}

.reg-button:focus {
	color: #ffffff;
	background-color: #493f39;
	outline: 2px solid #829183;
	outline-offset: 3px;
}


/*
Login link
*/

.reg-login {
	margin: 31px 0 0;

	color: #605852;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.reg-login a {
	margin-left: 5px;

	color: #8b4e39;
	font-weight: 500;
	text-decoration: none;
}

.reg-login a:hover {
	text-decoration: underline;
}

/* 
Registration messages 
*/

.reg-message {
	margin: 20px 0 0;
	padding: 12px;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.reg-message.error {
	color: #7a3028;
	background-color: #f6e4df;
	border: 1px solid #e8c4bc;
}

.reg-message.success {
	color: #35563b;
	background-color: #e4eee6;
	border: 1px solid #bfd2c3;
}

/* =========================
    Log in  page 
   ========================= */

.reg-sec, .login-sec {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	min-height: 100vh;
	padding: 64px 20px;
	background: radial-gradient(
		circle at center,
		#FFFFFF 0%,
		#F5F1E6 70%,
		#EFE8D7 70%,
		#000000 100%
	)!important;

}

/*{
	width: 100%;
	max-width: 350px;
	padding: 40px;
	background-color: #faf8f4;
	box-sizing: border-box;
}
*/


.login-title {
	margin: 0 0 36px;
	color: #342e2a;
	font-family: Georgia, "Times New Roman", serif; /* font solih*/
	font-size: 31px;
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
}

.login-form-group {
	margin-bottom: 22px;
}

.login-form-group label {
	display: block;
	margin-bottom: 7px;
	color: #463f3a;
	font-size: 13px;
	font-weight: 400;
}

.login-form-group input {
	display: block;
	width: 100%;
	padding: 11px 10px;
	border: 0;
	border-bottom: 1px solid #a7adb4;
	border-radius: 0;
	background-color: #ffffff;
	color: #342e2a;
	font-size: 14px;
	box-sizing: border-box;
	outline: none;
}

.login-form-group input:focus {
	border-bottom-color: #8d4938;
}

.login-form-group input::placeholder {
	color: #8b8f98;
}

.login-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	margin: 6px 0 38px;
}

.login-remember {
	display: flex;
	align-items: center;
	gap: 7px;
	color: #514943;
	font-size: 13px;
	cursor: pointer;
}

.login-remember input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #8d4938;
}

.login-forgot {
	color: #9b4d37;
	font-size: 13px;
	text-decoration: none;
}

.login-forgot:hover {
	text-decoration: underline;
}

.login-button {
	display: block;
	width: 100%;
	padding: 14px 20px;
	border: 0;
	border-radius: 999px;
	background-color: #342e2a;
	color: #ffffff;
	font-size: 13px;
	font-weight: 400;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
}

.login-button:hover {
	background-color: #4a413b;
	color: #ffffff;
}

.login-button-link {
	margin-top: 30px;
}

.login-divider {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 38px 0;
}

.login-divider span {
	flex: 1;
	height: 1px;
	background-color: #ebe6df;
}

.login-divider p {
	margin: 0;
	color: #514943;
	font-size: 11px;
	letter-spacing: 1px;
}

.login-signup {
	margin: 0;
	color: #514943;
	font-size: 13px;
	text-align: center;
}

.login-signup a {
	margin-left: 5px;
	color: #9b4d37;
	font-weight: 600;
	text-decoration: none;
}

.login-signup a:hover {
	text-decoration: underline;
}

.login-message {
	margin: 0 0 24px;
	padding: 11px 12px;
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
}

.login-message.error {
	border: 1px solid #d9a79b;
	background-color: #fff1ed;
	color: #8b3526;
}

.login-card-message {
	text-align: center;
}

.login-logged-message {
	margin: 0;
	color: #514943;
	font-size: 14px;
}

.login-logout {
	margin: 18px 0 0;
	font-size: 13px;
}

.login-logout a {
	color: #9b4d37;
	text-decoration: none;
}

.login-logout a:hover {
	text-decoration: underline;
}

/* =========================
   Featured Memories page
   ========================= */

/* Category Dropdown */

.category-filter-wrap {
	position: relative;
	width: 100%;
	max-width: 280px;
}


/* Select box */
#category-filter {
	width: 100%;
	height: 48px;
	padding: 0 44px 0 12px;
	background-color: #F0EEE9;
	color: #4D4540;
	border: 1px solid rgba(208, 196, 190, 0.3);
    border-radius: 8px;
	font-family: Inter, sans-serif;
	font-size: 14px;
	font-weight: 400;
	cursor: pointer;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	outline: none;
}

.category-filter-wrap::after {
	content: "⌄";

	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-55%);
	color: #4D4540;
	font-size: 18px;
	pointer-events: none;
}


#category-filter:hover {
	border-color: rgba(141, 77, 53, 0.45);
}

/* Memory card image tone */

.memory-image-area {
	position: relative;
	overflow: hidden;
}

.memory-image-area img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* same tone overlay */
.memory-image-area::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(214, 197, 182, 0.5);
	mix-blend-mode: multiply;
	pointer-events: none;
	z-index: 1;
}

/* category badge */

.category-badge {
	width: fit-content;
	position: absolute;
	z-index: 2;
	
}

/*    Memory masonry grid */

.memory-grid {
	column-count: 3;
	column-gap: 32px;
}

.memory-card {
	width: 100%;
	display: inline-block;
	margin-bottom: 32px;
	break-inside: avoid;
}

#no-memory-message {
	width: 100%;
	padding: 30px 20px;
	text-align: center;
	font-family: Inter, sans-serif;
	font-size: 16px;
	color: #7F7570;
	box-sizing: border-box;
}


/* =========================
   Add memory page
   ========================= */
/* ===========================
   Image Upload Box
=========================== */

.memory-upload-box {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 186px;
	border: 1px solid #ded8cf;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	box-sizing: border-box;
}


/* Hide the custom file input */
.memory-file-input {
	display: none;
}


/* Upload + text */
.memory-upload-placeholder {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
    color:#9c9690;
	width: 100%;
	height: 100%;
}


/* Selected image preview */
#memory-media-preview {
	width: auto;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}


/* Make selected image fill the upload box */
#memory-media-preview img {
	display: block;
	width: auto;
	height: 100%;
    max-width: 100%;
}
   
/* Memory form inputs */

.memory-text-input {
	width: 100%;
	padding: 8px;
	background-color: #fbf9f4;
	border: none;
	border-bottom: 1px solid #8f8981;
	border-radius: 0;
	box-sizing: border-box;
	font-family: "Inter", sans-serif;
	font-size: 12px;
	font-weight: 400;
	color: #332e2a;
	outline: none;
}

.memory-text-input::placeholder {
	color: #9c9690;
	width: 100%;
}

.memory-text-input:focus {
	border-bottom-color: #2e6b63;
}

#memory-date {
    width: 100%;
	background-color: transparent;
	color: #9c9690;
}

.memory-story-input {
    display: block;
    margin: 0;
	width: 100%;
	min-height: 140px;
	padding: 14px;
	background-color: transparent;
	border: 1px solid #ded8cf;
	border-radius: 8px;
	box-sizing: border-box;
	font-family: "Inter", sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.6;
	color: #332e2a;
	resize: vertical;
	outline: none;
}

.memory-story-input::placeholder {
	color: #9c9690;
}

.memory-story-input:focus {
	border-color: #2e6b63;
}


/* Map section */

#memory-map {
	width: 100%;
	height: 260px;
	border: 1px solid #e5dfd3;
	border-radius: 8px;
	overflow: hidden;
}

#memory-coordinates {
	margin: 6px 0 0;
	font-size: 11px;
	color: #8a8178;
}


/* Tags and Categories */

.tags-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	width: 100%;
	margin-top: 20px;
}

.emotion-group,
.category-group {
	width: 100%;
}

.tag-question {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 500;
	color: #332e2a;
}

.memory-emotions,
.memory-categories {
	display: grid;
	grid-template-columns: repeat(3, max-content);
	gap: 10px 12px;
	align-items: center;
}


.emotion-option input,
.category-option input {
	display: none;
}


.emotion-option span,
.category-option span {
	display: inline-block;
	padding: 7px 14px;
	border: 1px solid #ded8cf;
	border-radius: 20px;
	background-color: #f7f4ee;
	font-size: 12px;
	font-weight: 400;
	color: #332e2a;
	cursor: pointer;

}


.emotion-option span:hover,
.category-option span:hover {
	border-color: #cfc7bb;
	transform: translateY(-2px);
}


/* Calm */
.emotion-calm input:checked + span {
	background-color: #dceafa;
	border-color: #dceafa;
}


/* Joy */
.emotion-joy input:checked + span {
	background-color: #fff0a6;
	border-color: #fff0a6;
}


/* Loved */
.emotion-loved input:checked + span {
	background-color: #f8c7c2;
	border-color: #f8c7c2;
}


/* Gratitude */
.emotion-gratitude input:checked + span {
	background-color: #ebeae5;
	border-color: #ebeae5;
}


/* Sad */
.emotion-sad input:checked + span {
	background-color: #d8a4eb;
	border-color: #d8a4eb;
}


/* Nostalgic */
.emotion-nostalgic input:checked + span {
	background-color: #c98262;
	border-color: #c98262;
	color: #ffffff;
}


.category-option input:checked + span {
	background-color: #ebe0d6;
	border-color: #2e6b63;
	color: #2e6b63;
}

/* cancel and save buttons */

.memory-actions {
	display: flex;
	justify-content: flex-end;
	gap: 14px;
	width: 100%;
	margin-top: 40px;
}

.memory-cancel,
.memory-save {
	padding: 10px 24px;
	border-radius: 999px;
	font-family: "Inter", sans-serif;
	font-size: 12px;
	font-weight: 600;

}

.memory-cancel {
	background-color: #332D29;
	border: 1px solid #332D29;
	color: #ffffff;
}

.memory-save {
	background-color: #332D29;
	border: 1px solid #332D29;
	color: #ffffff;
}

.memory-cancel:hover {
	background-color: #2A5A52;
}

.memory-save:hover {
	background-color: #2A5A52;
	
}

/* =========================
   Detailed Memory Page
========================= */


/* 
   Hero
 */

.memory-hero-content {
	padding: 32px 36px;
}


/* Category pill */
.memory-hero-category {
	display: inline-block;
	padding: 5px 10px;
	background-color: #ffffff;
	border-radius: 20px;
	font-size: 12px;
	text-decoration: none;
}


/* Memory title */
.memory-hero-title {
	margin-top: 12px;
	font-family: "Lora", serif;
	font-size: 32px;
	font-weight: 400;
	color: #d95735;
}



/* Main Layout */

.memory-main-section {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 60px 32px;
	box-sizing: border-box;
}


/* Left and right columns */
.memory-main-section .wp-block-columns {
	width: 100%;
	margin: 0 !important;
	display: flex;
	align-items: flex-start !important;
	gap: 48px;
}


/* Left column */
.memory-story-column {
	flex: 0 1 calc(70% - 24px) !important;
	min-width: 0;
	margin: 0 !important;
}


/* Right column */
.memory-sidebar-column {
	flex: 0 1 calc(30% - 24px) !important;
	min-width: 0;
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 24px;
}



/*  Memory Body Card */

.memory-body-card {
    display: flex;
	flex-direction: column;
	width: 100%;
	margin: 0 !important;
	padding: 12px;
	background-color: #FBF9F4;
	border: 1px solid #e8e1da;
	border-radius: 12px;
	box-sizing: border-box;
}


/* Post content */
.memory-body-card .wp-block-post-content {
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	font-family: Inter, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	color: #4f4742;
}


/* Post paragraphs */
.memory-body-card .wp-block-post-content p {
	margin: 0 0 12px !important;
}


/* =========================
   Reflections
========================= */

.memory-body-card .memory-reflections {
	display: block !important;
	width: 100%;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}


/* Reflections title */
.memory-body-card .memory-reflections-title {
	margin: 0 0 8px !important;
	padding: 0;
	font-family: "Lora", serif;
	font-size: 32px;
	font-weight: 400;
	line-height: 1.3;
	color: #332d29;
}



/* =========================
   Saved Reflection
========================= */

.memory-body-card .memory-reflection-item {
	width: 100%;
	margin: 0 0 12px !important;
	padding: 14px 16px;
	background-color: #f8f5f0;
	border-left: 3px solid #d9b8a5;
	border-radius: 4px;
	box-sizing: border-box;
}

/* Reflection date */
.memory-reflection-date p {
	margin: 0 0 7px;
	padding: 0;
	font-family: Inter, sans-serif;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #9a5b49;
}


/* Reflection text */
.memory-reflection-text p {
	margin: 0;
	padding: 0;
	font-family: Inter, sans-serif;
	font-size: 16px;
	font-weight: 400;
	font-style: italic;
	line-height: 1.55;
	color: #5c514b;
}


/* Add new thought */
.memory-body-card .memory-reflection-label {
	margin: 40px 0px 20px 0px;
	padding: 0 !important;
	font-family: Inter, sans-serif;
	font-size: 16px;
	color: #6d625c;
}


/* Reflection form */
.memory-body-card .memory-reflection-form {
	width: 100%;
	display: flex !important;
	flex-direction: column !important;
	justify-content: flex-start !important;
	gap: 12px !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.memory-reflection-form > p {
	display: contents !important;
}

/* Textarea */
.memory-body-card .memory-reflection-input {
	display: block;
	width: 100%;
	height: 90px;
	min-height: 90px;
	margin: 0 !important;
	padding: 13px 14px;
	border: 1px solid #e8e1da;
    border-radius: 6px 0px 0px 6px;
	box-sizing: border-box;
}


/* Placeholder */
.memory-body-card .memory-reflection-input::placeholder {
	font-style: italic;
	color: #8e8580;
}

.memory-reflection-form > p {
	display: contents !important;
	margin: 0 !important;
	padding: 0 !important;
}


.memory-reflection-form > p:empty {
	display: none !important;
}


.memory-reflection-form br {
	display: none !important;
}

.memory-body-card .memory-reflection-button {
	position: relative !important;
	width: 140px;
	height: 34px;
	align-self: flex-end;
	margin: 0 !important;
	padding: 0 !important;
	background-color: #352c27;
	color: #ffffff;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
}


/* Save text */
.memory-body-card .memory-reflection-button span {
	position: absolute;
	top: 50%;
	left: 50%;
	margin: 0 !important;
	padding: 0px 8px !important;
	font-family: Inter, sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 1 !important;
	color: #ffffff;
	text-align: center;
	white-space: nowrap;
}


/* Save button hover */
.memory-body-card .memory-reflection-button:hover {
	background-color: #2A5A52;
}




/* =========================
   Sidebar Cards
========================= */

.memory-info-card,
.memory-emotions-card,
.memory-prompt-card {
	width: 100%;
	margin: 0 !important;
	border: 1px solid #e7ded5;
	border-radius: 10px;
	box-sizing: border-box;
}



/* =========================
   Memory Info Card
========================= */

.memory-info-card {
	margin: 0 !important;
	padding: 0;
	overflow: hidden;
	background-color: #fbf8f4;
}


/* Card contents */
.memory-info-inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: auto;
	margin: 0 !important;
	padding: 0;
	gap: 20px;
}

/* Thumbnail image */
.memory-info-image {
	width: 100%;
	height: 180px;
	overflow: hidden;
}

/* Thumbnail link */
.memory-info-image .memory-thumb-link {
	display: block;
	width: 100%;
	height: 100%;
}


.memory-info-image p {
	margin: 0 !important;
	padding: 0 !important;
	height: 100%;
}

.memory-info-image p a {
	display: block;
	width: 100%;
	height: 100%;
}

/* Thumbnail image */
.memory-info-image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0 !important;
	object-fit: cover;
}


/* Full image Popup */

.memory-full-image {
	position: fixed;
	inset: 0;
	z-index: 1;
	display: none;
	justify-content: center;
	align-items: center;
	padding: 30px;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.85);
}

/* open with click */
.memory-full-image:target {
	display: flex;
}

/* Full image */
.memory-full-image img {
	display: block;
	max-width: 90vw;
	max-height: 90vh;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Close button */
.memory-full-image-close {
	position: absolute;
	top: 20px;
	right: 30px;
	color: #ffffff;
	font-size: 36px;
	line-height: 1;
	text-decoration: none;
}


/* =========================
   Location and date 
========================= */

.memory-info-details {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
	padding: 0 16px 20px;
}


.memory-info-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 !important;
	padding: 0;
	font-family: Inter, sans-serif;
	font-size: 13px;
	line-height: 1.4;
	color: #4f4742;
}


.memory-info-inner p {
	margin: 0 !important;
	padding: 0 !important;
}



.memory-info-image > p {
	width: 100%;
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 0;
}



.memory-info-row > p {
	margin: 0 !important;
	padding: 0 !important;
}



.memory-info-details > p:empty {
	display: none !important;
}



.memory-info-row br {
	display: none;
}

/* =========================
   Emotions Card
========================= */

.memory-emotions-card {
	padding: 18px 20px;
	background-color: #fbf8f4;
}


.memory-emotions-title {
	margin: 0 0 12px !important;
	font-family: Inter, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #332d29;
}


.memory-detail-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 !important;
}


.memory-detail-tags a {
	display: inline-block;
	padding: 5px 10px;
	background-color: #eee8df;
	border-radius: 20px;
	font-family: Inter, sans-serif;
	font-size: 11px;
	line-height: 1;
	color: #332d29;
	text-decoration: none;
}

/* hide emotion and category link*/
.memory-hero-category a,
.memory-detail-tags a {
	pointer-events: none !important;
	cursor: default !important;
	text-decoration: none !important;
	color: inherit !important;
}



/* =========================
   Memory Prompt Card
========================= */

.memory-prompt-card {
	padding: 20px;
	background-color: #fff1eb;
	border-color: #ead8cf;
}


.memory-prompt-title {
	margin: 0 0 12px !important;
	font-family: "Lora", serif;
	font-size: 20px;
	font-weight: 400;
	color: #8b4a3a;
}


.memory-prompt-text {
	margin: 0 0 14px !important;
	font-family: Inter, sans-serif;
	font-size: 13px;
	line-height: 1.6;
	color: #5c514b;
}


.memory-prompt-link {
	margin: 0 !important;
}


.memory-prompt-link a {
	font-family: Inter, sans-serif;
	font-size: 12px;
	color: #9a5b49;
	text-decoration: underline;
	text-underline-offset: 3px;
}


/* =========================
   Memory Three Dot Menu
========================= */
.memory-body-card > .wp-block-shortcode:first-child {
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
}

.memory-menu {
	position: relative;
	margin: 0 16px 0 auto;
	width: fit-content;
	z-index: 1;
}

/* =========================
   Three Dot Button
========================= */

.memory-menu-button {
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 50%;
	color: #4a4542;
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

.memory-menu > p {
	display: contents !important;
	margin: 0 !important;
	padding: 0 !important;
}


.memory-menu-dropdown > p {
	display: contents !important;
	margin: 0 !important;
	padding: 0 !important;
}


.memory-delete-form > p {
	display: contents !important;
	margin: 0 !important;
	padding: 0 !important;
}


.memory-menu p:empty,
.memory-menu-dropdown p:empty,
.memory-delete-form p:empty {
	display: none !important;
}


.memory-menu br,
.memory-menu-dropdown br,
.memory-delete-form br {
	display: none !important;
}


/* Hover */

.memory-menu-button:hover {
	background: #f2efeb;
}


/* Click outline remove */

.memory-menu-button:focus,
.memory-menu-button:active {
	outline: none;
	box-shadow: none;
}


/* =========================
   Dropdown
========================= */

.memory-menu-dropdown {
	position: absolute;
	top: 12px;
	right: 0;
	width: 175px;
	padding: 6px;
	background: #ffffff;
	border: 1px solid #e3ddd8;
	border-radius: 10px;
	box-shadow:
		0 8px 24px rgba(0, 0, 0, 0.12);
	box-sizing: border-box;
	display: none;
	z-index: 12;
}


/* =========================
   Open Dropdown
========================= */

.memory-menu.is-open .memory-menu-dropdown {
	display: block;
}


/* =========================
   Menu Item
========================= */

.memory-menu-item {
	width: 100%;
	display: block;
	padding: 8px;
	background: transparent;
	border: none;
	border-radius: 7px;
	box-sizing: border-box;
	color: #3f3936;
	font-family: Inter, sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}


/* Hover */

.memory-menu-item:hover {
	background: #f5f2ef;
	color: #3f3936;
}


/* =========================
   Delete
========================= */

.memory-menu-delete {
	color: #b64d3d;
}

.memory-menu-delete:hover {
	background: #fff0ed;
	color: #b64d3d;
}


/* =========================
   Delete Form
========================= */

.memory-delete-form {
	width: 100%;
	margin: 0;
	padding: 0;
}




/* =========================
   My Archive Page
   ========================= */

.my-archive-main {
	width: 100%;
	max-width: none;
	min-width: 0;
	box-sizing: border-box;
}

/* === Post Grid === */
.my-archive-grid {
	column-count: 3;
	column-gap: 24px;
    max-width: none;
	width: 100%;
	padding: 0 32px;
	box-sizing: border-box;
}


.my-archive-grid .memory-card {
    display: inline-block;
	width: 100%;
	background-color: #FBF9F4;
	border-radius: 12px;
	overflow: hidden;
    box-shadow: 0 3px 12px rgba(51, 45, 41, 0.10);
	box-sizing: border-box;
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
}


/* memory image */

.my-archive-grid .memory-card-image {
	display: block;
	width: 100%;
	height: 240px;
	overflow: hidden;
}


/* image */

.my-archive-grid .memory-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Memory card content*/

.my-archive-grid .memory-card-content {
	padding: 34px;
	box-sizing: border-box;
}


/* memory title */

.my-archive-grid .memory-card-title {
	margin: 0 0 8px;
	font-family: "Lora", serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
	color: #332D29;
}

/* remove default link style */

.my-archive-grid .memory-card-title a {
	color: inherit;
	text-decoration: none;
}


/* memory date */

.my-archive-grid .memory-card-date {
	margin: 0 0 12px;
	font-family: "Inter", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	color: #7A6F68;
	text-transform: uppercase;
}


/* memory story */

.my-archive-grid .memory-card-story {
	margin: 0 0 20px;
    font-family: "Inter", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: #4A403A;
	text-align: justify;
}

/* emotion tags */

.my-archive-grid .memory-tag {
	font-family: "Inter", sans-serif;
	font-size: 12px;
	font-weight: 600;
}

/* Memory Card Category */

.my-archive-grid .memory-card-image-wrap {
	position: relative;
}


/* category label */

.my-archive-grid .memory-card-category {
	position: absolute;
	top: 14px;
	right: 14px;
	padding: 6px 12px;
	background-color: rgba(251, 249, 244, 0.9);
	border-radius: 20px;
	font-family: "Inter", sans-serif;
	font-size: 11px;
	font-weight: 500;
	color: #332D29;
}

/* Memory Card Emotion Tags wrapper */

.my-archive-grid .memory-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 2px solid #D8CEC4;
}


/* emotion tag */

.my-archive-grid .memory-tag {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 20px;
	font-family: "Lora", serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	box-sizing: border-box;
}

/* Calm */

.my-archive-grid .memory-tag.calm {
	background-color: #DAE5F9;
	color: #332D29;
}


/* Joy */

.my-archive-grid .memory-tag.joy {
	background-color: #FCF591;
	color: #332D29;
}


/* Loved */

.my-archive-grid .memory-tag.loved {
	background-color: #FBBDB8;
	color: #332D29;
}


/* Gratitude */

.my-archive-grid .memory-tag.gratitude {
	background-color: #F0EEE9;
	color: #332D29;
}


/* Sad */

.my-archive-grid .memory-tag.sad {
	background-color: #D2A2E7;
	color: #332D29;
}

/* Nostalgic */

.my-archive-grid .memory-tag.nostalgic {
	background-color: #863B1B;
	color: #ffffff;
}


/* ===========================
   Emotion gallery
=========================== */

/* Emotion carousel*/

.emotion-carousel {
	width: 100%;
	height: 350px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 25px;
	overflow: hidden;
	box-sizing: border-box;
}


.emotion-carousel-text {
	margin: 0;
	font-family: Inter, sans-serif;
	font-size: 15px;
	font-style: italic;
	color: #6F6863;
}


/* Stage */

.emotion-carousel-stage {
	position: relative;
	width: 100%;
	height: 360px;
	display: flex;
	align-items: center;
	justify-content: center;
}


.emotion-track {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}


/* Emotion Cards */

.emotion-card {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 210px;
	height: 210px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border-radius: 50%;
	font-family: "Lora", serif;
	color: #332D29;
	text-decoration: none;
	border: 8px solid rgba(255, 255, 255, 0.75);
	box-shadow:
		0 8px 20px rgba(51, 45, 41, 0.08);
	transform:
		translate(-50%, -50%)
		translateX(var(--emotion-x))
		scale(var(--emotion-scale));

	opacity: var(--emotion-opacity);

	z-index: var(--emotion-z);
	transition:
		transform 0.6s ease,
		opacity 0.6s ease,
		box-shadow 0.4s ease;

	box-sizing: border-box;
}


/*Emotion icon */

.emotion-image {

	width: 94px;
	height: 94px;
	display: block;
	object-fit: contain;
	flex-shrink: 0;
	pointer-events: none;
}


/* Emotion text */

.emotion-label {

	display: block;
	font-size: 16px;
	line-height: 1.2;
	text-align: center;
	color: inherit;
	pointer-events: none;
}


/* Active card*/

.emotion-card.active {

	box-shadow:
		0 14px 30px rgba(51, 45, 41, 0.15);

}


.emotion-card:hover {

	box-shadow:
		0 16px 32px rgba(51, 45, 41, 0.18);

}


/* Nostalgic Card */

.nostalgic-card {

	color: #FFFFFF;

}


/* Arrows */

.carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: rgba(240, 238, 233, 0.9);
	font-size: 22px;
	color: #332D29;
	cursor: pointer;
	z-index: 20;
	transition:
		transform 0.25s ease,
		background-color 0.25s ease;
}


.carousel-prev {
	left: 25px;
}


.carousel-next {
	right: 25px;
}


.carousel-arrow:hover {
	transform:
		translateY(-50%)
		scale(1.08);

	background: #E6E2DD;
}


/* =========================
   emotion gallery animations
========================= */

#sad-animation,
#joy-animation,
#loved-animation,
#gratitude-animation,
#nostalgic-animation,
#calm-animation {
	width: 100%;
	max-width: 720px;
	overflow: hidden;
	border-radius: 8px;
	box-sizing: border-box;
}


/* canvas */

#sad-animation canvas,
#joy-animation canvas,
#loved-animation canvas,
#gratitude-animation canvas,
#nostalgic-animation canvas,
#calm-animation canvas {
	width: 100% !important;
	height: auto !important;
	max-width: 100% !important;
	display: block;
	margin: 0;
	border-radius: 8px;
}


/* =========================
   Detailed Emotion Animation
========================= */

#joy-animation.detailed-emotion-animation,
#loved-animation.detailed-emotion-animation,
#sad-animation.detailed-emotion-animation,
#calm-animation.detailed-emotion-animation,
#gratitude-animation.detailed-emotion-animation,
#nostalgic-animation.detailed-emotion-animation {
	width: 720px !important;
	height: 480px !important;
	max-width: 720px !important;
	margin: 0 auto !important;
	overflow: hidden !important;
	border-radius: 16px !important;
	box-sizing: border-box;
}


/* Canvas */
#joy-animation.detailed-emotion-animation canvas,
#loved-animation.detailed-emotion-animation canvas,
#sad-animation.detailed-emotion-animation canvas,
#calm-animation.detailed-emotion-animation canvas,
#gratitude-animation.detailed-emotion-animation canvas,
#nostalgic-animation.detailed-emotion-animation canvas {
	display: block;
	width: 720px !important;
	height: 480px !important;
	max-width: none !important;
	margin: 0 !important;
	border-radius: 16px !important;
}

.joy-preview-content {
	height: 400px;
	max-height: 480px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-sizing: border-box;
}
.article-excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 10;
    line-clamp: 10;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: normal;
	
}
.joy-explore-link {
	margin-top: 20px !important;
	align-self: flex-start;
}


/* =========================
   My Map Page
========================= */


/* Main Map */

#storyatlas-map {
	width: 100%;
	height: 100vh;
	min-height: 350px;
	max-height: 750px;
	border-radius: 16px;
	overflow: hidden;
}



/* Memory Image Marker */

/* remove Leaflet default style */
.memory-marker-wrapper {
	background: transparent;
	border: none;
}


/* Memory marker */
.memory-marker {
	position: relative;
	width: 48px;
	height: 48px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: #FFFFFF;
	overflow: hidden;
	box-shadow:
		0 3px 10px rgba(51, 45, 41, 0.8);

	box-sizing: border-box;
}

.memory-marker::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background:
		radial-gradient(
			circle,
			rgba(252, 245, 145, 0.0) 0%,
			rgba(252, 245, 145, 0.4) 45%,
			rgba(252, 245, 145, 1) 75%
		);

	z-index: 2;
	pointer-events: none;
}

/* featured img */
 
.memory-marker img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center !important;
	position: relative;
	z-index: 1;
}



/* Memory label */

.memory-label {
	padding: 7px 14px;
	background-color: #F1D8D7;
	border: none;
	border-radius: 20px;
	box-shadow:
		0 2px 8px rgba(51, 45, 41, 0.12);

	font-family: "Inter", sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: #332D29;
	white-space: nowrap;
}


/* remove leaflet tooltip default arrow */
.memory-label::before {
	display: none;
}

/* =========================
   Profile and Settings Page
========================= */

.profile-settings-page {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 30px;
	box-sizing: border-box;
}


/* Page heading */

.profile-settings-heading {
	margin-bottom: 30px;
}

.profile-settings-heading h1 {
	margin: 0 0 8px;
	font-family: "Lora", serif;
	font-size: 34px;
	font-weight: 400;
	color: #332D29;
}

.profile-settings-heading p {
	margin: 0;
	font-family: "Inter", sans-serif;
	font-size: 14px;
	color: #756D67;
}


/* Main Layout */

.profile-settings-layout {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 24px;
	align-items: stretch;
}


/* Profile Card */

.profile-summary-card {
    display: flex;
	flex-direction: column;
    height: 100%;
	padding: 30px 24px;
	background-color: #FBF9F4;
	border: 1px solid #E5DFD3;
	border-radius: 12px;
	text-align: center;
}


/* Avatar */

.profile-avatar {
	width: 100px;
	height: 100px;
	margin: 0 auto 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 50%;
	background-color: #2A5A52;
	font-family: "Lora", serif;
	font-size: 36px;
	font-weight: 600;
	color: white;
}


.profile-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}


/* Name */

.profile-summary-card h2 {
	margin: 0 0 6px;
	font-family: "Lora", serif;
	font-size: 24px;
	color: #332D29;
}


/* Email */

.profile-summary-email {
	margin: 0 0 28px;
	font-family: "Inter", sans-serif;
	font-size: 12px;
	color: #756D67;
}


/* Member since */

.profile-member-since {
	padding: 18px 0;
	border-top: 1px solid rgba(51, 45, 41, 0.15);
	border-bottom: 1px solid rgba(51, 45, 41, 0.15);
}


.profile-member-since span {
	display: block;
	margin-bottom: 5px;
	font-family: "Inter", sans-serif;
	font-size: 11px;
	color: #8A817B;
}


.profile-member-since strong {
	font-family: "Inter", sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #332D29;
}


/* Memory count */

.profile-summary-stat {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 4px;
	font-family: "Inter", sans-serif;
}



.profile-summary-stat span {
	font-size: 13px;
	color: #514A46;
}


.profile-summary-stat strong {
	font-size: 20px;
	color: #D95735;
}

.dashboard-memory-count {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 20px 4px;
	font-family: "Inter", sans-serif;
}

.pdashboard-memory-count span {
	font-size: 13px;
	color: #514A46;
}


.dashboard-memory-count strong {
	font-size: 20px;
	color: #D95735;
}



/* Profile Settings Cards */

.profile-settings-main {
	display: flex;
	flex-direction: column;
	gap: 16px;
}


/* Personal details and security card */

.profile-settings-main > .profile-settings-card {
	padding: 24px 28px;
	background-color: #FFFFFF;
	border: 1px solid #E5E1DD;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(51, 45, 41, 0.04);
	box-sizing: border-box;
}


/* Card title */

.profile-settings-card h2 {
	margin: 0 0 18px;
	font-family: "Lora", serif;
	font-size: 18px;
	font-weight: 600;
	color: #332D29;
}


/* Description */

.profile-settings-card > p {
	margin: -10px 0 20px;
	font-family: "Inter", sans-serif;
	font-size: 12px;
	color: #827A74;
}


/* Personal Details */

.profile-details-form {
	width: 100%;
}


/* Profile photo */

.profile-photo-group {
	margin-bottom: 24px;
}


.profile-photo-group label {
	display: block;
	margin-bottom: 8px;
	font-family: "Inter", sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: #403A36;
}


.profile-photo-group input[type="file"] {
	font-family: "Inter", sans-serif;
	font-size: 12px;
	color: #756D67;
}


/* Left + Right */

.profile-details-content {
	display: flex;
	gap: 36px;
	align-items: flex-start;
}


.profile-details-left,
.profile-details-right {
	width: 50%;
}


/*  Form groups */

.profile-form-group {
	width: 100%;
	margin-bottom: 18px;
}


.profile-form-group label {
	display: block;
	margin-bottom: 7px;
	font-family: "Inter", sans-serif;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	color: #403A36;
}


/* Inputs */

.profile-form-group input[type="text"],
.profile-form-group input[type="email"],
.profile-form-group input[type="password"],
.profile-form-group textarea {
	display: block;
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #D8D1C7;
	border-radius: 6px;
	background-color: #FFFFFF;
	font-family: "Inter", sans-serif;
	font-size: 13px;
	line-height: 1.4;
	color: #332D29;
	box-sizing: border-box;
}


.profile-form-group input:focus,
.profile-form-group textarea:focus {
	outline: none;
	border-color: #2A5A52;
}


/* Bio */

.profile-details-right textarea {
	min-height: 105px;
	resize: vertical;
}


/* Save Changes */

.profile-details-right button {
	display: block;
	margin-left: auto;
	padding: 10px 18px;
	border: none;
	border-radius: 999px;
	background-color: #332D29;
	font-family: "Inter", sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: #FFFFFF;
	cursor: pointer;
}


.profile-details-right button:hover {
	background-color: #2A5A52;
}


/* password change card*/

.profile-settings-main
> .profile-settings-card:last-child
form {

	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: flex-end;
}


.profile-settings-main
> .profile-settings-card:last-child
.profile-form-group {

	flex: 1;

	min-width: 180px;

	margin-bottom: 0;
}


/* Update password button */

.profile-settings-main
> .profile-settings-card:last-child
button {

	margin-left: auto;
	padding: 10px 18px;
	border: none;
	border-radius: 999px;
	background-color: #332D29;
	font-family: "Inter", sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: #FFFFFF;
	cursor: pointer;
}


.profile-settings-main
> .profile-settings-card:last-child
button:hover {
	background-color: #2A5A52;
}



.profile-settings-message {
	margin-bottom: 20px;
	padding: 12px 15px;
	background-color: #FFF1EB;
	border-radius: 7px;
	font-family: "Inter", sans-serif;
	font-size: 13px;
	color: #332D29;
}

/* =========================
   Mobile Sidebar
========================= */

.mobile-sidebar {
	display: none;
}






/* =========================
   Video Frames
========================= */


/* All video frames */

.story-video-frame,
.research-video-1,
.research-video-3 {
	position: relative;
	width: 100%;
	padding: 12px;
	background: #ffffff;
	border: 1px solid #e8dedb;
	border-radius: 24px;
	box-shadow:
		0 16px 40px rgba(51, 45, 41, 0.08);

	box-sizing: border-box;
	isolation: isolate;
}


/* Offset background */

.story-video-frame::before,
.research-video-1::before,
.research-video-3::before {
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	top: 18px;
	left: 18px;
	border-radius: 24px;
	z-index: -1;
}


/* Offset outline */

.story-video-frame::after,
.research-video-1::after,
.research-video-3::after {
	content: "";
	position: absolute;
	width: 96%;
	height: 96%;
	top: -14px;
	left: -14px;
	background: transparent;
	border: 1px solid;
	border-radius: 24px;
	z-index: -2;
	pointer-events: none;
}


/* Video */

.story-video-frame video,
.story-video-frame iframe,
.research-video-1 video,
.research-video-1 iframe,
.research-video-3 video,
.research-video-3 iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 16px;
}



/* Main video sage */

.story-video-frame::before {
	background: #dde5d2;
}

.story-video-frame::after {
	border-color: #b7c2ad;
}



/* Research Videoideo 1 */

.research-video-1::before {
	background: #fee5e6;
}

.research-video-1::after {
	border-color: #e3bfc2;
}



/* Research video 3 */

.research-video-3::before {
	background: #dae5f9;
}

.research-video-3::after {
	border-color: #aebdd4;
}


/* =========================
   Contact Form
========================= */

.storyatlas-contact-form {
	width: 100%;
}


/* Field */

.contact-form-field {
	margin-bottom: 20px;
}


/* Label */

.contact-form-field label {
	display: block;
	margin-bottom: 8px;
	font-family: "Inter", sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #2f3d3a;
}


/* Input + textarea */

.contact-form-field input,
.contact-form-field textarea {
	width: 100%;

	padding: 13px 14px;

	font-family: "Inter", sans-serif;
	font-size: 14px;
	line-height: 1.5;

	color: #2f3d3a;

	background: #ffffff;

	border: 1px solid #d9d4ce;
	border-radius: 6px;

	box-sizing: border-box;

	outline: none;

	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}


/* Focus */

.contact-form-field input:focus,
.contact-form-field textarea:focus {
	border-color: #2e6b63;

	box-shadow: 0 0 0 2px rgba(46, 107, 99, 0.08);
}


/* Textarea */

.contact-form-field textarea {
	min-height: 150px;

	resize: vertical;
}


/* Button */

.contact-submit-button {
	display: block;
	margin-left: auto;
	padding: 10px 18px;
	border: none;
	border-radius: 999px;
	background-color: #332D29;
	font-family: "Inter", sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: #FFFFFF;
	cursor: pointer;
}


.contact-submit-button:hover {
	background-color: #2A5A52;
}



.contact-submit-button:focus {
	outline: 2px solid rgba(217, 87, 53, 0.25);
	outline-offset: 2px;
}


/* =========================
   Contact Messages
========================= */

.contact-form-message {
	margin-bottom: 20px;

	padding: 12px 14px;

	font-family: "Inter", sans-serif;
	font-size: 13px;
	line-height: 1.5;

	border-radius: 6px;
}


/* Success */

.contact-form-success {
	color: #2e6b63;

	background: #edf4f1;

	border: 1px solid rgba(46, 107, 99, 0.18);
}


/* Error */

.contact-form-error {
	color: #b94c30;

	background: #fff1eb;

	border: 1px solid rgba(217, 87, 53, 0.18);
}



























/* =========================================================
   RESPONSIVE
   ========================================================= */

/* =========================================================
   TABLET
   1024px and below
   ========================================================= */

@media (max-width: 1024px) {

	/* =========================
	   Dashboard Navigation
	   ========================= */

	.dashboard-sidebar {
		display: none !important;
	}

	.dashboard-layout {
		flex-direction: column !important;
		align-items: stretch !important;
		min-height: 0;
	}

	.mobile-sidebar {
		display: flex !important;
		width: 100% !important;
		max-width: none !important;
		height: 76px;
		padding: 16px 24px;
		align-items: center !important;
		justify-content: space-between !important;
		background-color: #FBF9F4;
		box-sizing: border-box;
	}

	.mobile-logo {
		margin: 0 !important;
	}

	.mobile-logo img {
		display: block;
		width: 220px;
		height: auto;
	}

	.mobile-sidebar > .wp-block-image {
		margin: 0 !important;
	}

	.mobile-sidebar > .wp-block-navigation {
		width: auto !important;
		max-width: none !important;
		margin-left: auto !important;
		margin-right: 0 !important;
	}

	.mobile-sidebar
	.wp-block-navigation__responsive-container-open {
		margin-left: auto !important;
		margin-right: 0 !important;
	}

	.mobile-sidebar
	.wp-block-navigation__responsive-container-content {
		gap: 16px !important;
	}

	.mobile-navigation {
		display: flex !important;
		align-items: center;
		justify-content: flex-end !important;
		margin-left: auto;
	}

	.mobile-navigation
	.wp-block-navigation__responsive-container.is-menu-open {
		margin-left: auto !important;
		padding: 32px;
		background-color: #FBF9F4;
	}

	.mobile-navigation
	.wp-block-navigation__responsive-container.is-menu-open a {
		color: #1f1a17;
		font-family: Inter, sans-serif;
		font-size: 16px;
		font-weight: 500;
		text-decoration: none;
	}

	.dashboard-content {
		width: 100% !important;
		max-width: none !important;
		flex: none !important;
	}


	/* =========================
	   Home Page Video Frames
	   ========================= */

	.story-video-frame,
	.research-video-1,
	.research-video-3 {
		border-radius: 20px;
	}

	.story-video-frame::before,
	.research-video-1::before,
	.research-video-3::before {
		top: 14px;
		left: 14px;
		border-radius: 20px;
	}

	.story-video-frame::after,
	.research-video-1::after,
	.research-video-3::after {
		top: -10px;
		left: -10px;
		border-radius: 20px;
	}

	.story-video-frame video,
	.story-video-frame iframe,
	.research-video-1 video,
	.research-video-1 iframe,
	.research-video-3 video,
	.research-video-3 iframe {
		border-radius: 14px;
	}


	/* =========================
	   Floating Memory Button
	   ========================= */

	.floating-memory-btn {
		right: 24px;
		bottom: 24px;
		width: 60px;
		height: 60px;
		font-size: 32px;
	}


	/* =========================
	   Registration + Login
	   ========================= */

	.reg-sec,
	.login-sec {
		padding: 48px 20px;
	}

	.reg-card,
	.login-card {
		max-width: 420px;
	}


	/* =========================
	   Featured Memories
	   ========================= */

	.memory-grid {
		column-count: 2;
		column-gap: 24px;
	}

	.memory-card {
		margin-bottom: 24px;
	}

	.category-filter-wrap {
		max-width: 240px;
	}


	/* =========================
	   Add Memory
	   ========================= */

	.memory-upload-box {
		height: 220px;
	}

	#memory-media-preview {
		height: 100%;
	}

	#memory-media-preview img {
		width: auto;
		height: 100%;
		max-width: 100%;
	}

	#memory-map {
		height: 280px;
	}

	.tags-row {
		gap: 32px;
	}

	.memory-emotions,
	.memory-categories {
		grid-template-columns: repeat(2, max-content);
	}


	/* =========================
	   Detailed Memory
	   ========================= */

	.memory-hero-content {
		padding: 28px 24px;
	}

	.memory-main-section {
		padding: 48px 24px;
	}

	.memory-main-section .wp-block-columns {
		flex-direction: column !important;
		gap: 32px;
	}

	.memory-story-column,
	.memory-sidebar-column {
		width: 100% !important;
		max-width: none !important;
	}

	.memory-sidebar-column {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.memory-info-card {
		grid-row: span 2;
	}

	.memory-info-image {
		height: 200px;
	}


	/* =========================
	   Memory Menu
	   ========================= */

	.memory-menu {
		margin-right: 12px;
	}


	/* =========================
	   My Archive
	   ========================= */

	.my-archive-grid {
		column-count: 2;
		column-gap: 20px;
		padding: 0 24px;
	}

	.my-archive-grid .memory-card {
		margin-bottom: 24px;
	}

	.my-archive-grid .memory-card-image {
		height: 220px;
	}

	.my-archive-grid .memory-card-content {
		padding: 26px;
	}


	/* =========================
	   Emotion Gallery
	   ========================= */

	.emotion-carousel {
		height: 330px;
	}

	.emotion-carousel-stage {
		height: 320px;
	}

	.emotion-card {
		width: 180px;
		height: 180px;
	}

	.emotion-image {
		width: 80px;
		height: 80px;
	}

	.carousel-prev {
		left: 15px;
	}

	.carousel-next {
		right: 15px;
	}


	/* =========================
	   Detailed Emotion Animation
	   ========================= */

	#joy-animation.detailed-emotion-animation,
	#loved-animation.detailed-emotion-animation,
	#sad-animation.detailed-emotion-animation,
	#calm-animation.detailed-emotion-animation,
	#gratitude-animation.detailed-emotion-animation,
	#nostalgic-animation.detailed-emotion-animation {
		width: 100% !important;
		height: auto !important;
		max-width: 600px !important;
		aspect-ratio: 3 / 2;
	}

	#joy-animation.detailed-emotion-animation canvas,
	#loved-animation.detailed-emotion-animation canvas,
	#sad-animation.detailed-emotion-animation canvas,
	#calm-animation.detailed-emotion-animation canvas,
	#gratitude-animation.detailed-emotion-animation canvas,
	#nostalgic-animation.detailed-emotion-animation canvas {
		width: 100% !important;
		height: 100% !important;
		max-width: 100% !important;
	}


	/* =========================
	   My Map
	   ========================= */

	#storyatlas-map {
		height: 65vh;
		min-height: 500px;
		max-height: 650px;
		border-radius: 12px;
	}

	.memory-marker {
		width: 46px;
		height: 46px;
	}

	.memory-label {
		padding: 6px 12px;
		font-size: 11px;
	}


	/* =========================
	   Profile & Settings
	   ========================= */

	.profile-settings-page {
		padding: 36px 24px;
	}

	.profile-settings-layout {
		grid-template-columns: 240px 1fr;
		gap: 20px;
	}

	.profile-summary-card {
		padding: 26px 20px;
	}

	.profile-avatar {
		width: 90px;
		height: 90px;
		font-size: 32px;
	}

	.profile-details-content {
		gap: 24px;
	}

	.profile-settings-main
	> .profile-settings-card {
		padding: 22px 24px;
	}

}


/* =========================================================
   MOBILE
   767px and below
   ========================================================= */

@media (max-width: 767px) {

	/* =========================
	   Mobile Navigation
	   ========================= */

	.mobile-sidebar {
		height: 70px;
		padding: 14px 16px;
	}

	.mobile-logo img {
		width: 180px;
	}

	.mobile-sidebar
	.wp-block-navigation__responsive-container-content {
		gap: 14px !important;
	}

	.mobile-navigation
	.wp-block-navigation__responsive-container.is-menu-open {
		padding: 24px;
	}

	.mobile-navigation
	.wp-block-navigation__responsive-container.is-menu-open a {
		font-size: 15px;
	}


	/* =========================
	   Home Page Video Frames
	   ========================= */

	.story-video-frame,
	.research-video-1,
	.research-video-3 {
		padding: 10px;
		border-radius: 18px;
	}

	.story-video-frame::before,
	.research-video-1::before,
	.research-video-3::before {
		top: 10px;
		left: 10px;
		border-radius: 18px;
	}

	.story-video-frame::after,
	.research-video-1::after,
	.research-video-3::after {
		top: -8px;
		left: -8px;
		border-radius: 18px;
	}

	.story-video-frame video,
	.story-video-frame iframe,
	.research-video-1 video,
	.research-video-1 iframe,
	.research-video-3 video,
	.research-video-3 iframe {
		border-radius: 12px;
	}


	/* =========================
	   Registration + Login
	   ========================= */

	.reg-sec,
	.login-sec {
		min-height: 100vh;
		padding: 32px 16px;
	}

	.reg-card,
	.login-card {
		max-width: none;
		padding: 28px 20px 24px;
	}

	.reg-title {
		font-size: 32px;
	}

	.login-title {
		font-size: 28px;
		margin-bottom: 28px;
	}

	.login-options {
		gap: 12px;
	}


	/* =========================
	   Featured Memories
	   ========================= */

	.memory-grid {
		column-count: 1;
		column-gap: 0;
	}

	.memory-card {
		margin-bottom: 24px;
	}

	.category-filter-wrap {
		width: 100%;
		max-width: none;
	}

	#category-filter {
		width: 100%;
	}


	/* =========================
	   Add Memory
	   ========================= */

	.memory-upload-box {
		height: 220px;
	}

	#memory-media-preview {
		width: 100%;
		height: 100%;
	}

	#memory-media-preview img {
		width: auto;
		height: 100%;
		max-width: 100%;
		object-fit: contain;
	}

	.tags-row {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.memory-emotions,
	.memory-categories {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
	}

	.memory-actions {
		gap: 10px;
		margin-top: 30px;
	}

	.memory-cancel,
	.memory-save {
		flex: 1;
		text-align: center;
	}

	#memory-map {
		height: 220px;
	}


	/* =========================
	   Detailed Memory
	   ========================= */

	.memory-hero-content {
		padding: 24px 18px;
	}

	.memory-hero-title {
		font-size: 28px;
	}

	.memory-main-section {
		padding: 32px 16px;
	}

	.memory-main-section .wp-block-columns {
		gap: 24px;
	}

	.memory-sidebar-column {
		display: flex;
		flex-direction: column;
		gap: 16px;
	}

	.memory-body-card {
		padding: 12px;
	}

	.memory-body-card .wp-block-post-content {
		font-size: 15px;
		line-height: 1.65;
	}

	.memory-body-card .memory-reflections-title {
		font-size: 26px;
	}

	.memory-reflection-text p {
		font-size: 14px;
	}

	.memory-body-card .memory-reflection-button {
		width: 100%;
	}

	.memory-info-image {
		height: 220px;
	}

	.memory-full-image {
		padding: 16px;
	}

	.memory-full-image-close {
		top: 14px;
		right: 18px;
	}


	/* =========================
	   Memory Menu
	   ========================= */

	.memory-menu {
		margin-right: 6px;
	}

	.memory-menu-button {
		width: 38px;
		height: 38px;
		font-size: 20px;
	}

	.memory-menu-dropdown {
		width: 165px;
	}


	/* =========================
	   My Archive
	   ========================= */

	.my-archive-grid {
		column-count: 1;
		padding: 0 16px;
	}

	.my-archive-grid .memory-card {
		margin-bottom: 24px;
	}

	.my-archive-grid .memory-card-image {
		height: 260px;
	}

	.my-archive-grid .memory-card-content {
		padding: 22px;
	}

	.my-archive-grid .memory-card-title {
		font-size: 20px;
	}

	.my-archive-grid .memory-card-date {
		font-size: 13px;
	}

	.my-archive-grid .memory-card-story {
		font-size: 14px;
		text-align: left;
	}


	/* =========================
	   Emotion Carousel
	   ========================= */

	.emotion-carousel {
		height: 300px;
		gap: 16px;
	}

	.emotion-carousel-stage {
		height: 280px;
	}

	.emotion-card {
		width: 150px;
		height: 150px;
		border-width: 6px;
	}

	.emotion-image {
		width: 66px;
		height: 66px;
	}

	.emotion-label {
		font-size: 14px;
	}

	.carousel-arrow {
		width: 38px;
		height: 38px;
		font-size: 18px;
	}

	.carousel-prev {
		left: 6px;
	}

	.carousel-next {
		right: 6px;
	}

	.emotion-carousel-text {
		padding: 0 40px;
		font-size: 13px;
		text-align: center;
	}


	/* =========================
	   Emotion Animations
	   ========================= */

	#sad-animation,
	#joy-animation,
	#loved-animation,
	#gratitude-animation,
	#nostalgic-animation,
	#calm-animation {
		width: 100%;
		max-width: 100%;
	}

	#sad-animation canvas,
	#joy-animation canvas,
	#loved-animation canvas,
	#gratitude-animation canvas,
	#nostalgic-animation canvas,
	#calm-animation canvas {
		width: 100% !important;
		height: auto !important;
		max-width: 100% !important;
	}

	#joy-animation.detailed-emotion-animation,
	#loved-animation.detailed-emotion-animation,
	#sad-animation.detailed-emotion-animation,
	#calm-animation.detailed-emotion-animation,
	#gratitude-animation.detailed-emotion-animation,
	#nostalgic-animation.detailed-emotion-animation {
		width: 100% !important;
		height: auto !important;
		max-width: 100% !important;
		aspect-ratio: 3 / 2;
		border-radius: 12px !important;
	}

	#joy-animation.detailed-emotion-animation canvas,
	#loved-animation.detailed-emotion-animation canvas,
	#sad-animation.detailed-emotion-animation canvas,
	#calm-animation.detailed-emotion-animation canvas,
	#gratitude-animation.detailed-emotion-animation canvas,
	#nostalgic-animation.detailed-emotion-animation canvas {
		width: 100% !important;
		height: 100% !important;
		max-width: 100% !important;
	}

	.joy-preview-content {
		height: auto;
		max-height: none;
	}


	/* =========================
	   My Map
	   ========================= */

	#storyatlas-map {
		height: 70vh;
		min-height: 420px;
		max-height: 600px;
		border-radius: 10px;
	}

	.memory-marker {
		width: 42px;
		height: 42px;
	}

	.memory-label {
		padding: 6px 10px;
		font-size: 11px;
	}


	/* =========================
	   Profile & Settings
	   ========================= */

	.profile-settings-page {
		padding: 28px 16px;
	}

	.profile-settings-heading {
		margin-bottom: 22px;
	}

	.profile-settings-heading h1 {
		font-size: 28px;
	}

	.profile-settings-layout {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.profile-summary-card {
		padding: 24px 20px;
	}

	.profile-avatar {
		width: 86px;
		height: 86px;
		font-size: 30px;
	}

	.profile-details-content {
		flex-direction: column;
		gap: 0;
	}

	.profile-details-left,
	.profile-details-right {
		width: 100%;
	}

	.profile-settings-main
	> .profile-settings-card {
		padding: 22px 18px;
	}

	.profile-details-right button {
		width: 100%;
		margin-left: 0;
	}

	.profile-settings-main
	> .profile-settings-card:last-child
	form {
		flex-direction: column;
		align-items: stretch;
	}

	.profile-settings-main
	> .profile-settings-card:last-child
	.profile-form-group {
		width: 100%;
		min-width: 0;
	}

	.profile-settings-main
	> .profile-settings-card:last-child
	button {
		width: 100%;
		margin-left: 0;
	}


	.floating-memory-btn {
		right: 18px;
		bottom: 18px;
		width: 56px;
		height: 56px;
		font-size: 30px;
	}
	
	
	
	.contact-form-field {
		margin-bottom: 18px;
	}


	.contact-form-field input,
	.contact-form-field textarea {
		padding: 12px 13px;

		font-size: 14px;
	}


	.contact-form-field textarea {
		min-height: 130px;
	}


	.contact-submit-button {
		width: 100%;

		padding: 13px 20px;
	}

}



