/* =========================================================
 * General
 * ======================================================= */

html { scroll-behavior: smooth; }
body { overflow-x: clip; }
img { height: auto; }

main {
	margin-top: 0;
	padding-top: 3rem;
}

@media (min-width: 1025px) and (max-width: 1439px) {
	main {
		padding-top: 5.25rem;
	}
}

header:has(.vista-site-header) {
	background: transparent;
	left: 0;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 9999;
}

header:has(.vista-site-header)::before {
	background: rgba(255,255,255,.6);
	-webkit-backdrop-filter: blur(1rem);
	backdrop-filter: blur(1rem);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: -1;
}

.vista-site-header {
	height: 3rem;
	padding: clamp(1rem, 3vw, 3rem);
	position: relative;
	z-index: 100;
}

@media (min-width: 1025px) and (max-width: 1439px) {
	.vista-site-header {
		height: 5.25rem;
	}
}

.vista-site-header > .wp-block-group:has(.wp-block-site-logo) {
	height: 100%;
}

.vista-site-header .wp-block-site-logo {
	left: 50%;
	position: absolute;
	top: 0;
	transform: translateX(-50%);
}

@media (min-width: 1025px) {
	.vista-site-header .wp-block-site-logo {
		margin-right: auto;
		position: static;
		transform: none;
	}
}

.vista-site-header a {
	padding: .5rem 0;
	transition: opacity .2s ease;
}

.vista-site-header a:hover {
	opacity: .6;
}

.vista-site-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: clamp(1.5rem, 4vw, 4rem);
}

@media (min-width: 782px) {
	.vista-site-header .wp-block-navigation-item.has-child > .wp-block-navigation__submenu-container {
		background: rgba(255,255,255,.5);
		backdrop-filter: blur(1rem);
		border: none;
		left: 0!important;
		right: auto!important;
	}
}

@media (max-width: 781px) {
	.vista-site-header .wp-block-navigation {
		gap: 1rem;
	}

	.vista-site-header .wp-block-navigation__submenu-container {
		padding-top: .5rem!important;
		padding-bottom: .25rem!important;
	}
}

@media (min-width: 600px) and (max-width: 1024px) {
	.vista-site-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.vista-site-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
}

@media (min-width: 1025px) and (max-width: 1439px) {
	.vista-site-header .wp-block-navigation__container {
		gap: 0 1.8rem;
		justify-content: flex-end;
		width: 688px;
	}
}

@media (min-width: 1440px) {
	.vista-site-header .wp-block-navigation__container {
		gap: 0 1.8rem;
	}
}

.vista-main {
	min-height: 55vh;
}

.vista-section {
	padding-top: 7rem;
}

@media (min-width: 782px) {
	.vista-section {
		padding-top: 8rem;
	}
}

.vista-section > h1 {
	margin-bottom: 4rem;
	padding-bottom: .5em;
	position: relative;
}

.vista-section > h1::after {
	background: #666;
	bottom: 0;
	content: "";
	height: 2px;
	left: 50%;
	position: absolute;
	transform: translateX(-50%);
	width: 3rem;
}

.single .vista-section {
	margin: 0 auto;
	max-width: 880px;
}

.vista-hero {
	margin: 0;
}

.vista-hero img {
	display: block;
	height: auto;
	width: 100%;
}

@media (max-width: 781px) {
	.home .vista-query-grid {
		margin-left: calc(var(--wp--style--root--padding-left) * -1)!important;
		margin-right: calc(var(--wp--style--root--padding-right) * -1)!important;
	}

	.home .vista-query-grid .wp-block-post-template {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: scroll;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 2em;
		scroll-snap-type: x proximity;
	}

	.home .vista-query-grid .wp-block-post-template::-webkit-scrollbar {
		height: 6px;
	}

	.home .vista-query-grid .wp-block-post-template::-webkit-scrollbar-track {
		background: #ddd;
		margin-inline: 10dvw;
	}

	.home .vista-query-grid .wp-block-post-template::-webkit-scrollbar-thumb {
		background: #999;
	}

	.home .vista-query-grid .wp-block-post {
		flex: 0 0 21rem;
		scroll-snap-align: start;
	}
}

