/*

Theme Name: abinflatables ab
Theme URI: http://underscores.me/
Author: Aschab
Author URI: http://underscores.me/
Description: Abinflatables theme
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: ab
Tags:

*/

.post-type-archive-rib-dinghies *{
    box-sizing: border-box;
}
.page-template-page-gallery main#main-content {
    overflow: visible !important;
}

#preloader_filter {
        position: fixed;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        background: #ffffffe0 url('./img/preloader.gif') center no-repeat;
        background-size: 3.5rem;
        z-index: 9;
        display: none;
}

.flex__model_line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.flex__model_line .model{
    width: 25%;
    flex: 0 0 25%;
    margin-bottom: 30px;
}
.flex__model_line .model a{
    display: block;
    width: 90%;
    margin: auto;
    padding: 25px 30px;
    box-sizing: border-box;
    border: 1px solid #002761;
    border-radius: 6px;
    height: 100%;
    padding-top: 50px;
}
.flex__model_line .model img {
    height: 120px;
    width: auto;
    object-fit: contain;
    width: 90%;
}
.flex__model_line .model h3 {
    font-family: 'Titillium Web', sans-serif;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: bold;
    color: #002761;
    margin-bottom: 10px;
}

.flex__model_line .model > a > p.size_text {
    font-size: 1rem !important;
    color: #002761;
    text-align: center;
}
.flex__model_line .model img {
	-moz-transition: -moz-transform .3s linear;
    -webkit-transition: -webkit-transform .3s linear;
    transition: transform .3s linear;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0) scale(1, 1);
    transform: translateZ(0);
}
.flex__model_line .model:hover img {
    -moz-transform: scale(1.05);
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}
#page hr.separator-line {
    border-top: 2px solid #EBEBEB;
    margin: 50px auto;
}
.pd-b-0 {
    padding-bottom: 0 !important;
}
.mr-t-0 {
    margin-top: 0 !important;
}
#page.line .page-content .features .lined{
    font-weight: 500;
}
.no-lined:before{
    content: none !important;
}


/*Custom Gallery*/
.content_boats_gallery {
    width: 100%;
}
.content__line_boat {
    margin-bottom: 40px;
}
section#custom_gallery {
    /*padding: 30px 15%;*/
    padding: 30px 10%;
    margin: auto;
    position: relative;
}
.content_head_gallery h2 {
    color: #002761;
    font-weight: bold;
    font-size: 3.35em;
    line-height: 1em;
    margin-bottom: .5em;
    margin-top: .2em;
    font-style: italic;
}
.content_head_gallery p {
    font-size: 1.2rem;
    line-height: 1.5;
}
.sidebar_gallery {
    width: 100%;
    max-width: 200px;
    position: relative;
    transition: all 1s;
}
.sidebar_gallery.fixed__sidebar ul#action_sidebar_gallery {
    position: fixed;
    width: 100%;
    max-width: 200px;
    transition: 1s;
    top: 70px;
    animation: sidebar_top .5s;
}
@keyframes sidebar_top {
  from {top: 0px;}
  to {top: 70px;}
}
ul#action_sidebar_gallery {
    list-style: none;
    padding: 0;
    background: #002761;
    display: inline-block;
    color: #fff;
    font-family: 'Titillium Web', sans-serif !important;
    font-style: italic;
    line-height: 1.2;
    font-size: 1.1em;
    font-weight: 600;
    min-width: 190px;
    width: 100%;
    margin-bottom: 30px;
}
ul#action_sidebar_gallery li {
    padding: 10px 20px;
    border-bottom: 1px solid #fff;
    cursor: pointer;
}
ul#action_sidebar_gallery li:hover, ul#action_sidebar_gallery li.active {
    background: rgba(242, 238, 238, 0.2);
}
ul.boats_gallery_content {
    padding: 0;
    list-style: none;
}
ul.boats_gallery_content li {
    position: relative;
    width: 50%;
    /*overflow: hidden;*/
    display: flex;
    flex-wrap: wrap;
    /*margin-bottom: 15px;*/
    flex: 0 0 50%;
    padding: 20px;
}
.content_text_single_boats {
    position: absolute;
    top: 0;
    left: 0;
    /*padding: 20px 30px;*/
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    text-align: right;
}
.title_name {
    padding: 5px 15px;
    cursor: pointer;
    color: #fff;
    font-family: 'Titillium Web', sans-serif !important;
    font-style: italic;
    line-height: 1.2;
    font-size: .9em;
    font-weight: 600;
    background: #002761;
    display: inline-block;
    border-radius: 2px;

}
ul.boats_gallery_content {
    display: flex;
    flex-wrap: wrap;
}


.content_body_gallery {
    display: flex;
}
section.actions_boats {
    padding: 20px 40px;
    padding-bottom: 0;
}
.content__line_boat:last-child{
    margin-bottom: 0;
}
.sidebar_gallery.fixed__sidebar.sidebar_bottom ul#action_sidebar_gallery {
    position: absolute;
    bottom: 0;
    top: auto;
}

