.single-train .elementor-widget-theme-post-content img {
    border-radius: 15px;
}

.single-train .elementor-widget-theme-post-content ul {
    margin: 20px 0;
}

.single-train figure .wp-caption-text {
    margin: 10px 0;
    font-size: 14px;
    font-weight: 500;
}

/* Gallery */

.single-train .gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    width: 100%;
    height: 400px;
}

.single-train figure.gallery-item {
    width: 100%;
    min-width: 100%;
    padding: 0 !important;
    position: relative;
    overflow: hidden;
}

.single-train figure.gallery-item:first-child {
    grid-row: span 2;
}

.single-train figure.gallery-item:not(:nth-child(1)):not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(4)):not(:nth-child(5)) {
    display: none;
}

.single-train .gallery-item .gallery-icon.landscape,
.single-train .gallery-item img {
    height: 100%;
    object-fit: cover;
}

.single-train .elementor-element.elementor-element-cfc3986 .gallery {
    margin: 0px !important;
}

.single-train figure.gallery-item:nth-child(5) a:after {
    content: 'Se flere billeder';
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background-color: rgba(6, 38, 38, .8);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transition: .1s ease;
    border-radius: 10px;
}

.single-train figure.gallery-item:nth-child(5) a:hover:after {
    background-color: rgba(6, 38, 38, .9);
}

@media (max-width:767px) {
    .single-train .gallery {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        height: auto;
    }

    .single-train figure.gallery-item:first-child {
        flex-basis: 100%;
        max-height: 400px;
    }

    .single-train figure.gallery-item:not(:first-child) {
        flex: 1;
        width: auto;
        min-width: 0;
    }

    .single-train figure.gallery-item:nth-child(5) a:after {
        font-size: 13px;
    }
}