/* account for the admin bar in the layout */
body.admin-bar #mobile-menu .mobile-menu-body .close-container {
  padding-top: calc(1em + 32px);
}

#wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#wrapper header {
  flex: 0 0 auto;
}

#wrapper #container {
  flex: 1 0 auto;
}

body.admin-bar #wrapper {
  min-height: calc(100vh - 32px);
}

@media screen and (max-width:782px) {
  body.admin-bar #mobile-menu .mobile-menu-body .close-container {
    padding-top: calc(1em + 46px);
  }

  body.admin-bar #wrapper {
    min-height: calc(100vh - 46px);
  }
}

footer {
  flex-shrink: 0;
}

a {
  color: var(--Black, #12191F);
  transition: opacity 0.2s ease-in-out;
}

body.single main a, body.page main a {
  color: var(--PrimaryBlue);
  text-decoration: underline;
}

a img {
  transition: 0.2s ease-in-out;
}

a:not(.story-image):hover {
  opacity: 0.7;
}

/* a.story-image:hover img {
  transform: scale(1.01);
}

a.story-image:active img {
  transform: scale(1.0075);
} */

a, a:hover, a:active, a:visited {
  color: inherit;
  text-decoration: inherit;
}

a.story-topic, body.single a.story-topic, body.page a.story-topic {
  color: var(--Lighter-Black);
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
  text-decoration: none;
}

i, em {
  font-style: italic;
}

b, strong {
  font-weight: 700;
}
h1 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2em;
}

h2 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2em;
}

h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2em;
}

h4 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2em;
}

h5 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2em;
}

h6 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2em;
}

figcaption {
  font-size: 14px;
  font-style: italic;
  margin: 0.25em 0 30px 0;
}

/* Text Styles */
.inter-400 {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "slnt" 0;
}

.inter-600 {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-variation-settings:
    "slnt" 0;
}

.inter-700 {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings:
    "slnt" 0;
}

.inter-800 {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
  font-variation-settings:
    "slnt" 0;
}

html, body {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings:
    "slnt" 0;
  color: var(--Black, #12191F);
  font-size: 18px;
}

body section { 
  font-size: 18px;
}

p {
  line-height: 1.5em;
  margin: 1em 0;
}

.wrapper {
  padding: 0 40px;
}

.wrapper .full-width-inside-wrapper {
  margin-left: -40px;
  margin-right: -40px;
}

@media screen and (max-width:782px) {
  .wrapper {
    padding: 0 12px;
  }

  .wrapper .full-width-inside-wrapper {
    margin-left: -12px;
    margin-right: -12px;
  }
}



.wrapper > * {
  max-width: 1400px;
  margin: 0 auto;
}

hr {
  border: none;
  height: 1px;
  background-color: var(--PrimaryBlue, #0D7BC0);
}

hr.vr {
  margin: 0;
  height: 100%;
  width: 0.5px;
  background-color: --Lighter-Black;
}

/* header */
.top-bar {
  background: var(--Gradient, radial-gradient(186.98% 140.09% at -1.97% 7.72%, #0D7BC0 0%, #0C6298 100%));
}

.top-bar > div {
  padding: 18px 0;
  display: grid;
  grid-template-columns: 220px auto;
  gap: 1em;
}

.masthead {
  color: #FFF;
}

.masthead p {
  line-height: 1em;
}

.masthead > a > p:nth-child(1) {
  color: #FFF;
  font-size: 24px;
  text-transform: capitalize;
}

.masthead > a > p:nth-child(2) {
  color: #FFF;
  font-size: 14px;
  text-transform: capitalize;
}

.masthead > a > img {
  height: 64px;
}

#main-nav ul {
  display: flex;
  flex-direction: row;
  gap: 40px;
  justify-content: center;
  align-items: center;
  height: 100%;
}

#main-nav ul li:nth-child(1) {
  transition: margin-left 0.3s;
  margin-left: -220px;
}

#main-nav a {
  color: #FFF;
  font-size: 16px;
  line-height: normal;
  text-transform: uppercase;
  text-decoration: none;
}

#explore > a {
  display: flex;
  flex-direction: row;
  gap: 15px;
  text-decoration: none;
}

#explore > a span {
  color: var(--Black, #12191F);
  font-size: 16px;
  text-transform: capitalize;
  text-decoration: none;
  justify-content: center;
  white-space: nowrap;
}

