.ah-resource .custom-content img{
  object-fit:contain;
  max-width:450px;
  width:100%;
} 
.hs-inline-edit .resource-container .ah-resource {
  pointer-events: none!important;
}
.ah-resource-hub .resource-card {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  margin-bottom: 30px;
  max-width: 368px;
}
.resource-container.custom_ads {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  gap: 30px;
}
.resource-container.custom_ads img,
.resource-container.customizable_content .imag-container {
  margin-bottom: 10px;
}
.resource-container.custom_ads .ah-resource {
  -webkit-box-flex: 0;
      -ms-flex: 0 1 calc(50% - 30px);
          flex: 0 1 calc(50% - 30px);
}
.resource-container.customizable_content {
  display: block;
}
.resource-container .resource-name,
.resource-container .resource-type {
  display: block;
  font-weight: bold;
  color: #494a52;
}
#digital-ads .custom_ads.resource-container,
.resource-container.customizable_content .resource-container {
  display:flex;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  gap: 55px;
  margin-bottom: 100px;
  flex-flow:row wrap;
}

.resource-container.customizable_content .resource-container.col-count-2.images .ah-resource img{
  border: 1px solid #e3e3e3;
}
.resource-container.customizable_content .resource-container.col-count-2 .ah-resource{
   -webkit-box-flex: 0;
       -ms-flex: 0 1 calc(50% - 50px);
           flex: 0 1 calc(50% - 50px);
}
.resource-container.customizable_content .resource-container.col-count-4 .ah-resource{
   -webkit-box-flex: 0;
       -ms-flex: 0 1 calc(25% - 50px);
           flex: 0 1 calc(25% - 50px);
}
.resource-container.customizable_content .resource-container.col-count-3 .ah-resource{
   -webkit-box-flex: 0;
       -ms-flex: 0 1 calc(33% - 50px);
           flex: 0 1 calc(33% - 50px);
}
.resource-container .image-container.landscape {
  background-size: contain!important;
  background-position: bottom!important;
  border: none!important;
}
.resource-container .custom-content .image-container {
  position: relative;
  -o-object-fit: cover;
     object-fit: cover;
  width: 100%;
  padding-bottom: 120%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top left;
  height: 0;
}
.custom-content.resource--video:before,
.custom-content.resource--video:after{
  display: none;
}
.campaign-name {
  color: #7817D6;
}
.ah-resource .download {
  display: inline-block;
  margin-top: 20px;
}
.custom_ads img,
.resource-container .image-container {
  border: 1px solid #e3e3e3;
}
.resource--detail-container .image-container {
  border: none;
}
.custom-content.resource--video .image-container:before,
.ah-resource .resource--video:before {
  content: "";
  width: 100px;
  height: 100px;
  position: absolute;
  background-color: rgba(120,23,214,.8);
  border-radius: 100%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.custom-content.resource--video .image-container:after,
.ah-resource .resource--video:after {
  content:"";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12.5px 0 12.5px 25px;
  border-color: transparent transparent transparent #fff;
}

@supports ((-webkit-text-decoration-skip: auto) or (text-decoration-skip: auto)) and (not (translate: 10px)){
  #digital-ads .custom_ads.resource-container .ah-resource,
  .resource-container.customizable_content .ah-resource {
   margin: 20px;
}
}
@media(max-width:980px){
  .resource-container .resource-name, 
  .resource-container .resource-type,
  .ah-resource .download{
    font-size:18px;
  }
  .download.link--arrow-before:before{
    background-size: 25px;
    height: 25px;
    margin-right: 5px;
  }
}
@media(max-width: 768px) {
  .ah-resource-hub .resource-card.pull-left,
  .ah-resource-hub .resource-card.center-padding {
    margin-right: 0px;
    margin-left: 0px;
  }
  .resource-container.webinar .image-container {
    -webkit-box-flex: 0;
        -ms-flex: 0 1 75%;
            flex: 0 1 75%;
  }
  .resource-container.webinar .content-container {
    margin-left: 0;
  }
  .resource-container.customizable_content .resource-container {
    flex-direction:column;
    align-items:flex-start;
  }
  .resource-container {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
  #digital-ads .custom_ads.resource-container, 
  .resource-container.customizable_content .resource-container {
    margin-bottom: 50px;
  }
.resource-container.webinar .ah-resource,
.resource-container .webinar.ah-resource.resource--video,
.resource-container .custom-content.ah-resource.resource--video {
  width: 100%;
}
}





