/* Additions to the Gatsby CSS (site-gatsby.css, slick.css, templates.css are copied from www unchanged). */

/* Section links land below the fixed navbar, like Gatsby's scrollTo(offsetTop - 80). */
html {
	scroll-behavior: smooth;
}
#testimonials,
#services,
#projects,
#about,
#contact {
	scroll-margin-top: 80px;
}
.navbar-burger {
	cursor: pointer;
}

/* Slick fade: slides stacked on the first one, cross-fading over 500ms. */
.gw-fade-track {
	display: grid;
}
.gw-fade-track > .slick-slide {
	display: block;
	float: none;
	grid-area: 1 / 1;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 500ms linear,
		visibility 500ms linear;
}
.gw-fade-track > .slick-slide.slick-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

/* Gatsby images are block-level <img>s inside the wrappers. */
.gatsby-image-wrapper img {
	display: block;
	max-width: none;
}

/* Contact form: EmDash forms plugin markup with the Gatsby/Bulma form's look. */
.contact-form-wrapper .ec-form-page {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}
.contact-form-wrapper .ec-form-field {
	margin-bottom: 0.75rem;
}
.contact-form-wrapper .ec-form-required {
	margin-left: 0;
}
.contact-form-wrapper .ec-form-status:empty {
	display: none;
}
.contact-form-wrapper .ec-form-status--error,
.contact-form-wrapper .ec-form-error {
	color: #ff3860;
}
.contact-form-wrapper .ec-form-honeypot,
.contact-form-wrapper [aria-hidden="true"].ec-form-field {
	display: none;
}

/* Project lightbox (react-images look). */
.gw-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 10px;
}
.gw-lightbox[hidden] {
	display: none;
}
.gw-lightbox img {
	max-width: 100%;
	max-height: calc(100vh - 120px);
	height: auto;
	user-select: none;
}
.gw-lightbox button {
	background: none;
	border: 0;
	color: rgba(255, 255, 255, 0.75);
	cursor: pointer;
	padding: 4px;
}
.gw-lightbox button:hover {
	color: #fff;
}
.gw-lightbox-header {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	gap: 8px;
}
.gw-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2) !important;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.gw-lightbox-nav svg {
	width: 32px;
	height: 32px;
}
.gw-lightbox-prev {
	left: 20px;
}
.gw-lightbox-next {
	right: 20px;
}
.gw-lightbox-footer {
	position: absolute;
	bottom: 10px;
	right: 20px;
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.85em;
}
