/* * * * * * * * * * * * * * * * * * * * * * *
 * General
 * * * * * * * * * * * * * * * * * * * * * * */
@font-face {
    font-family: 'Vigrand';
    src: url('../fonts/Vigrand-Bold.woff2') format('woff2'),
        url('../fonts/Vigrand-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

/* * * * * * * * * * * * * * * * * * * * * * *
 * Hero section
 * * * * * * * * * * * * * * * * * * * * * * */
.hero-section {
	min-height: clamp(400px, 36vw, 900px);
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	background: #333;
	color: white;
}

.hero-section .content-contain {
	z-index: 9;
	position: relative;
	width: 95%;
}

.hero-section .content-contain .sazs50-logo {
	margin: 0 auto 3em auto;
	display: block;
	animation: fadeInUp 1s ease forwards;
	opacity: 0;
	width: auto;
}

.hero-section .content-contain h1 {
	font-size: 0 !important;
	text-transform: uppercase;
	text-align: center;
	margin: 0 auto !important;
	padding: 0 !important;
	line-height: 1.1 !important;
	background-color: transparent !important;
	display: block;
	max-width: max-content;
	font-weight: bold !important;
	color: inherit;
	animation: fadeInUp 1s ease forwards 0.3s;
	opacity: 0;
}

.hero-section .content-contain h1 svg {
	width: clamp(250px, 33vw, 700px);
	height: auto;
	display: block;
	margin: 0 auto;
}

@keyframes fadeInUp {
	0% {
		opacity: 0;
		transform: translateY(100px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

.hero-section .hero-image {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	right: 0;
	z-index: 1;
	pointer-events: none;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	filter: brightness(0.5);
}

.checkered-bg {
	height: 100px;
	background-image: 
		repeating-conic-gradient(#fff 0% 25%, transparent 0% 50%),
		repeating-conic-gradient(var(--saz-primary) 0% 25%, transparent 0% 50%);
	background-size: 100px 100px, 100px 100px;
	background-position: 0 0, 0 0;
	position: relative;
	overflow: hidden;
	animation: slideCheckers 0.6s ease forwards 0.6s;
	will-change: background-position;
}

@keyframes slideCheckers {
	0% {
		background-position: 0 0, 0 0;
	}
	100% {
		background-position: 0 0, -50px 0;
	}
}

/* * * * * * * * * * * * * * * * * * * * * * *
 * Top sections container
 * * * * * * * * * * * * * * * * * * * * * * */
.top-sections-contain {
	background: #fcfcfc repeat-y center top;
	background-image: url('../images/sazs50/speckle-pattern-bg.jpg');
}

@media screen and (max-width: 1200px) {
	.top-sections-contain {
		background-image: url('../images/sazs50/speckle-pattern-bg-1200.jpg');
	}
}

@media screen and (max-width: 600px) {
	.top-sections-contain {
		background-image: url('../images/sazs50/speckle-pattern-bg-600.jpg');
	}
}

/* * * * * * * * * * * * * * * * * * * * * * *
 * Intro section
 * * * * * * * * * * * * * * * * * * * * * * */
.intro-section {
	text-align: center;
	text-wrap: balance;
	overflow: hidden;
}

.intro-section .container {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 40px;
}

.intro-section .container .img-contain {
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(200px, 33%, 500px);
	flex-shrink: 0;
}

.intro-section .container .img-contain:first-of-type {
	margin-left: -13%;
	z-index: 5;
	--enter-x: -150px;
}

.intro-section .container .img-contain:last-of-type {
	margin-right: -13%;
	--enter-x: 150px;
}

.intro-section .container .img-contain img {
	height: auto;
	width: auto;
	max-width: 100%;
	max-height: 100%;
	opacity: 0;
	transform: translateX(var(--enter-x, 0));
	transition: opacity 1s ease, transform 1s ease;
}

.intro-section .container .img-contain.animate-in img {
	opacity: 1;
	transform: translateX(0);
	transition-delay: 0.3s;
}

.intro-section .container .content-contain {
	transition: opacity 1s ease, transform 1s ease;
	opacity: 0;
	transform: translateY(100px);
}

.intro-section .container .content-contain.animate-in {
	opacity: 1;
	transform: translateY(0);
}

.intro-section h2 {
	margin-bottom: 0.7em;
}

.intro-section h2 .emphasis {
	font-family: 'Vigrand', sans-serif !important;
	color: var(--saz-primary);
	font-size: 150%;
	text-transform: capitalize;
	vertical-align: sub;
	display: inline-block;
}

@media screen and (max-width: 1400px) {
	.intro-section .container {
		flex-wrap: wrap;
		gap: 50px 0;
	}

	.intro-section .container .content-contain {
		width: 100%;
	}

	.intro-section .container .img-contain {
		margin: unset;
		order: 2;
		width: auto;
	}

	.intro-section .container .img-contain img {
		max-height: 520px;
		max-width: 150%;
	}

	.intro-section .container .img-contain:first-of-type {
		max-width: min(45%, 300px);
	}

	.intro-section .container .img-contain:last-of-type {
		max-width: min(55%, 350px);
	}

	.intro-section + .festa-sazama-section {
		padding-top: 0;
	}
}

/* * * * * * * * * * * * * * * * * * * * * * *
 * Festa Sazama section
 * * * * * * * * * * * * * * * * * * * * * * */
.festa-sazama-section {
	position: relative;
	overflow: hidden;
}

.festa-sazama-section .bldg-bg {
	position: absolute;
	bottom: 0;
	right: 0;
	width: auto;
	height: auto;
	max-width: 80%;
	pointer-events: none;
	z-index: 1;
}

.festa-sazama-section .container {
	position: relative;
	z-index: 9;
	display: flex;
	padding-bottom: clamp(50px, 10%, 100px);
	align-items: flex-start;
}

.festa-sazama-section .container .content-contain {
	flex: 1 1 0;
	padding-right: clamp(60px, 9%, 150px);
	align-self: center;
	opacity: 0;
	transform: translateX(-100px);
	transition: opacity 1s ease, transform 1s ease;
}

.festa-sazama-section .container .content-contain.animate-in {
	opacity: 1;
	transform: translateX(0);
}

.festa-sazama-section .container .img-contain {
	position: relative;
	flex: 1 1 0;
	container-type: inline-size;
  	container-name: festa-sazama-img-contain;
	display: flex;
	flex-direction: column-reverse;
	align-items: flex-start;
	gap: 40px;
	width: 100%;
}

.festa-sazama-section .container .img-contain .callout-text {
	--heading-scaler: 11cqi;
	font-size: clamp(28px, var(--heading-scaler), 75px) !important;
	text-transform: uppercase;
	margin: 0 !important;
	text-align: left;
	padding: 0 !important;
	line-height: 1.2 !important;
	display: block;
	font-family: 'brandon_printedone', sans-serif !important;
	font-weight: normal !important;
	max-width: 80%;
	word-break: keep-all;
	transition: opacity 1s ease, transform 1s ease;
	opacity: 0;
	transform: translateY(150px);
}

.festa-sazama-section .container .img-contain.animate-in .callout-text {
	opacity: 1;
	transform: translateY(0);
}

.festa-sazama-section .container .img-contain img.saz50-badge {
	position: absolute;
	right: 0;
	top: 0;
	transform: translate(100%, -15%);
	max-width: 40%;
	height: auto;
	width: auto;
	opacity: 0;
	transition: opacity 1s ease, transform 1s ease;
}

.festa-sazama-section .container .img-contain.animate-in img.saz50-badge {
	transform: translate(clamp(0%, 5vw, 50%), -15%);
	opacity: 1;
}

@media screen and (max-width: 1050px) {

	.festa-sazama-section .bldg-bg {
		max-width: 100%;
	}
	
	.festa-sazama-section .container {
		flex-direction: column;
		gap: 70px;
	}

	.festa-sazama-section .container .content-contain {
		padding-right: 0;
	}

	.festa-sazama-section .container .img-contain {
		max-width: 700px;
	}

	.festa-sazama-section .container .img-contain .callout-text {
		--heading-scaler: 9cqi;
		max-width: 70%;
	}
}

@media screen and (max-width: 1400px) and (min-width: 1051px) {

	.festa-sazama-section .container .img-contain .callout-text {
		--heading-scaler: 12cqi;
		max-width: 90%;
	}

	.festa-sazama-section .container .img-contain img.saz50-badge {
		position: relative;
		transform: translateX(100%);
		max-width: min(55%, 280px);
	}

	.festa-sazama-section .container .img-contain.animate-in img.saz50-badge {
		transform: translateX(0);
	}
}

/* * * * * * * * * * * * * * * * * * * * * * *
 * Timeline section
 * * * * * * * * * * * * * * * * * * * * * * */
.timeline-section {
	position: relative;
	background: #191919;
	color: white;
}

.timeline-section.padding-y {
	padding-top: clamp(20px, 5%, 100px);
}

.timeline-section .timeline-container {
	position: relative;
	z-index: 10;
	scroll-margin-top: var(--header-height, 0);
}

/* Timeline background image swiper container */
.timeline-bg-swiper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
}

.timeline-bg-swiper .swiper {
	height: 100%;
	width: 100%;
}

.timeline-bg-swiper .swiper .swiper-slide img {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: block;
	object-fit: cover;
	object-position: center;
	max-width: none;
	max-height: none;
	width: 100%;
	height: 100%;
	pointer-events: none;
	user-select: none;
}

.timeline-section .timeline-pagination {
	position: relative;
	z-index: 9;
	display: flex;
	justify-content: space-evenly;
	margin: 0 0 80px 0;
	padding-top: 1.5em;
}

.timeline-section .timeline-pagination::after {
	content: '';
	background: #666666;
	opacity: 0.35;
	height: 2px;
	width: 100dvw;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 0;
	pointer-events: none;
	z-index: 5;
}

.timeline-section .timeline-pagination .timeline-pagination-button {
	appearance: none;
	font:inherit;
	background: transparent;
	outline: none;
	border: none;
	color: inherit;
	cursor: pointer;
	box-shadow: none;
	text-decoration: none;
	border-radius: 0;
	line-height: 1;
	margin: 0;
	padding: 0.3em 0 1.2em 0;
	font-size: 30px;
	font-weight: 900;
	text-align: center;
	position: relative;
	z-index: 10;
	color: white;
	transition: all 0.3s ease;
}

.timeline-section .timeline-pagination .timeline-pagination-button::before {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translate(-50%, 50%);
	height: max(0.7em, 14px);
	width: max(0.7em, 14px);
	background: currentColor;
	border-radius: 50%;
}

.timeline-section .timeline-pagination .timeline-pagination-button:not(.active) {
	color: #666666;
}

.timeline-section .timeline-pagination .timeline-pagination-button:not(.active):where(:hover, :focus-visible) {
	color: #aaaaaa;
}

/* Main timeline swiper container */
.timeline-section .timeline-swiper {
	--swiper-navigation-sides-offset: -70px;
}

.timeline-section .timeline-swiper .swiper-button-disabled {
	opacity: .2;
}

.timeline-section .timeline-swiper .swiper .swiper-wrapper {
	align-items: center;
	transition: all 0.5s ease;
}

.timeline-swiper .swiper:not(.swiper-initialized) .timeline-entry:not(:first-child) {
	display: none;
}

.timeline-swiper .swiper .timeline-entry {
	position: relative;
	z-index: 10;
	display: flex;
	gap: 60px;
	height: auto;
}

.timeline-swiper .swiper .timeline-entry .content-contain {
	max-width: 50%;
	flex: 1 1 0;
	opacity: 0;
	transform: translateX(-100px);
	transition: opacity 0.5s ease, transform 0.5s ease;
	will-change: transform, opacity;
}

.timeline-swiper .swiper .timeline-entry.animate-in .content-contain {
	opacity: 1;
	transform: translateX(0);
}

.timeline-swiper .swiper .timeline-entry .content-contain :where(h1, h2, h3, h4, h5, h6) {
	text-transform: capitalize;
	font-weight: 900;
}

.timeline-swiper .swiper .timeline-entry .content-contain :where(h1, h2, h3, h4, h5, h6) small {
	font-size: max(16px, 50%);
	text-transform: uppercase;
}

.timeline-swiper .swiper .timeline-entry .content-contain :where(ol, ul) {
	margin: 1em 0 1em 1em;
}

.timeline-swiper .swiper .timeline-entry .content-contain :where(ol, ul) li {
	margin: 0.7em 0;
	line-height: 1.5;
}

.timeline-swiper .swiper .timeline-entry .content-contain :where(ol, ul, li):last-child {
	margin-bottom: 0;
}

.timeline-swiper .swiper .timeline-entry .img-contain {
	max-width: 60%;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	flex: 1.2 1 0;
	opacity: 0;
	transform: translateX(100px);
	transition: opacity 0.5s ease, transform 0.5s ease;
	will-change: transform, opacity;
	align-self: center;
	user-select: none;
	pointer-events: none;
}

.timeline-swiper .swiper .timeline-entry.animate-in .img-contain {
	opacity: 1;
	transform: translateX(0);
}

.timeline-swiper .swiper .timeline-entry .img-contain img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0;
}

@media screen and (max-width: 1650px) {
	.timeline-swiper .swiper .timeline-entry .img-contain {
		flex: 1 1 0;
	}
}

/* Update JS if change MQ value */
@media screen and (max-width: 1500px) {
	#sazs-timeline .timeline-pagination {
		position: sticky;
		top: var(--header-height, 0);
		left: 0;
		z-index: 20;
	}

	#sazs-timeline .timeline-pagination::before {
		content: '';
		position: absolute;
		left: 50%;
		top: 0;
		transform: translateX(-50%);
		width: 100dvw;
		height: calc(100% + 3em);
		pointer-events: none;
		z-index: 0;
		background: linear-gradient(180deg, #191919 0%, rgba(25, 25, 25, 0.92) 60%, rgba(25, 25, 25, 0) 100%);
		opacity: 0;
		transition: opacity 240ms ease;
	}

	#sazs-timeline .timeline-pagination.is-stuck::before {
		opacity: 1;
	}

	.timeline-section .timeline-swiper :where(.swiper-button-next, .swiper-button-prev) {
		display: none;
	}

	.timeline-section .timeline-pagination .timeline-pagination-button {
		font-size: 26px;
	}

	.timeline-section .timeline-swiper .swiper .swiper-wrapper {
		align-items: flex-start;
	}

	.timeline-swiper .swiper .timeline-entry {
		flex-direction: column;
		align-items: center;
	}

	.timeline-swiper .swiper .timeline-entry :is(.content-contain, .img-contain) {
		width: 100%;
		max-width: 800px;
	}

	.timeline-swiper .swiper .timeline-entry .img-contain img {
		max-height: 500px;
	}
}

@media screen and (max-width: 1200px) {
	.timeline-section .timeline-pagination .timeline-pagination-button {
		font-size: 24px;
	}
}

@media screen and (max-width: 800px) {
	.timeline-section .timeline-pagination {
		justify-content: space-between;
	}

	.timeline-section .timeline-pagination .timeline-pagination-button {
		font-size: 20px;
	}
}

@media screen and (max-width: 640px) {
	.timeline-swiper .swiper .timeline-entry {
		gap: 35px;
	}
	
	#sazs-timeline .timeline-pagination {
		padding-top: 0.8em;
	}

	#sazs-timeline .timeline-pagination::before {
		height: calc(100% + 6em);
	}

	.timeline-section .timeline-pagination .timeline-pagination-button {
		font-size: 18px;
		min-height: 2.25em;
		min-width: 2em;
		padding-top: 0;
	}

	.timeline-section .timeline-pagination .timeline-pagination-button span {
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		top: 5px;
	}

	.timeline-section .timeline-pagination .timeline-pagination-button:nth-of-type(even) span {
		top: 100%;
		padding-top: 1em;
	}
}


