/* Reset */

html, body {
    box-sizing: border-box;
    font-size: 16px;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: #000;
}



*, *:before, *:after {
    box-sizing: inherit;
}

body, h1, h2, h3, h4, h5, h6, p, ol, ul {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

ol, ul {
    list-style: none;
}




/* iFrame Stuff */

#iframe-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    /* Use dynamic viewport height, this fixes not displaying properly in mobile browsers */
}

#iframe3d {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* 
#iframe-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
}

iframe {
    position: absolute;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
} 
#iframe3d {
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
} 
.iframetourhidden {
    display: none;
}

.iframetour {
    animation: iframe-anim 0.3s linear;
    z-index: 5;
}

@keyframes iframe-anim {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}
 */



/* Fullscreen Buttons */


#enterFullscreenBtn {
    width: 42px;
    height: 42px;
    background-image: url("media/icons/fullscreen-bk-42sq.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

#exitFullscreenBtn {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    background-image: url('media/icons/exit-fullscreen-bk-42sq.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    /* ← THIS is the missing piece */
    border: none;
    cursor: pointer;
    z-index: 9999;
}



/* Floor Selector Buttons */



@keyframes fl-anim {
    0% {
        opacity: 0;
    }

    90% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


.grid-container {
    display: grid;
    width: 120px;
    row-gap: 10px;
    justify-items: center;
}

.floor-selector-hidden {
    display: none;
}


.floor-selector-anim {
    animation-name: fl-anim;
    animation-duration: 4500ms;
}



.floor-selector {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    position: fixed;
    right: 10px;
    bottom: 35px;
    z-index: 2;
}



.fl-sel-txt {
    color: #333333;
    text-align: center;
}


.selbtn {
    font-size: 1.2rem;
    text-align: center;
    background-color: #f1ebdf;
    color: #333333;
    border: 2px solid #333333;
    width: 50px;
    height: 50px;
    border-radius: 25px;
}

.selbtn:hover {
    background-color: #A3E3C7;
    cursor: pointer;
}

.selbtn.disabled {
    background-color: #ccc;
    color: #666;
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.6;
}

.back {
    font-size: 0;
    background-image: url('media/icons/prev-333333-42sq.png');
    background-size: 28px;
    background-position: center;
    background-repeat: no-repeat;
}

.hidden-button {
    display: none;
}

/* Logo */


@keyframes logo {
    0% {
        opacity: 0;
    }

    30% {
        opacity: 0;
    }

    70% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}


.logo {
    position: fixed;
    width: 160px;
    left: 20px;
    top: 20px;
    z-index: 2;
}

@media (max-width: 550px) {
    .logo {
        transform-origin: top left;
        scale: 0.6;
        /*  translate: -20px -20px; */

    }
}


.logo-anim {
    animation-name: logo;
    animation-duration: 3s;
}

.logo-hidden {
    display: none;
}

/* Cam Icons */

@keyframes cam-anim {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


.cam-positions {
    animation-name: cam-anim;
    animation-duration: 1s;
    position: absolute;
    width: 45px;
    height: 58px;
    margin-left: -22px;
    margin-top: -29px;
    z-index: 2;
}



.cam-positions:hover {
    cursor: pointer;
}

.cam-positions-hidden {
    display: none;
}

.stills {
    background-image: url('media/icons/icon-still-45x58px.png');
}

.stills:hover {
    background-image: url('media/icons/icon-still-highlight-45x58px.png');
}

#info-icon {
    background-image: url('media/icons/icon-info-45x58px.png');
}

#info-icon:hover {
    background-image: url('./media/icons/icon-info-highlight-45x58px.png');
}


/* Information Popup */

@keyframes popup-box-anim {
    from {
        translate: 0px 80px;
        opacity: 0;
    }

    to {
        translate: 0px 0px;
        opacity: 1;
    }
}



.info-popup-container {
    position: relative;
    z-index: 3;
}

.popup-box-outline {
    overflow: hidden;
    position: absolute;
    height: 130px;
    width: 170px;
    left: -85px;
    top: -180px;
}

.popup-box {
    background-color: rgba(51, 51, 51, 0.8);
    position: absolute;
    padding: 12px;
    animation-name: popup-box-anim;
    animation-duration: .4s;
}

.info-popup-hidden {
    display: none;
}

.popup-text {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 200;
    color: rgba(241, 235, 223, 1);
}

.popup-text a {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #f1ebdf;
    text-decoration: none;
}



/* Gallery Styles */

.gallery {
    position: relative;
    background-color: #000000;
    width: 100vw;
    height: 100vh;
    z-index: 4;
    overflow: hidden;
    animation: gallery-anim 0.3s linear;
}

.gallery-hidden {
    display: none;
}

.gallery-track {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
    will-change: transform;
    touch-action: pan-y;
    user-select: none;
}

.gallery-slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-slide img {
    max-width: 100%;
    max-height: 100%;
    pointer-events: none;
    user-select: none;
}

.still-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 95%;
    height: 95%;
    max-width: 1920px;
    margin: auto;
    object-fit: contain;
    animation: stills-anim 0.15s linear;
    z-index: 5;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
}



@keyframes gallery-anim {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.next-button, .prev-button {
    text-align: center;
    background-color: #F5F2E8;
    color: #333333;
    width: 50px;
    height: 50px;
    border: 2px solid #333333;
    border-radius: 25px;
    font-size: 0;
    background-size: 28px;
    background-position: center;
    background-repeat: no-repeat;
    margin: 20px;
    z-index: 6;
}

.next-button {
    position: absolute;
    top: 50%;
    right: 0;
    translate: 0 -50%;
    background-image: url('media/icons/next-333333-42sq.png');
}

.prev-button {
    position: absolute;
    top: 50%;
    left: 0;
    translate: 0 -50%;
    ;
    background-image: url('media/icons/prev-333333-42sq.png');
}

.next-button:hover, .prev-button:hover {
    background-color: #A3E3C7;
    cursor: pointer;
}

.gallery-buttons-hidden {
    display: none;
}

.back-btn-hidden {
    display: none;
}

.back-btn {
    overflow: hidden;
    position: fixed;
    background-image: url('media/icons/closeX-42sq.png');
    background-color: transparent;
    font-size: 0px;
    border: 0px;
    cursor: pointer;
    top: 20px;
    left: 20px;
    width: 42px;
    height: 42px;
    background-size: 100% 100%;
    z-index: 6;
}