x/**
 * Memories Block Styles
 *
 * @package made-to-thrive-2026-base
 * @since 1.0.0
 */

/* Main Block Container */
.memories {
	width: 100%;
	position: relative;
	padding: 0;
	overflow: hidden;
}

.memories-container {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	min-height: 600px;
	position: relative;
}

/* Background Split - Dark brown top 2/3, beige bottom 1/3 */
.memories-container::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 66.666%;
	background-color: #4C4C3B;
	z-index: 0;
}

.memories-container::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 33.333%;
	background-color: #F8F2DF;
	z-index: 0;
}

/* Top Text Area */
.memories-top-text {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 47px 0 177px;
    max-width: 603px;
    margin: 0 auto 0;
    box-sizing: border-box;
}

.memories-top-text-content {
	width: 100%;
	max-width: 900px;
	font-size: 16px;
	line-height: 22px;
	font-family: 'p22-mackinac-pro';
}

.memories-top-text-content p {
	letter-spacing: -0.03rem;
	margin: 0 0 20px;
	 /* Preserves line breaks and spacing for manual staggering */
}
.memories-top-text-content p.memories-top-text-line-1 {
	margin: -20px 0 0 0;
	padding: 0 0 0 18px;
}
.memories-top-text-content p.memories-top-text-line-2 {
	padding: 0 0 0 36px;
	margin:0;
}
.memories-top-text-content p.memories-top-text-line-3 {
	padding: 0 0 0 54px;
	margin:0;
}
.memories-top-text-content p:last-child {
	margin-bottom: 0;
}

/* Individual line styling */
.memories-top-text-line-1 {
	margin: 0 0 20px;
}

.memories-top-text-line-2 {
	margin: 0 0 20px;
}

.memories-top-text-line-3 {
	margin: 0 0 20px;
}

.memories-top-text-line-3:last-child {
	margin-bottom: 0;
}



/* Three Images Container */
.memories-images {
	position: relative;
	z-index: 2;
	display: flex;
	gap: 28px;
	justify-content: center;
	align-items: center;
	width: 100%;
	max-width: 100%;
	margin: 0 auto 0;
	padding: 0 20px;
	box-sizing: border-box;
	background: #F8F2DF;
}

/* Above 900px: Swiper classes should not interfere with flex layout */
@media (min-width: 901px) {
	.memories-images.memories-swiper {
		display: flex;
	}
	
	.memories-images.memories-swiper .swiper-wrapper {
		display: flex;
		gap: 28px;
		justify-content: center;
		align-items: center;
		width: 100%;
		flex-wrap: nowrap;
	}
	
	.memories-images.memories-swiper .swiper-slide {
		display: block;
		width: auto;
		flex: 1;
		max-width: 366px;
	}
}

.memories-image-wrapper:before {
	content:"";
	display:block;
	width:100%;
	height:100%;
	background:#C1B488;
	border-radius:12px;
	position:absolute;
	top: -7px;
	left: -8px;
	z-index:0;
}
.memories-image-wrapper {
	margin: -136px 0 0;
	padding: 0;
	flex: 1;
	max-width: 366px;
	position: relative;
	overflow: visible;
	border-radius: 12px;
}

.memories-image {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	object-position: center;
	width: 366px;
	height: 448px;
	border-radius: 12px;
		position:relative;
}


/* Image 2 Overlay for SVG Text */
.memories-image-2-wrapper {
	overflow: visible;
}

.memories-image-2-overlay {
	position: absolute;
	top: 94px;
	left: 0;
	width: 100%;
	pointer-events: none;
	z-index: 10;
	display: flex;
	height: 108px;
}

.memories-image-2-overlay svg {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.memories-image-2-overlay svg text,
.memories-image-2-overlay svg tspan {
	opacity: 1;
	visibility: visible;
}

/* Bottom Content: Titles and Button */
.memories-bottom-content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 48px 45px 60px;
	text-align: center;
	box-sizing: border-box;
	background: #F8F2DF;
}

/* Small Title (h3) */
.memories-small-title {
	margin: 0 0 7px;
	padding: 0;
	font-size: 26px;
	line-height: 28px;
	font-weight: 400;
	font-family: 'Article Century';
	text-transform: uppercase;
	color: #4C4C3B!important;
	letter-spacing: 0;
}

/* Large Title (h2) */
.memories-large-title {
	margin: 0 0 34px;
	padding: 0;
	font-size: 35px;
	line-height: 1.3;
	font-weight: 100;
	font-family: 'Sunrider', sans-serif;
	text-transform: uppercase;
	color: #D3B055!important;
	letter-spacing: 0;
}

/* Button */
.memories-button {
	display: inline-block;
	padding: 2px 9px 1px;
	background-color: #D4B055;
	color: #4C4C3B!important;
	border: 2px solid #4C4C3B;
	font-size: 15px;
	font-family: 'Sunrider', sans-serif;
	font-weight: 400;
	text-decoration: none;
	border-radius: 7px;
	transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0;
	cursor: pointer;
}

.memories-button:hover,
.memories-button:focus {
	transform: translateY(-2px);
}

.memories-button:active {

}

/* Responsive Design - Tablet (768px - 1024px) */
@media (max-width:1080px) {
	.memories-images {
		max-width: 100%;
	}
	.memories-image {
		width:100%;
		aspect-ratio: 8/11;
		height: auto;
	}
	.memories-image-wrapper {
		max-width: 31%;
	}
}

