/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/*
 * Media Queries
 * 
 * Mobile only 
@media (max-width: 768px) {}
 *
 * Tablet and above
@media (min-width: 769px) {}
 *
 * Tablet only 
@media (min-width: 769px) and (max-width: 1024px) {}
 *
 * Tablet and smaller 
@media (max-width: 1024px) {}
 *
 * Desktop only 
@media (min-width: 1025px) {}
*/

.flex,
a.flex {
	display: flex;
}

.cursor-pointer {
	cursor: pointer;
}

a.no-underline,
.no-underline a {
    text-decoration: none;
}

a.hover-underline,
.hover-underline a {
    text-decoration: none;
}

a.hover-underline:hover,
a.hover-underline:focus,
.hover-underline a:hover,
.hover-underline a:focus {
    text-decoration: underline;
}

.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

.wp-block-social-links {
	margin-bottom: 20px;
}

/* navigation */

@media (min-width: 769px) {
	.main-nav {
		margin-left: auto;
	}
}

/* hero */

.hero-text-large {
	display: block;
	font-size: 34px;
	line-height: 1.1em;
	margin-top: 8px;
}

@media (min-width: 769px) {
	.hero-text-large {
		font-size: 64px;
		margin-top: 0;
	}
}

/* menu */

nav.slideout-navigation .main-nav {
	margin-bottom: 0;
}

@media (min-width: 769px) {
	.main-navigation ul ul {
		min-width: 180px;
		width: auto;
	}

	.main-navigation ul ul.sub-menu,
	.secondary-navigation ul ul.sub-menu {
		box-shadow: 0 2px 8px 0px rgba(0, 0, 0, 0.15);
	}
	
	.main-navigation .main-nav ul ul li a {
		align-items: center;
		display: flex;
		justify-content: space-between;
		text-wrap: nowrap;
	}
	
	.menu-item-has-children ul span.dropdown-menu-toggle {
		margin-top: 0;
		padding: 0 20px 0 8px;
	}
}

/* off canvas menu */

.main-navigation .menu-toggle {
	border: 2px solid #e1c2c3;
	color: #ed1d24;
}

a.off-canvas-link {
	font-size: 18px;
	font-weight: 700;
}

/* fancy border */

.fancy-border {
	position: relative;
}

.fancy-border::before {
	content: '';
	border: 2px solid #000;
	height: calc(100% + 20px);
	position: absolute;
	left: auto;
	bottom: auto;
	right: -10px;
	top: -10px;
	width: 90%;
	z-index: 1;
}

.fancy-border::after {
	content: '';
	background: linear-gradient(to bottom right, transparent 50%, #ed1d24 50%);
	height: 75%;
	position: absolute;
	left: auto;
	bottom: -20px;
	right: -20px;
	top: auto;
	width: 75%;
	z-index: 2;
}

.fancy-border > * {
	position: relative;
	z-index: 5;
}

.fancy-border-left::before {
	top: -10px;
	right: auto;
	bottom: auto;
	left: -10px;
}

.fancy-border-left::after {
	background: linear-gradient(to bottom left, transparent 50%, #ed1d24 50%);
	height: 50%;
	top: auto;
	right: auto;
	bottom: -20px;
	left: -20px;
}


/* service-card */

.service-card-overlay,
.service-card-overlay * {
	opacity: 0;
	transition: opacity 150ms ease-in-out;
}

.service-card:hover .service-card-overlay,
.service-card:hover .service-card-overlay * {
	opacity: 1;
}

.service-card-bottom {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	top: auto;
	opacity: 1;
	width: 100%;
	transition: opacity 150ms ease-in-out;
}

.service-card:hover .service-card-bottom {
	opacity: 0;
}

/* visual portfolio */

.vp-filter__style-default .vp-filter__item > a {
	border-radius: 0;
}

.vp-filter__style-default .vp-filter__item.vp-filter__item-active > a {
	background-color: #ed1d24;
}

/* Juxtapose */

a.jx-knightlab {
	display: none !important;
}

/* slider */

.sa_hover_container {
	display: flex;
	align-items: center;
}

.sa_hover_container p {
	margin-bottom: 0;
}

/* projects */

.project-quote blockquote {
	margin-bottom: 0;
}

.project-quote p:empty {
	display: none;
}

.project-list ul {
	font-size: 1.25rem;
	margin-left: 1rem;
	margin-bottom: 1rem;
}

.project-list li::marker {
	content: "✓";
	font-weight: 900;
	padding-right: 20px;
	color: #ed1d24;
}

.project-list li {
	padding-left: 0.4rem;
}

/* Sticky side button */

.sticky-side-button-group {
	display: none;
	position: fixed;
	bottom: 0;
	top: auto;
	transform-origin: 0 0;
	z-index: 100;
}

.sticky-side-button {
	background-color: #000;
	border: 1px solid #ed1d24;
	border-top: none;
	color: #fff;
	display: inline-block;
	flex: 1 auto;
	font-weight: 600;
	padding: 4px 12px;
	text-align: center;
	text-decoration: none;
}

.sticky-side-button:hover,
.sticky-side-button:focus {
	background-color: #111;
	color: #fff;
}

.sticky-side-button-secondary {
	background-color: #65beb5;
	color: #0f2244;
}

.sticky-side-button-secondary:hover,
.sticky-side-button-secondary:focus {
	background-color: #4db4aa;
	color: #0f2244;
}

@media (min-width: 768px) {
	.sticky-side-button-group {
		display: flex;
		top: 53%;
		bottom: auto;
		transform: rotate(270deg);
		transform-origin: 0 0;
	}
	
	.sticky-side-button {
		flex: none;
		padding: 5px 15px;
	}
	
	.sticky-side-button-secondary {
		margin-right: 8px;
	}
}

/* Projects */

.projects-container::after {
	content: '';
    border: 1px solid #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 94%;
    height: 94%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    z-index: 1;
}

.projects-container::hover::after {
	opacity: 1;
    visibility: visible;
}

/* responsive-video */

.responsive-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}