/*****************************************************************************************************
* Object Level CSS
******************************************************************************************************/

/*
Boxes
---------------------------------------------------------------------------------------------------- */

/* Standard Box
--------------------------------------------- */

.bub-field__title {
  font-size: 1.2rem;
  font-weight: normal;
  line-height: 1.4;
}

.bub-field__subtitle {
  font-size: inherit;
  font-weight: normal;
  margin-bottom: 10px;
}

.bub-field__subtitle:not(:first-child) {
  margin-top: 15px;
}

.bub-field__subtitle::after {
  content: ':';
}


/* Info Box
--------------------------------------------- */

.bub-box--info {
  background: var(--body-background-dk1);
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 0.5rem 0.8rem;
  position: relative;
}

.bub-box--info::before {
  background: var(--theme2-background-lt1);
  content: '';
  display: table;
  height: 100%;
  margin-left: -0.8rem;
  position: absolute;
    top: 0;
  width: 0.3em;
}

.bub-box--info p:last-child {
  margin-bottom: 0;
}


/*
Lists
---------------------------------------------------------------------------------------------------- */

/* Text Lists
--------------------------------------------- */

/* Type: Link Column */

.bub-list--linkcol {
  padding: 0;
}

.bub-list--linkcol li {
  line-height: 1.3;
  list-style-type: none;
}

.bub-list--linkcol li a {
  display: block;
  font-size: 0.9rem;
  padding: 1em 0.7em 0.9em;
  text-decoration: none;
}

.bub-list--linkcol li:nth-child(odd) a {
  background: var(--bg-listitem-odd-def);
  color: var(--cl-listitem-odd-def);
}

.bub-list--linkcol li:nth-child(even) a {
  background: var(--bg-listitem-even-def);
  color: var(--cl-listitem-even-def);
}

.bub-list--linkcol li a:hover {
  text-decoration: underline;
}

.bub-list--linkcol li:nth-child(odd) a:hover {
  background: var(--bg-listitem-odd-acc);
  color: var(--cl-listitem-odd-acc);
}

.bub-list--linkcol li:nth-child(even) a:hover {
  background: var(--bg-listitem-even-acc);
  color: var(--cl-listitem-even-acc);
}

/* Type: Text Column */

.bub-list--textcol {
  padding: 0;
}

.bub-list--textcol li {
  background: var(--bg-listitem-def);
  color: var(--cl-listitem-def);
  display: block;
  font-size: 0.9rem;
  line-height: 1.5;
  list-style-type: none;
  padding: 1em 0.7em 0.9em;
}

.bub-list--textcol li:nth-child(odd) {
  background: var(--bg-listitem-odd-def);
  color: var(--cl-listitem-odd-def);
}

.bub-list--textcol li:nth-child(even) {
  background: var(--bg-listitem-even-def);
  color: var(--cl-listitem-even-def);
}

/* Type: Bullet Column */

ul.bub-list--bulletcol,
.bub-list--bulletcol ul {
  margin: 0;
  padding: 0;
}

.bub-list--bulletcol li {
  list-style-type: none;
}

.bub-list--bulletcol :is(p, li),
.bub-party-contact__website--standalone {
  position: relative;
  padding-left: 1.25em !important;
}

.bub-list--bulletcol :is(p, li):last-child {
  margin-bottom: 0;
}

.bub-list--bulletcol :is(p, li)::before,
.bub-party-contact__website--standalone::before {
  background: var(--theme2-background-lt1);
  content: '';
  height: 0.7em;
  position: absolute;
    left: 0;
    top: 0.5em;
  width: 0.7em;
}


/* Button Lists
--------------------------------------------- */

/* Type: Flexbox Buttons */

.bub-list--buttonflex {
  display: flex;
  flex-flow: row wrap;
  margin: -5px;
  padding: 0;
}

.bub-list--buttonflex li {
  box-shadow: 1px 1px 3px 0px #00000008;
  list-style-type: none;
  margin: 5px;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  white-space: nowrap;
  overflow: hidden;
}

.bub-list--buttonflex a,
.bub-list--buttonflex a:hover {
  background: var(--bg-button-def);
  color: var(--cl-button-def);
  display: block;
  font-size: 0.8rem !important;
  line-height: 1;
  max-width: 300px;
  overflow: hidden;
  padding: 1.3em 2em 1.2em;
  text-decoration: none;
  text-overflow: ellipsis;
}

.bub-list--buttonflex a:hover {
}

@media screen and (max-width: 500px) {
  
.bub-list--buttonflex a {
    font-size: 0.9rem;
  }
}


/* Image Lists
--------------------------------------------- */

/* Type: Flexbox Image */

.bub-list--imageflex {
  display: flex;
  flex-flow: row wrap;
  margin: -10px;
  padding: 0;
  width: auto;
}

.bub-list--imageflex li {
  flex: 1 1 130px;
  list-style-type: none;
  margin: 10px;
  min-width: 140px;
  max-width: 200px;
}

.bub-list--imageflex a,
.bub-list--imageflex a:hover {
  background: none;
  border: none;
  color: inherit !important;
  display: block;
  padding: 0;
  text-decoration: none;
}

.bub-list--imageflex .image {
  box-shadow: 0 0 1px rgba(0,0,0,.25);
  display: block;
  transition: all .2s ease-in-out;
}