#sub-nav > div {
  padding: 20px 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 41px;
}

#sub-nav > div > hr {
  width: 0.5px;
  height: 38px;
}

#sub-nav > div > ul {
  display: flex;
  flex-direction: row;
  gap: 40px;
  justify-content: left;
  align-items: center;
  height: 100%;
  line-height: 40px;
  flex: 1;
  flex-shrink: 1;
}

#sub-nav > div > ul a {
  height: 100%;
  color: var(--Black, #12191F);
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
}

/* sub-nav sub menus */
#sub-nav .menu-item.menu-item-has-children {
  position: relative;
}

#sub-nav .menu-item.menu-item-has-children ul.sub-menu {
  display: none;
  position: absolute;
  height: auto;
  top: 100%;
  left: 0;
  background: #FFF;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  z-index: 100;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  border-radius: 6px;
}

#sub-nav .menu-item.menu-item-has-children:hover ul.sub-menu {
  display: flex;
}

#sub-nav .menu-item.menu-item-has-children ul.sub-menu li {
  width: 100%;
}

#sub-nav .menu-item.menu-item-has-children ul.sub-menu li a {
  font-size: 14px;
  display: block;
  padding: 0 16px 0 12px;
  margin: 4px;
  border-radius: 4px;
  background-color: #FFF;
  transition: background-color 0.1s, color 0.1s;
}

#sub-nav .menu-item.menu-item-has-children ul.sub-menu li a:hover {
  background: var(--PrimaryBlue, #0D7BC0);
  color: #FFF;
  opacity: 1;
}

#mobile-menu .menu-item.menu-item-has-children ul.sub-menu {
  margin-left: 4px;
}

#mobile-menu .menu-item.menu-item-has-children ul.sub-menu li a::before {
  content: "•";
  color: var(--PrimaryBlue, #0D7BC0);
  margin-right: 10px;
}

.nav-btn {
  border: none;
  background: none;
  cursor: pointer !important;
  transition: transform 0.3s;
}

.nav-btn:hover {
  transform: scale(1.05);
}

.nav-btn:active {
  transform: scale(0.9);
}

#menu-btn {
  display: none;
  overflow-x: hidden;
  padding: 0;
}

#mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100%);
  padding-bottom: 1.5em;
  z-index: 100;
}


#mobile-menu.hiding nav ul li a {
  opacity: 0;
}

#mobile-menu nav ul li:nth-child(1) {
  transition: transform 0.4s 0.12s cubic-bezier(0.2, 0.2, 0.2, 1), opacity 0.42s 0.18s ease-in;
}
#mobile-menu nav ul li:nth-child(2) {
  transition: transform 0.42s 0.12s cubic-bezier(0.2, 0.2, 0.2, 1), opacity 0.42s 0.18s ease-in;
}
#mobile-menu nav ul li:nth-child(3) {
  transition: transform 0.44s 0.12s cubic-bezier(0.2, 0.2, 0.2, 1), opacity 0.42s 0.18s ease-in;
}
#mobile-menu nav ul li:nth-child(4) {
  transition: transform 0.46s 0.12s cubic-bezier(0.2, 0.2, 0.2, 1), opacity 0.42s 0.18s ease-in;
}
#mobile-menu nav ul li:nth-child(5) {
  transition: transform 0.48s 0.12s cubic-bezier(0.2, 0.2, 0.2, 1), opacity 0.42s 0.18s ease-in;
}
#mobile-menu nav ul li:nth-child(6) {
  transition: transform 0.5s 0.12s cubic-bezier(0.2, 0.2, 0.2, 1), opacity 0.42s 0.18s ease-in;
}
#mobile-menu nav ul li:nth-child(7) {
  transition: transform 0.52s 0.12s cubic-bezier(0.2, 0.2, 0.2, 1), opacity 0.42s 0.18s ease-in;
}
#mobile-menu nav ul li:nth-child(8) {
  transition: transform 0.54s 0.12s cubic-bezier(0.2, 0.2, 0.2, 1), opacity 0.42s 0.18s ease-in;
}
#mobile-menu nav ul li:nth-child(9) {
  transition: transform 0.56s 0.12s cubic-bezier(0.2, 0.2, 0.2, 1), opacity 0.42s 0.18s ease-in;
}
#mobile-menu nav ul li:nth-child(10) {
  transition: transform 0.58s 0.12s cubic-bezier(0.2, 0.2, 0.2, 1), opacity 0.42s 0.18s ease-in;
}
#mobile-menu nav ul li:nth-child(11) {
  transition: transform 0.6s 0.12s cubic-bezier(0.2, 0.2, 0.2, 1), opacity 0.42s 0.18s ease-in;
}
#mobile-menu nav ul li:nth-child(12) {
  transition: transform 0.62s 0.12s cubic-bezier(0.2, 0.2, 0.2, 1), opacity 0.42s 0.18s ease-in;
}

