/*****************************************************************************************************
* Banners Module: General CSS
******************************************************************************************************/

/*
Common
---------------------------------------------------------------------------------------------------- */

.bub-banners__title {
  margin: 20px 0 1.3em;
}

/* In the sidebar, the title sits on the page title's line, whose own top
   margin is 10px (text pages, 2026-10-20). */

.sidebar .bub-banners__title {
  margin-top: 10px;
}

/* A section of its own gets a ruled label like the togglebox titles, at
their 1rem (user, 2026-10-21; 1.1rem before). A togglebox section sits among
other toggleboxes and takes their title styling (design module). */

.bub-banners:not(.bub-togglebox) .bub-banners__title {
  border-bottom: 1px solid var(--body-rule-def);
  border-top: 1px solid var(--body-rule-def);
  font: var(--basic-font-def);
  font-family: var(--caps-font-family);
  font-size: 1rem;
  line-height: 1;
  padding: 0.4em 0 0.3em 0.15em;
  text-transform: uppercase;
}

.bub-banners-item {
  margin: 0 0 30px;
}

.bub-banners-caption {
  font-size: .9rem;
  font-weight: normal;
  line-height: 1.3;
  margin-top: 7px;
  text-align: left;
}

/* The in-entry section is the mobile counterpart of the sidebar section, so it
stays hidden where the sidebar shows. It needs '!important' because the local
visibility setting 'replace_all' prints an inline rule that shows every banners
section (see banners-display.php). */

@media screen and (min-width: 1201px/*mobileSidebarMinWidth*/) {

  .single .entry .bub-banners {
    display: none !important;
  }
}

/* An open in-entry section, such as the events', after the sections. */

.single .entry .bub-banners:not(.bub-togglebox) {
  margin-top: 2rem;
}


/*
Banner Elements
---------------------------------------------------------------------------------------------------- */

/* Text
--------------------------------------------- */

/* A text banner, such as the newsletter's on event pages, as a box in the
small tint, its button as the title page's main buttons (single-product.css;
user, 2026-10-21). */

.bub-banners-html {
  background: var(--body-background-sh1);
  font-size: 0.9375rem;
  line-height: 1.5;
  padding: 1.375rem 1.5rem 1.5rem;
}

.bub-banners-html p {
  margin: 0 0 1rem;
}

.bub-banners-html p:last-child {
  margin-bottom: 0;
}

.bub-banners-html a.button {
  background: var(--theme1-background-lt1);
  color: var(--theme1-color-lt1);
  display: inline-block;
  font-family: var(--caps-font-family);
  font-size: 0.85rem;
  line-height: 2.7em;
  padding: 0.03em 1.1em 0;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.bub-banners-html a.button:hover {
  background: var(--brand1-color-lt1);
  color: var(--theme1-color-lt1);
}


/* Product Gallery
--------------------------------------------- */

.bub-banners-prodgal {
  list-style: none;
  padding: 0;
}

.bub-banners-prodgal.bub-masonry {
  margin-bottom: 25px !important;
}

.bub-banners-prodgal__item {
  position: relative;
}

.bub-banners-prodgal__item img {
  box-shadow: var(--cover-shadow-sm); /* setup.css */
}

.bub-banners-prodgal__item .text {
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
  background: color-mix(in srgb, var(--theme1-background-def) 90%, transparent);
  color: #fff;
  display: flex;
  font-size: 13.5px;
  justify-content: center;
  line-height: 1.3;
  opacity: 0;
  padding: 10px;
  pointer-events: none;
  position: absolute;
    inset: 0;
  text-align: center;
  transition: opacity 300ms ease;
}

.bub-banners-prodgal__item:hover .text {
  opacity: 1;
}

