:root{
    --cardWidth:calc(100%/6 - 50px/6);
    --cardHeight:150px;
}
.rg{
  width: 100%;
}
.r{
 width: 100%;
 display: flex;
 justify-content: center;
}
.cg{
 width:1200px !important;
 display: flex !important;
 flex-flow:row wrap;
 /* gap: 10px; */

}
.c{
 width:100%;
 display: flex;
 gap:10px;
 flex-flow: row wrap;
}

.ad-list{
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;

}



.ad-card{
    display: flex;
    background-color: #fff;
    box-shadow: 0 0 4px 4px rgba(0,0,0,.3);
    /* column-gap:10px; */
    border: 4px solid #fff;
    border-radius: 10px;
    width: var(--cardWidth);
    height:var(--cardHeight);
    flex-flow: row wrap;
}
.ad-img{
    position: relative;
    width:100%;
    outline: none;
   
  
}
.ad-img img{
    position: absolute;
  object-fit: cover;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
   width: 100%;
  height: 100%; 
  overflow:hidden;
  border-radius: 10px;

}
.ad-overlay{
    background-image: linear-gradient(to bottom,rgba(0,0,0,0),rgb(46,60,80,.6),#2e3c50);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    position: absolute;
    border-radius: 10px;
    height: 100%;
    width: 100%;
}
.ad-body{
    padding: 10px;
    width:100%;
    /* background-color: rgba(255, 255, 255,.8); */
    overflow:hidden;
    position: absolute;
    
    bottom: 0;
   
}

.ad-body h1,h6,a{
    color:#fff;
    font-weight: bold;
}
.ad-body a{
    font-size: .8rem;
}

.ad-title{
    color:#fff;
    font-size: 1rem;

}
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    
    .ad-card{
        width: 100%;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    .ad-card{
        width: calc(50% - 10px);
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .ad-card{
        width: calc(100%/3 - 20px/3);
    }

}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .ad-card{
        width:calc(100%/6 - 50px/6);
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .ad-card{
        width:calc(100%/6 - 50px/6);
    }
}