/*
Theme Name: Estland
Description: Additional styles for child theme
Version: 1.0
Author: Estland
Author URI: http://estlanddesign.com
Template: enfold
*/


/******************************
Table of Contents =TOC
/******************************

Fonts
Variables
Header
Menu
Homepage
Footer
Secondary Pages
Forms
Global Styles
Mobile Styles

*/

/******************************
=Header
******************************/

/*test Debug */
/*#header {
	box-shadow: inset 0 0 1rem 0 red;
}
#header * {
	box-shadow: inset 0 0 1rem 0 orange;
}
#header * > * {
	box-shadow: inset 0 0 1rem 0 yellow;
}
#header * > * > * {
	box-shadow: inset 0 0 1rem 0 green;
}
#header * > * > * > * {
	box-shadow: inset 0 0 1rem 0 blue;
}
#header * > * > * > * > * {
	box-shadow: inset 0 0 1rem 0 indigo;
}
#header * > * > * > * > * > * {
	box-shadow: inset 0 0 1rem 0 violet;
}
#header * > * > * > * > * > * > * {
	box-shadow: inset 0 0 1rem 0 teal;
}
#header * > * > * > * > * > * > * > * {
	box-shadow: inset 0 0 1rem 0 pink;
}
#header * > * > * > * > * > * > * > * > * {
	box-shadow: inset 0 0 1rem 0 purple;
}*/

/* Make e logo white on blog pages */
@media( min-width:768px ) {
	#top.single-post .header_color .bls-2 {
		fill: var(--white);
	}
}
/* Make estland logo black on mobile blog pages since no header bg */
@media( max-width:767px ) {
	#top.single-post .header_color .cls-2 {
		fill: var(--black);
	}
}

/* Make header black on secondary pages w/out featured image on mobile */
@media( max-width:989px ) {
	#top#top:not(.active-featured-hero, .white-bg) #main {
		padding-top: var(--header-height) !important;
	}
	#top#top:not(.active-featured-hero, .white-bg) #header {
		background: var(--menu-background);
	}
}

/******************************
=Fonts
******************************/

/* Mobile font sizes */
@media( max-width:767px ) {
	#top#top h1 {
		font-size: 50px;
		line-height: 1;
	}
	#top#top h2 {
		font-size: 40px;
		line-height: 1;
	}
	#top#top h3 {
		font-size: 30px;
		line-height: 1;
	}
	#top#top#top h4 {
		font-size: 26px;
		line-height: 1.2;
	}
	#top#top h5 {
		font-size: 20px;
		line-height: 1;
	}
	#top#top h6 {
		font-size: 20px;
		line-height: 1;
	}
	#top#top p {
		font-size: 17px;
		line-height: 1.6;
	}
	#top#top h1 strong,
	#top#top h2 strong,
	#top#top h3 strong,
	#top#top h4 strong,
	#top#top h5 strong,
	#top#top h6 strong {
		font-size: inherit;
		line-height: inherit;
	}
}

/******************************
=Global Styles
******************************/

/* Pause button */
#top#top .estland-pause-button-container {
	left: 50%;
	max-width: 100%;
	padding-inline: 90px;
	padding-top: 25px;
	transform: translateX(-50%);
	width: 1310px;
}
@media( max-width:767px ) {
	#top#top .estland-pause-button-container {
		padding-inline: 0;
	}
}

/* Promoboxes */
@media( max-width:767px ) {
	#top#top .av_promobox {
		align-items: flex-start;
		flex-direction: column;
		gap: 1rem;
	}
	#top#top .av_promobox p {
		margin: 0;
		padding: 0;
	}
	#top#top .av_promobox .avia-button-wrap {
		width: auto;
	}
}

/* Hero */
#top#top:not(.single-post, .white-bg) .featured-hero,
#top#top:not(.single-post, .white-bg) .case-study-featured {
	height: calc( 100vh - var(--header-height) - var(--admin-bar-height) );
	min-height: max-content;
}
@media( min-width:989px ) {
	#top#top:not(.single-post, .white-bg) .av_header_transparency ~ #main .featured-hero,
	#top#top:not(.single-post, .white-bg) .case-study-featured {
		height: 100vh;
	}
}
@media( max-width:767px ) {
	#top#top:not(.single-post) .featured-hero .container {
		align-items: flex-start;
		flex-direction: column;
		flex-wrap: wrap;
		justify-content: flex-end;
	}
	#top#top:not(.single-post) .case-study-featured .container {
		align-items: center;
		justify-content: center;
		max-width: none;
		width: 100%;
	}
	#top#top:not(.single-post) .case-study-featured img {
		max-height: 80%;
		max-width: 80%;
	}
	#top#top:not(.single-post) .hero-buttons {
		justify-content: flex-start;
	}
	#top#top .featured-hero .hero-content {
		margin-top: calc( var(--header-height) + 15px );
	}
}

