/**
Theme Name: Rivergate
Author: Mathilde Gauvain
Author URI: https://mathildegauvain.com
Description: Custom Astra child theme for Rivergate
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rivergate
Template: astra
*/

/* Header -- Desktop */
.ast-grid-right-center-section {
	justify-content: flex-end!important;
}
.ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item {
    line-height: 14px;
}
li.contact-btn {
	background-color: #4997D0;
	padding: 10px;
	margin: 4px 0 0 0;
	border-radius: 8px!important;
}
li.contact-btn:hover {
	background-color: #dedede;
}
li.contact-btn:hover a {
	color: #173c67!important;
}
li.contact-btn a {
	color: #FFF!important;
	text-transform: uppercase;
	font-size: 14px!important;
	font-weight: bold;
	letter-spacing: 0.5px!important;
}

/* General */
@media screen and ( max-width: 980px ) {
    .reverse-col {
        display: flex;
        flex-direction: column-reverse;
    }
} 

span.typed-cursor.typed-cursor--blink {
    display: none !important;
}

.black-white img {
	filter: grayscale(100%);
	filter: brightness(100000%);
}

/* Team */
.et_pb_code a {
	padding-bottom: 0!important;
}

/* Blog Module: Grid */
.et_blog_grid_equal_height a.entry-featured-image-url {
    overflow: hidden;
	padding-bottom: 0px!important;
}

.et_blog_grid_equal_height .et_pb_post img {  
    transform: scale(1);
	transition: all 0.5s ease; 
    -moz-transition: all 0.5s ease; 
    -webkit-transition: all 0.5s ease; 
}
  
.et_blog_grid_equal_height .et_pb_post:hover img {
    transform: scale(1.05);
    -moz-transform: scale(1.05);
    -webkit-transform: scale(1.05);
	transition: all 0.5s ease; 
    -moz-transition: all 0.5s ease; 
    -webkit-transition: all 0.5s ease; 
}

/* Home */
.home.et-db #et-boc .et-l .et_pb_blog_grid_wrapper .et_pb_blog_grid article {
    border-bottom: 0px solid #ddd !important;
}

/* Custom Page Headers */
.custom-page h3 {
	font-family: 'Raleway', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    color: #C0C0C0 !important;
    line-height: 1.2em;
}

.custom-page h1 {
font-size: 36px;
    color: #173C67 !important;
}

p.weight600 {
    font-weight: 600 !important;
}

/* Portfolio Toggles */
.portfolio-toggles {
  background: #173b67;
	margin-top: 0px;
	padding: 30px;
	text-align: center;
	margin-bottom: 30px;
}

.portfolio-toggles button {
	font-size: 20px;
	margin: 10px;
	cursor: pointer;
}

.portfolio-toggles button:active {
	background-color: #DEDEDE;
}

.current-properties {display: block;}
.sold-properties {display: none;}

@media screen and ( max-width: 980px ) {
    .portfolio-toggles button {
			min-width: 100%;
			margin-left: auto;
			margin-right: auto;
	}
} 

@media screen and ( min-width: 980px ) and (max-width: 2560px) {
	.pheader {
		background-attachment: fixed!important;
		background-size: contain!important;
		background-position-y: 0%!important;
	}
}

/* Portfolio Cards */
div#load_more_portfolio_current_btn,
div#load_more_portfolio_sold_btn{
    text-align: center;
	margin: 30px 0;
}

.portfolio-tiles {
	display: flex;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  max-width: 98%;
}


@media screen and ( min-width: 980px ) {
 .portfolio-tiles {
	justify-content: start;
	}

	.project-card {
	width: 30%;
	flex: 30%;
	 max-width: 30%!important;
	}
}

.project-card {
  margin: 1em;
  background-color: transparent;
  width: 300px;
  height: 300px;
  perspective: 1000px;
}

.card-inner {
	background-size: cover;
	position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.project-card.sold:hover .card-inner {
  transform: rotateY(180deg);
}

.sold-tag {
    position: absolute;
    top: 0;
    left: 0;
    height: auto;
    background: #4997D0;
    color: #fff;
    text-transform: uppercase;
    font-size: 20px;
	  font-weight: 700;
    line-height: 1;
    padding: .5em 1em;
    border: solid 3px #fff;
    transform: skew(-10deg) translate(-25%, -25%);
}

.card-front,
.card-back {
	position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.card-front {
	height: 300px;
	padding: 1em;
	display: flex;
  align-items: center;
  justify-content: center;
	background: rgba(23, 59, 103, .5);
}

.card-back {
	display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(23, 59, 103, .9);
  padding: 1em;
  align-items: center;
  justify-content: center;
  color: #fff;
	transform: rotateY(180deg);
}

.card-title {
	color: #fff;
	font-size: 28px;
	text-align: center;
}

/* Footer */
#astra-footer-menu .menu-item a {
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
}
@media (min-width: 769px) {
#astra-footer-menu .menu-item:not(:last-child) a::after {
	content: "|";
	margin-left: 12px
}
}

