/* Hero Slider */
.cd-hero-slider { height: 100%; padding-top:45px; margin-left:15px; }
.cd-hero-slider li { 
	/*background-color: #EFEFEF;*/
	list-style: none; 
}


/* Gallery */
.grid-item {
	margin-bottom: 20px;
	padding-left: 1px;
	padding-right: 1px;
	float: left;
	width: 100%;
}

.grid-item:last-child { margin-bottom: 0; }

.tm-img-gallery-container {
	max-width: 320px;
    margin: 0 auto;
}

.tm-img-gallery {
	margin: 0 auto 40px;
	display: inline-block;
}

@media (min-width: 480px) {
	.tm-img-gallery {
		margin: 0 auto;
	}
}

.tm-img-gallery-info-container {
	display: block;
	margin: 0 auto;
	padding: 0 1px 30px;	
}

.tm-img {
	max-width: 320px;
  	width: 100%;
  	height: auto;
  	border: none;
  	margin: 0 auto;
}

.tm-textbox-padding { padding: 35px 30px; }

.cd-hero-slider h2.tm-contact-info {
	color: black;
	font-size: 1.4em;
}
.grid-item figure figcaption, .grid-item figure figcaption > a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.grid-item figure figcaption {
	display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1em;
    color: #fff;
    text-transform: uppercase;
    font-size: 1.25em;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.grid-item figure {
    position: relative;
    overflow: hidden;
    text-align: center;
}

/*figure.effect-bubba {
    background-color: #9e5406;
}*/

/*.cd-hero-slider .selected .cd-full-width figure.effect-bubba h2.tm-figure-title {
    padding-top: 20%;
    -webkit-transition: -webkit-transform 0.35s;
    transition: transform 0.35s;
    -webkit-transform: translate3d(0,-20px,0);
    transform: translate3d(0,-20px,0);
}
*/
/*.cd-hero-slider .selected .cd-full-width figure.effect-ruby:hover h2.tm-figure-title {
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}*/

figure.effect-bubba img {
    opacity: 0.7;
	-webkit-transition: opacity 0.35s;
	transition: opacity 0.35s;   
}

figure.effect-bubba p {
    padding: 20px 1.5em;
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(0,20px,0);
	transform: translate3d(0,20px,0);
}

figure.effect-bubba:hover img {
    opacity: 0.4;
}

figure.effect-bubba figcaption::before,
figure.effect-bubba figcaption::after {
	position: absolute;
	top: 30px;
	right: 30px;
	bottom: 30px;
	left: 30px;
	content: '';
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
}

figure.effect-bubba figcaption::before {
	border-top: 1px solid #fff;
	border-bottom: 1px solid #fff;
	-webkit-transform: scale(0,1);
	transform: scale(0,1);
}

figure.effect-bubba figcaption::after {
	border-right: 1px solid #fff;
	border-left: 1px solid #fff;
	-webkit-transform: scale(1,0);
	transform: scale(1,0);
}

figure.effect-bubba h2 {
	padding-top: 30%;
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
	-webkit-transform: translate3d(0,-20px,0);
	transform: translate3d(0,-20px,0);
}

figure.effect-bubba p {
	padding: 20px 1.5em;
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(0,20px,0);
	transform: translate3d(0,20px,0);
}

figure.effect-bubba:hover figcaption::before,
figure.effect-bubba:hover figcaption::after {
	opacity: 1;
	-webkit-transform: scale(1);
	transform: scale(1);
}

/*figure.effect-bubba:hover h2,
figure.effect-bubba:hover p {
	opacity: 1;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}*/

.grid-item figure img {
    position: relative;
    display: block;
    max-width: 100%;
    opacity: 0.8;
}

/*.cd-hero-slider h2 { font-size: 1.5em; }
.cd-hero-slider p.tm-figure-description { font-size: 1.2rem; }

.cd-hero-slider .selected .cd-full-width h2.tm-figure-title {
	margin-bottom: 0;
}
*/

.cd-hero-slider .selected .cd-full-width figure.effect-bubba:hover .tm-figure-title,
.cd-hero-slider .selected .cd-full-width figure.effect-bubba:hover p.tm-figure-description {
    opacity: 1;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}

.grid-item figure figcaption > a {
    z-index: 1000;
    text-indent: 200%;
    white-space: nowrap;
    font-size: 0;
    opacity: 0;
}

/*.tm-pad-t { padding-top: 40px; }*/
.tm-white-box-margin-b { margin-bottom: 30px; }
.grid-item { max-width: 340px; }
/*.tm-img-gallery-container-2 { max-width: 453px; }*/
.tm-gallery-title span { width: 100%; }

.cd-full-width .container-fluid.tm-page-width {
	padding-left: 10px;
	padding-right: 10px;
}

/*.tm-3-col-container {
	margin-left: 0;
	margin-right: 0;
}*/

/* Media Queries */

@media only screen and (min-width: 400px) {
	.cd-hero-slider h2 { font-size: 1.4em; }

	/*.cd-hero-slider .selected .cd-full-width figure.effect-ruby h2.tm-figure-title {
		margin-bottom: 14px;
	}*/

	.grid-item figure figcaption { padding: 2em; }
}

@media only screen and (min-width: 480px) {
	.cd-full-width .container-fluid { margin-top: -80px; }
	.cd-hero-slider h2.tm-text-title { font-size: 1.8em; }
	.tm-textbox-padding { padding: 30px 40px; }
	.tm-textbox-padding-contact { padding: 30px; }
	.tm-img-gallery-container { 
		margin: 0 auto;
		max-width: 680px; 
	}

	.grid-item {
		padding-left: 10px;
		padding-right: 10px;
		width: 50%;
	}

	.tm-img-gallery-info-container {
		padding: 0 11px 30px;
		max-width: 700px;
		margin: 0 auto 0 0;
	}

	.grid-item figure figcaption { padding: 1.5em; }	
}

@media only screen and (min-width: 600px) {
	.tm-footer { padding: 50px 30px 20px; }
	.tm-copyright-text { width: auto; }
}

/*@media only screen and (min-width: 652px) {
	.tm-img-gallery-container-2 { max-width: 906px; }
}*/

@media only screen and (min-width: 720px) {	
	.tm-footer { 
		-ms-flex-direction: row; 
			flex-direction: row; 
	}

	.tm-copyright-text { margin-top: 0; }
}

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

	
	
	/*.cd-slider-nav .nav-item:nth-of-type(6).selected .nav-link,
	.cd-slider-nav .nav-item:nth-of-type(6) .nav-link:hover,
	.cd-slider-nav .nav-item:nth-of-type(6) .nav-link:focus {
		background-color: rgba(68, 127, 202, 0.62);		
	}*/

	.cd-hero-slider .cd-full-width { padding-top: 0; }

	/*.tm-3-col-textbox {
		width: 50%;
	}*/

	.tm-flex { 
		display: -ms-flexbox; 
		display: flex;
	}

	.tm-2-col-textbox-2 {	
		margin-bottom: 0;
		margin-right: 30px;
		width: 100%;
	}

	.tm-2-col-textbox-2:last-child { margin-right: 0; }

	/*.tm-3-col-container {
		margin-left: auto;
		margin-right: auto;
	}*/
	
	/*.tm-3-col-container,*/
	.cd-full-width .container-fluid.tm-page-width { max-width: 800px; }
	/*.tm-3-col-textbox { max-width: 400px; }	*/
}