.vista-query-card .wp-block-post-featured-image img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.vista-gallery img {
	object-fit: cover;
	width: 100%;
}

.vista-contact-cta a {
	color: inherit;
}

.vista-floating-cta {
	bottom: 1rem;
	filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.15));
	position: fixed;
	right: 1rem;
	z-index: 90;
}

@media (max-width: 781px) {
	.vista-floating-cta {
		bottom: 0.75rem;
		right: 50%;
		transform: translateX(50%);
		width: 96%;
	}
}

.vista-footer {
	border-top: 1px solid rgba(34, 34, 34, 0.1);
	padding: clamp(1rem, 3vw, 3rem);
}

@media (max-width: 781px) {
	.vista-footer-content {
		align-items: start;
		flex-flow: column-reverse;
		gap: 4rem;
	}
}

.wp-block-template-part:has(.vista-floating-cta) {
	margin: 0;
}

.wp-block-button__link,
a {
	transition: all .2s ease;
}

.wp-block-button__link:hover {
	background-color: var(--wp--preset--color--base)!important;
	color: var(--wp--preset--color--accent)!important;
}

.wp-block-button._LINE .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--base)!important;
	color: #4cc764!important;
}

/* =========================================================
 * Responsive fixed-height Image block
 * ======================================================= */

.wp-block-image.vista-responsive-image-height img {
	display: block;
	height: var(--vista-image-height-pc)!important;
	object-fit: cover!important;
	object-position: var(--vista-image-focus-x, 50%) var(--vista-image-focus-y, 50%)!important;
	width: 100%!important;
}

.wp-block-image.vista-responsive-image-height:not([style*="--vista-image-height-pc:"]) img {
	height: auto!important;
}

@media (max-width: 781px) {
	.wp-block-image.vista-responsive-image-height img {
		height: var(--vista-image-height-mobile, var(--vista-image-height-pc))!important;
	}

	.wp-block-image.vista-responsive-image-height:not([style*="--vista-image-height-pc:"]) img {
		height: var(--vista-image-height-mobile)!important;
	}
}

/* =========================================================
 * Contact Form 7
 * ======================================================= */

.vista-contact-form {
	width: 100%;
}

/* Row
 * ------------------------------------------------------ */
.vista-contact-form__row {
	border: 0;
	margin: 0 0 2rem;
	padding: 0;
}

@media (max-width: 781px) {
	.vista-contact-form__row {
		margin-bottom: 1.75rem;
	}
}

.vista-contact-form__label {
	display: block;
	color: inherit;
	font: inherit;
	font-size: .875rem;
	font-weight: 400;
	line-height: 1.6;
	margin: 0 0 .65rem;
	padding: 0;
}

@media (max-width: 781px) {
	.vista-contact-form__label {
		margin-bottom: .5rem;
	}
}

.vista-contact-form__required {
	color: #c44;
	margin-left: .2em;
}

/* Fields
 * ------------------------------------------------------ */
.vista-contact-form__field {
	width: 100%;
}

.vista-contact-form__field .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.vista-contact-form__field input[type="text"],
.vista-contact-form__field input[type="email"],
.vista-contact-form__field input[type="tel"],
.vista-contact-form__field input[type="date"],
.vista-contact-form__field textarea,
.vista-contact-form__field select {
	background: #fff;
	border: 1px solid #d8d8d8;
	border-radius: 0;
	box-sizing: border-box;
	color: #222;
	font: inherit;
	line-height: 1.6;
	margin: 0;
	outline: none;
	transition:	border-color .2s ease, box-shadow .2s ease;
	width: 100%;
}

.vista-contact-form__field input[type="text"],
.vista-contact-form__field input[type="email"],
.vista-contact-form__field input[type="tel"],
.vista-contact-form__field input[type="date"],
.vista-contact-form__field select {
	min-height: 3.5rem;
	padding: .75rem 1rem;
}

