/* Grids */
.grid {
	display: grid;
	grid-gap: 15px;
}

.grid .gridItem {
	padding: 2rem;
	border: 1px solid #999;
}

.grid .gridItem.nobd {
	border: none;
}

.col2 {
	grid-template-columns: repeat(2, 1fr);
}

.col3 {
	grid-template-columns: repeat(3, 1fr);
}

.col4 {
	grid-template-columns: repeat(4, 1fr);
}

.span2 {
	grid-column-start: span 2;
}

.span3 {
	grid-column-start: span 3;
}

.span4 {
	grid-column-start: span 4;
}

/* Masonry */
.masonry.col4,
.masonry {
	/*column-count: 4;*/
	columns: 4;
	column-gap: 15px;
}

.masonry.col3 {
	columns: 3;
}

.masonry.col2 {
	columns: 2;
}


.masonry .mItem {
	display: inline-block;
	margin-bottom: 15px;
	width: 100%;
}

/* Service Grid */
.serviceGrid {
	display: grid;
	grid-template-columns: repeat(10, 1fr);
	grid-gap: 10px;
	margin: 10px;
}

.serviceGrid .serviceGridItem {
	background-size: cover;
	background-position: center center;
	/*grid-column: span 5;*/
	grid-column: span 10;

	position: relative;

	min-height: 300px;
}

.serviceGrid .serviceGridItem:first-child,
.serviceGrid .serviceGridItem:nth-child(4) {
	grid-column: span 6;
}

.serviceGrid .serviceGridItem:nth-child(2),
.serviceGrid .serviceGridItem:nth-child(3) {
	grid-column: span 4;
}

.serviceGrid .serviceGridItem .bgOverlay {
	height: 100%;
	width: 100%;
	padding: 15px;
	background-color: rgba(0, 0, 0, .5);
	color: #fff;
	display: flex;
	align-items: flex-end;
	/*justify-content: flex-end;*/

	position: absolute;
	
	transition: all .5s;
}

.serviceGrid a.serviceGridItem:hover .bgOverlay {
	background-color: rgba(0, 0, 0, .8);
}

.serviceGrid .serviceGridItem .bgOverlay .caption {
	/*width: 60%;*/
}

.serviceGrid .serviceGridItem .bgOverlay .caption h2 {
	color: var(--yellow);
}


/* Service Blocks */
.serviceBlocks{
	display: grid;
	grid-template-columns: repeat(2,1fr);
	grid-gap: 10px;
}

.serviceBlocks a.SBItem{
	position: relative;
	background: no-repeat center center;
	background-size: cover;
	padding: 3rem;
	text-align: center;
	z-index: 0;
	text-decoration: none;
}

.serviceBlocks a.SBItem::before{
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: var(--gray);
	transition: all .3s;
	opacity: .7;
}

.serviceBlocks a.SBItem:hover::before,
.serviceBlocks a.SBItem:focus::before,
.serviceBlocks a.SBItem:active::before{
	background-color: #000;
}

.serviceBlocks a.SBItem::after{
	content: "";
	position: absolute;
	z-index: -1;
	/*top: 0;*/
	right: 0;
	bottom: 0;
	left: 0;
	width: 50px;
	border-style: solid;
	border-width: 0 100px 0px 100px;
	/*border-color: transparent transparent var(--yellow) transparent;*/
	margin: 0 auto;
	transition: all .5s;
}

/*
.serviceBlocks a.SBItem:hover::after,
.serviceBlocks a.SBItem:focus::after,
.serviceBlocks a.SBItem:active::after {
	border-width: 0 100px 50px 100px;
}
*/

.serviceBlocks a.SBItem h2 {
	margin: 25px 0;
	color: var(--yellow);
	transition: all .5s; 
}

.serviceBlocks a.SBItem:hover h2,
.serviceBlocks a.SBItem:focus h2,
.serviceBlocks a.SBItem:active h2 {
	color: var(--yellow);
}

/* Tiles */
.tiles{
	display: grid;
	grid-template-columns: repeat(4,1fr);
	grid-gap: 10px;
	/*height: 80vh;*/
}

.tiles .tile{
	padding: 4rem;
	position: relative;
	z-index: 0;
	text-align: center;
	text-decoration: none;
}

.tiles .tile:hover{
	transform: scale(.95);
}

.tiles .tile h3{
	font-size: 4rem;
}

.tiles .tile h3 span {
	font-size: .7em;
	opacity: .8;
}

.tiles .tile.dark {
	background: url(https://source.unsplash.com/1024x800/?nature,dark) center center /cover no-repeat;
	background-attachment: fixed;
	color: #fff;
}

.tiles .tile.dark h3 {
	color: #fff;
}

.tiles .tile.light {
	background: url(https://source.unsplash.com/1024x800/?nature,light) center center /cover no-repeat;
	background-attachment: fixed;
	color: #333;
}

.tiles .tile.light h3 {
	color: #333;
}

.tiles .tile.dark:before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: #000;
	opacity: .5;
	z-index: -1;
}

.tiles .tile.light:before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: #fff;
	opacity: .5;
	z-index: -1;
}


.tiles .tile:nth-child(1) {
	grid-column: 1 / 4;
}

.tiles .tile:nth-child(3) {
	grid-column: 1 / 3;
}

.tiles .tile:nth-child(8) {
	grid-column: span 2;
}

.tiles .tile:nth-child(10) {
	grid-column: span 3;
}

.tiles .tile:last-child {
	grid-column: span 3;
}


/* Logo Grid */
.grid .logoWrapper {
	text-align: center;
	position: relative;
	background-color: #fff;
}

.grid .logoWrapper .logo {
	padding-bottom: 75%;
	background: center center no-repeat;
	background-size: contain;
	/*filter: grayscale() opacity(.5);*/
}

.grid .logoWrapper a {
	text-decoration: none;
}

.grid .logoWrapper a::after {
	content: "";
	position: absolute;
	background-color: transparent;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	transition: all .4s;
}

.grid .logoWrapper a:focus::after,
.grid .logoWrapper a:active::after,
.grid .logoWrapper a:hover::after {
	background-color: rgba(0, 0, 0, .05);
}


/* Gallery */
.customGallery {
	background-color: var(--mainColor);
	color: var(--lightYellow);
	margin-bottom: 0;
}

.customGallery.sideBar {
	margin: 0 -40px -40px;
	padding: 4rem;
}

.customGallery .galleryItem .image {
	background: center center / cover;
	padding-top: 75%;
	position: relative;
}

.customGallery .galleryItem .image::before {
	content: "";
	height: 100%;
	transition: all .3s;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.customGallery .galleryItem .image h3 {
	position: absolute;
	bottom: 0;
	width: 100%;
	text-align: center;
	background-color: rgba(0, 0, 0, .7);
	margin: 0;
	padding: 15px;
	color: var(--yellow);
	transition: all .5s;
}

.customGallery .galleryItem a:hover h3,
.customGallery .galleryItem a:focus h3,
.customGallery .galleryItem a:active h3{
	color: #fff;
}


.customGallery .galleryItem a:hover .image::before,
.customGallery .galleryItem a:focus .image::before,
.customGallery .galleryItem a:active .image::before {
	background-color: rgba(255, 255, 255, .5);
}
