/*****************************************************************************************************
* Banners Module: General CSS
******************************************************************************************************/

/*
Common
---------------------------------------------------------------------------------------------------- */

.bub-banners__title {
  margin: 20px 0 1.3em;
}

/* Only a section of its own gets the display font. A togglebox section sits
among other toggleboxes and takes their title styling (design module). */

.bub-banners:not(.bub-togglebox) .bub-banners__title {
  font: var(--display-font-sm1);
  text-align: center;
}

.bub-banners-item {
  margin: 0 0 30px;
}

/* In the sidebar, the banners follow the portrait, the map or the list of
   posts at a distance (septime, 2026-10-18). */

.sidebar .bub-banners {
  margin-top: 40px;
}

.sidebar .genesis-sidebar-title + .bub-banners {
  margin-top: 0;
}

.bub-banners-caption {
  color: var(--body-color-acc);
  font-size: 14px;
  font-weight: normal;
  line-height: 1.45;
  margin-top: 10px;
  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;
  }
}


/*
Banner Elements
---------------------------------------------------------------------------------------------------- */

/* Image: on a paper tile with a soft shadow, as the covers and catalogue
   covers of the design (septime, 2026-10-18). An image without a link fills
   the tile itself. */

.bub-banners-image > a {
  align-items: center;
  background: var(--body-background-dk1);
  display: flex;
  justify-content: center;
  padding: 32px;
}

.bub-banners-image > a .bub-banners-image__image {
  box-shadow: 0 1px 1px rgba(0,0,0,0.08), 0 10px 22px -10px rgba(0,0,0,0.35);
  height: auto;
  max-height: 300px;
  max-width: 100%;
  width: auto;
}

.bub-banners-image > .bub-banners-image__image {
  background: var(--body-background-dk1);
  box-sizing: border-box;
  display: block;
  height: auto;
  padding: 32px;
  width: 100%;
}

/* Text: a card on paper, as the front page's, with a heading as a label
   and a link with the class 'button' as an outline button. */

.bub-banners-html {
  background: var(--body-background-dk1);
  font-size: 15px;
  line-height: 1.6;
  padding: 26px 28px 28px;
}

.bub-banners-html :is(h2, h3, h4) {
  color: var(--body-color-acc);
  font: var(--basic-font-def);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.3;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.bub-banners-html p {
  margin: 0 0 18px;
}

.bub-banners-html p:last-child {
  margin-bottom: 0;
}

.bub-banners-html a.button {
  background: none;
  border: 1px solid currentColor;
  color: var(--body-color-def);
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  padding: 14px 21px;
  text-decoration: none;
  text-transform: uppercase;
}

.bub-banners-html a.button:hover {
  opacity: 0.85;
}

/* 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 .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;
}

