/* SWPG Lightbox */
.swpg_lightbox_container {
    border-radius: 6px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border: 1px solid #003C70;
    background-color: #003C70;
    color: #FFCB78;
    padding: 0px 24px 10px 24px;
    width: min-content;
    margin: 24px auto;
    text-align: center;
}

.swpg_lightbox_container img {
    border: 1px solid #fff;
}

.swpg_lightbox_container:hover {
    border: 1px solid #FFCB78;
    cursor: pointer;
    text-decoration: underline;
}

.swpg_lightbox_container:hover img {
    border: 1px solid #FFCB78;
}

.swpg_lightbox_container p {
    margin-bottom: 26px;
}

.swpg_lightbox_container > p:nth-child(2) {
    margin-bottom: 10px;
}

.swpg_modal {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 9999;
}

.swpg_modal .swpg_modal_contents_lightbox {
    max-height: 80%;
    max-width: 90%;
    overflow: scroll;
    width: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 24px;
    border-radius: 6px;
    -webkit-border-radius: 6px;
    -webkit-box-shadow: 3px 3px 6px 0px rgba(0,0,0,0.25);
    -moz-box-shadow: 3px 3px 6px 0px rgba(0,0,0,0.25);
    box-shadow: 3px 3px 6px 0px rgba(0,0,0,0.25);
    background: rgb(237,237,237);
    background: -moz-linear-gradient(45deg, rgba(237,237,237,1) 0%, rgba(246,246,246,1) 53%, rgba(255,255,255,1) 100%);
    background: -webkit-linear-gradient(45deg, rgba(237,237,237,1) 0%,rgba(246,246,246,1) 53%,rgba(255,255,255,1) 100%);
    background: linear-gradient(45deg, rgba(237,237,237,1) 0%,rgba(246,246,246,1) 53%,rgba(255,255,255,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ededed', endColorstr='#ffffff',GradientType=1 );
}

.swpg_modal_contents_lightbox img {
    max-width: 100%;
    max-height: 100%;
}

.close_modal_button {
    right: 6%;
    top: 8%;
    position: fixed;
    cursor: pointer;
    background-color: #343a40;
    border-color: #343a40;
    color: #fff;
    moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    box-shadow: 3px 3px 6px 0px rgb(0 0 0 / 30%);
}

.SWPGLightBoxUnstyled {
    cursor: pointer;
}

/*Fixes for elements on edit class page */
.tox .tox-editor-header
,.custom-file-label::after
,.custom-file-label
,.tox .tox-editor-header {
    z-index: auto !important;
}