.main-menu {
    z-index: 999;
}

.navbar .has-megamenu {
    position: static!important;
}
.navbar-nav .dropdown-menu.megamenu{
    position: absolute;
    top: 0;
}
.navbar .megamenu {
    left: 0;
    right: 0;
    width: 100%;
    margin-top: 0;
    max-height: calc(100vh - 100px);
    overflow-y: scroll;
    overflow-x: hidden;
}

.megamenu>.row div:nth-child(4n) .col-megamenu {
    border-right: none;
}
.megamenu>.row .col-6{
    padding-left: 0;
    padding-right: 0;
}
.col-megamenu {
    text-align: center;
    margin-bottom: 2rem;
    
    /*padding-left: 15px;
    padding-right: 15px;*/
    /* border-bottom: 1px solid #000; */
    /*min-height: 204px;*/
    position: relative;
    height:100%;
}
.col-megamenu::after {
    position: absolute;
    content: '';
    width: 100%;
    height: 1px;
    background: #000;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    margin-top: -15px;
    margin-left: 0;
    margin-right: auto;
}
.col-megamenu::before {
    position: absolute;
    content: '';
    width: 1px;
    height: 85%;
    
    background: #000;
    bottom: 0;
    left: auto;
    right: 0;
    top: 0;
    margin-top: 0px;
    margin-bottom:0;
    margin-right: -15px;
}
.col-megamenu .mega-img {
    margin-bottom: 1rem;
    max-height: 150px;
    overflow: hidden;
    position: relative;
    text-align: center;
}

.col-megamenu .mega-img img {
    max-width: 100%;
    height: auto;
}
a.full-link {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    transition:linear 0.2s;
}

.mega-img a:hover{
    opacity:0.2;
    background:#000;
    
    transition:linear 0.2s;
}

.col-megamenu h4 {
    color: #000;
    font-size: 1rem;
}

@media screen and (min-width: 767px){
    .navbar-nav .dropdown-menu.megamenu{
        
        top: 100% !important;
        max-height: calc(100vh - 200px);
    }
    .col-megamenu .mega-img img {
        max-width: 100%;
        height: 150px;
        margin: 0 auto;
    }
}

@media screen and (min-width:992px) {
    .modal-xl{
        max-width:calc( 100% - 70px ) !important;
        width:auto;
    }
}