/* --- */

/* Projects - Single Page */
.js .slider-single > div:nth-child(1n + 2) {
  display: none;
}

.js .slider-single.slick-initialized > div:nth-child(1n + 2) {
  display: block;
}
.slider-single img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.slider-nav .slick-slide { cursor: pointer; }
.slick-prev:before,
.slick-next:before {
    color: #173C67!important; 
}

.slider__item {
  padding: 0px 15px;
}

/* Team Grid - Flex version */
#our_team {
	max-width: 1220px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

#our_team .team_tiles {
    display: flex;
	flex-wrap: wrap; 
	justify-content: center;
    column-gap: 20px;
    transition: opacity .5s ease-in;
}

#our_team .team_member {
    margin-bottom: 30px;
    transition: transform .25s ease-in;
    display: flex;
    flex-direction: column;
}

#our_team .team_member img {
	transition: transform .2s; /* Animation */
    width: 200px;
    height: 200px;
    margin: 0 auto;
    max-width: 200px!important;
}

#our_team .team_member:hover img {
	transform: scale(1.05);
}

#our_team .team_member:hover a {
	transform: scale(1.05);
	color: #2A6F97!important;
}

#our_team .team_member:hover h4,
#our_team .team_member:hover p {
	color: #2A6F97!important;
}


#our_team .team_member h4 {
	text-transform: uppercase!important;
	letter-spacing: 0.5px!important;
}

#our_team .team_member p {
	font-weight: 400!important;
}

#our_team .image {
    text-align: center!important;
}

#our_team .team_member {
    flex: 1;
	margin-bottom: 20px!important;
}

/* @media only screen and (min-width: 961px) {
#our_team .team_member {
	width: 20%!important;
}
} */

@media only screen and (min-width: 551px) and (max-width: 960px) {
#our_team .team_member {
	width: 50%!important;
}
}

@media only screen and (max-width: 550px) {
#our_team .team_member {
	width: 100%!important;
}
	#our_team .team_tiles {column-gap: 0!important;}
}

#our_team .team_member:hover {
    transform: scale(1.02);
}

#our_team .team_member .image img {
    border-radius: 100% !important;
}

@media only screen and (min-width: 750px) {
#our_team .home .team_member .image {
    max-height: 200px;
    overflow: hidden;
    position: relative;
    height: 300px;
}
}

#our_team .team_member .box {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
	text-align: center;
}

#our_team .team_member h4.role {
    font-size: 16px;
	font-weight: bold;
    text-transform: none;
    color: #333;
}

#our_team .team_member .job_title {
    color: #3A55B4!important;
    font-size: 14px;
    line-height: 15px;
	font-weight: bold;
    text-transform: uppercase;
    flex: 1;
}

#our_team .view_bio {
    margin-top: 6px;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#our_team .team_member:hover .view_bio {
    opacity: 1;
}

/* ---- Team Members: Single Page */
.team-bio {
    padding-left: 30px;
    padding-right: 30px;
}

.team-bio h1, .team-bio h2, .team-bio h3  {
    font-family: Cormorant Garamond, sans-serif;
	font-weight: 700;
    line-height: 1.2em;
}

.team-bio h3 {
	font-family: Raleway, sans-serif;
	font-weight: 600;
    text-transform: uppercase;
    font-size: 22px;
    color: #2a6f97 !important;
    letter-spacing: 1px;
    line-height: 1.2em;
	margin-bottom: 0px;
}

.team-bio h4 {
	font-family: Raleway, sans-serif;
	font-weight: 700;
    line-height: 1.2em;
}

.team-bio .phone, .team-bio .email {
	color: #2a6f97;
}

.team-bio .phone a, .team-bio .email a {
	color: #2a6f97;
}

.team-bio img {
    width: 300px!important;
	margin-bottom: 30px;
}

@media screen and (min-width: 881px) {
	.team-bio {
	margin-left: 30px;
	margin-right: 30px;
}
	
	.team-bio .inner {
	display: flex!important;
	column-gap: 30px!important;
}
    .team-bio .col.left {width: 30%!important;}
    .team-bio .col.right {width: 70%!important; padding-top: 40px!important;}
}

@media screen and (max-width: 880px) {
	.team-template .image {max-width: 500px; margin-bottom: 30px;}
}

@media all and (max-width: 980px) {
/*** wrap row in a flex box ***/
.custom_row {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
-webkit-flex-wrap: wrap; /* Safari 6.1+ */
flex-wrap: wrap;
}
 
/*** custom classes that will designate the order of columns in the flex box row ***/
.first-on-mobile {
-webkit-order: 1;
order: 1;
}
 
.second-on-mobile {
-webkit-order: 2;
order: 2;
}
 
.third-on-mobile {
-webkit-order: 3;
order: 3;
}
 
.fourth-on-mobile {
-webkit-order: 4;
order: 4;
}
/*** add margin to last column ***/
.custom_row:last-child .et_pb_column:last-child {
margin-bottom: 30px;
}
 
}