/* Breadcrumbs on secondary pages */
#top .secondary-page-breadcrumbs,
#top .secondary-page-breadcrumbs * {
}
#top .secondary-page-breadcrumbs {
	background: #000000;
	color: var(--white);
	font: var(--mont-semibold);
	font-size: 14px;
	line-height: 14px;
	min-height: 0;
	padding-bottom: 10px;
	padding-top: 10px;
	position: relative;
	z-index: 3;
}
#top.white-bg .secondary-page-breadcrumbs {color: var(--black-text);}
@media( max-width:767px ) {
	#top#top .container .secondary-page-breadcrumbs .container { /* prevent extra space around breadcrumbs in some instances */
		max-width: none;
		width: 100%;
	}
}
#top .secondary-page-breadcrumbs * {
	font: inherit;
	height: auto;
	line-height: inherit;
}
#top .secondary-page-breadcrumbs a {
	color: var(--dark-mint);
	transition: all 300ms ease-in-out;
}
#top .secondary-page-breadcrumbs a:hover,
#top .secondary-page-breadcrumbs a:focus-within {
	color: var(--mint);
}
#top .secondary-page-breadcrumbs .content {
	overflow: hidden;
	padding: 0;
	text-overflow: ellipsis;
	white-space: nowrap;
}
#top .secondary-page-breadcrumbs .breadcrumb-separator {
	background: linear-gradient( var(--mint), var(--mint) );
	background-position: center bottom;
	background-repeat: no-repeat;
	background-size: 100% 3px;
	color: transparent;
	display: inline-block;
	overflow: hidden;
	width: 1ch;
}

/* Card slider */
#top#top .post-card-info {
	overflow: hidden;
}
#top#top .post-card-info p {
	height: 1px;
	flex: 1;
	overflow: hidden;
	position: relative;
}
#top#top .post-card-info p::after {
	background: linear-gradient( to top, white, transparent );
	background-position: center bottom;
	background-repeat: no-repeat;
	background-size: 100% 1rem;
	content: "";
	display: block;
	inset: 0 ;
	pointer-events: none;
	position: absolute;
}

/* Card slider */
@media( max-width:767px ) {
	#top#top .js-wpv-view-layout-16300 {
		padding-top: 520px;
		position: relative;
	}
	#top#top #slider-container {
		bottom: 0;
		left: 50%;
		position: absolute;
		top: 0;
		transform: translateX(-50%);
		width: 100vw;
	}
	#top#top .blog-card {
		flex: none;
		flex-direction: row;
		flex-wrap: wrap;
		height: 500px;
		width: 80% !important;
	}
	#top#top .blog-card:first-child {
		margin-left: -10%;
	}
	#top#top .blog-card > * {
		flex: none;
		width: 100%;
	}
	#top#top .blog-card > a {
		height: 200px;
	}
	#top#top .blog-card > a > * {
		height: 100%;
	}
	#top#top .post-card-info {
		align-items: flex-start;
		height: 300px;
		justify-content: flex-start;
	}
	#top#top .js-wpv-view-layout-16300 .post-nav-controls {
		flex-wrap: wrap;
	}
	#top#top .js-wpv-view-layout-16300 .post-nav-controls .estland-button {
		order: 3;
		width: 100%;
	}
	#top#top .js-wpv-view-layout-16300 .post-nav-controls .estland-button a {
		display: inline-block;
		margin: 0 auto;
		width: auto;
	}
}

/* Cookies */

#top .avia-cookie-consent {
	background: var(--black);
}
#top .avia-cookie-consent > .container {
	align-items: center;
	display: flex;
}
@media( max-width:767px ) {
	#top .avia-cookie-consent > .container {
		flex-wrap: wrap;
	}
}
#top .avia_cookie_text {
	color: var(--white);
	font-size: 1rem;
	line-height: 1;
	margin-right: auto;
	text-align: left;
}
@media( max-width:767px ) {
	#top .avia_cookie_text {
		margin-bottom: 10px;
		width: 100%;
	}
}
#top .avia-cookie-close-bar,
#top .avia-cookie-info-btn,
#top #av-consent-extra-info .avia-button {
	background: var(--white);
	border: 2px solid var(--white);
	border-radius: 50px;
	color: var(--black-text);
	flex: none;
	font: var(--mont-bold);
	font-size: 1rem;
	letter-spacing: 0;
	line-height: 1;
	margin: 0;
	margin-right: 10px;
	min-width: 0;
	padding: 10px 15px;
	text-transform: uppercase;
	transition: all 300ms ease-in-out;
	width: auto;
}
@media only screen and (max-width: 500px){
	#top .avia-cookie-info-btn,
	#top #av-consent-extra-info .avia-button {margin: 5px 0;}
}
#top .avia-cookie-info-btn,
#top #av-consent-extra-info .avia-button.avia-cookie-hide-notification {
	background: transparent;
	color: var(--white);
}
#top .avia-cookie-close-bar:hover,
#top .avia-cookie-close-bar:focus-within,
#top .avia-cookie-info-btn:hover,
#top .avia-cookie-info-btn:focus-within,
#top #av-consent-extra-info .avia-button:hover,
#top #av-consent-extra-info .avia-button:focus-within {
	background: var(--mint);
	border-color: var(--mint);
	color: var(--black-text);
}

