.image-preview-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    touch-action: none;
    user-select: none;
}

.image-preview-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-preview-img {
    max-width: 90vh;
    max-height: 90vh;
    object-fit: contain;
    transition: transform 0.3s ease;
    width:100%;
}

.image-preview-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.image-preview-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.image-preview-prev {
    left: 20px;
}

.image-preview-next {
    right: 20px;
}

.image-preview-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
     z-index: 99;
}

.image-preview-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.image-preview-index {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 16px;
}

.image-preview-actions {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 99;
}

.image-preview-zoom-in,
.image-preview-zoom-out,
.image-preview-reset {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.image-preview-zoom-in:hover,
.image-preview-zoom-out:hover,
.image-preview-reset:hover {
    background-color: #1D3787;
    /*rgba(255, 255, 255, 0.3);*/
}