#mobile-menu.hiding nav ul li:nth-child(1) { transform: translateX(calc(var(--MobileMenuAnimatedMargin) * 1)); }
#mobile-menu.hiding nav ul li:nth-child(2) { transform: translateX(calc(var(--MobileMenuAnimatedMargin) * 2)); }
#mobile-menu.hiding nav ul li:nth-child(3) { transform: translateX(calc(var(--MobileMenuAnimatedMargin) * 3)); }
#mobile-menu.hiding nav ul li:nth-child(4) { transform: translateX(calc(var(--MobileMenuAnimatedMargin) * 4)); }
#mobile-menu.hiding nav ul li:nth-child(5) { transform: translateX(calc(var(--MobileMenuAnimatedMargin) * 5)); }
#mobile-menu.hiding nav ul li:nth-child(6) { transform: translateX(calc(var(--MobileMenuAnimatedMargin) * 6)); }
#mobile-menu.hiding nav ul li:nth-child(7) { transform: translateX(calc(var(--MobileMenuAnimatedMargin) * 7)); }
#mobile-menu.hiding nav ul li:nth-child(8) { transform: translateX(calc(var(--MobileMenuAnimatedMargin) * 8)); }
#mobile-menu.hiding nav ul li:nth-child(9) { transform: translateX(calc(var(--MobileMenuAnimatedMargin) * 9)); }
#mobile-menu.hiding nav ul li:nth-child(10) { transform: translateX(calc(var(--MobileMenuAnimatedMargin) * 10)); }
#mobile-menu.hiding nav ul li:nth-child(11) { transform: translateX(calc(var(--MobileMenuAnimatedMargin) * 11)); }
#mobile-menu.hiding nav ul li:nth-child(12) { transform: translateX(calc(var(--MobileMenuAnimatedMargin) * 12)); }
#mobile-menu.hiding nav ul li:nth-child(13) { transform: translateX(calc(var(--MobileMenuAnimatedMargin) * 13)); }
#mobile-menu.hiding nav ul li:nth-child(14) { transform: translateX(calc(var(--MobileMenuAnimatedMargin) * 14)); }
#mobile-menu.hiding nav ul li:nth-child(15) { transform: translateX(calc(var(--MobileMenuAnimatedMargin) * 15)); }
#mobile-menu.hiding nav ul li:nth-child(16) { transform: translateX(calc(var(--MobileMenuAnimatedMargin) * 16)); }
#mobile-menu.hiding nav ul li:nth-child(17) { transform: translateX(calc(var(--MobileMenuAnimatedMargin) * 17)); }
#mobile-menu.hiding nav ul li:nth-child(18) { transform: translateX(calc(var(--MobileMenuAnimatedMargin) * 18)); }

#mobile-menu .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: background-color 0.3s;
}

#mobile-menu.hiding, #mobile-menu.showing {
  display: block;
}

#mobile-menu.hiding .overlay {
  background-color: rgba(0,0,0,0);
}

#mobile-menu.showing .overlay {
  background-color: rgba(0,0,0,0.5);
}

#mobile-menu .mobile-menu-body {
  position: absolute;
  right: 0;
  background: #FFF;
  height: 100%;
  width: 100%;
  max-width: 650px;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 40px;
  font-size: 16px;
  transition: transform 0.3s cubic-bezier(0.2, 0.2, 0.2, 1);
  overflow-y: scroll;
}

#mobile-menu.hiding .mobile-menu-body {
  transform: translateX(100%);
}

#mobile-menu.showing .mobile-menu-body {
  transform: translateX(0%);
}

#mobile-menu .mobile-menu-body > .close-container, #mobile-menu .mobile-menu-body > nav:nth-child(2) {
  background-color: var(--PrimaryBlue, #0D7BC0);
  color: #FFF;
}