/* Cookies popup */

#top#top #av-consent-extra-info {
	background: var(--black);
	font-size: 1rem;
}
#top#top #av-consent-extra-info *:not(.avia-button) {
	background: transparent;
	border-color: var(--black-text);
	color: var(--white);
	font: inherit;
}
#top#top#top #av-consent-extra-info h3 {
	font: var(--poppins-bold);
	font-size: 60px;
	line-height: 1;
}
@media only screen and (max-width: 500px){
	#top#top#top #av-consent-extra-info h3 {
		font-size: 30px;
	}
	#top#top #av-consent-extra-info *:not(.avia-button) {line-height: 20px;}
}
#top#top #av-consent-extra-info .tab {
	font: var(--mont-semibold);
	font-size: inherit;
}
@media( min-width:768px ) {
	#top#top #av-consent-extra-info .tab {
		padding-left: 0;
	}
}
#top#top #av-consent-extra-info .active_tab {
	color: var(--mint);
}
@media( max-width:767px ) {
	#top#top #av-consent-extra-info .av_tab_section {
		border-top: 1px solid var(--black-text);
	}
	#top#top #av-consent-extra-info h3 {
		font-size: 50px;
	}
}

/* Horizontal gallery */
@media( max-width:767px ) {
	#top#top .auto-hor-gallery .avia-gallery {
		/*box-shadow: inset 0 0 1rem 0 red;*/
		/*left: 50%;
		transform: translateX(-50%);
		width: 100vw;*/
	}
}

/* Team member gallery */

@media( max-width:767px ) {
	#top#top #team-slider-container {
		overflow: visible;
	}
	#top#top#top .team-member-img {
		height: 250px;
	}
	#top#top#top .team-member-card h4 {
		font-size: 20px;
		line-height: 1.2;
	}
	#top#top#top .team-member-card p {
		font-size: 16px;
		line-height: 1.2
	}
	#top#top#top .team-member-card p + p {
		margin-top: 10px !important;
	}
}

/* Toggle accordion */
#top#top .service-plan-accordion h3 {
	justify-content: space-between;
}
#top#top .estland-accordion .toggle_content p:first-child {
	margin-top: 0;
}
#top#top .estland-accordion .toggle_content p:last-child {
	margin-bottom: 0;
}
#top#top .estland-accordion li {
	margin-left: 0;
}
@media( max-width:989px ) {
	#top#top#top .estland-accordion h3 {
		align-items: flex-start;
		padding: 2rem 6rem 2rem 2rem;
	}
	#top#top .estland-accordion h3 > span:not(.toggle_icon) {
		font-size: inherit !important;
		line-height: inherit !important;
		min-width: 4ch;
	}
	#top#top .estland-accordion .toggle_content {
		padding: 0 2rem 2rem 2rem;
	}
}
@media( max-width:767px ) {
	#top#top#top .estland-accordion h3 {
		font-size: 26px;
		flex-direction: column;
		line-height: 1.2;
		padding-right: 4rem;
	}
	#top#top .estland-accordion h3 > span:not(.toggle_icon) {
	}
	#top#top .estland-accordion h3 > .toggle_icon {
		margin-right: 0;
		right: 2rem;
	}
	#top#top .estland-accordion .toggle_content {
		padding-bottom: 2rem;
		padding-inline: 2rem;
	}
	#top#top .estland-accordion .toggle_content p:last-child {
		margin-bottom: 0;
	}
}


/******************************
=Homepage
******************************/

/* Horizontal scroller */

#top#top#top .hor-scroll-gallery {
}
@media( max-width:989px ) {
	#top#top#top .homepage-scroll-section .content {
		padding-top: 0;
	}
	#top#top#top .homepage-scroll-section .entry-content-wrapper {
		display: flex;
		flex-direction: column-reverse;
	}
	#top#top#top .homepage-scroll-section .flex_column_table {
		margin-top: 0;
	}
	/*#top#top#top .homepage-scroll-section .flex_column_table:last-child {
		height: 350px;
		position: relative;
	}*/
}
#top#top#top .homepage-scroll-section .hor-scroll-gallery {
	display: none;
}
@media( max-width:989px ) {
	#top#top#top .homepage-scroll-section .vert-scroll-gallery {
		display: none;
	}
	#top#top#top .homepage-scroll-section .hor-scroll-gallery {
		bottom: 0;
		display: block;
		left: 50%;
		margin-top: 0;
		position: absolute;
		top: 0;
		transform: translateX(-50%);
		width: 100vw;
	}
}
#top .hor-scroll-gallery .avia-gallery-thumb {
	flex-wrap: nowrap;
}
#top .hor-scroll-gallery .avia-gallery-thumb > a {
	margin-bottom: 0;
	margin-right: 30px;
}