@media (max-width: 781px) {
	.vista-contact-form__field input[type="text"],
	.vista-contact-form__field input[type="email"],
	.vista-contact-form__field input[type="tel"],
	.vista-contact-form__field input[type="date"],
	.vista-contact-form__field select {
		font-size: 1rem;
		min-height: 3.25rem;
		padding: .7rem .85rem;
	}
}

.vista-contact-form__field textarea {
	display: block;
	min-height: 10rem;
	padding: 1rem;
	resize: vertical;
}

@media (max-width: 781px) {
	.vista-contact-form__field textarea {
		font-size: 1rem;
		padding: .85rem;
	}
}

.vista-contact-form__field input:focus,
.vista-contact-form__field textarea:focus,
.vista-contact-form__field select:focus {
	border-color: #777;
	box-shadow: 0 0 0 1px #777;
}

/* Placeholder
 * ------------------------------------------------------ */
.vista-contact-form__field input::placeholder,
.vista-contact-form__field textarea::placeholder {
	color: #aaa;
	opacity: 1;
}

/* Autofill
 * ------------------------------------------------------ */
.vista-contact-form__field input:-webkit-autofill,
.vista-contact-form__field input:-webkit-autofill:hover,
.vista-contact-form__field input:-webkit-autofill:focus {
	-webkit-text-fill-color: #222;
	-webkit-box-shadow: 0 0 0 1000px #fff inset;
	transition: background-color 5000s ease-in-out 0s;
}

/* Shooting plans / Checkbox
 * ------------------------------------------------------ */
.vista-contact-form__row--plans {
	min-width: 0;
}

.vista-contact-form__row--plans .wpcf7-checkbox {
	display: grid;
	gap: .75rem 1.5rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	width: 100%;
}

@media (max-width: 781px) {
	.vista-contact-form__row--plans .wpcf7-checkbox {
		gap: .75rem 1rem;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.vista-contact-form__row--plans .wpcf7-checkbox {
		grid-template-columns: 1fr;
	}
}

.vista-contact-form__row--plans .wpcf7-list-item {
	margin: 0;
}

.vista-contact-form__row--plans .wpcf7-list-item label {
	align-items: center;
	cursor: pointer;
	display: inline-flex;
	font-size: .875rem;
	gap: .55rem;
	line-height: 1.5;
}

.vista-contact-form__row--plans input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	background: #fff;
	border: 1px solid #aaa;
	border-radius: 0;
	color: #222;
	cursor: pointer;
	display: grid;
	flex: 0 0 auto;
	height: 1.1rem;
	margin: 0;
	place-content: center;
	transition:	border-color .2s ease, background-color .2s ease;
	width: 1.1rem;
}

.vista-contact-form__row--plans input[type="checkbox"]::before {
	background: currentColor;
	clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 19%, 84% 4%, 39% 71%);
	content: "";
	height: .6rem;
	transform: scale(0);
	transform-origin: center;
	transition: transform .12s ease;
	width: .6rem;
}

.vista-contact-form__row--plans input[type="checkbox"]:checked {
	border-color: #222;
}

.vista-contact-form__row--plans input[type="checkbox"]:checked::before {
	transform: scale(1);
}

.vista-contact-form__row--plans input[type="checkbox"]:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Datepicker
 * ------------------------------------------------------ */
.vista-contact-form__field .vista-datepicker {
	cursor: pointer;
}

.vista-contact-form__field .vista-datepicker[readonly] {
	background: #fff;
}

/* CF7 validation
 * ------------------------------------------------------ */
.vista-contact-form .wpcf7-not-valid {
	border-color: #c44!important;
}

.vista-contact-form .wpcf7-form-control-wrap[data-name="shooting-plan"]:has(.wpcf7-not-valid-tip) input {
	border-color: #c44!important;
}

.vista-contact-form .wpcf7-not-valid-tip {
	color: #c44;
	display: block;
	font-size: .75rem;
	line-height: 1.5;
	margin-top: .4rem;
}

.vista-contact-form .wpcf7-response-output {
	border: 1px solid #999!important;
	font-size: .875rem;
	line-height: 1.7;
	margin: 2rem 0 0!important;
	padding: 1rem 1.25rem!important;
}

