.ipe-flipbook-wrapper {
    display: flex;
    flex-direction: column;
    max-height: 100%;
    max-width: 100%;
}

.ipe-flipbook-wrapper .ipe-flipbook {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}


/*** SPRITESPIN ***/
/* STRETCH NEED MAXHEIGHT UNSET AND WIDTH 100% IMPORTANT */
/* STRETCH PORTRAIT */
/* NORMAL NEEDS MAXHEIGHT 100% AND WIDTH AUTO IMPORTANT */
.ipe-container .sprite-spinner-wrapper.scale-to-cover {
	height: 100%;
}
.ipe-container .sprite-spinner-wrapper.scale-to-cover .sprite-spinner-container .spritespin-canvas {
    min-height: 100%;
    min-width: 100%;
    width: auto !important;
    height: auto !important;    
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    object-fit: cover;
    margin: 0;
}

@media screen AND (orientation:portrait) {
    .ipe-container .sprite-spinner-wrapper.scale-to-cover .sprite-spinner-container .spritespin-canvas {
        max-height: 100%;
    }
}

@media screen AND (orientation:landscape) {
    .ipe-container .sprite-spinner-wrapper.scale-to-cover .sprite-spinner-container .spritespin-canvas {
        max-width: 100%;
    }
}
/* SPRITESPIN: BG FILL IMAGE; */
.sprite-spinner-container {
    background-position: center;
    background-size: cover;
}



/* FLIBOOK VIDEO */
.ipe-flipbook-data-mode-video {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}
.ipe-flipbook-data-mode-video .ipe-video-controller {
    flex: 1 1 auto;
}
@media screen AND (orientation:portrait) {
    .ipe-flipbook-data-mode-video {
        flex-direction: column;
    }
}
.ipe-flipbook-data-mode-video .ipe-video-mobile {
    display: none;
}
@media screen AND (max-width:767px){
    .ipe-flipbook-data-mode-video .has-mobile-version .ipe-video {
        display: none;
    }
    .ipe-flipbook-data-mode-video .has-mobile-version .ipe-video-mobile {
        display: block;
    }
}
/* Disable remote playback */
.ipe-flipbook-data-mode-video video::-internal-media-controls-overlay-cast-button {
    display: none;
}
/* 2021 */
.flipbook-fill-and-cover .ipe-video,
.flipbook-fill-and-cover .ipe-video-mobile {
	/* Make video to at least 100% wide and tall */
	min-width: 100%; 
	min-height: 100%; 
	/* Unset heigh and width limits  DONT
	max-width: unset; 
	max-height: unset; */
	/* Setting width & height to auto prevents the browser from stretching or squishing the video */
	width: auto;
	height: auto;
	/* Center the video */
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
}

@media screen AND (orientation: portrait) {
    .flipbook-fill-and-cover .ipe-video, .flipbook-fill-and-cover .ipe-video-mobile {
        max-width: unset; 
        max-height: 100%;
    }
}




/* CONTROLBAR */
.ipe-controlbar {

}
.ipe-controlbar.is-overlay {
	position: absolute;
}


.ipe-controlbar .ipe-icon-img {
    fill:none;
}

.ipe-controlbar .ipe-icon-img .stroked {
    stroke-miterlimit:10;
    stroke-width:1.5px;
}

.ipe-controlbar .ipe-icon-img .hidden {
    display: none;
}

.ipe-controlbar .back .ipe-icon-img,
.ipe-controlbar .slider-bg .ipe-icon-img {
    background:none;
}

@media screen AND (orientation:portrait),
       screen AND (max-width: 768px) {
	/* CONTROLBAR: SUNPATH */
	.ipe-controlbar.sunpath {
		justify-content: space-between;
	    align-items: flex-end;
	}
	.ipe-controlbar.sunpath .control-item.ipe-slider {
	    flex: 1 1 85%;
	}
	.ipe-controlbar.sunpath .control-item.play-pause {
		flex:1 1 0%;
	    min-width: auto;
	}
	.ipe-controlbar.sunpath.is-overlay {
		height: 100%;
	}
}
@media screen AND (max-width: 620px) {
	.ipe-controlbar.sunpath .control-item.ipe-slider {
	    flex: 1 1 80%;
	}
}

/* SOLANIMATION  */
.ipe-sunpath-controlbar .ipe-icon.nordpil {
    margin-right: auto;
}



/* DISABLE GRABBING ON IMAGEMAP */
.imagemap-global-wrapper .sprite-spinner-container {
    pointer-events: none;
}



/* LOADING SCREEN OVERLAY */
.loading-screen {
    pointer-events: none;
    opacity:0;
    -webkit-transition: opacity 30ms linear;
    -moz-transition: opacity 30ms linear;
    -ms-transition: opacity 30ms linear;
    -o-transition: opacity 30ms linear;
    transition: opacity 30ms linear;
    z-index: 15;
}

.loading-screen.loading {
    pointer-events: auto;
    background-color: #FFFFFF;
    background-color: #FFFFFF80;
    opacity:1;
}
.flipbook-type-sunpath .loading-screen.loading {
    background-color: #000000;
    background-color: #00000080;
}

.loading-screen .loading-bar {
    height: 2px;
    width: 50%;
}

.loading-screen .loading-bar .inner-fill{
    height: 100%;
    background-color: #FFFFFF;
    width: 5%;
}

.loading-screen.loading .loading-bar .inner-fill{
    width: 100%;
    margin-left: 0%;
    margin-right: 0%;
    animation:  loadingstart 28s infinite cubic-bezier(.39,.84,.66,.17);
}

@keyframes loadingstart {
    0% {
        width: 0%;
        margin-left: 0%;
    }

    50% {
        width: 100%;
        margin-left: 0%;
    }

    100% {
        width: 0%;
        margin-left: 100%;
    }
}