#mobile-menu .mobile-menu-body > nav:nth-child(2) {
  padding-top: calc(var(--CommonSpacing, 40px) / 2);
}

#mobile-menu .mobile-menu-body > .close-container {
  padding: 1em 0 0 1em;
}

#mobile-menu .mobile-menu-body > .close-container button {
  padding: 12px;
}

#mobile-menu .mobile-menu-body > nav:nth-child(3) {
  padding-bottom: 0;
}

#mobile-menu .mobile-menu-body > nav {
  padding: var(--CommonSpacing, 40px);
  text-transform: uppercase;
}

#mobile-menu .mobile-menu-body > .search-container {
  padding: var(--CommonSpacing, 40px);
  padding-top: 0;
}

#mobile-menu .mobile-menu-body > .search-container > div > form {
  display: grid;
  grid-template-columns: auto 22px;
  gap: 10px;
}



#mobile-menu .mobile-menu-body > nav a {
  text-decoration: none;
  display: block;
  height: 2em;
}

#mobile-menu #mobile-search-btn {
  height: 100%;
}

#sub-nav .search-container {
  width: 480px;
  flex-shrink: 0;
}

#sub-nav #search-widget {
  display: flex;
  flex-direction: row-reverse;
  gap: 12px;
  width: 100px;
  transition: width 0.3s;
  overflow-x: hidden;
  flex-shrink: 0;
}

#sub-nav #search-widget form {
  display: flex;
  gap: 10px;
}

#sub-nav #search-widget .search-container, #sub-nav #search-widget #close-search {
  transition: opacity 0.4s, transform 0.3s;
  opacity: 0;
}

#sub-nav #search-widget #search-container.search-container {
  transform: translateX(80px);
}

#sub-nav.searching #search-widget #search-container.search-container {
  transform: translateX(0);
}

#sub-nav #search-widget #close-search {
  transform: translateX(100%);
}

#sub-nav #search-btn {
  transition: transform 0.3s;
  transform: translateX(80px);
}

/*  
  fix active animations which are built in to the nav-btn class but overwritten by the transforms
  placed on the search button and close search button
*/
#sub-nav #search-btn:active img, #sub-nav.searching #search-widget #close-search:active {
  transition: transform 0.3s;
  transform: scale(0.9);
}

#sub-nav.searching #search-btn {
  transform: translateX(0);
}

#sub-nav.searching #search-widget #close-search {
  transform: translateX(0);
}

#sub-nav.searching #search-widget .search-container, #sub-nav.searching #search-widget #close-search {
  opacity: 1;
}

#sub-nav.searching #search-widget {
  width: 620px;
}

#sub-nav > div > ul {
  transition: opacity 0.3s;
}

#sub-nav > div > ul > li {
  white-space: nowrap;
}

#sub-nav.searching > div > ul {
  width: 100px;
  opacity: 0;
}

#sub-nav #close-search {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--PrimaryBlue, #0D7BC0);
}

#sub-nav #close-search span {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: transparent url(../images/chevron-right.svg) no-repeat left center;
  background-size: 30%;
  margin-left: 0.5em;
}

#sub-nav #close-search img {
  width: 16px;
  height: 16px;
}

.search-container input {
  font-size: 16px;
  padding: 0.5em;
  border: 1px solid var(--PrimaryBlue, #0D7BC0);
  border-radius: 4px;
}

#sub-nav .search-container input {
  width: 100%;
}

@media (max-width: 1450px) {
  #main-nav ul li:nth-child(1) {
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  .top-bar > div {
    grid-template-columns: 220px auto 54px;
  }

  #main-nav ul {
    display: none;
  }

  #sub-nav #search-widget {
    display: none;
  }

  #menu-btn {
    display: block;
  }

  #sub-nav > div > ul, #sub-nav > div > hr, #sub-nav > div > a {
    display: none;
  }
}


