img {
        vertical-align: middle;
        border-style: none;
        height: auto;
        width: 100%;
}

/* only for Header logo */
header .navbar-brand img {
        width:auto;
}

/* Exception only for layout page (page-wrapper) */
@media (max-width: 1400px) {
        #page-wrapper.page-background-gray .region-featured-top {
            height: auto !important; 
            min-height: auto !important; ; 
        }
}

/* Exception only for old wfbb_gallery to fit images height again */
.paragraph.paragraph--type--wfbb-gallery.paragraph--view-mode--default {
        height: 100%;
}
.field.field--name-field-image-wfbb-gallery.field--type-entity-reference.field--label-hidden.field__item {
        height: 100%;
}
.wfbb_gallery_optional_title figure img {
        height: 100%;
        object-fit: cover;
}

/* Featured-Top Element (Cover for direkt unterhalb des Header) */
/* Region Featured Top START */

.region-featured-top figure {
        margin: 0 auto;
}

.paragraph.cover {
        position: relative;
        overflow: hidden;
}

.featured-top {
        padding: var(--header-height) var(--page-gap) 0;
}

section .region-featured-top {
        height: 55vh;
        min-height: 34.375rem;
        background: var(--gradient-primary);
        border-radius: var(--border-radius);
        position: relative;
}

.featured-top aside {
        overflow: hidden;
        border-radius: var(--border-radius); 
}

.clearfix {
        clear: both;
}

.img-group {
        position: relative;
        width: 100%; 
        height: 100%;
        padding-top: 66.67%;
        overflow: hidden;
        border-radius: var(--border-radius);
}

.img-group img {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        height: 100%;
        max-width: none; 
        object-fit: contain;
}

.region-featured-top:after {
        display: block;
        content: '';
        height: 40%;
        width: 100%;
        position: absolute;
        bottom: 0;
        background: linear-gradient(0deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, 0) 100%);
}

#page-wrapper.grau .region-featured-top::after,
#page-wrapper.page-background-gray .region-featured-top::after {
        content: none;
}

.region-featured-top .text-group {
        position: absolute;
        bottom: 0;
        padding: var(--section-inner-side-padding);
        width:100%;
        z-index: 1;
}

.page-title h1 {
        font-size: var(--font-size-h1);
        color:#fff;
        margin: 1rem 0 1rem 0;
}

nav {
        display: block;
}

.breadcrumb {
        font-size: 1.25em;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        padding: 0rem 0rem;
        margin-bottom: 1rem;
        list-style: none;
        background-color: transparent;
        border-radius: .25rem;
}

/* Icon only for event detail page */
.breadcrumb-icon a {
        display:block;
        background-image: var(--arrow-next-white);
        width: 33px;
        height: 33px;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        background-size: contain;
        transform: rotate(-180deg);
        margin-right: 1rem;
}

.breadcrumb-item {
        display: flex;
        justify-content: center;
        align-items: center;
}

.breadcrumb-item+.breadcrumb-item:before {
        display: inline-block;
        padding-left: .5rem;
        padding-right: .3rem;
        color: #FFF;
        content: "/";
}

.breadcrumb a {
        color:#fff;
        text-decoration: none;
}

.breadcrumb a:hover {
        color:#fff;
        text-decoration: underline;
}

@media (max-width: 991px) {
        .text-group {
                bottom: 15rem;
        }
        .text-group {
                bottom: 12rem;
        }
}

@media (max-width: 767px) {
        .featured-top {
                padding: var(--header-height) 0 0;
        }
        .img-group {
                border-radius: 0 !important;

        }
        .text-group {
                bottom: 7rem;
        }
        .breadcrumb, .breadcrumb-icon  {
                display: none;
        }
}

.cover figcaption {
        right: 1rem;
        z-index: 6;
        left: inherit;
        position: absolute;
}
/* Region Featured Top END */

/* #### Region Featured Top for WFBB Maps ### */

.wfbb-locations .paragraph.image,
.wfbb-regions .paragraph.image {
        overflow: hidden;
        position: relative;
    }

.wfbb-locations .featured-top,
.wfbb-regions .featured-top {
        padding: 0;
}

