.md-content img {
    cursor: zoom-in;
}

.image-lightbox-trigger {
    background: none;
    border: 0;
    cursor: zoom-in;
    display: inline-block;
    padding: 0;
    position: relative;
}

.image-lightbox-trigger img {
    display: block;
}

.image-lightbox-badge {
    align-items: center;
    background: rgba(8, 12, 16, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    bottom: 0.75rem;
    color: #fff;
    display: inline-flex;
    font-size: 1.1rem;
    font-weight: 700;
    height: 2rem;
    justify-content: center;
    pointer-events: none;
    position: absolute;
    right: 0.75rem;
    width: 2rem;
}

.image-lightbox-overlay {
    align-items: center;
    background: rgba(8, 12, 16, 0.45);
    backdrop-filter: blur(0.3rem);
    border: 0;
    box-sizing: border-box;
    cursor: zoom-out;
    display: none;
    height: 100vh;
    inset: 0;
    justify-content: center;
    margin: 0;
    min-height: 100vh;
    max-width: 100vw;
    overflow: hidden;
    padding: 1rem;
    position: fixed;
    width: 100%;
    z-index: 9999;
}

.image-lightbox-overlay[open] {
    display: flex;
}

.image-lightbox-overlay::backdrop {
    background: rgba(8, 12, 16, 0.45);
    backdrop-filter: blur(0.3rem);
}

.image-lightbox-content {
    max-height: calc(100vh - 2rem);
    max-width: calc(100vw - 2rem);
    overflow: hidden;
    position: relative;
}

.image-lightbox-content img {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35);
    cursor: auto;
    display: block;
    max-height: calc(100vh - 2rem);
    max-width: calc(100vw - 2rem);
}

.image-lightbox-close {
    align-items: center;
    background: rgba(8, 12, 16, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.5rem;
    height: 2.25rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    width: 2.25rem;
}

@media (max-width: 768px) {
    .image-lightbox-overlay {
        padding: 0.5rem;
    }

    .image-lightbox-content,
    .image-lightbox-content img {
        max-height: calc(100vh - 1rem);
        max-width: calc(100vw - 1rem);
    }

    .image-lightbox-badge {
        bottom: 0.5rem;
        right: 0.5rem;
    }

    .image-lightbox-close {
        right: 0.25rem;
        top: 0.25rem;
    }
}
