/* extra tweaks */

/* Card + Bild */
.img-card {
    padding: 0;
    overflow: hidden;
}

.img-card-media {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    /* sorgt für gleichmäßige Kartenhöhen */
    object-fit: cover;
}

.img-card-body {
    padding: 16px 18px;
}

.muted {
    color: var(--muted);
}

/* Hover-Feedback auf dem Bild-Link */
.lightbox-trigger {
    position: relative;
    display: block;
}

.lightbox-trigger::after {
    content: "🔍";
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 18px;
    line-height: 1;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .15s ease, transform .15s ease;
}

.lightbox-trigger:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox Overlay */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .75);
    padding: 32px;
}

.lightbox-overlay.is-open {
    display: flex;
}

.lightbox-overlay img {
    max-width: min(90vw, 1400px);
    max-height: 86vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
    background: #fff;
}

/* Close-Button */
.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(0, 0, 0, .4);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, .55);
}

