// Core Verts Styles
// Styles for ad units (verts) and print visibility

// ============================================
// Base Styles
// ============================================

// Custom elements default to display:inline, which collapses to 0 width
// when there's no text content. This causes AdSense and promo-server iframes
// to render into a 0-width container when the ad is already in viewport on load.
vert-unit {
  display: block;
}

// ============================================
// Sidebar Vert Constraint
// ============================================

// Limit vert height in backend/admin sidebars to prevent massive ads
// DOESNT WORK WITH GOOGLE ADS?!
// .sidebar vert-unit,
// .sidebar .uj-vert-unit,
// .offcanvas vert-unit,
// .offcanvas .uj-vert-unit {
//   max-height: 250px !important;
//   overflow: hidden;
// }

// ============================================
// Print Styles
// ============================================

// Hide all vert units when printing
@media print {
  vert-unit,
  .uj-vert-unit {
    display: none !important;
  }
}
