/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */

.wrapper .et_pb_row {
    width: 100% !important;
    max-width: 1400px !important;
}
.column .et_pb_image_wrap {
    background-color: #eae9e4;
}

.column img {
    opacity: 0.5;
    filter: alpha(opacity=50); /* For IE8 and earlier */
}
.wrapper {
    display: grid;
    justify-content: center;
}
.grid_container {
    box-sizing: border-box;
    border: 3px solid white;
    background-color: #fff;
    display: grid;
    grid-template-columns: repeat(6, 180px);
    grid-auto-rows: 180px;
    justify-content: center;
    grid-gap: 3px;
}



@media screen and (max-width: 1080px) {
    .grid_container {
        grid-template-columns: repeat(4, 180px);
    }
}

@media screen and (max-width: 720px) {
    .grid_container {
        grid-template-columns: repeat(2, 180px);
    }
}


.et_pb_toggle_title {
    color: #cf3339!important;
}


.divider {
    color: rgba(0,0,0, 0.2);
    
}




/*------------- bio hover effects -----------------*/



.hover-bio-wrapper {
    position: relative;
    color: rgba(0,0,0,0);
    width: 100%;
	margin-bottom: -8px;
}
 
figure.hover-bio img{
    display: block;
}
 
figure.hover-bio {
    position: relative;
    overflow: hidden;
    margin: 3px;
    padding: 0;
    display: inline-block;
    line-height: 0;
    text-align:center !important;
}
 
figure.hover-bio::before, figure.hover-bio::after{
    position: absolute;
    background: black;
            opacity: 0.3;
            content: '';
    height: 100%;
            width: 100%;
    display: block;
    top: 0;
    left: 0;
    -moz-transform: translate3d(0, -100%, 0);
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
    -moz-transition: all 0.8s;
    -webkit-transition: all 0.8s;
    transition: all 0.8s;
}
 
figure.hover-bio figcaption{
    position: absolute;
    background: rgba(0,0,0,.5);
            display: block;
    line-height: 1.7em;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    text-align: left;
    padding: 45% 10%;
    z-index: 100;
    width: 101%;
    height: 101%;
    overflow: hidden;
    top: 50%;
    left: 0;
    -moz-transform: translate3d(-100%, -50%, 0);
    -webkit-transform: translate3d(-100%, -50%, 0);
    transform: translate3d(-100%, -50%, 0);
    opacity: 0;
    -moz-transition: all 0.8s;
    -webkit-transition: all 0.8s;
    transition: all 0.8s;
}
 
figure.hover-bio img{
    -moz-transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -moz-transition: all 0.8s;
    -webkit-transition: all 0.8s;
    transition: all 0.8s;

}
 
figure.hover-bio figcaption{
    top: 100%; /*causes the overlay to peek in from the bottom*/
    opacity: 1;
    -moz-transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}
 
figure.hover-bio:hover img {
            opacity: 1; /*the opacity of the image */
	-webkit-transform: scale(1.1);
 transform: scale(1.1);
}
 
figure.hover-bio:hover figcaption{
	background-color: rgba(0,0,0,.4); /*the color and opacity of the overlay */
	/*background-image: url(http://staging.momentum-glass.com/wp-content/uploads/2018/04/front_box_texture-1.png);*/
	color: #fff;
    opacity: 1;
    -moz-transform: translate3d(0, -100%, 0);
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
    -moz-transition: all 0.4s;
    -webkit-transition: all 0.4s;
    transition: all 0.4s;
    /*box-shadow: 0px -2px 28px rgba(255,255,255, 1);*/
}

figcaption h4.hoverHead {
	color: rgba(255,255,255, 1);
	font-size: 1.7em;
	font-weight: 400;	
	text-align: center;
}
figcaption p {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .1em;
    line-height: 1.4em;
    font-weight: 300;
    font-size: 1.2em;
    overflow-wrap: break-word;
}



