/* Shared Bootstrap lightbox skin: isolate it from page styles and RTL text direction. */
.lightbox-modal .modal-content {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #fff;
}
.lightbox-modal .modal-header,
.lightbox-modal .modal-footer {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: inherit;
}
.lightbox-modal .modal-header {
    gap: 1rem;
    padding: .5rem;
    justify-content: space-between;
}
.lightbox-modal .lightbox-title {
    min-width: 0;
    overflow-wrap: anywhere;
}
.lightbox-modal .btn-close {
    flex-shrink: 0;
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: .9;
}
.lightbox-modal .modal-footer {
    justify-content: center;
    overflow-wrap: anywhere;
}
.lightbox-modal .lightbox-body {
    position: relative;
    padding: 0;
    text-align: center;
    overflow: hidden;
    flex-shrink: 0;
}
.lightbox-modal .lightbox-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}
.lightbox-modal .lightbox-media {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 9rem);
    max-height: calc(100dvh - 9rem);
    object-fit: contain;
    box-shadow: 0 .5rem 1rem rgb(0 0 0 / 25%);
}
.lightbox-modal .lightbox-frame {
    width: 100%;
    height: calc(100vh - 9rem);
    height: calc(100dvh - 9rem);
    border: 0;
    background: #fff;
}
.lightbox-modal .lightbox-nav {
    position: absolute;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 1px solid rgb(255 255 255 / 35%);
    border-radius: 50%;
    background: rgb(0 0 0 / 65%);
    color: #fff;
    cursor: pointer;
    opacity: .85;
    transition: opacity .15s;
}
.lightbox-modal .lightbox-nav svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.lightbox-modal .lightbox-nav:hover,
.lightbox-modal .lightbox-nav:focus-visible {
    opacity: 1;
    color: #fff;
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.lightbox-modal .lightbox-nav:disabled { visibility: hidden; }
/* Physical sides match the SVG paths and keyboard arrows, even in RTL documents. */
.lightbox-modal .lightbox-prev { left: 12px; right: auto; }
.lightbox-modal .lightbox-next { right: 12px; left: auto; }
