body.viewing-screenfull,
body.viewing-fullwindow {
    background-color: #000;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
}
body.viewing-screenfull #main,
body.viewing-screenfull #menu,
body.viewing-screenfull #badge-container,
body.viewing-screenfull #logo-container,
body.viewing-fullwindow #main,
body.viewing-fullwindow #menu,
body.viewing-fullwindow #badge-container,
body.viewing-fullwindow #logo-container {
    opacity: 0;
    pointer-events: none;
    touch-action: none;
}
#fullscreen {
	/* width: auto; */
	height: auto;
}

#fullscreen:-webkit-full-screen,
#f:-webkit-full-screen,
:-webkit-full-screen {
    position: fixed;
    top: 0px;
    left: 0px;
    margin: 0px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-sizing: border-box;
    background-color: #000;
    filter: initial;
}

#fullscreen:-ms-fullscreen,
:-ms-fullscreen {
	width: auto;
	height: auto;
	margin: auto;
  	filter: initial;
}

/*
    fullwindow
*/
#fullwindow {
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    margin: 0px;
    width: 100vw;
    max-width: 100%;
    height: 100vh; /* fallback */
    height: 100dvh;
    box-sizing: border-box;
    background-color: #000;
    z-index: +3;
}
.viewing-fullwindow #fullwindow { 
    display: block;
}
#fullwindow img {
    padding: 0;
    filter: none;
}
.fullwindow-trigger {
    cursor: pointer;
}
.fullwindow-control-btn {
    width: 80px;
    position: absolute;
    cursor: pointer;
    -webkit-user-select: none; /* Safari */
    user-select: none; /* Standard syntax */
    mix-blend-mode: difference;
}
.fullwindow-control-btn:hover {
    opacity: 0.5;
}

#fullwindow-image
{
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    object-fit: contain;
}
#fullwindow-caption
{
    color: #fff;
}
#fullwindow-caption.empty {
    padding-top: 0;
}
.fullwindow-control-btn > img {
    display: block;
    padding: 0;
    filter: none;
}
#close-fullwindow-btn {
    top: 10px;
    left: 10px;
}
#fullwindow-next-btn,
#fullwindow-prev-btn {
    position: absolute;
    top: 0;
    height: 100dvh;
    width: 50%;
}
#fullwindow-next-btn {
   right: 0;
   cursor: url(../../media/png/arrow-forward-6-w.png), pointer;
}
#fullwindow-prev-btn {
    left: 0;
    cursor: url(../../media/png/arrow-back-6-w.png), pointer;
}
#fullwindow-next-btn.disabled,
#fullwindow-prev-btn.disabled{
    cursor: auto;
}
#fullwindow-caption-btn {
    width: 36px;
    bottom: 10px;
    left: 10px;
}

#fullwindow-caption.empty ~ #fullwindow-caption-btn {
    display: none;;
}


#screenfull-container {
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    margin: 0px;
    width: 100vw;
    max-width: 100%;
    height: 100dvh;
    box-sizing: border-box;
    background-color: #000;
    z-index: 2000;
}

#screenfull-image-wrapper {
    width: 100%;
    height: 100%;
}
.viewing-screenfull #screenfull-container {
    display: block;
}
#screenfull-image-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#screenfull-caption {
    display: none;
    text-align: center;
    position: absolute;
    width: 100%;
    padding: 10px 100px; 
    bottom: 0px;
    color: #FFF;
    margin: 0;
    background-color: #000;
}
.viewing-screenfull-caption #screenfull-caption{
    display: block;
}
#screenfull-caption.empty {
    padding-top: 0;
}
*[screenfull-index]
{
    cursor: pointer;
}

.screenfull-control-btn {
    width: 36px;
    position: absolute;
    cursor: pointer;
    -webkit-user-select: none; /* Safari */
    user-select: none; /* Standard syntax */
    mix-blend-mode: difference;
}
.screenfull-control-btn:hover {
    opacity: 0.5;
}

.screenfull-control-btn > img {
    display: block;
}
.hiding-controls .screenfull-control-btn{
    transition: opacity .5s;
    opacity: 0;
}
#close-screenfull-btn {
    top: 10px;
    right: 10px;
}
#enter-screenfull-btn {
    top: 10px;
    right: 50px;
    display: none;
}
#screenfull-next-btn,
#screenfull-prev-btn
{
    position: absolute;
    top: 0;
    height: 100dvh;
    width: 50%;
}
#screenfull-next-btn {
   right: 0;
   /* cursor: url(../../media/png/arrow-forward-6-w.png) 20 20, pointer; */
   cursor: pointer;
   width: 100%;
}
#screenfull-prev-btn {
    left: 0;
    cursor: url(../../media/png/arrow-back-6-w.png) 0 20, pointer;
    display: none;
}
#screenfull-caption-btn {
    width: auto;
    padding: 2px 5px;
    bottom: 10px;
    left: 10px;
    font-family: Helvetica, sans-serif;
    color: #fff;
}

.viewing-screenfull-caption #screenfull-caption-btn {
    opacity: 0.5;
}

#screenfull-caption.empty ~ #screenfull-caption-btn {
    display: none;
}