/* footer */
footer {
  background-color: var(--Footer, #F4F4F4);
  padding-bottom: var(--CommonSpacing, 40px);
}

footer .footer-border {
  height: 3px;
  background-color: var(--PrimaryBlue, #0D7BC0);
}

footer .footer-border > div::after {
  content: "";
  display: block;
  height: 3px;
  background-color: var(--Gold, #FFCE51);
  width: 75px;
}

footer .footer-body {
  margin: 0 auto;
  padding-top: var(--CommonSpacing, 40px);
}

footer .footer-logo {
  padding-bottom: 20px;
}

footer .footer-body .footer-body-columns {
  display: flex;
  justify-content: space-between;
  align-items: top;
  gap: var(--CommonSpacing, 40px);
}

footer .footer-body .footer-body-columns > div:nth-child(1) {
  flex: 2;
}

footer .footer-body .footer-body-columns > div {
  flex: 1;
}

footer .footer-body .footer-body-columns > div h5 {
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 20px;
}

footer .footer-body .footer-body-columns > div > ul li {
  margin-bottom: 20px;

}

footer .footer-links {
  margin-top: 190px;
  display: flex;
  justify-content: space-between;
}

footer .footer-links ul {
  display: flex;
  gap: 2em;
}

@media (max-width: 900px) {
  footer {
    text-align: center;
  }

  footer .footer-desc {
    max-width: 350px;
    margin: 0 auto;
  }

  footer .footer-body .footer-body-columns {
    flex-direction: column;
    gap: 1em;
  }

  footer .footer-links {
    margin-top: 1em;
    flex-direction: column;
    gap: 1em;
  }

  footer .footer-links ul {
    justify-content: center;
  }
}

/* advertisements */
section.sponsor-full-width {
  margin: 67px auto;
  text-align: center;
}

section.sponsor-full-width img {
  margin: 0 auto;
  max-height: 300px;
  max-width: 100%;
  border-radius: 10px;
}

.widget_ad_widget a,
section.sponsor-full-width a {
  text-decoration: none;
  display: inline-block;
}

section.sponsor-full-width a:hover {
  opacity: 1;
}

section.sponsor-full-width a::after,
.widget_ad_widget a::after {
  display: block;
  content: "Sponsored";
  text-transform: uppercase;
  line-height: 1.5em;
  font-size: 11px;
  text-decoration: none;
  text-align: left;
}

/* articles */
/* apply this to essentially everything except articles with full width images */
body.single-video article {
  margin: 0 auto 1em auto;
  max-width: 1400px;
}

.theater {
  margin: 2em 0;
}

div.content-with-sidebar {
  display: flex;
  gap: 60px;
}

div.content-with-sidebar > div:first-child,
div.content-with-sidebar > article:first-child {
  flex: 1;
}

@media screen and (max-width: 1170px) {
  div.content-with-sidebar {
    flex-direction: column;
    gap: 0;
  }
}

div.content-with-sidebar .sidebar {
  min-width: 375px;
  max-width: 400px;
}

/* story styles */
section.story .story-topics, section.story .story-topics ul {
  text-transform: uppercase;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

section.story .story-topics h4 {
  font-weight: 400;
}

section.story .story-topics a {
  text-decoration: none;
  line-height: 2em;
  padding: 8px;
  border-radius: 4px;
  background: #f5f5f8;
}

/* story1 doesn't have full width images */
section.story {
  margin-bottom: 40px;
}

section.story .story-topic {
  display: block;
  margin: 30px 0;
}

section.story h1.story-title {
  font-size: 40px;
  line-height: 1.2em;
  margin: 0 0 0.75em 0;
}

section.story h3.deck {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.2em;
  margin: 30px 0;
}

section.story.story-template-2 h3.deck {
  margin-top: 0;
}

section.story .wp-post-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

section.story .dateline {
  display: flex;
  font-size: 14px;
  width: 100%;
  margin: 30px 0;
}

section.story div.caption {
  font-size: 14px;
  font-style: italic;
  margin: 0.25em 0 30px 0;
}

section.story .dateline .byline {
  flex: 1;
}

section.story .dateline .date {
  flex: 1;
  font-weight: 400;
  text-align: right;
}

section.story-template-3 .cover-image {
  margin-bottom: 40px;
}

section.story-template-3 .cover-image img {
  width: 100%;
  height: auto;
  max-height: 55vh;
  object-fit: cover;
}

section.story-template-3 .highlighted-title {
  padding: 1em;
  border-radius: 12px;
  background: var(--Gradient, radial-gradient(186.98% 140.09% at -1.97% 7.72%, #0D7BC0 0%, #0C6298 100%));
  margin-left: -1em;
}

section.story-template-3 .highlighted-title .story-topic {
  color: #FFF;
}

section.story-template-3 .highlighted-title .story-title {
  color: #FFF;
  font-weight: 500;
}

section.story-template-3 .content-with-sidebar {
  max-width: 1024px;
}

header.header {
  margin: 0 auto;
  max-width: 1400px;
}

/* Entry styles - This is how a basic post is styled, especially on the archive, topics, category pages */
.stories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  margin: 40px auto;
}
.stories article.hentry {
  margin: 0;
}

.stories article.hentry .entry-title {
  font-weight: 400;
  font-size: 24px;
}

.stories article.hentry .entry-title a {
  text-decoration: none;
  color: var(--Black, #12191F);
}

.stories article.hentry h2.entry-title {

}

.stories article.hentry img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.stories article.hentry a.post-edit-link {
  font-size: 12px;
  text-transform: uppercase;
  background-color: var(--PrimaryBlue);
  color: #FFF;
  padding: 0.4em 1em;
  border-radius: 6px;
}

.stories article.hentry .entry-meta {
  font-size: 14px;
  margin: 0.5em 0;
}

/* related stories */
.sidebar h3.related-stories-header {
  font-size: 24px;
  margin: 0 0 40px 0;
}

.sidebar .related-stories {
  margin-bottom: 40px;
}

.sidebar .related-stories li {
  display: flex;
  flex-direction: column;
  border-bottom: 0.5px solid var(--Lightgray);
  margin-bottom: 20px;
}

.sidebar .related-stories li > div {
  display: flex;
  gap: 10px;
}

.sidebar .related-stories li > div > a:first-child {
  text-decoration: none;
  color: var(--Black, #12191F);
  font-weight: 600;
  flex: 4;
}

.sidebar .related-stories li > div > a:last-child {
  flex: 1;
}

.sidebar .related-stories li > div img {
  max-width: 120px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
}

section.related-stories-below {
  margin: 40px auto;
}

section.related-stories-below .related-stories {
  display: flex;
  gap: 20px;
  flex-direction: row;
  background-color: rgba(0, 101, 187, 0.05);
  margin: 0 -2em;
  padding: 2em;
  justify-content: center;
}

section.related-stories-below .related-stories li {
  flex: 1;
  max-width: 380px;
}

section.related-stories-below .related-stories li > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

section.related-stories-below .related-stories li > div a {
  text-decoration: none;
  color: var(--Black, #12191F);
  font-weight: 600;
}

section.related-stories-below .related-stories li > div img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
}

@media screen and (max-width: 1170px) {
  div.content-with-sidebar .sidebar {
    max-width: 100%;
  }
  .sidebar h3.related-stories-header {
    margin-top: 40px;
  }
  .sidebar .related-stories {

  }
  .sidebar .related-stories li > div > a:last-child {
    flex: 2;
  }

  .sidebar .related-stories li > div img {
    max-width: 250px;
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  section.related-stories-below .related-stories {
    flex-direction: column;
    align-items: center;
    margin: 0;
  }

  section.related-stories-below .related-stories li {
    max-width: 100%;
  }
}

.story.has-post-thumbnail.hentry .attachment-post-thumbnail,
.page.has-post-thumbnail.hentry .attachment-post-thumbnail {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page .attachment-full {
  max-width: 100%;
  height: auto;
}

/* style imported articles */
.story figure.inset {
  max-width: 550px;
}

.story figure.inset img {
  width: 100%;
}

.story figure.inset.right {
  float: right;
  margin: 0 0 1em 1em;
}

.story figure.inset.left {
  float: left;
  margin: 0 1em 1em 0;
}

.story figure.inset.inset-fw {
  max-width: 100%;
}

.story figure.inset.inset-md {
  max-width: 450px;
}

.story figure.inset.inset-sm {
  max-width: 300px;
}

.story figure.inset.inset-thumb {
  max-width: 150px;
}

/* single video */
.theater {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.theater iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.more-videos-below {
  min-height: 120px;
  background-color: rgba(0, 101, 187, 0.05);
  margin: 40px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 1em;
  justify-content: center;
}

@media screen and (max-width: 768px) {
  .more-videos-below {
    flex-direction: column;
    align-items: center;
  }

  body.single-video .more-videos-below article {
    width: 100%;
  }
}

body.single-video .more-videos-below article {
  flex: 1;
  max-width: 400px;
  margin: 0;
}

.more-videos-below a.video-thumbnail {
  display: block;
  aspect-ratio: 16/9;
  background-color: var(--ImageBackground);
  outline: 0;
  background-image: url(../images/logo-transparent.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.more-videos-below a.video-thumbnail div.play-button {
  border-radius: 50%;
  border: solid 1px #FFF;
  width: 60px;
  height: 60px;
  -webkit-backdrop-filter: blur(5.970149517059326px);
  backdrop-filter: blur(5.970149517059326px);
  background: url(../images/play-button.svg) no-repeat;
  background-size: 35%;
  background-position: 55% center;
  transition: transform 0.2s ease-in-out;
}

.more-videos-below a.video-thumbnail:hover {
  opacity: 1;
}

.more-videos-below a.video-thumbnail:hover div.play-button {
  transform: scale(1.1);
}

.more-videos-below article h4 a {
  text-decoration: none;
  color: var(--Black, #12191F);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: capitalize;
  margin: 1em 0;
}


/* job listings */
.job-listing-details {
  font-weight: 400;
}

/* hide the default placeholder image on pages */
body.page .default-featured-img {
  display: none;
}

.search-results-title {
  margin-top: 40px !important;
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 1em 0;
}

/* default form styles */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"], input[type="color"], textarea {
  width: 100%;
  padding: 0.5em;
  border: 1px solid var(--Lightgray);
  border-radius: 4px;
}

a.primary-btn,
input[type="submit"] {
  border: none;
  border-radius: 100px;
  padding: calc(.667em + 2px) calc(1.333em + 2px);
  transition: opacity 0.3s;
}

input[type="submit"]:hover {
  opacity: 0.8;
}

/* Style for select tag */
select {
  display: block;
  width: 100%;
  padding: 0.375rem 1.75rem 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Style for the select tag on focus */
select:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* wp styles */
hr.wp-block-separator {
  margin: 1em 0;
  height: 1px;
  border: none;
  background-color: rgba(0, 101, 187, 0.4);
}

a.primary-btn,
.wp-element-button,
input[type="submit"] {
  background: var(--PrimaryBlue, #0D7BC0);
  color: #FFF !important;
  text-decoration: none !important;
  font-weight: 500;
}

div.wp-block-button.gold-arrow .wp-element-button {
  background: var(--PrimaryBlue, #0D7BC0) url(../images/read-more-gold.svg) no-repeat calc(100% - 12px) center;
  padding-right: 72px;
}

/* gated stories */
.story-gate {
  margin-block-end: 1.5em;
}

.story-gate .story-excerpt {
  position: relative;
}

.story-gate .story-excerpt::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

.story-gate .story-gate-cta {
  padding: 3em 2em;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.story-gate .story-gate-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  font-size: 16px;
}

/* ad widget */
.widget_ad_widget {
  text-align: center;
  margin: 1em 0;
}

.widget_ad_widget a {
  text-decoration: none !important;
  color: var(--Black, #12191F) !important;
}

.widget_ad_widget a img {
  min-width: 325px;
  max-width: 345px;
}

.widget_ad_widget a:hover {
  opacity: 1;
}

/* archive stuff */
nav.posts-navigation {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 60px auto;
}

nav.posts-navigation .nav-links {
  display: flex;
  gap: 20px;
}

nav.posts-navigation .nav-links a {
  text-decoration: none;
  color: #FFF;
  font-weight: 500;
  padding: 1em 2em;
  border-radius: 6px;
  background: var(--PrimaryBlue, #0D7BC0);
}

/* EVENT STUFF */
/* set default colors */
:root {
  --tec-color-accent-primary: rgb(0, 101, 187) !important;
  --tec-color-accent-primary-hover: rgba(0, 101, 187, 0.8) !important;
}

/* fix padding on before html on main events page */
.tribe-events-before-html {
  padding-bottom: 1em !important;
}

.tribe-events-before-html a {
  color: var(--tec-color-accent-primary) !important;
}

.tribe-events-event-image .attachment-full {
  max-width: 100%;
  height: auto;
}

/* query loop stories */
.stlreview-query-loop-post {
  var(--Black, #12191F);
}

.stlreview-query-loop-post figure img {
  border-radius: 10px;
}

.stlreview-query-loop-post .wp-block-post-date {
  font-size: 14px;
  margin: 0.5em 0;
}

.stlreview-query-loop-post h2.wp-block-post-title a {
  text-decoration: none;
  color: var(--Black, #12191F);
  font-size: 21px;
}