/* * * * * * * * * * * * * * * * * * * * * * *
 * Contact form section
 * * * * * * * * * * * * * * * * * * * * * * */
.form-section {
	color: white;
	background: #750c1f;
	position: relative;
	overflow: hidden;
}

.form-section::before {
	content: '';
	background: repeat-y center top / 100%;
	background-image: url('../images/sazs50/dust-pattern-bg.jpg');
	pointer-events: none;
	z-index: 1;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	mix-blend-mode: multiply;
	opacity: 0.5;
}

@media screen and (max-width: 1200px) {
	.form-section::before {
		background-image: url('../images/sazs50/dust-pattern-bg-1200.jpg');
	}
}

@media screen and (max-width: 600px) {
	.form-section::before {
		background-image: url('../images/sazs50/dust-pattern-bg-600.jpg');
	}
}

.form-section .container {
	position: relative;
	z-index: 9;
	display: flex;
	align-items: flex-start;
}

.form-section .container .content-contain {
	text-align: left;
	flex: 1 1 0;
	padding-right: clamp(60px, 9%, 150px);
	min-width: 0;
	container-type: inline-size;
	opacity: 0;
	transform: translateX(-100px);
	transition: opacity 1s ease, transform 1s ease;
}

.form-section .container .content-contain.animate-in {
	opacity: 1;
	transform: translateX(0);
}