/* Swiper Slider - 900px and below */
@media (max-width: 900px) {
	.memories-top-text {
		padding-bottom: 30px;
	}
	
	/* Disable flex layout for Swiper */
	.memories-images.memories-swiper {
		display: block;
		padding: 37px 20px 20px;
		margin: 0 auto 0;
		background: #F8F2DF;
		position: relative;
		overflow: visible;
	}
	
	.memories-images.memories-swiper:before {
		content: "";
		display: block;
		width: 100%;
		height: 210px;
		background: #724e30;
		position: absolute;
		top: 0;
		z-index: 0;
		left: 0;
	}
	
	.memories-images.memories-swiper .swiper-wrapper {
		position: relative;
		z-index: 1;
		display: flex;
	}
	
	.memories-images.memories-swiper .swiper-slide {
		display: flex;
		justify-content: center;
		align-items: center;
		width: 366px; /* Fixed width for centered slides peek effect */
		flex-shrink: 0;
		box-sizing: border-box;
		margin: 0 auto;
	}
	
	.memories-images.memories-swiper .memories-image-wrapper {
		flex: 0 0 auto;
		max-width: 366px;
		width: 366px;
		margin: 0;
	}
	
	.memories-images.memories-swiper .memories-image {
		width: 366px;
		height: 448px;
		aspect-ratio: auto;
	}
}

/* Responsive Design - Mobile (max-width: 767px) */
@media (max-width: 767px) {
	.memories-container {
		min-height: auto;
	}

	.memories-top-text {
		padding: 40px 20px 20px;
	}

	.memories-top-text-content {
		font-size: 1rem;
	}

	.memories-image-wrapper {
		max-width: 366px;
		width: 366px;
	}
	
	.memories-image {
		width: 366px;
		height: 448px;
	}

	.memories-bottom-content {
		padding: 20px 20px 40px;
	}

	.memories-small-title {
		margin-bottom: 15px;
	}

	.memories-large-title {
		margin-bottom: 25px;
	}

	.memories-button {
		padding: 10px 24px;
		width: auto;
	}
}

/* Extra Small Devices (max-width: 550px) */
@media (max-width: 550px) {
    .memories-image {
	        width: 272px;
	        height: 370px;
	   }
	    .memories-image-wrapper {
        max-width: 270px;
        width: 270px;
    }
	    .memories-small-title {
       font-size:16px;
       line-height: 1.3;
       max-width: 240px;
       margin: 0 auto 14px;
    }
	    .memories-large-title {
       font-size: 22px;
       line-height: 22px;
       max-width: 285px;
       margin: 0 auto 20px;
    }
	.memories-button {
        padding: 5px 14px;
        width: auto;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
	.memories-container::before {
		background-color: #000000;
	}

	.memories-container::after {
		background-color: #ffffff;
		border-top: 3px solid #000000;
	}

	.memories-top-text-content {
		color: #ffffff;
		background-color: rgba(0, 0, 0, 0.8);
		padding: 1.5rem;
		border: 2px solid #ffffff;
	}

	.memories-image-wrapper {
		border: 3px solid #000000;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
	}

	.memories-small-title,
	.memories-large-title {
		color: #000000;
		background-color: rgba(255, 255, 255, 0.9);
		padding: 0.75rem 1rem;
		border: 2px solid #000000;
	}

	.memories-button {
		background-color: #FFD700;
		color: #000000;
		border: 3px solid #000000;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
	}

	.memories-button:hover,
	.memories-button:focus {
		background-color: #FFED4E;
		outline: 3px solid #000000;
	}
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
	.memories-button {
		transition: background-color 0.2s ease, box-shadow 0.2s ease;
	}

	.memories-button:hover,
	.memories-button:focus {
		transform: none;
	}

	.memories-button:active {
		transform: none;
	}
}

/* Print Styles */
@media print {
	.memories-container::before,
	.memories-container::after {
		display: none;
	}

	.memories {
		background-color: #ffffff;
	}

	.memories-top-text {
		padding: 1rem;
		background-color: #ffffff;
		border: 1px solid #000000;
	}

	.memories-top-text-content {
		color: #000000;
	}

	.memories-images {
		flex-direction: column;
		gap: 1rem;
		margin: 1rem auto;
		page-break-inside: avoid;
	}

	.memories-image-wrapper {
		page-break-inside: avoid;
		border: 1px solid #000000;
	}

	.memories-image {
		max-height: 300px;
		object-fit: contain;
	}

	.memories-bottom-content {
		padding: 1rem;
		background-color: #ffffff;
		border: 1px solid #000000;
	}

	.memories-small-title,
	.memories-large-title {
		color: #000000;
		background-color: transparent;
		border: none;
		padding: 0;
	}

	.memories-button {
		background-color: transparent;
		color: #000000;
		border: 2px solid #000000;
		box-shadow: none;
	}
}

/* Support for block wrapper color classes */
.memories.has-background {
	padding: 0;
}

.memories.has-text-color .memories-top-text-content,
.memories.has-text-color .memories-small-title,
.memories.has-text-color .memories-large-title {
	color: inherit;
}

/* Override background split when block background color is set */
.memories.has-background .memories-container::before,
.memories.has-background .memories-container::after {
	display: none;
}

.memories.has-background .memories-container {
	background-color: inherit;
}



