.light-modal {
    --lm-body-bg: #151923;
    --lm-modal-bg: #000000;
    --lm-close-bg: #f78528;
    --lm-small-modal: min(420px, 92vw);
    --lm-large-modal: 70vw;
    --lm-mid-modal: min(620px, 92vw);
    --lm-font-size: 14px;
    display: none;
    position: fixed;
    background: rgba(0, 0, 0, 0);
    top: 0;
    bottom: 0;
    left: 0;
    align-items: center;
    justify-content: center;
    right: 0;
    z-index: 9000;
    padding: 36px;
    transition: background 0.25s ease, backdrop-filter 0.25s ease;
    font-size: var(--lm-font-size);
    visibility: hidden;
}

.light-modal-content {
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 34%),
            var(--lm-body-bg);
    color: #fff;
    width: var(--lm-small-modal);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    position: relative;
    max-height: calc(100dvh - 48px);
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(0, 0, 0, 0.7);
    overflow: visible;
}

.light-modal-content::before {
    content: "";
    display: block;
    height: 4px;
    flex: 0 0 4px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(90deg, #c3671e, #f78528 52%, #ffad42);
}

.light-modal-content img {
    max-width: 100%;
    border-radius: 6px;
}

.light-modal-content.large-content {
    width: var(--lm-large-modal);
}
.light-modal-content.mid-content {
    width: var(--lm-mid-modal);
}


.light-modal-header {
    padding: 18px 22px;
    background: rgba(0, 0, 0, 0.22);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.light-modal-heading {
    margin: 0;
    font-size: 1.5em;
}

.light-modal-heading + .light-modal-close-icon {
    position: static;
}

.light-modal-body {
    padding: 24px;
    overflow: auto;
    max-height: min(70dvh, 620px);
    scrollbar-color: rgba(255, 255, 255, 0.35) rgba(255, 255, 255, 0.08);
}

.light-modal-body.noheight {
    max-height: 100%;
}

.light-modal-footer {
    padding: 16px 24px 22px;
    background: rgba(0, 0, 0, 0.18);
    text-align: right;
    display: flex;
    align-items: center;
}

.light-modal-close-icon, .light-modal-close-btn {
    text-decoration: none;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ff9a3d, #f78528);
    font-size: 1.5em;
    line-height: 1;
    opacity: 1;
    transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
    border-color: #f78528;
    box-shadow: 0 5px 0 #9f4b08, 0 10px 22px rgba(0, 0, 0, 0.28);
}

.light-modal-close-icon:hover, .light-modal-close-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    color: black !important;
}

.light-modal-close-icon {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 2;
    box-shadow: 0 4px 0 #9f4b08, 0 10px 22px rgba(0, 0, 0, 0.32);
}

.light-modal-close-btn {
    font-size: 1.05em;
    line-height: 1.4;
}

.light-modal-close-underline {
    text-decoration: underline !important;
    color: rgba(255, 255, 255, 0.82);
    text-underline-offset: 4px;
}

.light-modal-caption {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.2em;
    width: 100%;
    text-align: center;
    margin-top: 5px;
}

.light-modal:target {
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(5px);
    display: flex;
    visibility: visible;
}

.light-modal-navigation .navigation-next,
.light-modal-navigation .navigation-prev {
    width: 32px;
    height: 32px;
    border-color: #fff;
    transition: border-color 0.2s;
}

.light-modal-navigation .navigation-next:hover,
.light-modal-navigation .navigation-prev:hover {
    border-color: rgba(255, 255, 255, 0.7);
}

.light-modal-navigation .navigation-next {
    position: absolute;
    right: -50px;
    top: 50%;
    border-bottom: 1px solid;
    border-left: 1px solid;
    transform: rotate(-135deg);
}

.light-modal-navigation .navigation-prev {
    position: absolute;
    left: -50px;
    top: 50%;
    border-bottom: 1px solid;
    border-left: 1px solid;
    transform: rotate(45deg);
}

@media (max-width: 480px) {
    .light-modal-navigation .navigation-next {
        right: 5px;
    }
    .light-modal-navigation .navigation-prev {
        left: 5px;
    }
}

@-webkit-keyframes basic {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes basic {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.basic {
    -webkit-animation-name: basic;
    animation-name: basic;
}

@media (max-width: 1000px) {
    .light-modal {
        --lm-small-modal: min(520px, 88vw) !important;
        --lm-large-modal: 88vw;
        --lm-mid-modal: min(620px, 88vw);
    }
}

@media screen and (max-width: 510px) {
    .light-modal {
        --lm-small-modal: 94vw !important;
        --lm-large-modal: 94vw;
        --lm-mid-modal: 94vw;
        padding: 18px;
    }
    .light-modal-body{
        padding: 20px 14px;
    }
    .accordion-body{
        padding: 0.1rem 0.5rem;
    }
}