.form-section .container .form-contain {
	flex: 1 1 0;
	min-width: 0;
	opacity: 0;
	transform: translateX(100px);
	transition: opacity 1s ease, transform 1s ease;
}

.form-section .container .form-contain.animate-in {
	opacity: 1;
	transform: translateX(0);
}

.form-section .container .content-contain .form-heading {
	--heading-scaler: 13cqi;
	font-size: clamp(38px, var(--heading-scaler), 80px) !important;
	text-transform: uppercase;
	margin: 0 0 0.7em 0 !important;
	padding: 0 !important;
	line-height: 1.2 !important;
	display: block;
	font-family: 'brandon_printedone', sans-serif !important;
	font-weight: normal !important;
	word-break: keep-all;
}

.form-section .container .content-contain .swiper-outer-contain::before {
	content: '';
	background: url('../images/sazs50/quotes.png') no-repeat center / contain;
	width: clamp(60px, 5.5vw, 173px);
	height: clamp(40px, 5.5vw, 145px);
	position: absolute;
	pointer-events: none;
	right: calc(100% + clamp(10px, 1.5vw, 40px));
	top: 0;
}

.form-section .container .content-contain .swiper-outer-contain :where(.swiper-button-prev, .swiper-button-next) {
	top: unset;
	left: unset;
	right: 0;
	bottom: 0;
	background: var(--saz-primary);
	padding: 6px;
	opacity: 0.7;
	transition: all 0.3s ease;
	border-radius: 2px;
}