.wfbb-locations section,
.wfbb-regions section {
        padding: 0;
}
.wfbb-locations .featured-top,
.wfbb-regions .featured-top {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        z-index: 1;
        width: 100%;
        max-width: var(--container-width);
        margin: 0 auto;
        padding-top: 0;
        padding-bottom: 0;
        background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
        border-radius: var(--border-radius) var(--border-radius) 0 0;
}
.wfbb-locations .region-featured-top:after,
.wfbb-regions .region-featured-top:after {
        display: block;
        content: '';
        height: 40%;
        width: 100%;
        position: absolute;
        bottom: 0;
        background: none;
    }
.wfbb-locations section.region-featured-top,
.wfbb-regions section.region-featured-top {
        height: 0;
        min-height: 6.5rem;
        background: none;
        border-radius: var(--border-radius);
        position: relative;
}

.wfbb-locations .region-featured-top .text-group,
.wfbb-regions .region-featured-top .text-group {
        position: absolute;
        top: 0;
        padding: 0;
        width: 100%;
        z-index: 1;
    }

.wfbb-locations .breadcrumb,
.wfbb-regions .breadcrumb{
        font-size: 1.25em;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        padding: 0rem 2rem;
        margin-bottom: 0;
        list-style: none;
        background-color: transparent;
}

/* Copyright Infos zu Images */

figure {
        margin: 0 auto;
        height: 100%;
}

figure figcaption {
        font-size: .75rem;
        background: rgb(255 255 255 / 40%);
        padding: .25rem .5rem;
        border-radius: calc(var(--border-radius) / 2);
        max-width: calc(100% - 2rem);
        position: absolute;
        bottom: 1rem;
        left: 1rem;
        max-width: 1.7rem;
        white-space: nowrap;
        overflow: hidden;
        color: transparent;
        z-index: 1000;
        height: auto !important;
}

figcaption:before {
        content: "©";
        position: absolute;
        color: var(--color-grey-dark);
}

figcaption:hover:before {
        opacity: 0;
}

figcaption:hover {
        max-width: inherit;
        color:var(--color-grey-dark);
        background: rgb(255 255 255 / 100%);
}

/* Bild Layout Default (Standard) */
.paragraph.image {
        overflow:hidden;
        position: relative;
}

.image-wrapper {
        position: relative;
        width: 100%;
        overflow: hidden;
        border-radius: var(--border-radius);
}

.image-wrapper img {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
}

.image-wrapper figure picture a {
        display:block;
}

/* Bild Layout Raster START */

/* Standard Grid-Einstellungen */

.gallery-container {
        width: 100%;
        overflow: hidden;
}
    
.gallery-grid {
        display: grid;
        grid-gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Fallback-Layout */
}

@media (min-width: 991px) {
        .gallery-grid {
            grid-template-columns: repeat(4, 1fr); /* 4 Spalten */
        }
}

@media (max-width: 990px) {
        .gallery-grid {
            grid-template-columns: repeat(2, 1fr); /* 2 Spalten */
        }
}

@media (max-width: 550px) {
        .gallery-grid {
            grid-template-columns: 1fr; /* 1 Spalte */
            grid-gap: 10px; 
        }
}
    
/* Grid-Einstellungen für spezifische Spaltenbreiten */
.columns-view .flex-container .column .gallery-grid,
.columns-view .flex-container .column.col-size-80 .gallery-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 Spalten */
}
    
.columns-view .flex-container .column.col-size-75 .gallery-grid,
.columns-view .flex-container .column.col-size-60 .gallery-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 Spalten */
}
    
.columns-view .flex-container .column.col-size-40 .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Spalten */
}
    
.columns-view .flex-container .column.col-size-25 .gallery-grid,
.columns-view .flex-container .column.col-size-20 .gallery-grid {
        grid-template-columns: 1fr; /* 1 Spalte */
}
    

@media (max-width: 990px) {
        .columns-view .flex-container .column .gallery-grid,
        .columns-view .flex-container .column.col-size-80 .gallery-grid,
        .columns-view .flex-container .column.col-size-75 .gallery-grid,
        .columns-view .flex-container .column.col-size-60 .gallery-grid,
        .columns-view .flex-container .column.col-size-40 .gallery-grid,
        .columns-view .flex-container .column.col-size-25 .gallery-grid,
        .columns-view .flex-container .column.col-size-20 .gallery-grid {
            grid-template-columns: repeat(2, 1fr); /* 2 Spalten */
        }
}
    