/* Homepage cases */
@media( max-width:767px ) {
	#top#top .case-gallery {
		flex-direction: column;
		gap: 1rem;
		grid-template-columns: 1fr;
	}
	#top#top .case-info {
		flex-wrap: wrap;
	}
	#top#top .case-info > * {
		width: 100%;
	}
}

/* Homepage logo crawl */
@media( max-width:767px ) {
	#top#top .fullwidth-side-fade,
	#top#top .fullwidth-side-fade * {
	}
	#top#top .fullwidth-side-fade .left-side-fade::before,
	#top#top .fullwidth-side-fade .left-side-fade::after {
		left: -20px;
	}
	#top#top .fullwidth-side-fade .right-side-fade::before,
	#top#top .fullwidth-side-fade .right-side-fade::after {
		right: -20px;
	}
	#top#top .fullwidth-side-fade .av_textblock_section {
		height: 155px;
		position: relative;
	}
	#top#top .fullwidth-side-fade .avia_textblock {
		bottom: 0;
		left: 50%;
		position: absolute;
		top: 0;
		transform: translateX(-50%);
		width: 100vw;
	}
}

/******************************
=Secondary Pages
******************************/

/* Sunrise case study */
#top#top.page-id-16510 .cls-3 {
	fill: #ebab3f !important;
}
#top#top.page-id-16510 .breadcrumb-separator {
	color: #ebab3f !important;
}

/* Hutchens case study */
#top#top.page-id-16601 .case-bg-color {
	background-position: center top;
}
@media( max-width:1750px ) {
	#top#top.page-id-16601 .secondary-page-breadcrumbs a,
	#top#top.page-id-16601 .secondary-page-breadcrumbs span:not(.breadcrumb-separator) {
		color: #1f60d7 !important;
	}
	#top#top.page-id-16601 .secondary-page-breadcrumbs {
		bottom: 25px; /* move lower than normal b/c of white slash in bg */
	}
	#top#top.page-id-16601 .case-bg-color {
		background-position: center bottom -2px;
	}
}


/* Individual team member pages */

@media( min-width:769px ) {
	#top#top.parent-pageid-453,
	#top#top.parent-pageid-453 #wrap_all,
	#top#top.sticky-column-page,
	#top#top.sticky-column-page #wrap_all  {
		overflow: visible; /* have to make overflow visible on all parent elements so sticky will work */
	}
	#top#top.parent-pageid-453 .avia-section:not(#team-member-page) {
		overflow: hidden; /* have to make overflow visible on all parent elements so sticky will work */
	}
}
/*#top#top #team-member-page > .container {
	padding-top: 0;
}*/
#top#top #team-member-page .team-member-img,
#top#top .sticky-col {
	position: sticky;
	top: calc( var(--admin-bar-height) + 1rem );
}
@media( min-width:768px ) and ( max-width: 1210px ) {
	#top#top #team-member-page .team-member-img {
		margin-top: 200px;
	}
}
#top#top #team-member-page .team-member-img img {
	height: auto;
	max-height: none;
	max-width: none;
	width: 100%;
}
@media( max-width:767px ) {
	#top#top #team-member-page .entry-content-wrapper {
		display: flex;
		flex-direction: column;
	}
	#top#top #team-member-page .team-member-img {
		height: 0;
		order: -1;
		padding-top: 66%;
		position: relative;
		top: auto;
	}
	#top#top #team-member-page .team-member-img img {
		height: 100%;
		inset: 0;
		object-fit: cover;
		object-position: center 30%;
		position: absolute;
		width: 100%;
	}
}

/* Generic secondary page */
#top#top#top.page-template-default .slide-entry {
	margin: 0;
	margin-bottom: 1rem;
	width: 100%;
}
#top#top#top.page-template-default .slide-entry > * {
	width: 100%;
}
#top#top#top.page-template-default .slide-entry img {
	width: 100%;
}
@media( max-width:767px ) {
	#top#top.page-template-default .slide-entry .entry-content {
	}
}

/* Team page */

@media( max-width:767px ) {
	#top#top .team-gallery .team-member-card {
		flex: none;
		width: 100%;
	}
	#top#top#top .team-gallery .team-member-img {
		height: 0;
		padding-top: 120%;
		position: relative;
	}
	#top#top#top .team-gallery .team-member-img img {
		inset: 0;
		position: absolute;
	}
	#top.page-id-17087 .full-bg-video {
		height: 50vh;
	}
	#top#top .big-tags li {
		font-size: 1rem;
		line-height: 1;
	}
}

