/* :root {
    --primary: #202020;
    --secondary: #262626;
    --darker: #313131;
    --backGround: #121212;
    --accent: #ab68ff;
    --hover: #424242;
    --textColor: #c9c9d9;
    --dimText: #b0b0b0;
    --noteText: #767676;
    --borderColor: #2c2c2c;
    --textHilight: #1a4a7d;
    --blurColor: #2020206c;
    --boxShadow: rgba(0, 0, 0, 0.2);
} */

.modal-image-viewer {
    display: block;
    position: fixed;
    z-index: 11111111 !important;
    left: 0;
    top: 0;
    width: 30%;
    height: 80%;
    overflow: hidden;
    background-color: var(--backGround);
    user-select: none;
    /* border-radius: 5px 5px 0px 0px; */
    border-radius: 11px;
    box-shadow: 0 1px 4px rgb(0, 0, 0, 0.2);
    border: 1px solid var(--hover);
    flex-direction: column;
    min-width: 150px;
    min-height: 150px;
}

.modal-image-viewer-title {
    margin-left: 10px;
    flex-grow: 1;
}

.modal-image-viewer-close {
    color: var(--dimText);
    margin-left: auto;
    font-size: 25px;
    margin-right: 5px;
    padding-top: 0px;
    padding-bottom: 3px;
}

.modal-image-viewer-close::before {
    font-family: 'NerdFontSymbols';
    content: "\f467";
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: var(--dimText);
    font-size: var(--font-small);
    font-size: var(--font-large);
    /* font-weight: bold; */
    position: relative;
    top: 2px;
    padding: 2px;
}

.modal-image-viewer-close:hover,
.modal-image-viewer-close:focus {
    text-decoration: none;
    cursor: pointer;
}

.modal-image-viewer-close:hover::before {
    color: var(--textColor);
    background-color: var(--hover)
}

.modal-image-viewer-header {
    background-color: var(--secondary);
    padding: 1px;
    color: var(--textColor);
    cursor: move;
    height: 24px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    opacity: 0.4;
    border-bottom: thin solid var(--borderColor);
    transition: all 0.2s;
}

.modal-image-viewer-header:hover {
    opacity: 1;
}

.modal-image-viewer-body {
    position: absolute;
    top: 27px;
    left: 0px;
    width: calc(100% - 0px);
    height: calc(100% - 27px);
    display: flex;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    background-color: rgb(0, 0, 0, 0.4);
    z-index: 0;
    padding: 0px;
    overflow: hidden;
}

.modal-image-viewer-body img {
    object-fit: contain;
    object-position: center;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    transform: translate(0px, 0px) scale(1);
    cursor: grab;
    /* transition: transform 0.3s ease; */
}

.resize-handle {
    width: 16px;
    height: 16px;
    background: #0000007e;
    position: absolute;
    bottom: 0;
    right: 0;
    cursor: nwse-resize;
    opacity: 0.3;
    transition: all 0.2s;
    padding: 3px;
    color: white;
    border-radius: 6px 0 0 0;
}

.resize-handle::before {
    font-family: 'NerdFontSymbols';
    content: "\ea99";
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: var(--font-small);
    font-size: var(--font-large);
    /* font-weight: bold; */
    position: relative;
    top: -4px;
    left: -1px;
    padding: 4px;
    transform: rotate(45deg);
    /* Rotate the icon by 45 degrees */
}

.resize-handle:hover {
    width: 18px;
    height: 18px;
    opacity: 1;

}


.modal-navigation-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 105;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 16px;
    border-radius: 0%;
    width: 50px;
    height: 100%;
    padding: 5px;
    opacity: 0.1;
    transition: all 0.2s;
}

.modal-navigation-btn:hover {
    opacity: 1;
}

.modal-navigation-btn.prev {
    left: 0px;
}

.modal-navigation-btn.next {
    right: 0px;
}

.modal-navigation-btn::before {
    content: "\eb70";
    font-family: 'NerdFontSymbols';
    font-size: 27px;
    background-color: transparent;
    color: var(--textColor);
    pointer-events: none;
    transition: all 0.2s;
    display: inline-block;
    /* Ensure the content acts like a block element for width to take effect */
    width: 100%;
    /* Make the pseudo-element span the entire width of the button */
    text-align: center;
    /* Center the text/icon horizontally */
    margin-left: 3px;
    background: #0000007e;
    color: white;
    width: 25px;
    height: 35px;
    padding: 0px;
    padding-top: 4px;
    padding-bottom: 2px;
    padding-left: 0px;
    border-radius: 8px;
    position: relative
}

.modal-navigation-btn:hover::before {
    /* font-size: 28px; */
}

.modal-navigation-btn.prev::before {
    content: "\eb6f";
    padding-right: 4px;


}

.modal-navigation-btn.next::before {
    padding-right: 3px;
    padding-left: 1px;
}