.form-section .container .content-contain .swiper-outer-contain :where(.swiper-button-prev, .swiper-button-next):hover {
	opacity: 1;
}

.form-section .container .content-contain .swiper-outer-contain .swiper-button-prev {
	right: calc(var(--swiper-navigation-size) + 5px);
}

.form-section .container .content-contain .swiper q.short-quote {
	font-family: "brandon-grotesque";
	text-transform: uppercase;
	font-weight: bold;
	font-size: 20px !important;
}

.form-section .container .content-contain .swiper blockquote {
	font-family: "brandon-grotesque";
	color: currentColor;
	font-size: 17px;
	line-height: 1.8;
	padding: 0;
	margin: 1.5em 0;
}

.form-section .container .content-contain .swiper blockquote::before {
	content: unset;
	display: none;
}

.form-section .container .content-contain .swiper cite {
	font-weight: bold;
}

.form-section form {
	margin-top: 0;
}

.form-section .ginput_preview_list {
	margin-top: 7px;
}

.form-section .gform_wrapper.gravity-theme .gfield_validation_message, 
.form-section .gform_wrapper.gravity-theme .validation_message,
.form-section .gform_wrapper.gravity-theme .gform_validation_errors {
	background: #c02b0a;
	color: white;
	padding: 10px 12px;
	line-height: 1.4;
}

