/*---------------------------------------------------- scroll bar ------------------------------------------------------*/

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px #283a59;
    border-radius: 0px;
    background-color: #F5F5F5;
    width: 8px;
}

::-webkit-scrollbar {
    width: 8px;
    background-color: #F5F5F5;
}

::-webkit-scrollbar-thumb {
    border-radius: 0px;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, .3);
    background-color: #283a59;
}


/* --------------------------------------------- */

.gallery-main {
    width: 100%;
    display: table;
}

.gal-cont .title-content {
    color: #233466;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
}

.gallery-inner {
    overflow: hidden;
    position: relative;
    height: 360px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.gallery_mod {
    position: absolute;
    bottom: 0;
    left: -100%;
    right: 0;
    background-color: rgba(101, 101, 101, 0.35);
    width: 100%;
    height: 100%;
    transition: 0.5s ease;
}

.gallery-main:hover .gallery_mod {
    left: 0;
}

.gal-img {
    display: inline-block;
    height: 100%;
    overflow: hidden;
    position: relative;
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    overflow: hidden;
}

.gal-p {
    background-position: center 0;
    background-repeat: no-repeat;
    background-size: cover !important;
    height: 100%;
    margin: 0 auto;
    width: 100%;
    transition: all 6s ease-out 0s;
}

.gallery-main:hover .gal-p {
    background-position: center 100% !important;
}

.gallery_nav {
    margin: 30px 0 17px 0;
    padding: 0;
    list-style: none;
}

.gallery_nav li {
    display: inline-block;
}

.gallery_nav li a {
    background-color: transparent;
    color: #233466 !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    display: inline-block;
    border: 1px solid #233466;
    cursor: pointer;
    margin: 0 6px;
}

.gallery_nav li a.active,
.gallery_nav li a:hover {
    background-color: #233466;
    color: #fff !important;
}

.gallery_modal .modal-dialog {
    max-width: 700px;
    width: 100%;
}

.gallery_modal .modal-body img {
    width: 100%;
}

.gallery_modal .modal-body {
    padding: 15px;
}

.gallery_modal .modal-header {
    padding: 0;
    border: 0;
}

.gallery_modal .modal-content {
    border-radius: 0;
}

.gallery_modal .close {
    width: 30px;
    height: 30px;
    text-shadow: none;
    font-weight: 400;
    color: #fff;
    opacity: 1;
    font-size: 35px;
    padding: 0 !important;
    margin-top: -35px !important;
    margin-right: -10px !important;
    z-index: 11;
}

.gallery_modal .modal-footer {
    border-top: 0;
    padding-top: 0;
    text-align: center;
}

.gallery_modal .modal-footer .btn {
    width: 35px;
    height: 35px;
    padding: 0;
    background-color: #233466;
    border-color: #233466;
    color: #fff;
    box-shadow: none;
    min-width: auto;
    margin: 0 !important;
    display: inline-block;
    border-radius: 0;
    min-height: auto;
    line-height: initial;
}

.gallery_modal .modal-footer .btn::after,
.gallery_modal .modal-footer .btn::before {
    content: none;
}

.gallery_mod .click-btn {
    background-color: #fff;
    color: #333;
    padding: 7px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-transform: uppercase;
    cursor: pointer;
}
/*Modal Shadow*/
.modal.fade {
  z-index: 9999999 !important;
}
.modal-backdrop {
    z-index: 999999 !important;
}
/*Modal Responsiveness*/
@media (max-width: 767px) {
    .gallery_modal .modal-body {
        padding: 13px 30px;
        z-index: 11;
    }

    .gallery_modal .close {
        margin-top: 0px !important;
        margin-right: 7px !important;
        color: #000;
        z-index: 99;
    }
}
@media screen and (min-width: 768px) and (max-width: 991px){
   .gallery_modal .close{
       z-index:9999;
    }
}
@media screen and (max-width: 767px){
    .gallery_modal .close{
       z-index:9999;
       
    }
}