@media (max-width: 550px) {
        .columns-view .flex-container .column .gallery-grid,
        .columns-view .flex-container .column.col-size-80 .gallery-grid,
        .columns-view .flex-container .column.col-size-75 .gallery-grid,
        .columns-view .flex-container .column.col-size-60 .gallery-grid,
        .columns-view .flex-container .column.col-size-40 .gallery-grid,
        .columns-view .flex-container .column.col-size-25 .gallery-grid,
        .columns-view .flex-container .column.col-size-20 .gallery-grid {
            grid-template-columns: 1fr; /* 1 Spalte */
        }
}
    
/* Grid-Einstellungen für spezifische Layout Seiten */
.node--type-event .event-content .columns-view .flex-container .column.col-size-40 .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
}

/* Bild Layout Raster END */

.gallery-item .image-wrapper {
        position: relative;
        width: 100%;
        padding-top: 65%;
        overflow: hidden;
}

.gallery-item .image-wrapper img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
}


/* Bild Layout Gallery  */

.gallery-item {
        position: relative;
}
    
.more-gallery-link {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(0, 0, 0, 0.5); 
        color: white;
        text-align: center;
        pointer-events: none;
        border-radius: var(--border-radius);
}

/* Zeige das vierte gallery-item */
.gallery-item:nth-child(4) figure .more-gallery-link {
        display: flex;
}

/* Verberge alle gallery-items nach dem vierten */
.image-gallery .gallery-item:nth-child(n + 5) {
        display: none;
}

span.gallery-length {
        font-size: var(--font-size-h2);
        font-weight: 700;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='67.912' height='64.912' viewBox='0 0 67.912 64.912'%3E%3Cg id='Gruppe_160' data-name='Gruppe 160' transform='translate(-1341.999 -10049.999)'%3E%3Cpath id='Pfad_377' data-name='Pfad 377' d='M-15187.169-2042.2h10.912' transform='translate(16530.668 12093.701)' fill='none' stroke='%23fff' stroke-linecap='round' stroke-width='3'/%3E%3Cpath id='Pfad_378' data-name='Pfad 378' d='M0,0H10.912' transform='translate(1343.5 10062.411) rotate(-90)' fill='none' stroke='%23fff' stroke-linecap='round' stroke-width='3'/%3E%3C/g%3E%3Cg id='Gruppe_159' data-name='Gruppe 159' transform='translate(-1343.999 -10051.999)'%3E%3Cpath id='Pfad_379' data-name='Pfad 379' d='M-15187.169-2042.2h10.912' transform='translate(-13776.758 8073.209) rotate(180)' fill='none' stroke='%23fff' stroke-linecap='round' stroke-width='3'/%3E%3Cpath id='Pfad_380' data-name='Pfad 380' d='M0,0H10.912' transform='translate(1410.41 10104.499) rotate(90)' fill='none' stroke='%23fff' stroke-linecap='round' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E%0A");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        margin-bottom: .5rem;
        padding: 1rem;
}

span.gallery-link-title {
        font-size: var(--font-size-h3);
        font-weight: 700;
}

*, ::after, ::before {
        box-sizing: border-box;
}

@media (max-width: 767px){
        .gallery-item {
                flex: 0 0 calc(50% - 20px);
                margin: 10px;
                position: relative;
                border-radius: var(--border-radius);
        }
}

/* Bild Typ Default */
.paragraph.image.layout-default.type-default .image-wrapper{
        margin-bottom: 1rem;
}

/* Bild Typ Icon */

.paragraph.image.image-type-icon .image-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 200px; 
        height: 200px; 
        margin: 10px; 
        background-color: #FFFFFF; 
        border-radius: 5px; 
        box-shadow: 0 0 6px rgba(0, 0, 0, 0.2); 
}

.paragraph.image.image-type-icon .image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: contain;
}

/* Bild Typ Logo */

.paragraph.image.image-type-logo .image-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
}

.paragraph.image.image-type-logo .image-wrapper img {
        padding: 10%;
        background-color: #FFFFFF;
        border-radius: 5px;
        border: 1px solid #CCC;
        object-fit: contain;
}

@media (max-width: 550px){
        .paragraph.image.image-type-logo .image-wrapper img {
                padding: 10%;
        }
}