.elementor-21 .elementor-element.elementor-element-0a6b8df{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}:root{--page-title-display:none;}/* Start custom CSS for html, class: .elementor-element-351a1d3 */<style>
    .gallery-page-container {
        max-width: 1140px;
        margin: 40px auto;
        padding: 0 20px;
        font-family: 'Lato', sans-serif;
        color: #2C3E50;
    }

    .gallery-title {
        font-family: 'Libre Baskerville', serif;
        text-align: center;
        font-size: 36px;
        margin-bottom: 10px;
        color: #2C3E50;
    }

    .gallery-intro {
        text-align: center;
        color: #7f8c8d;
        margin-bottom: 50px;
        font-size: 18px;
        position: relative;
    }

    /* Orangener Akzent unter dem Intro - passend zum restlichen Muster */
    .gallery-intro::after {
        content: "";
        display: block;
        width: 60px;
        height: 3px;
        background: #E67E22;
        margin: 15px auto 0;
    }

    /* Stabiles Grid-Layout */
    .masonry-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        align-items: stretch;
    }

    .gallery-card {
        background: #fff;
        border: 1px solid #f0f0f0;
        display: flex;
        flex-direction: column;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        border-radius: 2px;
        overflow: hidden;
    }

    /* Orangene Akzentleiste oben an jeder Karte */
    .gallery-card {
        border-top: 3px solid #E67E22;
    }

    /* Bildbox-Optimierung gegen zu große Bilder */
    .image-box {
        width: 100%;
        height: 300px; /* Begrenzte Höhe für Ordnung */
        background-color: #fcfcfc;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border-bottom: 1px solid #f0f0f0;
    }

    .image-box img {
        max-width: 90%; /* Verkleinert die Bilder leicht innerhalb der Box */
        max-height: 90%;
        width: auto;
        height: auto;
        object-fit: contain; /* Bild wird nie abgeschnitten */
        display: block;
        transition: transform 0.5s ease;
    }

    .gallery-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    }

    .gallery-card:hover .image-box img {
        transform: scale(1.05);
    }

    .caption-box {
        padding: 20px;
        flex-grow: 1;
    }

    .caption-box h3 {
        font-family: 'Libre Baskerville', serif;
        font-size: 19px;
        color: #2C3E50;
        margin-bottom: 12px;
        line-height: 1.3;
    }

    .caption-box p {
        font-size: 14px;
        line-height: 1.6;
        color: #555;
    }

    .info-footer {
        margin-top: 60px;
        text-align: center;
    }

    .more-link {
        color: #E67E22;
        text-decoration: none;
        font-weight: 700;
        font-size: 18px;
        padding: 10px 20px;
        border: 2px solid #E67E22;
        transition: all 0.3s ease;
    }

    .more-link:hover {
        background: #E67E22;
        color: #fff;
    }

    /* Mobile Anpassung */
    @media (max-width: 900px) {
        .masonry-grid { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 600px) {
        .masonry-grid { grid-template-columns: 1fr; }
        .image-box { height: auto; max-height: 350px; }
    }
</style>/* End custom CSS */