/*
    Created on : Dec 15, 2019 04:09:40 am
    Author     : asanka.kumara@ebeyonds.com
*/

#mid_level_exporters .xList-item:nth-child(2),
#mid_level_exporters .xList-item:nth-child(1) {
    display: none;
}

#major_exporters .xList-item img,
#mid_level_exporters .xList-item img {
    width: auto;
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#major_exporters .xList-item .image-wrapper,
#mid_level_exporters .xList-item .image-wrapper {
    position: relative;
    z-index: 1;
    /*padding: 35% 50%;*/
    padding: 28% 50%;
    background: #eee;
}
#mid_level_exporters .xList-item .image-wrapper {
     padding: 50%;
}
#mid_level_exporters .xList-item .company-description {
    display: none;
}
#mid_level_exporters .xList-items {
    align-items: stretch;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

#mid_level_exporters .xList-item {
    position: relative;
    z-index: 1;
    flex-grow: 1;
    justify-content: space-between;
    margin-bottom: 40px;
}

.major-exporters .xList-item,
.mid-level-exporters .xList-item{
    margin-top: 25px;
} 

#mid_level_exporters .xList-item .link {
    position: absolute;
    z-index: 1;
    left: 50%;
    transform: translate(-50%, 0);
    bottom: 0;
    white-space: nowrap;
}

#mid_level_exporters .xList-item .r2g-xbox-list-component {
    height: 100%;
}

#mid_level_exporters .xList-item .r2g-xbox-list-component .container {
    height: 100%;
}

#mid_level_exporters .xList-item .r2g-xbox-list-component .xbox {
    height: 100%;
    padding-bottom: 5px;
}

#major_exporters .xList-item .image-wrapper {
    height: auto;
}


#brands .image-wrapper {
    position: relative;
    z-index: 1;
    padding: 35% 50%;
}

#brands .image-wrapper img {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 100%;
    max-height: 100%;
}


@media (min-width: 768px) {
    #major_exporters .xList-item {
        flex-basis: calc(50% - 44px);
        max-width: calc(50% - 44px);
    }
}

@media (min-width: 1024px) {
    #mid_level_exporters .xList-item {
        flex-basis: calc(33.33333% - 44px);
    }
    .major-exporters .xList-item{
        margin-top: 25px;
    } 
    .mid-level-exporters .xList-item{
        margin-top: 20px;
    } 
}

@media (min-width: 1280px) {
     #mid_level_exporters .xList-item {
        flex-basis: calc(25% - 80px);
        max-width: calc(25% - 80px);
    }
    #major_exporters .xList-item {
        flex-basis: calc(50% - 65px);
        max-width: calc(50% - 65px);
    }
    .major-exporters .xList-item{
        margin-top: 45px;
    } 
    .mid-level-exporters .xList-item{
        margin-top: 35px;
    } 
}