/**
 * About Block Styles
 * Styles for the About custom block
 *
 * @package made-to-thrive-2026-base
 * @since 1.0.0
 */

/* Main Container */
.about-block {
	width: 100%;
	margin: 0 auto;
	position: relative;
	padding: 150px 0 130px;
}

.about-container {
	width: 100%;
	max-width: 880px;
	margin: 0 auto;
	padding: 0;
	position: relative;
}

/* Top Section: Image left, content right */
.about-top-section {
	margin-bottom: 30px;
	flex-wrap: wrap;
	padding: 0 5px;
	position: relative;
}

.about-top-image-wrapper {
	max-width: 200px;
	width: 100%;
	float: left;
	margin: 0 93px 10px 0;
}

.about-top-image {
	width: 100%;
	height: 232px;
	border-radius: 15px;
	display: block;
	object-fit: cover;
}

.about-top-content {
	min-width: 0;
	position: relative;
}

.about-script-text {
	color: var(--SMOKED, #6D240B);
	text-align: left;
	

/* Special */
	font-family: Primed;
	font-size: 65px;
	font-style: normal;
	font-weight: 400;
	transform: rotate(-6deg);
	line-height: 100%; /* 65px */
	margin: 0;
	position: absolute;
	top: 34px;
	left: 172px;
}

.about-headline {
	color: var(--SMOKED, #6D240B);
	

/* H1 */
	font-family: "Google Sans Flex";
	font-size: 65px;
	font-style: normal;
	font-weight: 900;
	line-height: 105%; /* 68.25px */
	text-transform: uppercase;
	letter-spacing: -0.25rem;
	margin: 0;
	padding-top: 107px;
	width: 102%;
}

.about-intro-text {
	clear: both;
	color: var(--SMOKED, #6D240B);
	

/* H4 */
	font-family: "Perfectly Nineties";
	font-size: 26px;
	font-style: normal;
	font-weight: 300;
	line-height: 120%; /* 31.2px */
	letter-spacing: 0.52px;
	text-align: center;
	max-width: 646px;
	margin: 81px auto 92px;
}

.about-intro-text p {
	margin: 0 0 1rem;
}

.about-intro-text p:last-child {
	margin-bottom: 0;
}

/* Full Width Image Section */
.about-full-width-section {
	width: 100%;
	margin: 30px auto;
	position: relative;
}

.about-full-width-image-wrapper {
	position: relative;
	width: 100%;
}

.about-full-width-image {
	width: 100%;
	height: 433px;
	display: block;
	object-fit: cover;
	border-radius: 25px;
}

/* Icon Overlay */
.about-icon-overlay {
	position: absolute;
	top: -76px;
	right: -114px;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.about-icon-image {
	height: auto;
	display: block;
	width: 230px;
	transform: rotate(-25deg);
}

.about-icon-text {
	display: none;
}

/* Two-Column About Copy Section */
.about-copy-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
	margin-top: 40px;
}

.about-copy-column {
	font-family: var(--wp--preset--font-family--google-sans-flex, "Google Sans Flex", sans-serif);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: inherit;
}

.about-copy-column p {
	margin: 0;
	color: var(--SMOKED, #6D240B);

/* Body */
	font-family: "Google Sans Flex";
	font-size: 16px;
	font-style: normal;
	font-weight: 500;
	line-height: 140%; /* 23.8px */
	letter-spacing: 0.01rem;
}

.about-copy-column p:last-child {
	margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1080px) {
	.about-icon-overlay {
		right:0;
	}
}

@media (max-width: 768px) {
	.about-block {
		padding-top:80px;
		padding-bottom: 80px;
	}
	.about-top-image-wrapper {
		margin-right:20px;
	}
	.about-intro-text {
		margin: 30px auto 50px;
	}
	.about-icon-image {
		width:150px;
	}
	.about-icon-overlay {
		top:-50px;
	}
	.about-container {
		max-width:550px;
	}
	.about-headline {
		font-size:45px;
	}
	.about-copy-section {
		dis;
		grid-template-columns: 1fr;
		gap: 15px;
	}
}

@media (max-width: 550px) {
	.about-top-section {
	padding: 0;
	width: 95%;
	margin: 0 auto;
	}
	.about-top-image-wrapper {
	float:none;
	margin: 0 auto;
	}
	.about-top-content {
	position: initial;
	}
	.about-full-width-section {
	max-width:90%;
	}
	.about-full-width-image {
	height:172px;
	}
	.about-script-text {
	position: absolute;
	top: -48px;
	left: 0;
	font-size: 42px;
	}
	.about-headline {
	padding: 0;
	font-size: 42px;
	text-align: center;
	margin: 20px auto 0;
	} 
	.about-intro-text {
	font-size: 18px;
	max-width: 300px;
	}
	.about-icon-image {
	width: 110px;
	}
	.about-block {
		padding-top: 80px;
		padding-bottom: 45px;
	}
			    .bouncing-gallery-image-wrapper[data-image-index="1"] {
			    	left: inherit;
			    	right: 0;
			    	top: 0;
			    	transform: rotate(6deg);
			    }
	.about-copy-section {
	max-width:90%;
	margin: 0 auto;
	}
}

/* Accessibility: Focus States */
.about-top-image:focus-visible,
.about-full-width-image:focus-visible,
.about-icon-image:focus-visible {
	outline: 3px solid var(--wp--preset--color--cornflower, #5B66C6);
	outline-offset: 3px;
	border-radius: 15px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
	.about-top-image,
	.about-full-width-image,
	.about-icon-image {
		border: 2px solid currentColor;
	}
	
	.about-icon-overlay {
		background-color: rgba(255, 255, 255, 0.9);
		padding: 10px;
		border-radius: 8px;
	}
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
	.about-top-image,
	.about-full-width-image,
	.about-icon-image {
		transition: none;
	}
}

/* Editor Styles - Ensure proper sizing in block editor */
.block-editor-block-preview__container .about-container,
.editor-styles-wrapper .about-container,
.wp-block .about-container,
.block-editor-block-list__block .about-container,
.acf-block-preview .about-container {
	max-width: 1200px !important;
	width: 100% !important;
	margin: 0 auto !important;
	padding: 0 20px !important;
	box-sizing: border-box !important;
}

.block-editor-block-preview__container .about-top-section,
.editor-styles-wrapper .about-top-section,
.wp-block .about-top-section,
.block-editor-block-list__block .about-top-section,
.acf-block-preview .about-top-section {
	display: flex !important;
	align-items: flex-start !important;
	gap: 3rem !important;
	flex-wrap: wrap !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.block-editor-block-preview__container .about-top-image-wrapper,
.editor-styles-wrapper .about-top-image-wrapper,
.wp-block .about-top-image-wrapper,
.block-editor-block-list__block .about-top-image-wrapper,
.acf-block-preview .about-top-image-wrapper {
	flex: 0 0 auto !important;
	max-width: 400px !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.block-editor-block-preview__container .about-top-image,
.editor-styles-wrapper .about-top-image,
.wp-block .about-top-image,
.block-editor-block-list__block .about-top-image,
.acf-block-preview .about-top-image {
	width: 100% !important;
	height: auto !important;
	object-fit: cover !important;
	border-radius: 15px !important;
}

.block-editor-block-preview__container .about-full-width-image-wrapper,
.editor-styles-wrapper .about-full-width-image-wrapper,
.wp-block .about-full-width-image-wrapper,
.block-editor-block-list__block .about-full-width-image-wrapper,
.acf-block-preview .about-full-width-image-wrapper {
	position: relative !important;
	width: 100% !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
}

.block-editor-block-preview__container .about-full-width-image,
.editor-styles-wrapper .about-full-width-image,
.wp-block .about-full-width-image,
.block-editor-block-list__block .about-full-width-image,
.acf-block-preview .about-full-width-image {
	width: 100% !important;
	height: auto !important;
	object-fit: cover !important;
	display: block !important;
}

.block-editor-block-preview__container .about-copy-section,
.editor-styles-wrapper .about-copy-section,
.wp-block .about-copy-section,
.block-editor-block-list__block .about-copy-section,
.acf-block-preview .about-copy-section {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 3rem !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

/* Ensure block wrapper doesn't overflow in editor */
.block-editor-block-preview__container .about-block,
.editor-styles-wrapper .about-block,
.wp-block[data-type="cwp/about"],
.acf-block-preview .about-block {
	max-width: 100% !important;
	width: 100% !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
}

