.wy-sc-trigger-wrap {
    display: flex;
    clear: both;
    width: 100%;
    margin: 14px 0 18px;
    box-sizing: border-box;
}

.wy-sc-align-left { justify-content: flex-start; }
.wy-sc-align-center { justify-content: center; }
.wy-sc-align-right { justify-content: flex-end; }

.wy-sc-trigger {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    margin: 0;
    padding: 9px 16px;
    border: 1px solid var(--wy-sc-accent, #2563eb);
    border-radius: 5px;
    background: #fff;
    color: var(--wy-sc-accent, #2563eb);
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    box-sizing: border-box;
    transition: background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.wy-sc-trigger:hover,
.wy-sc-trigger:focus-visible {
    background: #f7faff;
    color: var(--wy-sc-accent, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .16);
    outline: none;
}

.wy-sc-trigger:active { transform: translateY(1px); }
.wy-sc-icon { flex: 0 0 auto; }

.wy-sc-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .64);
    box-sizing: border-box;
}

.wy-sc-overlay.is-open { display: flex; }

.wy-sc-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: var(--wy-sc-modal-max-width, 980px);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 18px 70px rgba(0, 0, 0, .32);
    box-sizing: border-box;
}

.wy-sc-modal-close-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(20, 24, 31, .82);
    color: #fff;
    font-size: 26px;
    font-weight: 400;
    line-height: 38px;
    text-align: center;
    cursor: pointer;
}

.wy-sc-modal-close-icon:hover,
.wy-sc-modal-close-icon:focus-visible {
    background: #111827;
    outline: 3px solid rgba(37, 99, 235, .35);
}

.wy-sc-image-area {
    position: relative;
    flex: 1 1 auto;
    min-height: 180px;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: #fff;
}

.wy-sc-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border: 0;
    touch-action: pan-x pan-y pinch-zoom;
}

.wy-sc-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #4b5563;
    font-size: 15px;
    background: #fff;
}

.wy-sc-loading.is-hidden { display: none; }

.wy-sc-footer {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    padding: 14px 18px 18px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.wy-sc-close-button {
    min-height: 38px;
    padding: 8px 17px;
    border: 0;
    border-radius: 5px;
    background: #238636;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.wy-sc-close-button:hover,
.wy-sc-close-button:focus-visible {
    background: #1d6f2d;
    outline: 3px solid rgba(35, 134, 54, .24);
}

html.wy-sc-lock,
body.wy-sc-lock { overflow: hidden !important; }

@media (max-width: 782px) {
    .wy-sc-trigger-wrap.wy-sc-mobile-full .wy-sc-trigger { width: 100%; }

    .wy-sc-overlay {
        align-items: stretch;
        padding: 0;
    }

    .wy-sc-dialog {
        max-width: none !important;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .wy-sc-image-area { min-height: 0; }
    .wy-sc-footer { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); }
    .wy-sc-close-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .wy-sc-trigger { transition: none; }
}