/* Services pages */

/* Services - side padding section */
@media( max-width:767px ) {
	#top#top#top .side-padding {
		margin-bottom: 0;
		padding-inline: 0;
	}
	#top#top .flex_column:not(.side-padding):not(.hr-center) + .side-padding,
	#top#top .side-padding + .flex_column:not(.hr-center):not(.side-padding) {
		margin-top: 100px;
	}
	#top#top .side-padding + .hr-center {
		margin-block: 25px;
	}
}

/* Services - laptop mockup */
#top#top #web-video-container,
#top#top #web-video-container * {
	/*box-shadow: inset 0 0 1rem 0 pink;*/
}
#top#top #web-video-container .entry-content-wrapper {
	/*background: blue;*/
	/*box-shadow: inset 0 0 1rem 0 blue;*/
	background-clip: content-box;
	padding-top: 66%;
	position: relative;
}
#top#top .web-slider-mock-img,
#top#top .web-slider {
	/*background: green;*/
	height: 0;
	left: 0;
	padding-top: 66% !important;
	position: absolute;
	right: 0;
	top: 0;
}
#top#top .web-slider-mock-img * {
	inset: 0;
	position: absolute;
}
#top#top .web-slider {
	/*background: orange;*/
}
#top#top .web-slider * {
	position: static;
}
#top#top .web-slider video {
	height: 80% !important; /* push the video within the container so it's within the bounds of the laptop screen */
	left: 9%;
	position: absolute;
	top: 4%;
	width: 82% !important;
}
#top#top#top .web-slider + .flex_column {
	margin-top: 50px;
}

/* Services - web plans */
@media( max-width:767px ) {
	#top#top#top .services-plans ~ .flex_column {
		margin-top: 50px;
	}
}

/* Services - strategic plans section */
@media( max-width:989px ) {
	#top#top .services-strategic-plan .quote-icon {
		left: -10px;
	}
	#top#top .services-strategic-plan .case-testimonial-info {
		padding-left: 0;
		padding-right: 0;
	}
	#top#top .services-strategic-plan .case-testimonial-info p {
		margin-bottom: 0;
	}
	#top#top .services-strategic-plan .case-testimonial-info h5 {
		margin-top: 10px;
	}
}
@media( max-width:767px ) {
	#top#top .services-strategic-plan .entry-content-wrapper {
		display: flex;
		flex-direction: column;
	}
	#top#top .services-strategic-plan .entry-content-wrapper > .flex_column:nth-of-type(3) {
		margin-bottom: 25px;
		order: -1;
	}
	#top#top .services-strategic-plan .entry-content-wrapper > .flex_column:nth-of-type(4) section:first-child {
		margin-bottom: 30px;
	}
}

/* Services - logo crawl */
@media( max-width:767px ) {
	#top#top #logo-container.cloned {
		overflow: hidden;
	}
}

/* Work pages */

/* Work page filter */
@media( max-width:767px ) {
	#top#top #work-filter .av-tab-section-tab-title-container {
		flex-wrap: wrap;
		max-width: none;
		min-width: 0;
		padding: 0;
		width: 85%;
	}
	#top#top #work-filter .av-section-tab-title {
		font-size: 1rem;
		line-height: 1;
		padding: 15px;
	}
	#top#top #work-filter .av-section-tab-title * {
		font-size: inherit;
		line-height: inherit;
	}
	#top#top #work-filter .tab {
		width: auto;
	}
	#top#top #work-filter .av_tab_section {
		/*box-shadow: inset 0 0 1rem 0 pink;*/
	}
	#top#top #work-filter .av_tab_section .tab {
		display: none;
	}
	#top#top #work-filter .gallery,
	#top#top #work-filter .work-video-container,
	#top#top #work-filter .work-logo-container {
		grid-template-columns: 1fr;
	}
}

/* Case studies */

/* Case studies - breadcrumbs */
@media( max-width:767px ) {
	#top.case-study .secondary-page-breadcrumbs > .container {
		padding-left: 0 !important;
		padding-right: 0 !important;
		width: 85% !important;
	}
}

/* Case studies - testimonial */
@media( max-width:989px ) {
	#top#top .case-testimonial-section {
		flex-direction: column;
	}
}
@media( max-width:767px ) {
	#top#top .case-testimonial-info {
		padding-inline: 0;
	}
	#top#top .case-testimonial-info .quote-icon {
		left: -10px;
	}
}

/* Case studies - photos */
@media( max-width:767px ) {
	#top#top .case-photo-1 {
		grid-template-columns: 1fr;
	}
}

