﻿.mh-720{
    height: 720px;
}

.adx-document-viewer-iframeviewer{
    width: 864px;
    max-width: 100%;
}

.Image {
    max-width: 100%;
    max-height: 100%;
    /*    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;*/
}

    .Image img {
        max-width: 100%;
        /*max-height: 800px;*/
        max-height: calc(100vh - 125px) !important; /*YeKr - 17.10.2025*/ 
        object-fit: contain;
        object-position: center;


/*        max-width: 100%;
        min-width: 80%;
        max-height: 100%;
        object-fit: contain;
        object-position: center;
        flex: 80%;
        width: 80%;*/
    }

#adx-document-viewer-popup-content {
    max-width: 100%;
}

.adx-document-viewer-popup {

}

.adx-document-viewer-popup-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.adx-document-viewer-popup-footer {
    
}

.adx-document-viewer-popup-header {
    
}

.image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: #111; /* optional */
    touch-action: none; /* allow pointer events to work for touch drag */
    user-select: none;
    cursor: grab;
}

    .image-container:active {
        cursor: grabbing;
    }

/* wrapper moves (translate) - full size so centering and panning works */
.image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* no overflow here, outer container has overflow:hidden */
}

/* scale applied to the image itself */
.zoomable-image {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    transition: transform 0.05s linear;
    pointer-events: none; /* prevent the image from hijacking pointer events */
}

@media(min-width: 576px) {
    .adx-document-viewer-popup {
        min-width: 500px !important;
    }
}

.adx-document-loader {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    animation: rotate 1s linear infinite;
    margin: 0 auto;
}

    .adx-document-loader::before, .adx-document-loader::after {
        content: "";
        box-sizing: border-box;
        position: absolute;
        inset: 0px;
        border-radius: 50%;
        border: 5px solid #FFF;
        animation: prixClipFix 2s linear infinite;
    }

    .adx-document-loader::after {
        inset: 8px;
        transform: rotate3d(90, 90, 0, 180deg );
        border-color: var(--main-accent);
    }

@keyframes rotate {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

@keyframes prixClipFix {
    0% {
        clip-path: polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)
    }

    25% {
        clip-path: polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)
    }

    50% {
        clip-path: polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)
    }

    75% {
        clip-path: polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)
    }

    100% {
        clip-path: polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)
    }
}