.form-section .gform_confirmation_wrapper {
	background: #cbe5cb;
	border-left: 7px solid #53a654;
	padding: 10px 15px;
	color: #53a654;
	border-radius: 3px;
	font-weight: bold;
	font-size: 18px;
}

/* .gform_wrapper.gravity-theme .gfield_fileupload_filename, */
.form-section .gform_wrapper.gravity-theme .gfield_fileupload_filesize {
	padding: 0 12px;
	color: lightgray;
}

.form-section .gform_wrapper.gravity-theme .gform_drop_area {
	margin: 0;
	padding: 1em;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.7em 1em;
}

.form-section .gform_wrapper.gravity-theme .gform_drop_area .gform_drop_instructions {
	margin: 0;
}

.form-section .gform_wrapper.gravity-theme .gform_fileupload_rules {
	margin: 0;
}

.form-section .gform_wrapper.gravity-theme .gfield_required {
	color: white !important;
}

.form-section .gform_button_select_files  {
	background: white;
	color: black;
	padding: 5px 12px;
}

.form-section .gform_button_select_files:hover {
	background: var(--saz-primary);
	color: white;
}

.form-section .gform_wrapper.gravity-theme .ginput_preview {
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	padding: 12px 0;
	margin: 0 !important;
}

.form-section .gform_wrapper.gravity-theme .ginput_preview .gform_delete_file {
	background: #c02b0a;
	color: white;
	padding: 3px;
	margin-left: 10px;
	border-radius: 2px;
	line-height: 1;
	display: inline-block;
	vertical-align: baseline;
}

.form-section .gform_heading {
	display: none;
}

.form-section form input[type="submit"] {
	margin: 0 0 0 auto;
}

@media screen and (max-width: 1050px) {

	.form-section .container {
		flex-direction: column;
		gap: clamp(40px, 10vw, 60px);
	}

	.form-section .container .content-contain {
		padding-right: 0;
	}

	.form-section .container .content-contain .form-heading {
		--heading-scaler: 7cqi;
	}

	.form-section .container .content-contain .swiper-outer-contain::before {
		display: none;
	}
}

/* * * * * * * * * * * * * * * * * * * * * * *
 * Festa Sazama section
 * * * * * * * * * * * * * * * * * * * * * * */
.collage-section {
	background: #333;
	position: relative;
	height: clamp(350px, 40vw, 900px);
}

.collage-section img {
	pointer-events: none;
	object-fit: cover;
	object-position: center;
	width: 100%;
	height: 100%;
	display: block;
	max-width: none;
	max-height: none;
}