/* Case studies - mockups */
#top#top .website-mockup-section {
	background-clip: content-box;
}
#top#top .mockup-slide-controls {
	background-clip: content-box;
	height: 20px;
}
#top#top .desktop-slide,
#top#top .mobile-slide {
	--slide-inline-padding: 100px;
	border: 0 solid transparent; /* hack to give padding while allowing figure to use width: 100% */
	border-width: 0 var(--slide-inline-padding);
}
@media( max-width:989px ) {
	#top#top .desktop-slide,
	#top#top .mobile-slide {
		--slide-inline-padding: 150px;
	}
}
@media( max-width:767px ) {
	#top#top .desktop-slide,
	#top#top .mobile-slide {
		--slide-inline-padding: 100px;
	}
}
@media( max-width:700px ) {
	#top#top .desktop-slide,
	#top#top .mobile-slide {
		--slide-inline-padding: 0px;
	}
}
#top#top .desktop-slide,
#top#top .mobile-slide,
#top#top .mockup-slide-controls {
	max-width: 80vw;
	padding-inline: 0;
	width: 1310px;
}
@media( max-width:989px ) {
	#top#top .desktop-slide,
	#top#top .mobile-slide,
	#top#top .mockup-slide-controls {
		max-width: 100vw;
	}
}
#top#top .desktop-slide,
#top#top .mobile-slide {
	background-clip: content-box;
	bottom: auto;
	height: 80vh;
	top: auto;
}
#top#top .desktop-slide picture {
	height: auto;
	width: 100%;
}
#top#top .desktop-slide picture img {
	object-fit: initial;
	max-height: none;
	vertical-align: middle;
}
#top#top .desktop-slide figure {
	height: 0; /* set height with padding so we can force same ratio as laptop picture */
	left: 50%;
	max-width: none;
	min-width: 0;
	opacity: 0.9;
	padding-top: 66%; /* ratio of height/width from laptop picture */
	position: absolute;
	top: 50%;
	transform: translate(-50%,-50%);
	width: 100%;
	z-index: -1;
}
#top#top .desktop-slide figure video {
	height: 80%; /* size and position within open area of laptop frame */
	left: 9%;
	object-position: center top;
	position: absolute;
	top: 4%;
	width: 82%;
}
#top#top .mobile-slide img {
	width: 33%;
}
@media( max-width:989px ) {
	#top#top .case-web > .container {
		max-width: none;
		width: 100%;
	}
	#top#top .website-mockup-section {
		flex-wrap: wrap;
		height: auto;
		margin: 0 ;
		min-height: 0;
		overflow: visible;
		padding-inline: 0;
		position: relative;
	}
	#top#top .mockup-slide-controls {
		bottom: 0;
		display: flex;
		gap: 1rem;
		height: auto;
		justify-content: center;
		margin-top: 0;
		top: auto;
		width: 85%;
	}
	#top#top .mockup-slide-controls a {
		position: static;
	}
}

/* Case study data */
@media( max-width:767px ) {
	#top#top .case-data .flex_column {
		padding-left: 0;
		padding-right: 0;
	}
	#top#top .case-data .flex_column:last-child {
		left: 50%;
		transform: translateX(-50%);
		width: 100vw;
	}
	#top#top .case-data-card {
		align-items: center;
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		padding: 1rem;
		text-align: center;
		width: 50vw !important;
	}
	#top#top .case-data-pause {
		display: flex;
	}
	#top#top #pauseButton {
		margin: 0 auto;
	}
}

/* Case study photos and video */
@media( max-width:767px ) {
	#top#top .case-photo-2 {
		grid-template-columns: 1fr;
	}
	#top#top .brand-video {
		background: var(--black);
	}
	#top#top .brand-video video {
		opacity: 0.3;
		vertical-align: middle;
	}
	#top#top .brand-video .avia-button-wrap {
		bottom: auto;
		left: 0;
		margin: 0;
		text-align: center;
		top: 50%;
		transform: translateY(-50%);
		width: 100%;
	}
	#top#top .brand-video .avia-button-wrap a {
		display: inline-flex;
		margin: 0 auto;
		width: auto;
	}
}

/* Blog index */

@media( max-width:767px ) {
	#top #blog-filter .post-gallery {
		grid-template-columns: 1fr;
	}
	#top#top #blog-filter .post-cat-group h4 {
		font-size: 1rem;
		line-height: 1;
		padding: 15px;
	}
	#top#top #blog-filter .post-meta {
		gap: 0.5rem;
	}
}

/* Single blog pages */

#top#top.single-post,
#top#top.single-post #wrap_all {
	overflow: visible; /* have to make overflow visible on all parent elements so sticky will work */
}

/* Turn first section of blog page into grid container */
#top#top.single-post .blog-post-content-cont {
	--featured-image-height: 100vh;
	display: grid;
	grid-template-columns: auto 1fr;
	width: 100%;
}
@media( max-width:767px ) {
	#top#top.single-post .blog-post-content-cont {
		--featured-image-height: 0;
		display: block;
	}
}

