/**
 * Sticky Title Block Styles
 */

.sticky-title-wrapper {
	background-color: #423385;
	width: 100%;
	height: 190vh;
	position: relative;
}

.wp-block-brandspeak-sticky-title {
	background-color: transparent;
	width: 100%;
	min-height: 190vh;
	position: relative;
}

/* Full width alignment */
.wp-block-brandspeak-sticky-title.alignfull {
	max-width: none !important;
	width: 100vw !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Wide alignment */
.wp-block-brandspeak-sticky-title.alignwide {
	max-width: 1600px;
	width: 100%;
}

/* Background SVG */
.sticky-title-background {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	padding: 0 1.5em;
}

.sticky-title-svg {
	display: block;
	width: 100%;
	max-width: 1400px;
	height: auto;
}

/* Sticky container */
.sticky-title-container {
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100vh;
	padding-left: 1.5em;
	padding-right: 1.5em;
	display: flex;
	position: sticky;
	top: 0;
	z-index: 1;
}

.sticky-title-inner {
	text-align: center;
	flex-flow: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	max-width: 60em;
	margin-left: auto;
	margin-right: auto;
	display: flex;
	position: relative;
	z-index: 2;
}

.sticky-title-el {
	margin-top: 0;
	margin-bottom: 0;
	font-size: 5em;
	font-weight: 500;
	line-height: 1;
	font-family: "tt-commons-pro", sans-serif;
	color: var(--sticky-title-text, #ffffff);
}

.sticky-title-el.is--stacked {
	visibility: hidden;
	position: absolute;
}

/* Editor styles */
.editor-styles-wrapper .wp-block-brandspeak-sticky-title,
.block-editor-block-list__block .wp-block-brandspeak-sticky-title,
.sticky-title-editor-wrapper {
	min-height: 400px !important;
	max-height: 600px !important;
	height: auto !important;
}

.sticky-title-editor-wrapper {
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
}

/* Responsive adjustments */
@media screen and (max-width: 767px) {
	.sticky-title-el {
		font-size: 3.5em;
	}

	.sticky-title-container {
		padding-left: 1em;
		padding-right: 1em;
	}
}
