/*--------------------------SERVICES----------------------------*/

.FlexiCustom2021_services {
    /* Prevent vertical gaps */
    /* OLD
  line-height: 0;
   
  -webkit-column-count: 5;
  -webkit-column-gap:   20px;
  -moz-column-count:    5;
  -moz-column-gap:      20px;
  column-count:         5;
  column-gap:           20px;  
  padding: 20px 0 0 0;*/
    width: calc(100% - 100px);
    position: relative;
    margin-left: 100px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start;
}


/* .FlexiCustom2021_services_img_gallery {
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    transition: 0.5s all ease-in-out;
} 

.FlexiCustom2021_services_figure_gallery:hover .FlexiCustom2021_services_img_gallery {
    top: 50%;
    transition: 0.5s all ease-in-out;
    transform: translateY(-50%);
}

*/

.FlexiCustom2021_services_img_gallery {
    width: 100%;
    position: absolute;
    top: 50%;
    transition: 0.5s all ease-in-out;
    transform: translateY(-50%);
}

.FlexiCustom2021_services figcaption {
    display: none;
}

.FlexiCustom2021_services_figure_gallery {
    flex: 0 1 calc(33% - 30px);
    /* The important bit. This percentage decides your columns. 
	The percent can be px. It just represents your minimum starting width.
	 */
    margin: 5px;
    height: auto;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    max-width: 60%;
    height: calc(28vw * 0.5625);
    /* border: 1px solid #333; */
    border-radius: 5px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


/* .FlexiCustom2021_services_figure_gallery:nth-of-type(1n) {
    background-image: url('../images/bg_1.jpg');
}

.FlexiCustom2021_services_figure_gallery:nth-of-type(2n) {
    background-image: url('../images/bg_3.jpg');
} */

.FlexiCustom2021_services:nth-of-type(2) .FlexiCustom2021_services_figure_gallery {
    background: #053361;
}

.FlexiCustom2021_services:nth-of-type(3) .FlexiCustom2021_services_figure_gallery {
    background: #f78f1e;
}

.FlexiCustom2021_services_headline {
    font: 400 30px 'Alegreya Sans', sans-serif;
    font-style: italic;
    text-align: center;
    width: 60%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    text-decoration: none;
    color: #fff;
    line-height: .95em;
    -webkit-text-stroke-width: 0;
    -webkit-text-stroke-color: #999;
    padding: 7% 0%;
    /* background-image: radial-gradient(circle, rgba(148, 148, 148, 1) 0%, rgba(255, 255, 255, 0) 89%); */
    background-size: 82% 86%;
    background-repeat: no-repeat;
    background-position: 50%;
    -moz-transition: all 500ms ease-out;
    -webkit-transition: all 500ms ease-out;
    -o-transition: all 500ms ease-out;
    transition: all 500ms ease-out;
    /* border: 1px solid #fff; */
}

.FlexiCustom2021_services:nth-of-type(3) .FlexiCustom2021_services_headline {
    color: #fff;
}

.FlexiCustom2021_services_headline_underline {
    display: block;
    position: relative;
    margin: 20px auto 0 auto;
    width: 60px;
    height: 1px;
    background: #fff;
    -moz-transition: all 200ms ease-out;
    -webkit-transition: all 200ms ease-out;
    -o-transition: all 200ms ease-out;
    transition: all 200ms ease-out;
}

.FlexiCustom2021_services:nth-of-type(3) .FlexiCustom2021_services_headline_underline {
    background: #fff;
}


/* 


.FlexiCustom2021_services_figure_gallery_overlay {
    background-color: rgba(38, 37, 38, 0.6);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    -moz-transition: all 500ms ease-out;
    -webkit-transition: all 500ms ease-out;
    -o-transition: all 500ms ease-out;
    transition: all 500ms ease-out;
}

.FlexiCustom2021_services_figure_gallery_overlay_container {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #ad8f60;
    width: 80%;
    height: 80%;
}
.FlexiCustom2021_services_headline_overlay {
    font: 100 32px 'Alegreya Sans', sans-serif;
    font-style: normal;
    text-align: center;
    width: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    text-decoration: none;
    color: #fff;
    line-height: .95em;
    text-transform: capitalize;
    padding: 0 0 20px 0;

}

.FlexiCustom2021_services_headline_overlay:after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    margin-left: -30px;
    width: 60px;
    height: 1px;
    background: #b4ac97;
}

.FlexiCustom2021_services_figure_gallery:hover .FlexiCustom2021_services_figure_gallery_overlay {
    opacity: 1;
    -moz-transition: all 500ms ease-out;
    -webkit-transition: all 500ms ease-out;
    -o-transition: all 500ms ease-out;
    transition: all 500ms ease-out;
}

.FlexiCustom2021_services_figure_gallery:hover .FlexiCustom2021_services_headline {
    opacity: 0;
    -moz-transition: all 500ms ease-out;
    -webkit-transition: all 500ms ease-out;
    -o-transition: all 500ms ease-out;
    transition: all 500ms ease-out;
} */

.FlexiCustom2021_services_figure_gallery_overlay {
    background-color: rgb(0 104 128 / 80%);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
    -moz-transition: all 500ms ease-out;
    -webkit-transition: all 500ms ease-out;
    -o-transition: all 500ms ease-out;
    transition: all 500ms ease-out;
}

.FlexiCustom2021_services_figure_gallery_overlay_container {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgb(0 168 206);
    width: 80%;
    height: 80%;
}

.FlexiCustom2021_services_headline_overlay {
    font: 100 32px 'Alegreya Sans', sans-serif;
    font-style: normal;
    text-align: center;
    width: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    text-decoration: none;
    color: #fff;
    line-height: .95em;
    text-transform: capitalize;
    padding: 0 0 20px 0;
    /*letter-spacing: -3px;*/
}

.FlexiCustom2021_services_headline_overlay:after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    margin-left: -30px;
    width: 60px;
    height: 1px;
    background: #b4ac97;
}