/* Left column (featured image) container--moved into place by JS */
#top#top.single-post .vert-featured,
#top#top.single-post .vert-featured-photo,
#top#top.single-post .featured-hero {
	height: 100%;
	max-width: none;
	min-height: 0;
	width: 33vw;
}
@media( max-width:767px ) {
	#top#top.single-post .vert-featured,
	#top#top.single-post .vert-featured-photo,
	#top#top.single-post .featured-hero {
		max-width: none;
		min-height: var(--featured-image-height);
		position: relative;
		width: 100%;
	}
}

/* Before and after effects on image column */
#top#top.single-post .vert-featured::before,
#top#top.single-post .vert-featured-photo::before,
#top#top.single-post .featured-hero::before {
	left: 0;
	height: 100%;
	position: absolute;
	top: 0;
}
#top#top.single-post .vert-featured::after,
#top#top.single-post .vert-featured-photo::after,
#top#top.single-post .featured-hero::after {
	display: none;
}

#top#top.single-post .vert-featured .hero-bg,
#top#top.single-post .vert-featured-photo .hero-bg,
#top#top.single-post .featured-hero .hero-bg {
	background-position: bottom right;
	background-size: cover;
	height: var(--featured-image-height);
	max-width: none !important;
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	width: 100%;
}
#top#top.single-post .vert-featured-photo .hero-bg {
	background-position: top right;
}
@media( max-width:767px ) {
	#top#top.single-post .vert-featured .hero-bg,
	#top#top.single-post .vert-featured-photo .hero-bg,
	#top#top.single-post .featured-hero .hero-bg {
		bottom: 0;
		left: 0;
		position: absolute;
		right: 0;
		top: 0;
	}
}
#top#top.single-post .vert-featured .container,
#top#top.single-post .vert-featured-photo .container,
#top#top.single-post .featured-hero .container {
	height: var(--featured-image-height);
	min-height: 0;
	padding: 0;
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	width: 100%;
}
@media( max-width:767px ) {
	#top#top.single-post .vert-featured .container,
	#top#top.single-post .vert-featured-photo .container,
	#top#top.single-post .featured-hero .container {
		display: none;
	}
}
#top#top.single-post .vert-featured .hero-content,
#top#top.single-post .vert-featured-photo .hero-content,
#top#top.single-post .featured-hero .hero-content {
	bottom: auto;
	left: auto;
	max-width: none;
	padding: 50px;
	position: relative;
	right: auto;
	top: auto;
}
#top#top.single-post .vert-featured .hero-content::before,
#top#top.single-post .vert-featured-photo .hero-content::before,
#top#top.single-post .featured-hero .hero-content::before {
	bottom: 0;
	height: auto;
	left: 0;
	right: 0;
	top: -40vh;
}
#top#top .hero-bg-clone {
	display: none;
}

/* Individual blog content */
#top#top.single-post .entry-content-wrapper p span:not(.quote-icon) {
	color: inherit;
	font: inherit;
	line-height: inherit;
}
#top#top.single-post .entry-content-wrapper p a,
#top#top.single-post .entry-content-wrapper li a {
	font: inherit;
	font-weight: inherit;
}
#top#top.single-post .entry-content-wrapper p strong,
#top#top.single-post .entry-content-wrapper p b,
#top#top.single-post .entry-content-wrapper li strong,
#top#top.single-post .entry-content-wrapper li b {
	color: inherit;
	font: var(--poppins-med);
	font-weight: inherit;
	font-size: inherit;
}
#top#top.single-post .entry-content-wrapper li {
	font: var(--poppins-light);
	margin-left: 0;
}
@media( max-width:767px ) {
	#top#top.single-post .entry-content-wrapper li {
		font-size: 17px;
		line-height: 1.4;
	}
}
#top#top.single-post .blog-testimonial {
	padding: 3rem;
}
@media( max-width:767px ) {
	#top#top.single-post .blog-testimonial {
		padding: 2rem;
	}
}
#top#top.single-post .case-testimonial-info {
	padding: 0;
}
#top#top.single-post .case-testimonial-info > :last-child {
	margin-bottom: 0;
	padding-bottom: 0;
}
#top#top.single-post .blog-testimonial p {
	letter-spacing: 0;
}
@media( max-width:767px ) {
	#top#top.single-post .blog-testimonial h5 {
		font-size: 17px;
	}
}
#top#top.single-post .quote-icon {
	left: 1rem;
	position: absolute;
	top: 1rem;
	z-index: -1;
}
@media( max-width:767px ) {
	#top#top.single-post .quote-icon {
		font-size: 3rem;
		left: 1rem;
		line-height: 1;
		top: 0.5rem;
	}
}
#top#top.single-post .quote-icon + br {
	display: none;
}
@media( max-width:767px ) {
	#top#top.single-post .avia-image-container.avia-builder-el-no-sibling,
	#top#top.single-post .blog-testimonial {
		left: 50%;
		max-width: none;
		transform: translateX(-50%);
		width: calc( 117% - 1rem ); /* 117% of 85%-width container takes back to 100% of row */
	}
	#top#top.single-post .avia-image-container.avia-builder-el-no-sibling * {
		width: 100%;
	}
	#top#top.single-post h3 {
		font-size: 30px;
		line-height: 1;
	}
	#top#top.single-post p {
		line-height: 1.4;
	}
	#top#top.single-post .slide-entry-wrap {
		flex-direction: column;
		gap: 1rem;
	}
	#top#top#top.single-post .slide-entry {
		width: 100%;
	}
	#top#top.single-post .post-entry p,
	#top#top.single-post .post-entry h5 {
		padding-left: 0 !important;
	}
}

