* {
    box-sizing: border-box;
}

.fullscreen-image-overlay-transition {
    transition: all 300ms ease;
}

.fullscreen-image-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(71, 113, 164, 0.3);
    cursor: zoom-out;
    z-index: 999;
}

.fullscreen-image-overlay-image-container {
    --scale-from-zoom: 0%;
    --translate-x-from-drag: 0px;
    --translate-y-from-drag: 0px;

    translate:
            calc(-50% + var(--translate-x-from-drag))
            calc(-50% + var(--translate-y-from-drag));
    scale: calc(100% + var(--scale-from-zoom));

    position: absolute;
    top: 50%;
    left: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: fit-content;

    transition: all 300ms ease;
}

.fullscreen-image-overlay-image-container > img {
    --image-width: 0px;
    --image-height: 0px;

    width: var(--image-width);
    height: var(--image-height);

    object-fit: contain;

    border-radius: 16px;
    cursor: move;

    @media (max-width: 1139px) {
        border-radius: 8px;
    }
}

.fullscreen-image-overlay-zoom-controller {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 8px -6px rgba(42, 79, 124, 0.12);
    border-radius: 28px;
    cursor: auto;

    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    width: 250px;
    padding: 24px;

    @media (max-width: 767px) {
        padding: 16px;
        width: calc(100vw - 32px);
    }
}

.fullscreen-image-overlay-zoom-controller:hover {
    background-color: rgba(255, 255, 255, 1);
}

.fullscreen-image-overlay-zoom-range {
    position: relative;

    flex-grow: 1;
    height: 4px;
    width: 100%;

    border-radius: 4px;
    background: #D7E9FF;
    cursor: pointer;
    user-select: none;
}

.fullscreen-image-overlay-zoom-range-thumb {
    --translate-x: 0%;

    position: absolute;
    top: 50%;
    left: 0;
    translate: var(--translate-x) -50%;

    width: 16px;
    height: 16px;

    background: #3C76F1;
    border-radius: 50%;
    cursor: grab;
}

.fullscreen-image-overlay-zoom-range:active .fullscreen-image-overlay-zoom-range-thumb,
.fullscreen-image-overlay-zoom-range-thumb:active {
    cursor: grabbing;
    scale: 90%;
}

.fullscreen-image-overlay-zoom-controller > button {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border: none;
    border-radius: 12px;
    color: #6C98CD;
    background-color: #D7E9FF;
    cursor: pointer;
}

.fullscreen-image-overlay-zoom-controller > button > svg > path {
    width: 16px;
    height: 16px;
    fill: #6C98CD;
}

.fullscreen-image-overlay-zoom-controller > button:active:not(:disabled) {
    scale: 90%;
}

.fullscreen-image-overlay-zoom-controller > button:disabled {
    background-color: #F4F4F4;
    cursor: not-allowed;
}

.fullscreen-image-overlay-zoom-controller > button:disabled > svg > path {
    fill: #9098A1
}

.fullscreen-image-overlay-zoom-close-button {
    position: fixed;
    top: 24px;
    right: 24px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 16px;
    background-color: #FFFFFF;
    box-shadow: 0 4px 8px -6px rgba(42, 79, 124, 0.12);
    cursor: pointer;
    @media (max-width: 1139px) {
        width: 36px;
        height: 36px;
    }
}

.fullscreen-image-overlay-zoom-close-button > svg > path {
    width: 16px;
    height: 16px;
    fill: #6C98CD;
}

.fullscreen-image-overlay-zoom-close-button:hover {
    box-shadow: 0 4px 8px -6px rgba(42, 79, 124, 0);
}

.fullscreen-image-overlay-zoom-close-button:active {
    box-shadow: 0 4px 8px -6px rgba(42, 79, 124, 0);
    scale: 90%;
}