/* Aside Items — Modal Overlay */

#aside-items-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

#aside-items-overlay.aside-items-open {
    display: flex;
}

body.aside-items-body-lock {
    overflow: hidden;
}

#aside-items-modal {
    position: relative;
    background: #fff;
    border-radius: 4px;
    max-width: 860px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 48px 32px 32px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
}

.aside-items-body {
    flex: 1;
    min-width: 0;
}

.aside-items-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    color: #333;
}

.aside-items-close:hover {
    color: #000;
}

.aside-items-prev,
.aside-items-next {
    background: none;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background 0.15s;
}

.aside-items-prev:hover,
.aside-items-next:hover {
    background: #f0f0f0;
}

.aside-items-title {
    margin: 0 0 16px;
    font-size: 1.4rem;
}

.aside-items-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 16px;
}

.aside-items-video,
.aside-items-video-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    margin-bottom: 16px;
    border: none;
}

.aside-items-audio {
    width: 100%;
    margin-bottom: 16px;
}

.aside-items-text {
    margin: 0 0 16px;
    line-height: 1.6;
}

.aside-items-rich {
    margin-bottom: 16px;
}

.aside-items-pdf {
    width: 100%;
    height: 70vh;
    display: block;
    margin-bottom: 16px;
    border: none;
}

.aside-items-testimonial-cred {
    margin: 0 0 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
}

.aside-items-testimonial-excerpt {
    margin-bottom: 16px;
    line-height: 1.6;
}

.aside-items-loading,
.aside-items-error {
    margin: 0 0 16px;
    color: #888;
    font-style: italic;
}

.aside-items-counter {
    margin: 0;
    font-size: 0.8rem;
    color: #888;
    text-align: center;
}

@media (max-width: 600px) {
    #aside-items-modal {
        padding: 44px 16px 20px;
        gap: 8px;
    }

    .aside-items-prev,
    .aside-items-next {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}
