/*
	Theme Name: Boyd Excavating Services
	Based on HTML5 Blank: http://html5blank.com
	Version: 1
	Author: JK Web Studio
	Author URI: http://jkwebstudio.com
	Tags: Blank, HTML5, CSS3

	License: MIT
	License URI: http://opensource.org/licenses/mit-license.php
*/

/*------------------------------------*\
    MAIN
\*------------------------------------*/

/* global box-sizing */
*,
*:after,
*:before {
	-moz-box-sizing:border-box;
	box-sizing:border-box;
	-webkit-font-smoothing:antialiased;
	font-smoothing:antialiased;
	text-rendering:optimizeLegibility;
}
/* html element 62.5% font-size for REM use */
html {

}
body {
	background: #fff;
	color: #1a1b1f;
	color: #4a4f60;
	padding: 0;
	margin: 0;
	font-family: "open sans", "helvetica Neue", ariel, sans serif;
	line-height: 1.6em;
}
/* clear */
.clear:before,
.clear:after {
    content:' ';
    display:table;
}

.clear:after {
    clear:both;
}
.clear {
    *zoom:1;
}
img {
	max-width:100%;
	vertical-align:bottom;
}
a {
	color: #1768ea;
	text-decoration:none;
	font-weight: 600;
}
a:hover {
	xcolor:#444;
}
a:focus {
	outline:0;
}
a:hover,
a:active {
	outline:0;
}
input:focus {
	outline:0;
	border:1px solid #04A4CC;
}

/*------------------------------------*\
    STRUCTURE
\*------------------------------------*/

/* wrapper */
.wrapper {
	/*
	max-width:1280px;
	width:95%;
	margin:0 auto;
	position:relative;
	*/
}
/* header */
.header {

}

header {

	background: #222 url("img/bes2.jpg") center center;
	background-size: cover;


	text-align: center;
		padding: 4em 0 5em;
	box-shadow: 0 3px 2px rgba(0,0,0,.1);
	overflow: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
}