section.actions_boats h2 {
    color: #002761;
    font-weight: bold;
    font-size: 2.2em;
    line-height: 1em;
    margin-top: .2em;
    text-align: center;
}
section.actions_boats h2:after {
    content: '';
    width: 150px;
    height: 3px;
    background: #002761;
    display: block;
    margin: auto;
    margin-top: 10px;
}
.single_content_img {
    display: block;
    height: 100%;
    width: 100%;
    /*margin: 20px 20px;*/
    position: relative;
    cursor: pointer;
    box-shadow: 4px 4px 12px 0px rgba(0,0,0,0.3);
}
ul.boats_gallery_content li img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    position: relative;
}
.send_email_gallery {
    position: absolute;
    bottom: 0px;
    left: 0px;
    border-top-left-radius: 2px;
    overflow: hidden;
}
.send_email_gallery i {
    color: #fff;
    background: #002761;
    padding: 8px 15px;
    display: inline-block;
    z-index: 9;
    cursor: pointer;
}
span.btn_filter_gallery, span.btn_filter_dinghies {
    position: fixed;
    left: 0;
    top: 50%;
    cursor: pointer;
    background: #002761;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    color: #fff;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    opacity: .8;
    transition: opacity .5s ease;
    display: none;
    z-index: 5;
}
span.btn_filter_gallery:hover, span.btn_filter_dinghies:hover{
    opacity: 1;
}
span.btn_filter_gallery i, span.btn_filter_dinghies i{
    font-size: 15px;
    margin-left: -5px;
}
#page.line .page-banner {
    height: 40vh !important;
    min-height: 580px;
    background-attachment: initial;
}
.p-b-0{
    padding-bottom: 0 !important;
}
.page-content p {
    text-align: left;
}
#page.line .page-content .features ul{
    align-items: center;
}
@media screen and (min-height: 600px){
    ul#action_sidebar_gallery::-webkit-scrollbar {
        display: none;
    }
}
@media screen and (max-height: 800px){
    /*.sidebar_gallery.fixed__sidebar ul#action_sidebar_gallery{
        max-height: 82vh;
        overflow-y: scroll;
    }*/
}
/*==== Header ====*/
#header nav li{
    position: relative;
}
@media screen and (min-width: 1700px){
#page.line .page-banner{
    min-height: 700px;
}
.flex__banner {
    max-height: 30vh;
    min-height: 650px;
}
}
@media screen and (min-width: 1280px){
    ul#menu-primary > li > ul.sub-menu {
        position: absolute;
        background: rgba(0,39,97,.85);
        padding: 10px 5px;
        width: 160px;
        padding-top: 30px;
        visibility: hidden;
        opacity: 0;
        transition: all .5s ease;
    }
    ul#menu-primary > li > ul.sub-menu > li {
        margin-top: 5px;
        display: block;
    }
    ul#menu-primary > li > ul.sub-menu li a {
        font-size: .76rem;
        line-height: 1.2;
        border-bottom: 1px solid rgba(255,255,255,0.3);
        padding-bottom: 8px;
        padding-top: 5px;
    }
    ul#menu-primary > li > ul.sub-menu li:last-child a {
        border-bottom: none;
        padding-bottom: 4px;
    }
    ul#menu-primary > li:hover > ul.sub-menu {
        opacity: 1;
        visibility: visible;
    }
    #header nav li.current-menu-parent .sub-menu li a {
        color: #fff;
    }
    #header nav > ul > li.current-menu-parent > a,
    #header nav > ul > li.current-menu-item > a{
        color: #54BAE6;
    }
}
@media screen and (max-width: 1280px){
    /*ul.sub-menu li a {
        padding-left: 45px !important;
        background: rgba(255, 255, 255, 0.2);
    }*/
}
/*== End Header ==*/
@media screen and (max-width: 1200px){
    section#custom_gallery {
        padding: 30px 5%;
    }
}
@media screen and (max-width: 1200px){
    /*.sidebar_gallery {
        display: none;
    }*/
    section.actions_boats {
        padding: 20px 0px;
    }
    .sidebar_gallery {
        position: fixed;
        width: 246px;
        height: 100vh;
        overflow: auto;
        left: -246px;
        top: 0;
        padding: 1.5rem 0;
        z-index: 100;
        -moz-box-shadow: inset 0 0 1.25rem rgba(0,0,0,0.6);
        -webkit-box-shadow: inset 0 0 1.25rem rgba(0,0,0,0.6);
        box-shadow: inset 0 0 1.25rem rgba(0,0,0,0.6);
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        background: #002761;
        background: -moz-linear-gradient(top, #002761 0%, #000f30 100%);
        background: -webkit-linear-gradient(top, #002761 0%, #000f30 100%);
        background: linear-gradient(to bottom, #002761 0%,#000f30 100%);
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='$black-blue', endColorstr='#000f30',GradientType=0 );
    }
    .sidebar_gallery.visible_sidebar{
        left: 0;
    }
    ul#action_sidebar_gallery {
        list-style: none;
        margin-top: 80px;
        overflow: auto;
    }
    .sidebar_gallery.fixed__sidebar ul#action_sidebar_gallery {
        position: relative !important;
        top: 0 !important;
        animation: none;
    }
    span.btn_filter_gallery{
        display: block;
    }
}

@media screen and (max-width: 960px){
    .flex__model_line .model {
        width: 33.3%;
        flex: 0 0 33.3%;
    }
    #page.line .features{
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    section#page.line .features ul{
        max-height: inherit !important;
        box-shadow: none !important;
    }
    section#page.line .features:before, section#page.line .features:after{
        content: none !important;
    }
}
@media screen and (max-width: 800px){
    .flex__model_line .model a {
        padding: 12px 10px;
    }
    ul.boats_gallery_content li {
        width: 100%;
        flex: 0 0 100%;
    }
    section.actions_boats {
        padding: 20px 0px;
    }
}
@media screen and (max-width: 690px){
    .flex__model_line .model {
        width: 50%;
        flex: 0 0 50%;
    }
    .flex__model_line .model h3 {
        font-size: 1.2rem;
    }
}