/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/


/* Zeigt alle elemente im OffCanvas an auch wenn sie nicht im Veieport liegen. */
.brx-offcanvas-inner {
    overflow-y: scroll;
    flex-wrap: nowrap;
}

header .sub-menu a {
  line-height: 40px;
}

.header-sektion {
  padding: 20px 0;
  transition: max-height 0.5s ease;
}

.header-sektion img {
  max-height: 150px;
  transition: max-height 0.5s ease;
}

.scrolling .header-sektion img {
  max-height: 50px !important
}

/* Caption Overlay nur für Karussells mit .beschreibung */
.beschreibung .swiper-slide a {
  position: relative;
  display: block;
}

.beschreibung .swiper-slide a::after {
  content: attr(data-lightbox-caption);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  pointer-events: none;
}

.beschreibung .swiper-slide a[data-lightbox-caption=""]::after,
.beschreibung .swiper-slide a:not([data-lightbox-caption])::after {
  display: none;
}