/* Blog pagination */
#top#top .wpv-pagination-nav-links-container,
#top#top .wpv-pagination-nav-links-container * {
}
#top#top .wpv-pagination-nav-links-container {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
}
#top#top .wpv-pagination-nav-links-container > li {
	list-style-type: none;
	margin: 0;
	padding: 0;
}
#top#top .wpv-pagination-nav-links-container > li::before {
	display: none;
}
@media( max-width:767px ) {
	#top#top .wpv-pagination-nav-links-item:not(.active) {
		display: none;
	}
}
#top#top .page-link {
	--link-height: 40px;
	--link-width-at-rest: 60px;
	align-items: center;
	background: var(--black-text);
	border: 2px solid transparent;
	border-radius: 50px;
	color: var(--white);
	display: inline-flex;
	font: var(--poppins-med);
	height: var(--link-height);
	justify-content: center;
	line-height: var(--link-height);
	margin: 0;
	min-width: var(--link-width-at-rest);
	padding: 0;
	transition: all 300ms ease-in-out;
}
#top#top span.page-link:not(.wpv-filter-next-link):not(.wpv-filter-previous-link),
#top#top a.page-link:hover,
#top#top a.page-link:focus-within {
	background: var(--mint);
	color: var(--black-text);
}
#top#top .wpv-filter-next-link,
#top#top .wpv-filter-previous-link {
	--link-width-at-rest: 110px;
	--link-width-on-hover: 130px;
	--link-block-padding: 12px;
	--link-inline-padding: 20px;
	--current-link-width: var(--link-width-at-rest);
	background: transparent;
	border-color: var(--white);
	color: transparent;
	font-size: 0;
	max-width: var(--current-link-width);
	width: 200px;
}
@media( max-width:767px ) {
	#top#top .wpv-filter-next-link,
	#top#top .wpv-filter-previous-link {
		--link-width-at-rest: 100px;
		--link-width-on-hover: 100px;
	}
}
#top#top span.wpv-filter-next-link,
#top#top span.wpv-filter-previous-link {
	background: var(--black-text);
	border-color: var(--black-text);
}
#top#top a.wpv-filter-next-link:hover,
#top#top a.wpv-filter-next-link:focus-within,
#top#top a.wpv-filter-previous-link:hover,
#top#top a.wpv-filter-previous-link:focus-within {
	--current-link-width: var(--link-width-on-hover);
	border-color: var(--mint);
}
#top#top .wpv-filter-next-link::before,
#top#top .wpv-filter-previous-link::before {
	background-image: url(/wp-content/themes/estland-enfold-child/images/black-right-arrow-stretched.svg);
	background-position: right center;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	content: "";
	display: inline-block;
	height: calc( var(--link-height) - ( var(--link-block-padding) * 2 ) );
	transition: all 300ms ease-in-out;
	width: calc( var(--current-link-width) - ( var(--link-inline-padding) * 2 ) );
}
#top#top .wpv-filter-previous-link::before {
	background-image: url(/wp-content/themes/estland-enfold-child/images/black-left-arrow-stretched.svg);
}
#top#top .wpv-filter-next-link:hover::before,
#top#top .wpv-filter-next-link:focus-within::before,
#top#top .wpv-filter-previous-link:hover::before,
#top#top .wpv-filter-previous-link:focus-within::before {
}
#top#top .black-bg .wpv-filter-next-link::before,
#top#top .black-bg .wpv-filter-previous-link::before {
	filter: brightness(1) invert(1);
}
#top#top .black-bg a.wpv-filter-next-link:hover::before,
#top#top .black-bg a.wpv-filter-next-link:focus-within::before,
#top#top .black-bg a.wpv-filter-previous-link:hover::before,
#top#top .black-bg a.wpv-filter-previous-link:focus-within::before {
	filter: none;
}