.ad {
  box-sizing: border-box;
  font-size: 0;
}
.ad.ad_tba {
  float: right;
  max-width: 728px;
  text-align: right;
  font-size: initial;
}
.ad.ad_ba {
  text-align: center;
}
.ad.ad_sbb {
  width: 100%;
  text-align: center;
  /*background: lightgray;*/
  position: fixed;
  bottom: 0 !important;
  z-index: 99999999;
}
.ad_sbb_spacer {
  background: white;
}

@media (max-width: 767px){
.pad-left-15
{
padding-left: 15px !important;
}
}

@media(max-width:768px) {
  .ad_sbb {
    display: none !important;
    /*display: block !important;*/
  }
  .ad.ad_sbb {
    background: none;
}
}
@media screen and (max-width:767px) {
   .ad-header {
    margin-top: 5px !important;  
    margin-bottom: 15px; 
  }

  @media (max-width: 667px){
.pi_close_button {
top: 0 !important;
}
}
@media (max-width: 640px){
.pi_close_button {
top: 11px !important;
}
}
@media (max-width: 600px){
.pi_close_button {
top: 22px !important;
}
}
@media (max-width: 568px){
.pi_close_button {
top: 33px !important;
}
}
@media (max-width:533px){
.pi_close_button {
top: 45px !important;
}
}
@media (max-width: 480px){
.pi_close_button {
top: 62px !important;
}
}
@media (max-width: 414px){
.pi_close_button {
top: 83px !important;
}
}
@media (max-width: 384px){
.pi_close_button {
top: 92px !important;
}
}
@media (max-width: 375px){
.pi_close_button {
top: 95px !important;
}
}
@media (max-width: 360px){
.pi_close_button {
top: 100px !important;
}
}
@media (max-width: 320px){
.pi_close_button {
top: 112px !important;
}
}
.jumbotron-main {
    margin-top: 30px;
    margin-bottom: 10px;
}
.ad.ad_ba{margin-bottom: 20px;}
}
.ad_hba {
  text-align: center;
}
.ad_cr {
  margin: 25px 0;
  text-align: center;
  display: none;
  position: relative;
}
.ad_cr:not(.g_ad){
  box-shadow: 0 0 20px #FFF;
}
.ad .close_btn {
  display: block;
  width: 35px;
  height: 35px;
  position: absolute;
  top: -10px;
  right: -15px;
  background-image: url(../images/cr_close.png);
  background-size: contain;
  background-repeat: no-repeat;
}
.pi_close_button{
  top: 20px !important;
  right: 0 !important;
  z-index: 999;
}
.ad.g_ad .close_btn {
  right: -5px; 
  z-index: 999;
}
.ad_overflow {
  text-align: center;
  padding: 0;
}
.ad_no_margin {
  margin-left: -15px;
  margin-right: -15px;
}
.ad img.full {
  width: 100%; 
  height: auto;
}
.ad img.orig{
  max-width: initial;
  width: initial;
}
.ad_overlay {
  background-color: rgba(0,0,0,.75);
  position: fixed;
  height: 100%;
  width: 100%;
  z-index: 9999999;
  text-align: center;
}
.ad_overlay .ad_rb {
  display: inline-block;
  background-color: white;
  padding: 5px;
  max-width: 600px;
  margin: 6% 20px 0 20px;
  position: relative;
}
.ad_overlay .load_gif {
  max-width: 550px;
  width: 100%;
  padding: 3px 0;
}

.ad.no_close_btn .close_btn {
  display: none !important;
}

body.ad_pi--open {
  overflow: hidden;
}
.ad.ad_pi {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: fixed;
  background: white;
  z-index: 10000;
}
.ad_pi__body {
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
}

.ad_pi__body .ad_pi__loading {
  margin: 10px 0 5px 0;
}
.ad_pi__body .ad_pi__skip {
  margin: 6px 0;
  text-decoration: underline;
}

.ad_pi__body .ad_pi__image {
  width: 100%;  
  position: relative;
}

.ad_pi__body .ad_pi__image img {
  width: 100%;
  height: 100%;
  padding: 0 20px;
}


.ad_no_margin {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.custom-col-right .ad_no_margin {
margin-left: -15px !important;
margin-right: -15px !important;
}

.ad_pi__body .ad_pi__image {
width: auto !important; 
text-align: center !important;
width: 100% !important;
}
/*.ad_pi{
  overflow-y: scroll;
}
*/
.ad_pi {
    overflow-y: inherit;
}

.ad .close_btn {
top: -17px !important;
right: 0 !important;
}
/*@media (max-width: 1440px){

.ad_pi__body .ad_pi__image img {
position: relative !important;
}
}*/


.ad_pi__body .ad_pi__image {
flex-grow: 1;
text-align: left !important;
}
.ad_pi__body .ad_pi__image img {
position: absolute !important;
object-fit: contain;
}



