/*
 image ads using div ----------------------------------------------------------------------

 .td-visible-desktop - for desktop
 .td-visible-tablet-portrait - for tablet portrait
 .td-visible-phone - for mobile

*/
.td-visible-desktop {
  display: table;
}
.td-visible-tablet-portrait,
.td-visible-phone {
  display: none;
}

/* responsive portrait tablet */
@media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
  .td-visible-tablet-portrait {
    display: table;
  }
  .td-visible-desktop {
    display: none;
  }
  .td-visible-phone {
    display: none;
  }
}

/* responsive portrait phone */
@media (max-width: @responsive_p_phone_max) {
  .td-visible-phone {
    display: table;
  }
  .td-visible-desktop {
    display: none;
  }
  .td-visible-tablet-portrait {
    display: none;
  }
}

// Image ad condition to hide the ad title and ad to
/* responsive landscape desktop */
@media (min-width: 1024px) {
  .td-rec-hide-on-m {
    display: none !important;
  }
}

/* responsive portrait tablet */
@media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
  .td-rec-hide-on-tp {
    display: none !important;
  }
}
/* responsive portrait phone */
@media (max-width: @responsive_p_phone_max) {
  .td-rec-hide-on-p {
    display: none !important;
  }
}


// image ads header
.td-a-rec-id-header img {
  margin: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;

  /* responsive portrait phone */
  @media (max-width: @responsive_p_phone_max) {
    position: relative;
    display: table;
    margin-right: 0;
    margin-left: 0;
    margin-top: 10px;
    margin-bottom: 10px;
  }
}

.td-a-rec-id-sidebar,
.td-a-rec-id-content_top,
.td-a-rec-id-content_inline,
.td-a-rec-id-content_bottom,
.td-a-rec-id-custom_ad_1,
.td-a-rec-id-custom_ad_2,
.td-a-rec-id-custom_ad_3,
.td-a-rec-id-custom_ad_4,
.td-a-rec-id-custom_ad_5 {
  img {
    width: 100%;
  }
}



/*

      sidebar ads


*/
.td-g-rec-id-sidebar {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 15px;
}

// sidebar image
.td-visible-desktop,
.td-visible-tablet-portrait,
.td-visible-phone {
  margin-left: auto;
  margin-right: auto;
}

.td-a-rec-id-sidebar {
  margin-top: 20px;
  margin-bottom: 20px;
}


// -----------------------------------------------

// top - bottom article ad
.td-g-rec-id-content_top,
.td-g-rec-id-content_bottom {
  clear: both;
  text-align: center;
  margin-bottom: 15px;
  margin-top: 21px;
}

.td-a-rec-id-content_top,
.td-a-rec-id-content_bottom {
  clear: both;
  text-align: center;
  margin-bottom: 21px;
  margin-top: 21px;

  img {
    margin-bottom: 0;
  }
}


// inline article ad
.td-g-rec-id-content_inline {
 text-align: center;
  margin-top: 20px;
  margin-bottom: 15px;
}

.td-g-rec-id-content_inlineleft,
.td-a-rec-id-content_inlineleft {
  float: left;
  margin-bottom: 15px;
  margin-top: 9px;
  margin-right: 21px;
}

.td-g-rec-id-content_inlineright,
.td-a-rec-id-content_inlineright {
  float: right;
  margin-bottom: 15px;
  margin-top: 6px;
  margin-left: 21px;
}

// custom ads
.td-a-rec-id-custom_ad_1,
.td-a-rec-id-custom_ad_2,
.td-a-rec-id-custom_ad_3,
.td-a-rec-id-custom_ad_4,
.td-a-rec-id-custom_ad_5,
.td-g-rec-id-custom_ad_1,
.td-g-rec-id-custom_ad_2,
.td-g-rec-id-custom_ad_3,
.td-g-rec-id-custom_ad_4,
.td-g-rec-id-custom_ad_5 {
  display: table;
  margin-bottom: 20px !important;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

// google ads bottom space for custom ads
.td-g-rec-id-custom_ad_1,
.td-g-rec-id-custom_ad_2,
.td-g-rec-id-custom_ad_3,
.td-g-rec-id-custom_ad_4,
.td-g-rec-id-custom_ad_5 {
  margin-bottom: 15px !important;
}

// add title
.td-adspot-title {
  color: #bbbbbb;
  font-size: 10px;
  text-align: center;
  display: block;
  margin-top: -5px;
  margin-bottom: 5px;
}