.vista-contact-form	.wpcf7-form.invalid	.wpcf7-response-output,
.vista-contact-form	.wpcf7-form.unaccepted .wpcf7-response-output,
.vista-contact-form	.wpcf7-form.payment-required .wpcf7-response-output {
	border-color: #c44!important;
}

.vista-contact-form	.wpcf7-form.sent .wpcf7-response-output {
	border-color: #777!important;
}

/* Submit
 * ------------------------------------------------------ */
.vista-contact-form__submit {
	display: flex;
	justify-content: center;
	margin-top: 3.5rem;
}

@media (max-width: 781px) {
	.vista-contact-form__submit {
		margin-top: 3rem;
	}
}

.vista-contact-form__submit .wpcf7-submit {
	align-items: center;
	background: #eb1256;
	border: 1px solid #eb1256;
	border-radius: 4px;
	box-sizing: border-box;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: .875rem;
	justify-content: center;
	letter-spacing: .08em;
	line-height: 1;
	margin: 0;
	min-height: 3.75rem;
	min-width: 15rem;
	padding: .8rem 2rem;
	transition:	background-color .2s ease, color .2s ease, opacity .2s ease;
}

@media (max-width: 781px) {
	.vista-contact-form__submit .wpcf7-submit {
		min-width: 0;
		width: 100%;
	}
}

.vista-contact-form__submit .wpcf7-submit:hover {
	background: #fff;
	color: #eb1256;
}

.vista-contact-form__submit .wpcf7-submit:focus-visible {
	outline: 2px solid #eb1256;
	outline-offset: 3px;
}

.vista-contact-form__submit .wpcf7-submit:disabled {
	cursor: not-allowed;
	opacity: .5;
}

/* CF7 spinner
 * ------------------------------------------------------ */
.vista-contact-form__submit .wpcf7-spinner {
	display: block;
	margin: 1rem auto 0;
}

/* =========================================================
 * flatpickr
 * ======================================================= */

.vista-contact-form .vista-datepicker {
	cursor: pointer;
}

.vista-contact-form .vista-datepicker[readonly] {
	background-color: #fff;
}

/* Calendar
 * ------------------------------------------------------ */
.flatpickr-calendar {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 0;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
	font-family: inherit;
}

@media (max-width: 781px) {
	.flatpickr-calendar {
		font-size: 16px;
	}
}

/* Month
 * ------------------------------------------------------ */
.flatpickr-months {
	padding: .5rem 0;
}

.flatpickr-months .flatpickr-month {
	height: 2.5rem;
}

.flatpickr-current-month {
	font-size: .875rem;
	padding-top: .4rem;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
	font: inherit;
	font-weight: 400;
}

/* Previous / Next
 * ------------------------------------------------------ */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
	align-items: center;
	color: #222;
	display: flex;
	height: 2.5rem;
	justify-content: center;
	padding: .6rem;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
	fill: #777;
}

/* Weekday
 * ------------------------------------------------------ */
.flatpickr-weekdays {
	margin-top: .25rem;
}

span.flatpickr-weekday {
	color: #777;
	font-size: .75rem;
	font-weight: 400;
}

/* Day
 * ------------------------------------------------------ */
.flatpickr-day {
	border-radius: 0;
	color: #222;
	font-size: .8125rem;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
	background: #eee;
	border-color: #eee;
}

/* Today
 * ------------------------------------------------------ */
.flatpickr-day.today {
	border-color: #aaa;
}

.flatpickr-day.today:hover,
.flatpickr-day.today:focus {
	background: #222;
	border-color: #222;
	color: #fff;
}

/* Selected
 * ------------------------------------------------------ */
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
	background: #222;
	border-color: #222;
	color: #fff;
}

/* Disabled
 * ------------------------------------------------------ */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
	color: #ccc;
}

/* Clear button
 * ------------------------------------------------------ */
.vista-datepicker-clear {
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	display: block;
	font: inherit;
	font-size: .75rem;
	line-height: 1.5;
	margin-left: auto;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: .2em;
}

.vista-datepicker-clear:hover {
	text-decoration: none;
}

.vista-datepicker-clear:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: .2rem;
}

.vista-datepicker-clear[hidden] {
	display: none;
}