/* Justified Gallery */

.layout-1 .justified-gallery {
    width: 100%;
}

.layout-1 .justified-row {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
    width: 100%;
}

.layout-1 .justified-row > div {
    flex: 0 0 auto;
    max-width: none;
    padding: 0;
    margin: 0;
}

.layout-1 .justified-row figure {
    max-width: none !important;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    overflow: hidden;
}

.layout-1 .justified-row figure a,
.layout-1 .justified-row picture {
    display: block;
    width: 100%;
    height: 100%;
}

.layout-1 .justified-row img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bildbeschriftungen beim Hover */

.layout-1 .justified-row figure a {
    position: relative;
    overflow: hidden;
}

.layout-1 .gallery-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    padding: 24px 12px 10px;

    color: #fff;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85),
        rgba(0, 0, 0, 0)
    );

    opacity: 0;
    transform: translateY(8px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;

    pointer-events: none;
}

.layout-1 .justified-row figure a:hover .gallery-caption,
.layout-1 .justified-row figure a:focus-visible .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.layout-1 .gallery-caption-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.layout-1 .gallery-caption-description {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
    .layout-1 .gallery-caption {
        transition: none;
        transform: none;
    }
}