@media only screen and (min-width: 992px) {
	.tm-navbar-bg { 
		padding-left: 25px; 
		padding-right: 0;
	}

	.tm-navbar {
		position: static;
		height: auto !important;		
	}

	.cd-slider-nav .navbar-nav {
		background: transparent;
		display: -ms-flexbox;
		display: flex;
	}

	.cd-slider-nav li {	
		display: inline-block; 
		width: auto;
		height: auto;
	}

	.cd-slider-nav a, 
	.navbar-nav .nav-link {
		height: 80px;
	}

	.tm-social-icons-container { margin-bottom: 20px; }

	.cd-full-width .container-fluid {
		margin-top: 0;
		padding-left: 0;
		padding-right: 0;
	}

	.cd-full-width .container-fluid.tm-page-pad,
	.cd-full-width .container-fluid.tm-page-pad {
		padding-left: 10px;
		padding-right: 10px;
	}

	/*.tm-3-col-container,*/
	.cd-full-width .container-fluid.tm-page-width {
		max-width: 1200px;
	}

	/*.tm-3-col-textbox {
		width: 33.333333%;
		margin-bottom: 0;
	}*/

	.tm-img-gallery-container { max-width: 1360px; }

	.grid-item { width: 25%; }	
	.grid-item figure figcaption { padding: 1em; }	
}

@media only screen and (min-width: 1063px) {
	.cd-slider-nav { top: 0; }	
	.cd-slider-nav nav { padding: 0; }	
	.tm-brand-icon { margin-right: 15px; }
	.tm-contact-page { padding: 20px; }
	.cd-full-width .container-fluid {
		padding-left: 20px;
		padding-right: 20px;
	}
	.cd-full-width .container-fluid.tm-page-width {
		padding-left: 30px;
		padding-right: 30px;
	}
	.tm-page-width {
		padding-left: 30px;
		padding-right: 30px;
	}

	/*.tm-3-col-container {
		margin-left: 15px;
		margin-right: 15px;
	}*/

	/*.tm-3-col-textbox {
		padding-left: 15px;
		padding-right: 15px;
	}*/
}

/*@media only screen and (min-width: 1230px) {
	.tm-3-col-container {
		margin-left: auto;
		margin-right: auto;
	}
}*/

@media only screen and (min-width: 1170px) {	
	.cd-hero-slider h2, .cd-hero-slider p { margin-bottom: 5%; }
	.cd-hero-slider h2.tm-gallery-title { margin-bottom: 25px; }
	.cd-hero-slider p:last-child { margin-bottom: 0; }
	.cd-hero-slider .cd-full-width { padding-top: 0; }
	.cd-hero-slider .tm-text { font-size: 1em; }
	.grid-item figure figcaption { padding: 2em; }
}

@media only screen and (min-width: 1333px) {
	.cd-slider-nav a,
	.navbar-nav .nav-link {
		font-size: 1.2em;
		width: 160px;
		height: 110px;
	}
	.cd-slider-nav a.navbar-brand { font-size: 3.5rem; }

	.tm-brand-icon { 
		font-size: 4rem;
    	padding: 10px;
		margin-right: 15px;
	}
	.tm-navbar-bg { padding-left: 30px; }
}

@media only screen and (min-width: 1340px) {
	.cd-full-width .container-fluid.tm-page-width { 
		padding-left: 0; 
		padding-right: 0;
	}	
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
	.tm-2-col-textbox-2 { margin-right: 15px; }
	#google-map { height: 520px; }
}
