/*****************************************************************************************************
* Postloops Module: Imagebox CSS
******************************************************************************************************/

/*
Grid Containers
---------------------------------------------------------------------------------------------------- */

/* Containers: Default
--------------------------------------------- */

.bub-loop.imagebox {
  align-items: flex-start;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}


/*
Grid Columns
---------------------------------------------------------------------------------------------------- */

/* Columns: cpt-Product
--------------------------------------------- */

/* 4 Columns: an even grid, with the loop's grid_type 'regular' */

.archive-bub_product .bub-loop.imagebox {
  display: grid;
  gap: 56px 36px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.archive-bub_product .bub-loop.imagebox .entry {
  margin: 0;
  width: auto;
}

@media screen and (max-width: 1200px) {

   /* 3 Columns */

  .archive-bub_product .bub-loop.imagebox {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 800px) {

   /* 2 Columns, on phones too */

  .archive-bub_product .bub-loop.imagebox {
    gap: 36px 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Columns: cpt-Party
--------------------------------------------- */

/* 4 Columns */

.archive-bub_party .bub-loop.imagebox {
  margin: -5px;
}

.archive-bub_party .bub-loop.imagebox .entry {
  margin: 5px;
  width: calc(25% - 10px);
}

@media screen and (max-width: 1200px) {

   /* 3 Columns */

  .archive-bub_party .bub-loop.imagebox .entry {
    width: calc(33.32% - 20px);
  }
}

@media screen and (max-width: 800px) {

   /* 2 Columns */

  .archive-bub_party .bub-loop.imagebox .entry {
    width: calc(50% - 20px);
  }
}

@media screen and (max-width: 500px) {

  /* 1 Column */

  .archive-bub_party .bub-loop.imagebox .entry {
    max-width: 320px;
    position: static !important;
    width: 100%;
  }
}


/* Columns: bub Products Block
--------------------------------------------- */

/* The block goes into layouts of any width, so its columns follow its own
   width, not the viewport's: two, three from 400px, four from 800px. */

.bub-block-products {
  container-type: inline-size;
}

.bub-block-products .bub-loop.imagebox {
  display: grid;
  gap: 36px 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bub-block-products .bub-loop.imagebox .entry {
  margin: 0;
  width: auto;
}

@container (min-width: 400px) {

  .bub-block-products .bub-loop.imagebox {
    gap: 48px 28px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@container (min-width: 800px) {

  .bub-block-products .bub-loop.imagebox {
    gap: 56px 36px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/*
Grid Elements
---------------------------------------------------------------------------------------------------- */

/* Elements: Default
--------------------------------------------- */

/* Entry / Article */

.bub-loop.imagebox .entry {
  box-shadow: 2px 2px 2px 0px rgba(0,0,0,0.08);
  overflow-y: hidden;
}

.bub-loop.imagebox .entry-header {
  margin: 0;
  position: relative;
}

/* bub-product-archive-item */

.bub-loop.imagebox .bub-product-archive-item-info {
  background: #222;
  background: var(--theme1-background-def);
  position: absolute;
    bottom: 0;
  transform: translateY(100%);
  transition: all 0.2s ease-in-out;
  width: 100%;
}

.bub-loop.imagebox .entry:hover .bub-product-archive-item-info {
  transform: translateY(0);
}

/* Entry Title */

.bub-loop.imagebox .bub-product-archive-item-info a {
  display: block;
  text-decoration: none;
}

body.tabbing .bub-loop.imagebox .bub-product-archive-item-info a:focus {
  outline: none !important;
}

body.tabbing .bub-loop.imagebox .bub-product-archive-item-info a:focus .title {
  padding: 3px;
  outline: 2px solid #4D90FE !important;
}

.bub-loop.imagebox .bub-product-archive-item-info__title {
  color: #eee;
  color: var(--theme1-color-def);
  display: block;
  line-height: 1.2;
  margin: 0;
  padding: 10px 10px;
}

.bub-loop.imagebox .bub-product-archive-item-info__title .before-title {
  display: block;
  font-size: 16px;
  font-weight: normal;
  margin: 0 0 5px;
}

.bub-loop.imagebox .bub-product-archive-item-info__title .title {
  display: block;
  font-size: 18px;
  font-weight: normal;
}

/* Entry Meta */

.bub-loop.imagebox .entry-meta {
  font-size: 13px;
  margin: 0;
  font-style: italic;
}

.bub-loop.imagebox .entry-meta a {
  border-bottom: none;
  display: block;
  padding: 0 10px 7px;
}

.bub-loop.imagebox .entry-meta a:not(:hover) {
  color: #333;
}


/* Elements: cpt-Product
--------------------------------------------- */

/* The cover on a paper tile, author, title and season below it, instead of
   the box that slides up over the cover. */

.archive-bub_product .bub-loop.imagebox .entry {
  box-shadow: none;
  overflow: visible;
}

.archive-bub_product .bub-loop.imagebox .featimg {
  align-items: center;
  aspect-ratio: 5 / 6;
  background: var(--body-background-dk1);
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 9% 16%;
}

.archive-bub_product .bub-loop.imagebox .featimg a {
  display: contents;
}

.archive-bub_product .bub-loop.imagebox .featimg img {
  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: 100%;
  max-width: 100%;
  transition: transform 350ms ease;
  width: auto;
}

.archive-bub_product .bub-loop.imagebox .entry:hover .featimg img {
  transform: translateY(-5px);
}

.archive-bub_product .bub-loop.imagebox .featimg__overlay {
  display: none;
}

.archive-bub_product .bub-loop.imagebox .bub-product-archive-item-info {
  background: none;
  padding: 18px 0 0;
  position: static;
  transform: none;
}

.archive-bub_product .bub-loop.imagebox .bub-product-archive-item-info__title {
  font: var(--basic-font-def);
  padding: 0;
}

.archive-bub_product .bub-loop.imagebox .bub-product-archive-item-info__title .before-title {
  color: var(--body-color-acc);
  font-size: 14px;
  line-height: 1.35;
}

.archive-bub_product .bub-loop.imagebox .bub-product-archive-item-info__title .title {
  font: var(--display-font-def);
  font-size: 23px;
  line-height: 1.2;
}

.archive-bub_product .bub-loop.imagebox .bub-product-archive-item-info__season {
  color: var(--body-color-acc);
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  margin-top: 6px;
  text-transform: uppercase;
}

@media screen and (max-width: 800px) {

  .archive-bub_product .bub-loop.imagebox .bub-product-archive-item-info__title .title {
    font-size: 19px;
  }
}


/* Elements: cpt-Party
--------------------------------------------- */

.archive-bub_party .bub-loop.imagebox .entry {
  transition: filter 200ms;
}

.archive-bub_party .bub-loop.imagebox .entry:hover {
  filter: brightness(70%);
}

.archive-bub_party .bub-loop.imagebox .entry-header {
  position: relative;  
}

.archive-bub_party .bub-loop.imagebox .entry-title {
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 15px;
  padding: 7px 10px;
  position: absolute;
    bottom: 0;
  width: 100%;
}


/* Elements: bub Products Block
--------------------------------------------- */

/* The cover on a paper tile with the authors and the title below it, as in
   the title archive. */

.bub-block-products .bub-loop.imagebox .entry {
  box-shadow: none;
  overflow: visible;
}

.bub-block-products .bub-loop.imagebox .featimg {
  align-items: center;
  aspect-ratio: 5 / 6;
  background: var(--body-background-dk1);
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 9% 16%;
}

.bub-block-products .bub-loop.imagebox .featimg a {
  display: contents;
}

.bub-block-products .bub-loop.imagebox .featimg__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: 100%;
  max-width: 100%;
  transition: transform 350ms ease;
  width: auto;
}

.bub-block-products .bub-loop.imagebox .entry:hover .featimg__image {
  transform: translateY(-5px);
}

.bub-block-products .bub-loop.imagebox .featimg__overlay {
  display: none;
}

.bub-block-products .bub-loop.imagebox .text-container {
  padding: 18px 0 0;
}

.bub-block-products .bub-loop.imagebox .entry-title {
  font: var(--basic-font-def);
  margin: 0;
}

.bub-block-products .bub-loop.imagebox .entry-title a {
  color: inherit;
  display: block;
  text-decoration: none;
}

.bub-block-products .bub-loop.imagebox .before-title {
  color: var(--body-color-acc);
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.bub-block-products .bub-loop.imagebox .before-title:empty {
  display: none;
}

.bub-block-products .bub-loop.imagebox .title {
  display: block;
  font: var(--display-font-def);
  font-size: 21px;
  line-height: 1.2;
}
