* {
    border: 0;
    padding: 0;
    margin: 0;
    outline: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-width: 320px;
    background: #fff;
    font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.4285em;
    color: rgba(0, 0, 0, .87);
    font-smoothing: antialiased;
}

html li {
    list-style-type: none !important;
}


/* social_network */

.social_network {
    position: fixed;
    z-index: 99999999999;
    left: 0;
    top: 30vh;
    width: 6rem;
}

.social_network a.icon-facebook {
    width: 4.4rem;
    background: #385593;
    height: 4.4rem;
    display: inline-block;
    margin: 0 1.3rem;
    position: relative;
    z-index: 10;
    border-radius: 4px;
}

.social_network a.icon-facebook .facebook.icon {
    position: absolute;
    z-index: 20;
    color: #fff;
    left: 15%;
    bottom: 20%;
}

.social_network a.icon-instagram {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 20%;
    background: radial-gradient(circle at 33% 100%, #fed373 4%, #f15245 30%, #d92e7f 62%, #9b36b7 85%, #515ecf);
    display: inline-block;
    margin-left: 9px;
}

.social_network a.icon-instagram:after,
.social_network a.icon-instagram:before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25px;
    height: 25px;
    border: 3.5px solid #fff;
    transform: translate(-50%, -50%);
    content: ''
}

.social_network a.icon-instagram:before {
    border-radius: 20%;
    padding: 17px;
}

.social_network a.icon-instagram:after {
    width: 20px;
    height: 20px;
    border-radius: 50%
}


/* CUSTOM */

.ui.container {
    width: auto;
    max-width: 1460px!important;
    padding-left: 40px;
    padding-right: 40px;
}

.our-instructors.our-drivers {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.our-instructors.our-drivers>li {
    width: calc(25% - 3px);
    margin-right: 3px;
    margin-bottom: 3px;
    cursor: pointer;
    position: relative;
}

.our-instructors.our-drivers>li.col-2 {
    width: calc(50% - 3px);
}

.our-instructors li .img {
    background-color: #f1f1f1;
    height: 425px;
    background-position: center center;
    background-size: cover;
}

.our-instructors li img {
    width: 100%;
    position: relative;
    z-index: 1;
    display: block;
    height: 425px;
    object-fit: cover;
    object-position: center;
}

.hover-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.46);
    z-index: 2;
    display: none;
}

.our-instructors li:hover .hover-cover {
    display: block;
}

.info-block-text {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 3;
    padding-left: 30px;
    text-align: left;
}

.our-instructors.our-drivers>li .simple-text {
    display: none;
}

.our-instructors li:hover .info-block-text {
    color: #fff;
}

.our-instructors.our-drivers>li:hover .simple-text {
    display: block;
}

.our-instructors.our-drivers .info-block-text a {
    color: #fff!important;
}

.our-instructors.our-drivers .info-block-text .bottom-text {
    bottom: 30px;
    position: absolute;
}

.our-instructors.our-drivers .info-block-text .bottom-text strong {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 0.6em;
    display: block;
}

.instructor-car {
    font-size: 14px;
    background-color: rgba(255, 255, 255, 1);
    color: #000;
    padding: 2px 10px;
    border-radius: 2px;
    margin-bottom: 15px;
    margin-bottom: 0.6em;
    display: inline-block;
}

.our-instructors.our-drivers .info-block-text .bottom-text li {
    font-size: 16px;
    margin-bottom: 0.2em;
}

.modal-box {
    display: none;
    position: fixed;
    z-index: 1000;
    width: 98%;
    max-width: 860px;
    background: white;
    -webkit-box-shadow: 0 24px 30px rgb(0 0 0 / 20%);
    box-shadow: 0 24px 30px rgb(0 0 0 / 20%);
    background-clip: padding-box;
}

.modal-overlay {
    opacity: 0;
    filter: alpha(opacity=0);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 900;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3) !important;
}

.modal-box {
    width: 70%;
    max-height: 90vh;
    overflow: hidden;
    overflow-y: auto;
}

.close-btn,
.js-modal-close {
    display: block;
    width: 24px;
    height: 24px;
    background: url(../img/close.png);
    background-repeat: no-repeat;
    cursor: pointer;
    float: right;
}

.modal-box>div {
    display: table;
    width: 100%;
    position: relative;
}

.modal-box .modal-main-holder {
    padding: 0;
    display: table-cell;
    width: 60%;
    vertical-align: middle;
}