.FlexiCustom2021_services_figure_gallery:hover .FlexiCustom2021_services_figure_gallery_overlay {
    background-color: rgb(0 104 128 / 30%);
    opacity: 1;
    -moz-transition: all 500ms ease-out;
    -webkit-transition: all 500ms ease-out;
    -o-transition: all 500ms ease-out;
    transition: all 500ms ease-out;
}

.FlexiCustom2021_services_figure_gallery .FlexiCustom2021_services_headline {
    opacity: 0;
    -moz-transition: all 500ms ease-out;
    -webkit-transition: all 500ms ease-out;
    -o-transition: all 500ms ease-out;
    transition: all 500ms ease-out;
}


/*--------------------------RESPONSIVE----------------------------*/

@media screen and (orientation:portrait) and (max-width: 1280px) {
    /*--------------------------SERVICES----------------------------*/
    .FlexiCustom2021_services_figure_gallery {
        flex: 1 0 100%;
        max-width: 100%;
        margin: 5px 0;
        height: calc(100vw * 0.5625);
    }
    .FlexiCustom2021_services {
        /* Prevent vertical gaps */
        /* OLD
		line-height: 0;
		 
		-webkit-column-count: 5;
		-webkit-column-gap:   20px;
		-moz-column-count:    5;
		-moz-column-gap:      20px;
		column-count:         5;
		column-gap:           20px;  
		padding: 20px 0 0 0;*/
        width: 100%;
        margin-left: 0;
    }
    .FlexiCustom2021_services_headline {
        font: 400 35px 'Alegreya Sans', sans-serif;
        font-style: italic;
        text-align: center;
        width: 80%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        text-decoration: none;
        /* color: #CCC; */
        line-height: .95em;
        /* -webkit-text-stroke-width: 0.5px; */
        -webkit-text-stroke-color: #999;
        padding: 7% 1%;
        /* background-image: radial-gradient(circle, rgba(148, 148, 148, 1) 0%, rgba(255, 255, 255, 0) 89%); */
        background-size: 82% 86%;
        background-repeat: no-repeat;
        background-position: 50%;
        -moz-transition: all 500ms ease-out;
        -webkit-transition: all 500ms ease-out;
        -o-transition: all 500ms ease-out;
        transition: all 500ms ease-out;
        /* border: 1px solid #fff; */
    }
    .FlexiCustom2021_services_headline_overlay {
        font: 100 30px 'Alegreya Sans', sans-serif;
        font-style: normal;
        text-align: center;
        width: 90%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        text-decoration: none;
        color: #fff;
        line-height: .95em;
        text-transform: capitalize;
        padding: 0 0 20px 0;
        /*letter-spacing: -3px;*/
    }
    /*--------------------------END SERVICES----------------------------*/
}