.xwe-do-excavating-right header {

		background: #2c2e35;
		background: linear-gradient(180deg, #2c2e35 0%, #3a3f50 100%);

		padding: 2em 0 3em;

}


header a {
	display: inline-block;
	color: #fff;
	font-size: 1.8em;
	text-decoration: none;
	position: relative;
	margin: 0 auto;
}

header a.tel {
	padding: .2em 1em;
}

header a.tel::before {
	ccontent: "*";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	transition: opacity .5s;
}

header a.tel:hover::before {
	opacity: 1;

}

header img {
	width: calc(70vw - 50px);
	max-width: 320px;
}

/* logo */
.logo {
	overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;

}

/* nav */
.nav {
	position: fixed;
	top: 15px;
	left: 15px;
	text-align: left;
	transition: background .2s;
	background: transparent;
	z-index: 9999;
}

.nav button {
	color: #fff;
	background: #0a0e1c;
	border: none;
	fill: #fff;
	text-align: center;
	padding: .6em;
	border-radius: 1px;
}

.nav button svg {
	display: block;
	width: 1.8em;
}

@media (min-width: 576px) {

	.nav button {
		padding: .8em;
	}
	.nav button svg {
		width: 2.6em;
	}
}

.nav.active {
	top: 0;
	bottom:0;
	left: 0;
	padding: 15px;
	background: rgba(20,25,41,.9);
	min-width: 100%;
}

@media (min-width: 576px) {
	.nav.active {
		min-width: 33%;
	}
}

.nav ul{
	display: none;
	transition: opacity .2s;
	opacity: 0;


}

.nav.active ul {
	display: block;
	opacity: 1;
	margin: 2em 0;
}

.nav ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.nav li {
	margin: 1px 0;
	padding: 0;
	list-style-type: none;
}

.nav li a {
	font-size: 1em;
	display: block;
	padding: .6em .4em;
}

.nav li a:hover {

	background: rgba(255,255,255,.05);
}

.nav li.current-menu-item a {
	font-weight: 600;
	background: rgba(255,255,255,.05);
}
/* sidebar */
.sidebar {

}

/* main */

main {
	margin: 2em auto 4em;
	width: 1024px;
	max-width: 90vw;
	min-height: 66vh;
}

main h1 {
	margin: 2.4em 0 1.2em;
}

main h1 + article > p:not(.short):first-child:first-line {
	font-size: 1.24em;
	line-height: 1.6em;
	font-weight: 900;
}

main .wp-block-column {
    background: #f9f9f9;
    padding: 2em;
		margin: 2em 0;
		border: 1px solid #eee;
}

main .center {
	text-align: center;
}

main .address {
	background: #f9f9f9;
	padding: 2em;
	margin: 4em 0;
	border: 1px solid #eee;

}

/* columns */
@media (max-width: 599px) {
	div.wp-block-columns {
		margin-left: -5vw;
		margin-right: -5vw;
		border-width: 1px 0;
		margin-bottom: 0;
	}

	div.wp-block-column:first-child {
		border-bottom: none;
		margin-bottom: 0;
	}

	div.wp-block-column:last-child {
		border-top: none;
		margin-top: 0;
	}
}

/* gallery */

div.wp-block-kadence-advancedgallery {
	background: #f9f9f9;
	padding: 4em 2em 5em;
	border-top: 1px solid #eee;

	width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
	display: flex;
	justify-content: center;
}

div.wp-block-kadence-advancedgallery:last-child {
	margin-bottom: -4em;
}

@media (max-width: 599px) {
	div.wp-block-kadence-advancedgallery {
		border: none;
		background: none;
	}
}

div.wp-block-kadence-advancedgallery .kb-gallery-ul {
	position: relative;
	width: 1024px;
	max-width: 90vw;
}

div.mfp-bg.mfp-kt-blocks {
	background: #0a0e1c;
}


  .wp-block-kadence-advancedgallery:last-of-type .kb-gallery-ul {
   max-width: 58rem;
   margin-left: auto;
   margin-right: auto;
 }

 .wp-block-kadence-advancedgallery .kadence-blocks-gallery-item {

   spadding: 2px !important;
 }

 .wp-block-kadence-advancedgallery .kadence-blocks-gallery-item-inner {
   border: 1px solid #eee;
	 spadding: 1px;
	 sbackground: #fff;
   box-shadow: 1px 1px 4px rgba(0,0,0,.2);
 }

 /* lightbox overrides */
 div.mfp-bg.mfp-kt-blocks {
   opacity: .95;
 }

 .mfp-bg.mfp-kt-blocks {
   xpadding-top: 20px;
 }

 .mfp-kt-blocks .mfp-image-holder button.mfp-close {
    ccolor: #000;
    right: 16px;
    text-align: center;
    padding-right: 0;
    width: 100%;
    cbackground: #fff;
    border-radius: 1px;
    top: -10px;
    opacity: .95;
    transform: translateY(20px);
    font-size: 44px;

		width: 52px;
    height: 52px;
    background: rgba(0,0,0,.5);

}

.mfp-kt-blocks .mfp-image-holder button.mfp-close:hover {
	 background: rgba(0,0,0,.8);

}

.mfp-kt-blocks .mfp-image-holder button.mfp-arrow {
		width: 3.2em;
    height: 3.2em;
    border-radius: 1px;
    margin-top: -2em;
		opacity: 1;
		background: rgba(0,0,0,.5);
}

.mfp-kt-blocks .mfp-image-holder button.mfp-arrow:hover {
		background: rgba(0,0,0,.8);
}

.mfp-kt-blocks .mfp-image-holder button.mfp-arrow:after {
	top: 50%;
	left: 50%;
	margin-top: 0;
	margin-left: 0;
	transform: translate(-50%, -50%);

}

.mfp-kt-blocks .mfp-image-holder button.mfp-arrow:before,
.mfp-kt-blocks .mfp-iframe-holder button.mfp-arrow:before {
	display: none;
}

.mfp-kt-blocks .mfp-image-holder button.mfp-arrow-left {
	left: 15px;
}

.mfp-kt-blocks .mfp-image-holder button.mfp-arrow-left:after {
	transform: translate(-70%, -50%);
}

.mfp-kt-blocks .mfp-image-holder button.mfp-arrow-right {
	right: 15px;
}

.mfp-kt-blocks .mfp-image-holder button.mfp-arrow-right:after {
	transform: translate(-30%, -50%);
}



.mfp-kt-blocks .mfp-image-holder .mfp-content {
  max-width: 100%;
  height: 100%;
}

.mfp-kt-blocks .mfp-figure {
  height: 100%;
  display: flex;
  align-items: center;
}

.mfp-kt-blocks .mfp-figure:after {
    background: transparent !important;
    box-shadow: none !important;
}

.mfp-kt-blocks .mfp-image-holder .mfp-content {
    position: static;
}

.mfp-kt-blocks .mfp-counter {
    position: absolute;
    top: 0;
    left: 50%;
    right: auto;
    color: #fff;
    font-size: 1rem;
    transform: translateX(-50%);
    text-align: center;
}

div.mfp-kt-blocks .mfp-figure {

}

div.mfp-kt-blocks .mfp-figure figure {
    position: relative;
    padding: 40px 0;
    max-height: 100%;
}

div.mfp-kt-blocks img.mfp-img {
	padding: 0;
	border: 5px solid #fff;
	max-height: calc(100vh - 80px) !important;
}

div.mfp-kt-blocks .mfp-figure figcaption {
	width: 100%;
}

div.mfp-kt-blocks .mfp-bottom-bar {
	position: relative;
	margin-top: 0;
}

div.mfp-kt-blocks .mfp-title {
	position: absolute;
	bottom: 100%;
	width: 100%;
	background: rgba(255,255,255,.85);
	background: linear-gradient(0deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
	color: #333;
	padding: .6em 1em;
	text-align: center;
	line-height: 1.4em;
}

div.mfp-kt-blocks .mfp-title:empty {
	padding: 0;
}

div.mfp-kt-blocks .mfp-counter {
	position: relative;
	padding: .6em 1em;
	font-size: 1em;
}

/* figure */

figure.size-full {
	margin: 4em 0;
}

/* footer */
.footer {
	padding: 1em 2em;
	/* background: #f0f0f0; */
	text-align: center;
	color: #666;
}

/*------------------------------------*\
    PAGES
\*------------------------------------*/



/*------------------------------------*\
    IMAGES
\*------------------------------------*/



/*------------------------------------*\
	TYPOGRAPHY
\*------------------------------------*/

h1, h2, h3, h4 {
	font-family: "Noto Sans TC", sans-serif;
	color: #4a4f60;
	font-weight: 600;
}

h1, h2 {
	text-transform: uppercase;
	letter-spacing: -.02em;
	line-height: 1.2em;
	text-align: center;
}

h1 {
	font-size: 2em;
	text-align: center;
}

@media (min-width: 768px) {
	.home h1,
	.we-do-excavating-right h1 {
		font-size: 3.2em;
	}

	h1 {
		font-size: 2.4em;
	}
}

h2 {
	margin: .6em 0 1em;
}

/*------------------------------------*\
    RESPONSIVE
\*------------------------------------*/

@media only screen and (min-width:320px) {

}
@media only screen and (min-width:480px) {

}
@media only screen and (min-width:768px) {

}
@media only screen and (min-width:1024px) {

}
@media only screen and (min-width:1140px) {

}
@media only screen and (min-width:1280px) {

}
@media only screen and (-webkit-min-device-pixel-ratio:1.5),
	   only screen and (min-resolution:144dpi) {

}

/*------------------------------------*\
    MISC
\*------------------------------------*/

::selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}
::-webkit-selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}
::-moz-selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}