.modal-box .modal-main-holder img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-box .modal-body {
    padding: 20px;
    width: 40%;
    float: none;
    padding-bottom: 150px;
    display: table-cell;
    position: relative;
}

.modal-box .modal-content {
    padding: 20px 40px 20px 20px;
}

.modal-box .modal-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
}

.modal-box .modal-content strong,
.modal-box .modal-content span {
    display: block;
    font-size: 16px;
    line-height: 22px;
}

.modal-box .car-transmission {
    color: #9B9B9B;
    font-weight: 300;
}

.modal-box hr {
    margin: 35px 0;
    border-top: 1px solid #eaeaea;
}

.modal-box .price-time {
    font-size: 22px;
    font-weight: bold;
    margin-top: 10px;
}

.modal-box .modal-gallery {
    position: absolute;
    bottom: 0;
    right: 1%;
    left: 1%;
    width: 100%;
}

.modal-box .modal-gallery .thumbnail {
    width: 32%;
    height: 125px;
    float: left;
    overflow: hidden;
    position: relative;
    margin-bottom: 1%;
    margin-right: 1%;
    display: block;
}

.modal-box .modal-gallery .thumbnail:last-child {
    margin-right: 0;
}

.modal-box .modal-gallery .thumbnail img,
.modal-box .modal-gallery .thumbnail .img {
    height: 100%;
    position: absolute;
    left: 0;
    right: 0;
    background-position: center center;
    background-size: cover;
}

.b-margin-bottom {
    margin-bottom: 30px;
}

.drivers-block {
    padding-bottom: 30px;
}


/* RESPONSIVE */

@media (max-width: 960px) {
    .our-instructors.our-drivers>li {
        width: calc(33% - 3px);
    }
    .our-instructors.our-drivers>li.col-2 {
        width: calc(66% - 3px);
    }
    .our-instructors.our-drivers>li.grey-bg {
        margin-right: 3px;
    }
    .ui.container {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }
}

@media (max-width: 770px) {
    .nav-wrapper .right.menu {
        display: none!important;
    }
    .our-instructors.our-drivers>li {
        width: calc(50% - 4px);
        margin-right: 4px;
        margin-bottom: 4px;
    }
    .our-instructors.our-drivers>li.no-margin {
        margin-right: 4px;
    }
    .our-instructors.our-drivers>li.col-2 {
        float: none;
        width: auto;
        margin-right: 0;
    }
    .our-instructors.our-drivers>li.grey-bg {
        clear: both;
        width: 100%;
        margin-right: 0;
    }
    .our-instructors.our-drivers>li .simple-text {
        display: block;
        padding-top: 0px !important;
        position: relative;
        height: auto;
        padding: 0 4px;
    }
    .our-instructors.our-drivers .info-block-text .bottom-text {
        position: static;
        padding: 15px 0;
    }
    .our-instructors.our-drivers .info-block-text .bottom-text strong {
        font-size: 14px;
    }
    .our-instructors.our-drivers .info-block-text a {
        color: #000!important;
    }
    .our-instructors li .img,
    .our-instructors li img {
        height: 250px;
    }
    .our-instructors.our-drivers .info-block-text .bottom-text ul {
        display: none;
    }
    .modal-box {
        width: calc(100% - 60px);
        left: auto!important;
        right: 0!important;
        height: 100%;
        max-height: 100vh;
        overflow-y: hidden;
        top: 0!important;
    }
    .modal-box .modal-main-holder,
    .modal-box .modal-body,
    .modal-box>div {
        width: 100%;
        display: block;
        float: none;
    }
    .modal-box .modal-body {
        padding-bottom: 20px;
    }
    .modal-box>div {
        overflow-y: scroll;
        height: 100%;
    }
    .modal-box .modal-body {
        position: relative;
    }
    .modal-box .modal-gallery {
        position: absolute;
        bottom: 100%;
        right: 5px;
        left: 5px;
        width: auto;
        height: 50px;
        margin-bottom: 5px;
        overflow: hidden;
    }
    .modal-box .modal-gallery .thumbnail {
        width: 75px;
        height: 75px;
        float: right;
        margin-left: 2%;
    }
    .modal-box .js-modal-close {
        position: fixed;
        top: 50px;
        left: 15px;
    }
    .modal-box .modal-content {
        padding: 0;
    }
    .instructor-car {
        display: block;
        font-size: 11px;
        background-color: transparent;
        color: #777;
        font-weight: 600;
        padding: 0;
    }
    .drivers-block h2.ui.header {
        font-size: 32px!important;
    }
}