/*--------------------------RESPONSIVE LANDSCAPE----------------------------*/

@media screen and (orientation:landscape) and (max-width: 1270px) {
    /*--------------------------SERVICES----------------------------*/
    .FlexiCustom2021_services_figure_gallery {
        flex: 0 1 47%;
        height: calc(47vw * 0.5625);
        margin: 5px 1.5%;
    }
    .FlexiCustom2021_services {
        /* Prevent vertical gaps */
        /* OLD
		line-height: 0;
		 
		-webkit-column-count: 5;
		-webkit-column-gap:   20px;
		-moz-column-count:    5;
		-moz-column-gap:      20px;
		column-count:         5;
		column-gap:           20px;  
		padding: 20px 0 0 0;*/
        width: 100%;
        margin-left: 0;
    }
    .FlexiCustom2021_services_headline {
        font: 400 32px 'Alegreya Sans', sans-serif;
        font-style: italic;
        text-align: center;
        width: 90%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        text-decoration: none;
        /* color: #fff; */
        line-height: .95em;
        /* -webkit-text-stroke-width: 0.5px; */
        /* -webkit-text-stroke-color: #999; */
        padding: 5% 0%;
        /* background-image: radial-gradient(circle, rgba(148, 148, 148, 1) 0%, rgba(255, 255, 255, 0) 89%); */
        background-size: 100% 86%;
        background-repeat: no-repeat;
        background-position: 50%;
        -moz-transition: all 500ms ease-out;
        -webkit-transition: all 500ms ease-out;
        -o-transition: all 500ms ease-out;
        transition: all 500ms ease-out;
        /* border: 1px solid #fff; */
    }
    .FlexiCustom2021_services_headline_overlay {
        font: 100 32px 'Alegreya Sans', sans-serif;
        font-style: normal;
        text-align: center;
        width: 100%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        text-decoration: none;
        color: #fff;
        line-height: .95em;
        text-transform: capitalize;
        padding: 0 0 20px 0;
        /*letter-spacing: -3px;*/
    }
    /*--------------------------END SERVICES----------------------------*/
}


/*---------ONLY FOR GALLERY-------------*/

@media screen and (orientation:portrait) {
    .pswp__button--close,
    .pswp__button--share,
    .pswp__button--fs,
    .pswp__button--zoom,
    .pswp__counter {
        transform: scale(2, 2);
        margin: 25px 25px!important;
    }
    .pswp__caption__center {
        transform: scale(2, 2);
    }
}


/*---------ONLY FOR FLOATING MENU-------------
@media screen and (max-height: 800px){
	#FlexiCustom2021_floating_menu_container_id{
		max-height: 530px;
	}
}
@media screen and (max-height: 910px){
	#FlexiCustom2021_floating_menu_container_id{
		max-height: 630px;
	}
}
@media screen and (min-height: 911px){
	#FlexiCustom2021_floating_menu_container_id{
		max-height: 700px;
	}
}*/