/* Native modal — Lity/Lightbox2 replacement (vanilla CSS + JS) */
.native-modal {
    border: none;
    padding: 0;
    background: transparent;
    max-width: 100vw;
    max-height: 100vh;
    overflow: visible;
}
.native-modal::backdrop {
    background: rgba(0, 0, 0, 0.88);
}
.native-modal-content {
    display: flex;
    align-items: center;
    justify-content: center;
}
.native-modal-content img {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}
.native-modal-content iframe,
.native-modal-content video {
    width: 80vw;
    max-width: 1200px;
    aspect-ratio: 16/9;
    max-height: 85vh;
    border: none;
    background: #000;
}
.native-modal-close,
.native-modal-prev,
.native-modal-next {
    position: fixed;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.15s;
    font-family: serif;
    line-height: 1;
    padding: 0;
}
.native-modal-close:hover,
.native-modal-prev:hover,
.native-modal-next:hover {
    background: rgba(0, 0, 0, 0.9);
}
.native-modal-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
}
.native-modal-prev,
.native-modal-next {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 2.2rem;
}
.native-modal-prev { left: 1rem; }
.native-modal-next { right: 1rem; }
.native-modal-prev[hidden],
.native-modal-next[hidden] { display: none; }
.native-modal-caption {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    max-width: 80vw;
    text-align: center;
    font-size: 0.95rem;
}
.native-modal-caption:empty {
    display: none;
}
@media (max-width: 768px) {
    .native-modal-content iframe,
    .native-modal-content video {
        width: 95vw;
    }
    .native-modal-prev,
    .native-modal-next {
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }
}
