.post-image-expand {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    font: inherit;
    color: inherit;
    text-align: inherit;
}

.post-image-expand img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.post-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3600;
    display: none;
    pointer-events: none;
    align-items: center;
    justify-content: center;
    padding: max(14px, var(--safe-top)) max(14px, var(--safe-right))
        max(14px, var(--safe-bottom)) max(14px, var(--safe-left));
    background: rgba(0, 0, 0, 0.92);
    touch-action: manipulation;
}

.post-image-lightbox.is-open {
    display: flex;
    pointer-events: auto;
}

.post-image-lightbox img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
    user-select: none;
    -webkit-user-drag: none;
}

.post-image-lightbox-close {
    position: absolute;
    top: max(12px, var(--safe-top));
    right: max(12px, var(--safe-right));
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    font-family: inherit;
    z-index: 2;
}

.post-image-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.post-image-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.post-image-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

.post-image-lightbox-prev {
    left: max(12px, var(--safe-left, 12px));
}

.post-image-lightbox-next {
    right: max(12px, var(--safe-right, 12px));
}

.post-image-lightbox-nav[hidden] {
    display: none !important;
}