.bub-list--imageflex .image:hover {
  -webkit-filter: brightness(90%) contrast(90%);
          filter: brightness(90%) contrast(90%);
}

.bub-list--imageflex .text {
  line-height: 1.3;
  margin: 5px 0 0 2px;
  font-size: 0.9rem;
}


/*
Images
---------------------------------------------------------------------------------------------------- */

/* Basic Images
--------------------------------------------- */

/* Image Defaults */

img {
  height: auto;
  max-width: 100%;
  vertical-align: bottom;
}

@media screen and (max-width: 300px) {
  
  body:not(.page) img {
    width: 100%
  }
}

.featured-content img,
.gallery img {
  width: auto;
}

.bub-image-link { /* js */
  border: 0 !important;
}

/* Default Image */

.single .content .bub-default-image {
  display: none;
}

.single .content .bub-loop .bub-default-image {
  display: initial;
}

/* Featured Image with Caption */

.featimg a {
  border-bottom: 0;
}

.featimg__image {
  max-height: 700px;
  /* object-fit: cover; */
  width: auto;
}

/* Post Content Images */

.entry-content figure:not(.gallery),
.entry-content .bub-image-paragraph {
  max-width: 100%;
  margin-bottom: 1.3em;
}

.single .content p + figure:not(.gallery),
.single .bub-image-paragraph {
  /* No margin-top if article starts with image. */
  margin-top: 1.3em;
}

.wp-block-image.is-style-circle-mask img, 
.wp-block-image.is-style-rounded img {
    border-radius: 9999px;
}

.wp-block-image.is-style-circle-mask figcaption, 
.wp-block-image.is-style-rounded figcaption {
  margin-top: 0.5em;
  text-align: center;
}


/* Featured Image: 3D Book
--------------------------------------------- */

.featimg-3d {
  position: relative;
  transform: translateX(-20px);
  max-width: 400px;
}

.featimg-3d::after {
  clear: both;
  content: '';
  display: table;
}

/* 3D Book Start */

.featimg-3d .featimg__image {
  box-shadow: none;
  max-height: none;
}

/* 3D Book Front Image */

.featimg-3d__wrap {
  perspective: 100px;
  pointer-events: none; /* Avoid blocking anchor */
  transform-style: preserve-3d; /* Firefox */
}

.featimg-3d__wrap a {
  box-shadow: 0 0 12px #bbb;
  display: block;
  pointer-events: all;
  transform: rotateY(-3deg);
}

.featimg-3d__wrap a,
.featimg-3d .featimg__image {
  perspective: 200px;
}

  /* Smoothen jagged image edges in Webkit browsers. */
  .featimg-3d img {
    outline: 1px solid transparent !important;
  }

/* 3D Book Back Image */

.featimg-3d .featimg-3d__flip {
  display: block;
  position: absolute;
    top: 0;
    left: 7.5%;
    left: min(7.5%, 24px);
  perspective: 200px;
  transform: rotateY(-3deg) scale(.975);
  width: 100%;
  z-index: -1;
}

.featimg-3d .featimg-3d__flip-image {
  box-shadow: 5px 5px 20px #999;
  filter: brightness(80%) contrast(80%);
}

/* 3D Book Fore-Edge (Vorderschnitt) */

.featimg-3d__wrap a::after {
  box-shadow: inset 0px 0px 5px #aaa;
  background: #efefef;
  content: '';
  height: 100%;
  position: absolute;
    top: 0.3%;
    left: 98%;
  transform: rotateY(20deg) scale(0.97);
  transform-style: preserve-3d; /* Firefox */
  width: 7%;
  z-index: -1;
}

/* 3D Book Spine */

/*.featimg-3d__wrap a:before {
  content: ' ';
  width: 1%;
  position: absolute; 
    top: 0; 
    bottom: 0;
    left: 4%; 
  background: rgba(0,0,0,.05);
  box-shadow: 1px 0 3px rgba(255, 255, 255, 0.1);
  z-index: 1;
}
*/


/* Image Captions
--------------------------------------------- */

.featimg__caption,
.caption,
.wp-caption-text /* Inpost captions */ {
  display: block;
  font-size: 0.9rem;
  -ms-hyphens: manual;
  -webkit-hyphens: manual; 
  -moz-hyphens: manual; 
  hyphens: manual;
  line-height: 1.3;
  margin-top: 0.3em;
  word-break: break-word; 
}

.bub-caption-heading {
  font-size: 0.9rem;
  font-weight: bold;
  line-height: 1.3;
}

img[alt] {
  font-size: 12px;
}


/*
Iframes, Embeds, Videos etc.
---------------------------------------------------------------------------------------------------- */

embed,
iframe,
object,
video {
  width: 100%;
}

/* Responsive Embeds 
  Note: Wrap embedded element with class 'bub-responsive-embed' */

.bub-responsive-embed {
  height: 0; 
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative;
}

.youtube-responsive-container embed,
.bub-responsive-embed iframe, 
.youtube-responsive-container object, 
.youtube-responsive-container video {
  height: 100%;
  position: absolute;
    left: 0;
    top: 0;
  width: 100%;
}

.single iframe {
  margin: 8px 0 12px;
}

/* Video Embeds */

@media screen and (min-width: 601px) {

  .wp-block-embed.is-type-video iframe {
    min-height: 360px;
  }
}
