@font-face {
  font-family: 'APVarW05-Regular';
  src:
    url('https://www.dianomi.com/partner/apnews/fonts/APVarW05-Regular.woff2') format('woff2'),
    url('https://www.dianomi.com/partner/apnews/fonts/APVarW05-Regular.woff') format('woff');
}

/* Layout containers */
#dianomi_ad_4,
#dianomi_ad_5 {
  width: 50%;
  /* min-height: 300px;*/
}

body {
  padding: 0;
  margin: 0;
  background-color: #ffffff;
  height: auto;
  overflow: hidden;
}

/* Links */
a {
  color: #464646;
  text-decoration: none;
}

.action:hover,
.dianomi_provider_short:hover {
  text-decoration: none;
}

.maintext:hover {
  text-decoration: none;
  color: #a9a9aa;
}

/* Hero image */
.hero img {
  float: none;
  border: none;
  width: 100%;
  height: auto;
  max-height: 315px;
  max-width: 100%;
  margin: 0 0 2px;
  object-fit: cover;
  border-radius: 3px;
}

/* Wrapper */
.wrapper {
  position: relative;
  display: flex;
  gap: 20px;
  width: 100%;
  height: auto;
  /* margin-left: -3%;*/
  /* margin-top: 30px; */
  padding-bottom: 0px;
  background-color: #ffffff;
  font-family: sans-serif;
}

/* Hero card */
.hero {
  position: relative;
  float: left;
  width: 50%;
  /* min-height: 240px;*/
  /* margin: 0 0 20px;*/
  /* padding-left: 3%; */
  box-sizing: border-box;
}

.hero::before {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 25px;
  height: 29px;
  background: none;
  background-size: 100%;
  background-position: 0;
  background-color: transparent;
}

/* Sub hero */
.subhero {
  width: 100%;
  height: auto;
  margin: 0;
  padding-top: 0;
  text-align: left;
}

/* Text container */
.text {
  float: none;
  width: 100%;
  height: auto;
  margin: 0;
  padding-left: 0;
  padding-top: 0;
  box-sizing: border-box;
  text-decoration: none;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
}

/* Headings (hidden) */
.heading_top,
.heading {
  display: none;
  visibility: hidden;
}

/* Main headline */
.maintext {
  display: block;
  width: 100%;
  margin: 0 0 3px;
  padding: 0;
  font-size: 18px;
  line-height: 1.4em;
  font-weight: 500;
  color: #191919;
  text-align: left;
  vertical-align: middle;
  transition: all 0.3s ease;
  font-family: 'APVarW05-Regular', -apple-system, Arial, Helvetica, 'Roboto',
    system-ui, sans-serif;
  font-variation-settings: "wdth" 87.5, "wght" 500;
}

/* Action (hidden) */
.action {
  display: none;
  visibility: hidden;
}

.dianomi_provider_short {
		text-decoration:none;
	font-size: 13px;
	display: block;
	font-weight:500;
	margin-top:5px;
    font-style: normal;
  	font-family: 'APVarW05-Regular', -apple-system, Arial, Helvetica, 'Roboto', system-ui, sans-serif;
    color: #DA1026;
    font-variation-settings: "wdth" 87.5, "wght" 500;
	font-size: 12px;
      max-width: 100%;
    display: block !important;
}

.dianomi_provider_short::before{
 content:"Advertisement: ";
    color: #DA1026;
  font-variation-settings: "wdth" 87.5, "wght" 500;
  
}

/* Secondary lines (hidden) */
.wrapper .line2 {
  display: none;
  margin-left: 3%;
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 9px;
  font-size: 19px;
  font-weight: bold;
  letter-spacing: 0;
  color: #000;
  border-bottom: none;
  font-family: Helvetica, Arial, sans-serif;
}

.wrapper .sub-line2 {
  position: absolute;
  top: 8px;
  right: 5px;
  z-index: 1;
  display: none;
  width: 55px;
  height: 12px;
  overflow: hidden;
  padding-bottom: 0;
  font-size: 10px;
  font-weight: 300;
  color: #666;
  font-family: FaktSmConPro-SemiBold, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrapper .sub-line2 a {
  color: #666;
}

.sub-line2 img {
  border: none;
  outline: none;
}

@media screen and (max-width: 1024px) {
  .maintext {
    font-size: 17px;
  }
}
 
@media screen and (max-width: 460px) {

  .wrapper {
    display: block;   
  padding-bottom: 0px;
  }

  .hero {
    width: 100% !important;
    float: none;
    margin-bottom: 0px;
    min-height: 280px;
    padding-bottom: 20px;
  }
  

  .hero img {
    width: 100%;
    max-height: 200px;      /* match second behavior */
    margin-bottom: 10px;  /* same spacing as second */
  }

  
}

/*
@media (prefers-color-scheme: dark) {
   .wrapper, .line2{
    color: #fff;
  }
  
  .body{
    background-color: #0c0c0c;
  }
  
.hero, .subhero, .text, .maintext, .article_date{
  background-color: #0c0c0c;
    color: #fff;
  }
  
  .dianomi_provider_short{
    color: #fff;
  }
  .sub-line2, .line2, .wrapper{
  color: #fff;
    background-color: #0c0c0c;
  }

 
  img.dianomi-lg {
    filter: invert(1);
    background: transparent;
}
  
}

*/