/*------------------------------------*\
    WORDPRESS CORE
\*------------------------------------*/

.alignnone {
	margin:5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
	display:block;
	margin:5px auto 5px auto;
}
.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
a img.alignnone {
	margin:5px 20px 20px 0;
}
a img.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.aligncenter {
	display:block;
	margin-left:auto;
	margin-right:auto;
}
.wp-caption {
	background:#FFF;
	border:1px solid #F0F0F0;
	max-width:96%;
	padding:5px 3px 10px;
	text-align:center;
}
.wp-caption.alignnone {
	margin:5px 20px 20px 0;
}
.wp-caption.alignleft {
	margin:5px 20px 20px 0;
}
.wp-caption.alignright {
	margin:5px 0 20px 20px;
}
.wp-caption img {
	border:0 none;
	height:auto;
	margin:0;
	max-width:98.5%;
	padding:0;
	width:auto;
}
.wp-caption .wp-caption-text,
.gallery-caption {
	font-size:11px;
	line-height:17px;
	margin:0;
	padding:0 4px 5px;
}
.sticky {

}
.bypostauthor {

}

/*------------------------------------*\
    PRINT
\*------------------------------------*/

@media print {
	* {
		background:transparent !important;
		color:#000 !important;
		box-shadow:none !important;
		text-shadow:none !important;
	}
	a,
	a:visited {
		text-decoration:underline;
	}
	a[href]:after {
		content:" (" attr(href) ")";
	}
	abbr[title]:after {
		content:" (" attr(title) ")";
	}
	.ir a:after,
	a[href^="javascript:"]:after,
	a[href^="#"]:after {
		content:"";
	}
	pre,blockquote {
		border:1px solid #999;
		page-break-inside:avoid;
	}
	thead {
		display:table-header-group;
	}
	tr,img {
		page-break-inside:avoid;
	}
	img {
		max-width:100% !important;
	}
	@page {
		margin:0.5cm;
	}
	p,
	h2,
	h3 {
		orphans:3;
		widows:3;
	}
	h2,
	h3 {
		page-break-after:avoid;
	}
}
