/* ==========================================
   CROARTIS ROOM 4
   OSNOVNA KONSTRUKCIJA
   ========================================== */


/* ==========================================
   RESET
   ========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}


/* ==========================================
   HTML / BODY
   ========================================== */

html,
body{
    width:100%;
    height:100%;
    overflow:hidden;
    background:#222;
    font-family:Arial, Helvetica, sans-serif;
}


/* ==========================================
   ROOM 4 SCENA
   ========================================== */

.room4-scene{
    position:relative;
    width:100vw;
    height:100vh;
    overflow:hidden;
    background:#222;
}


/* ==========================================
   ROOM 4 VIEW
   ========================================== */

.room4-view{
    position:absolute;
    inset:0;

    width:100%;
    height:100%;

    display:none;
    flex-direction:column;

    overflow:hidden;
}

.room4-view.active{
    display:flex;
}


/* ==========================================
   STROP
   ========================================== */

.room4-ceiling{
    flex:0 0 10%;

    width:100%;
    height:10%;

    background:
        linear-gradient(
            to bottom,
            #ffffff,
            #ddd8cf
        );
}


/* ==========================================
   ZID
   ========================================== */

.room4-wall{
    position:relative;

    flex:0 0 80%;

    width:100%;
    height:80%;

    background:
        linear-gradient(
            to bottom,
            #faf9f5,
            #f2eee6
        );
}


/* ==========================================
   POD
   ========================================== */

.room4-floor{
    position:relative;

    flex:0 0 10%;

    width:100%;
    height:10%;

    overflow:hidden;

    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,.20),
            transparent 35%,
            rgba(95,70,45,.10)
        ),
        #eeeae3;

    box-shadow:
        inset 0 18px 30px rgba(255,255,255,.35),
        inset 0 -80px 100px rgba(80,60,40,.14),
        inset 0 0 70px rgba(90,70,50,.06);
}


/* ==========================================
   PARKET
   ========================================== */

.room4-floor::before{
    content:"";

    position:absolute;
    inset:0;

    background:
        repeating-linear-gradient(
            0deg,
            #faf9f5 0px,
            #faf9f5 31px,
            #ddd8d0 32px,
            #ddd8d0 33px
        );
}

.room4-floor::after{
    content:"";

    position:absolute;
    inset:0;

    background:
        repeating-linear-gradient(
            3deg,
            transparent 0px,
            transparent 45px,
            rgba(105,85,65,.045) 47px,
            transparent 50px
        ),
        radial-gradient(
            ellipse at 18% 35%,
            rgba(110,90,70,.045),
            transparent 20%
        ),
        radial-gradient(
            ellipse at 78% 70%,
            rgba(110,90,70,.035),
            transparent 22%
        );

    opacity:.75;

    pointer-events:none;
}


/* ==========================================
   PERSPEKTIVA PARKETA
   ========================================== */

.room4-floor-perspective{
    position:absolute;
    inset:0;

    pointer-events:none;
    z-index:10;
}

.room4-floor-perspective span{
    position:absolute;

    bottom:-25%;

    width:2px;
    height:170%;

    background:rgba(95,75,55,.13);

    transform-origin:bottom center;

    box-shadow:
        1px 0 3px rgba(255,255,255,.35);
}

.room4-floor-perspective span:nth-child(1){
    left:43%;
    transform:rotate(13deg);
}

.room4-floor-perspective span:nth-child(2){
    left:57%;
    transform:rotate(-13deg);
}

.room4-floor-perspective span:nth-child(3){
    left:32%;
    transform:rotate(21deg);
}

.room4-floor-perspective span:nth-child(4){
    left:68%;
    transform:rotate(-21deg);
}

.room4-floor-perspective span:nth-child(5){
    left:15%;
    transform:rotate(31deg);
}

.room4-floor-perspective span:nth-child(6){
    left:85%;
    transform:rotate(-31deg);
}


/* ==========================================
   ARTWORK KONTEJNER
   ========================================== */

.room4-artworks{
    position:absolute;
    inset:0;

    display:flex;
    align-items:center;
}


/* ==========================================
   OSNOVNI ARTWORK
   ========================================== */

.room4-artwork{
    position:relative;

    display:flex;

    align-items:flex-end;
    justify-content:center;

    flex-shrink:0;
}


/* ==========================================
   SLIKE
   ========================================== */

.room4-image{
    display:block;

    width:270px;
    height:auto;

    border:1px solid #222;

    box-shadow:
        0 25px 50px rgba(0,0,0,.30);

    cursor:pointer;
}


/* =========================================================
   ZID 1
   TRI SLIKE
   ========================================================= */

.room4-wall1-artworks{
    justify-content:center;
    gap:45px;
}


/* NEOVISNO POMICANJE SLIKA ZIDA 1 */

.room4-wall1-artworks .room4-image:nth-of-type(1) {
    position: relative;
    left: 30px;
}

.room4-wall1-artworks .room4-image:nth-of-type(2) {
    position: relative;
    left: 10px;
}

.room4-wall1-artworks .room4-image:nth-of-type(3) {
    position: relative;
    left: 20px;
}


/* ==========================================
NEOVISNO PODEŠAVANJE VELIČINE SLIKA
ZID 1 — POLITEO 24, 25, 26
========================================== */

/* SLIKA 24 */
.room4-wall1-artworks .room4-image:nth-of-type(1) {
width: 300px;
height: auto;
}

/* SLIKA 25 */
.room4-wall1-artworks .room4-image:nth-of-type(2) {
width: 220px;
height: auto;
}

/* SLIKA 26 */
.room4-wall1-artworks .room4-image:nth-of-type(3) {
width: 220px;
height: auto;
}

/* =========================================================
   ZID 2
   VRATA LIJEVO + 2 SLIKE DESNO
   ========================================================= */


/* ==========================================
   VRATA — NEOVISNA OD SLIKA
========================================== */

.room4-view-2 .room4-door-to-room5{
    left:8vw;
    right:auto;
}


/* ==========================================
   PODRUČJE ZA SLIKE
   ========================================== */

.room4-wall2-artworks{
    position:absolute;

    top:0;
    right:0;
    bottom:0;

    /* područje počinje nakon vrata */
    left:calc(8vw + 220px);

    display:flex;

    align-items:center;
    justify-content:center;

    gap:45px;

    padding:0 40px;
}


/* ==========================================
   SLIKE 27 + 28
========================================== */

.room4-wall2-artworks .room4-artwork{
    position:relative;

    flex:0 0 auto;
}


/* ==========================================
   NEOVISNO PODEŠAVANJE VELIČINE SLIKA
   ZID 2 — POLITEO 27 + 28
========================================== */

/* SLIKA 27 */
.room4-wall2-artworks .room4-artwork-27 .room4-image {
    width: 200px;
    height: auto;
}

/* SLIKA 28 */
.room4-wall2-artworks .room4-artwork-28 .room4-image {
    width: 400px;
    height: auto;
}




/* =========================================================
   ZID 3
   SLIKA 29 + VRATA U SREDINI + SLIKA 30
   ========================================================= */


/* ==========================================
   VRATA — TOČNO U SREDINI ZIDA
========================================== */

.room4-view-3 .room4-door-to-room3{
    position:absolute;

    left:50%;
    right:auto;

    bottom:0;

    transform:translateX(-50%);

    width:220px;
    height:75%;

    z-index:20;
}


/* ==========================================
   PODRUČJE ZA SLIKE
   ========================================== */

.room4-wall3-artworks{
    position:absolute;

    top:0;
    left:0;
    right:0;
    bottom:0;

    display:flex;

    align-items:center;
    justify-content:center;

    gap:350px;

    padding-left:140px;
    padding-right:140px;
}



/* ==========================================
   SLIKE — NEOVISNE OD VRATA
========================================== */

.room4-wall3-artworks .room4-artwork{
    position:relative;

    flex:0 0 auto;
}


/* ==========================================
   SLIKA 29
========================================== */

.room4-wall3-artworks .room4-artwork-29{
    order:1;
}


/* ==========================================
   SLIKA 30
========================================== */

.room4-wall3-artworks .room4-artwork-30{
    order:2;
}


/* ==========================================
   VELIČINA SLIKA
========================================== */

.room4-wall3-artworks .room4-image{
    width:300px;
    height:auto;
}



/* =========================================================
   ZID 4
   TRI SLIKE
   ========================================================= */

.room4-wall4-artworks{
    position:absolute;
    inset:0;

    width:100%;
    height:100%;

    display:flex;

    align-items:center;
    justify-content:center;

    gap:50px;

    margin:0;
}

.room4-wall4-artworks .room4-artwork-31 .room4-image{
    width:250px;
}

.room4-wall4-artworks .room4-artwork-32 .room4-image{
    width:400px;
}

.room4-wall4-artworks .room4-artwork-33 .room4-image{
    width:200px;
}



/* ==========================================
   VRATA — OSNOVNI IZGLED
   ========================================== */

.room4-door{
    position:absolute;

    width:220px;
    height:75%;

    bottom:0;

    background:
        linear-gradient(
            to right,
            #939290,
            #cbc9c4 40%,
            #cbc9c4 70%,
            #939290
        );

    border:12px solid #dedbd3;

    box-shadow:
        0 30px 70px rgba(0,0,0,.35),
        inset 0 0 45px rgba(0,0,0,.18);

    z-index:20;
}


/* ==========================================
   VRATA PREMA ROOM 3
   ZID 2
   ========================================== */

.room4-door-to-room3{
    left:8vw;
}


/* ==========================================
   VRATA PREMA ROOM 5
   GLOBALNO
   ========================================== */

.room4-door-to-room5{
    right:8vw;
}


/* ==========================================
   ZID 3 — VRATA PREMA ROOM 5
   PREGAZI GLOBALNI RIGHT:8vw
   ========================================== */

.room4-wall3-artworks .room4-door-to-room5{
    right:auto;
}


/* ==========================================
   HOTSPOT VRATA
   ========================================== */

.room4-door-hotspot{
    position:absolute;
    inset:0;

    cursor:pointer;

    z-index:30;
}


/* ==========================================
   NATPIS ROOM 3
   ========================================== */

.room4-view-2 .room4-door-to-room3::before{
    content:"ROOM No.3";

    position:absolute;

    left:50%;
    top:20%;

    transform:translate(-50%,-50%);

    color:#ffffff;

    font-family:Arial, Helvetica, sans-serif;

    font-size:20px;
    font-weight:normal;

    letter-spacing:5px;
    line-height:1;

    white-space:nowrap;
    text-align:center;

    text-shadow:
        0 1px 3px rgba(0,0,0,.45),
        0 0 8px rgba(255,255,255,.20);

    z-index:25;

    pointer-events:none;
}


/* ==========================================
   NATPIS ROOM 5
   ========================================== */

.room4-view-3 .room4-door-to-room5::before{
    content:"ROOM No.5";

    position:absolute;

    left:50%;
    top:20%;

    transform:translate(-50%,-50%);

    color:#ffffff;

    font-family:Arial, Helvetica, sans-serif;

    font-size:20px;
    font-weight:normal;

    letter-spacing:5px;
    line-height:1;

    white-space:nowrap;
    text-align:center;

    text-shadow:
        0 1px 3px rgba(0,0,0,.45),
        0 0 8px rgba(255,255,255,.20);

    z-index:25;

    pointer-events:none;
}


/* ==========================================
   PLAQUE
   ========================================== */

.room4-plaque{
    position:relative;

    align-self:flex-end;

    margin-left:10px;
    margin-bottom:0;

    min-width:90px;
    width:90px;

    padding:6px 8px;

    background:#f4f1e9;

    border:1px solid #bdb8ae;

    box-shadow:
        0 8px 20px rgba(0,0,0,.18);

    font-family:Arial, Helvetica, sans-serif;

    line-height:1.2;
}

.room4-plaque-title{
    font-size:14px;
    font-weight:bold;

    margin-bottom:4px;
}

.room4-plaque-technique{
    font-size:12px;

    margin-bottom:3px;
}

.room4-plaque-format{
    font-size:12px;
}


/* ==========================================
   ZID 3 — PLAQUE
   ========================================== */

.room4-wall3-artworks .room4-plaque{
    align-self:flex-end;

    transform:translateY(0);

    margin-left:10px;
}


/* ==========================================
   NAVIGACIJA
   ========================================== */

.room4-navigation{
    position:fixed;

    left:50%;
    bottom:35px;

    transform:translateX(-50%);

    display:flex;

    gap:100px;

    z-index:1000;
}


/* ==========================================
   STRELICE
   ========================================== */

.room4-navigation button{
    appearance:none;

    border:0;
    padding:0;
    margin:0;

    background:none;

    font-family:Arial, Helvetica, sans-serif;

    font-size:65px;
    line-height:1;

    color:white;

    cursor:pointer;

    text-shadow:
        0 5px 15px rgba(0,0,0,.8);
}

.room4-navigation button:hover{
    transform:scale(1.08);
}


/* ==========================================
   PRIJELAZ
   ========================================== */

.room4-overlay{
    position:fixed;
    inset:0;

    background:white;

    opacity:0;

    pointer-events:none;

    z-index:900;

    transition:opacity .4s ease;
}

.room4-overlay.active{
    opacity:.85;
}


/* ==========================================
   ZID 1 REFLEKTORI
   ========================================== */

.room4-wall1-spot{
    position:absolute;

    top:-18px;

    width:22px;
    height:15px;

    background:
        linear-gradient(
            to bottom,
            #3b3b3b 0%,
            #111 45%,
            #050505 100%
        );

    border-radius:3px 3px 18px 18px;

    box-shadow:
        inset 2px 3px 5px rgba(255,255,255,.12),
        0 10px 18px rgba(0,0,0,.55);

    z-index:600;

    pointer-events:none;
}

.room4-wall1-spot::after{
    content:"";

    position:absolute;

    bottom:-6px;
    left:50%;

    transform:translateX(-50%);

    width:24px;
    height:12px;

    background:
        radial-gradient(
            ellipse at center,
            #222,
            #000 70%
        );

    border-radius:0 0 50% 50%;
}

.room4-wall1-spot-1{
    left:11%;
}

.room4-wall1-spot-2{
    left:45%;
    transform:translateX(-50%);
}

.room4-wall1-spot-3{
    left:80%;
}


/* ==========================================
   ZID 2 REFLEKTORI
   ========================================== */

.room4-wall2-spot{
    position:absolute;

    top:-18px;

    width:22px;
    height:15px;

    background:
        linear-gradient(
            to bottom,
            #3b3b3b 0%,
            #111 45%,
            #050505 100%
        );

    border-radius:3px 3px 18px 18px;

    box-shadow:
        inset 2px 3px 5px rgba(255,255,255,.12),
        0 10px 18px rgba(0,0,0,.55);

    z-index:600;

    pointer-events:none;
}

.room4-wall2-spot::after{
    content:"";

    position:absolute;

    bottom:-6px;
    left:50%;

    transform:translateX(-50%);

    width:24px;
    height:12px;

    background:
        radial-gradient(
            ellipse at center,
            #222,
            #000 70%
        );

    border-radius:0 0 50% 50%;
}

.room4-wall2-spot-1{
    left:17%;
    transform:translateX(-50%);
}

.room4-wall2-spot-2{
    left:63%;
    transform:translateX(-50%);
}

.room4-wall2-spot-3{
    display:none;
}



/* ==========================================
   ZID 3 REFLEKTORI
   ========================================== */

.room4-wall3-spot{
    position:absolute;

    top:-18px;

    width:22px;
    height:15px;

    background:
        linear-gradient(
            to bottom,
            #3b3b3b 0%,
            #111 45%,
            #050505 100%
        );

    border-radius:3px 3px 18px 18px;

    box-shadow:
        inset 2px 3px 5px rgba(255,255,255,.12),
        0 10px 18px rgba(0,0,0,.55);

    z-index:600;

    pointer-events:none;
}

.room4-wall3-spot::after{
    content:"";

    position:absolute;

    bottom:-6px;
    left:50%;

    transform:translateX(-50%);

    width:24px;
    height:12px;

    background:
        radial-gradient(
            ellipse at center,
            #222,
            #000 70%
        );

    border-radius:0 0 50% 50%;
}

.room4-wall3-spot-1{
    left:18%;

    transform:translateX(-50%);
}

.room4-wall3-spot-2{
    left:75%;

    transform:translateX(-50%);
}


/* ==========================================
   ZID 4 REFLEKTORI
   ========================================== */

.room4-wall4-spot{
    position:absolute;

    top:-18px;

    width:22px;
    height:15px;

    display:block;
    visibility:visible;
    opacity:1;

    background:
        linear-gradient(
            to bottom,
            #3b3b3b 0%,
            #111 45%,
            #050505 100%
        );

    border-radius:3px 3px 18px 18px;

    box-shadow:
        inset 2px 3px 5px rgba(255,255,255,.12),
        0 10px 18px rgba(0,0,0,.55);

    z-index:600;

    pointer-events:none;
}

.room4-wall4-spot::after{
    content:"";

    position:absolute;

    display:block;

    bottom:-6px;
    left:50%;

    width:24px;
    height:12px;

    transform:translateX(-50%);

    background:
        radial-gradient(
            ellipse at center,
            #222,
            #000 70%
        );

    border-radius:0 0 50% 50%;
}

.room4-wall4-spot-1{
    left:12%;
    transform:translateX(-50%);
}

.room4-wall4-spot-2{
    left:49%;
    transform:translateX(-50%);
}

.room4-wall4-spot-3{
    left:83%;
    transform:translateX(-50%);
}


/* ==========================================
   SNOP SVJETLA — ZID 1
   ========================================== */

.room4-wall1-spot-light{
    position:absolute;

    left:50%;
    bottom:-170px;

    transform:translateX(-50%);

    width:130px;
    height:170px;

    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,.95) 0%,
            rgba(255,255,255,.65) 18%,
            rgba(255,255,255,.32) 40%,
            rgba(255,255,255,.12) 65%,
            transparent 100%
        );

    clip-path:
        polygon(
            44% 0%,
            56% 0%,
            100% 100%,
            0% 100%
        );

    filter:blur(7px);

    opacity:.75;

    pointer-events:none;

    z-index:590;
}


/* ==========================================
   SNOP SVJETLA — ZID 2
   ========================================== */

.room4-wall2-spot::before{
    content:"";

    position:absolute;

    left:50%;
    bottom:-170px;

    transform:translateX(-50%);

    width:130px;
    height:170px;

    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,.95) 0%,
            rgba(255,255,255,.65) 18%,
            rgba(255,255,255,.32) 40%,
            rgba(255,255,255,.12) 65%,
            transparent 100%
        );

    clip-path:
        polygon(
            44% 0%,
            56% 0%,
            100% 100%,
            0% 100%
        );

    filter:blur(7px);

    opacity:.75;

    pointer-events:none;

    z-index:-1;
}


/* ==========================================
   SNOP SVJETLA — ZID 3
   ========================================== */

.room4-wall3-spot::before{
    content:"";

    position:absolute;

    top:12px;
    left:50%;

    transform:translateX(-50%);

    width:110px;
    height:230px;

    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,.42) 0%,
            rgba(255,255,255,.32) 18%,
            rgba(255,255,255,.22) 40%,
            rgba(255,255,255,.12) 65%,
            rgba(255,255,255,.04) 82%,
            transparent 100%
        );

    clip-path:
        polygon(
            35% 0%,
            65% 0%,
            100% 100%,
            0% 100%
        );

    filter:blur(11px);

    opacity:.9;

    pointer-events:none;

    z-index:-1;
}


/* ==========================================
   SNOP SVJETLA — ZID 4
   ========================================== */

.room4-wall4-spot::before{
    content:"";

    position:absolute;

    top:12px;
    left:50%;

    transform:translateX(-50%);

    width:110px;
    height:230px;

    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,.42) 0%,
            rgba(255,255,255,.32) 18%,
            rgba(255,255,255,.22) 40%,
            rgba(255,255,255,.12) 65%,
            rgba(255,255,255,.04) 82%,
            transparent 100%
        );

    clip-path:
        polygon(
            35% 0%,
            65% 0%,
            100% 100%,
            0% 100%
        );

    filter:blur(11px);

    opacity:.9;

    pointer-events:none;

    z-index:-1;
}




/* ==========================================
   FULLSCREEN VIEWER
   ========================================== */

#room4Fullscreen{
    position:fixed;
    inset:0;

    width:100vw;
    height:100vh;

    display:none;

    align-items:center;
    justify-content:center;

    background:rgba(255,255,255,.70);

    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);

    z-index:999999;

    cursor:pointer;
}

#room4Fullscreen.active{
    display:flex;
}


/* ==========================================
   FRAME
   ========================================== */

#room4FullscreenFrame{
    position:relative;

    display:flex;

    align-items:flex-end;
    justify-content:center;

    max-width:95vw;
    max-height:90vh;
}


/* ==========================================
   FULLSCREEN SLIKA
   ========================================== */

#room4FullscreenImage{
    display:block;

    max-width:80vw;
    max-height:90vh;

    width:auto;
    height:auto;

    object-fit:contain;

    box-shadow:
        0 30px 80px rgba(0,0,0,.40);

    cursor:pointer;
}


/* ==========================================
   FULLSCREEN LABELA — KOMPAKTNA VERZIJA
========================================== */

#room4FullscreenLabel{
    position:absolute;

    left:calc(100% + 10px);
    bottom:15px;

    width:120px;
    max-width:120px;

    padding:10px 8px;

    background:#ffffff;

    border:1px solid #222;

    text-align:center;

    font-family:Arial, Helvetica, sans-serif;

    font-size:14px;
    line-height:1.3;

    overflow-wrap:anywhere;
    word-wrap:break-word;

    box-shadow:
        0 10px 30px rgba(0,0,0,.25);

    pointer-events:none;
}

#room4FullscreenTitle{
    font-size:15px;
    font-weight:bold;

    margin-bottom:6px;

    overflow-wrap:anywhere;
}

#room4FullscreenInfo{
    font-size:12px;
    color:#444;

    line-height:1.4;

    overflow-wrap:anywhere;
}



/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width:900px){

    .room4-image{
        width:170px;
    }

    .room4-wall1-artworks,
    .room4-wall2-artworks{
        gap:25px;
    }

    .room4-wall3-artworks{
        gap:25px;
    }

    .room4-wall3-artworks .room4-image{
        width:210px;
    }

    .room4-wall3-artworks .room4-door-to-room5{
        flex-basis:180px;
        width:180px;
    }

    .room4-wall4-artworks{
        gap:25px;
    }

    .room4-wall4-artworks .room4-image{
        width:220px;
    }

    .room4-door{
        width:180px;
    }

    #room4FullscreenImage{
        max-width:78vw;
        max-height:80vh;
    }

    #room4FullscreenLabel{
        left:50%;
        bottom:-95px;

        transform:translateX(-50%);

        width:160px;

        padding:10px;

        font-size:14px;
    }

    #room4FullscreenTitle{
        font-size:15px;
    }

    #room4FullscreenInfo{
        font-size:12px;
    }
}


@media (max-width:600px){

    .room4-image{
        width:110px;
    }

    .room4-wall1-artworks,
    .room4-wall2-artworks{
        gap:12px;
    }

    .room4-wall3-artworks{
        gap:12px;
    }

    .room4-wall3-artworks .room4-image{
        width:125px;
    }

    .room4-wall3-artworks .room4-door-to-room5{
        flex-basis:140px;
        width:140px;
    }

    .room4-wall4-artworks{
        gap:15px;
    }

    .room4-wall4-artworks .room4-image{
        width:110px;
    }

    .room4-door{
        width:140px;
        height:70%;
    }

    .room4-navigation{
        bottom:10px;
        gap:60px;
    }

    .room4-navigation button{
        font-size:52px;
    }
}


.room4-door-label {
    position: absolute;

    top: 20%;
    left: 50%;

    transform: translate(-50%, -50%);

    color: #ffffff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 20px;

    font-weight: normal;

    letter-spacing: 2px;

    text-align: center;

    white-space: nowrap;

    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.8);

    pointer-events: none;

    z-index: 10;
}

/* ==========================================
   ZID 1 — PODIGNI LABELE UZ SLIKE
   ========================================== */

.room4-wall1-artworks .room4-plaque{
    align-self:flex-end;

    margin-left:10px;
    margin-bottom:110px;
}


/* NEOVISNO POMICANJE PLOCICA ZIDA 1 */

/* Pločica uz sliku 1 — Politeo 24 */
.room4-wall1-artworks .room4-plaque:nth-of-type(2) {
    position: relative;
    left: 0px;
}

/* Pločica uz sliku 2 — Politeo 25 */
.room4-wall1-artworks .room4-plaque:nth-of-type(4) {
    position: relative;
    left: -20px;
}

/* Pločica uz sliku 3 — Politeo 26 */
.room4-wall1-artworks .room4-plaque:nth-of-type(6) {
    position: relative;
    left: -10px;
}



/* ==========================================================
   CROARTIS ROOM 4
   MOBILE RESPONSIVE – NOVI RASPORED
   DESKTOP SE NE MIJENJA
   SAMO ROOM 4
========================================================== */


/* ==========================================================
   1. MOBITEL – OKOMITI POLOŽAJ
   VRATA IZNAD SLIKA
   SLIKE JEDNA ISPOD DRUGE
========================================================== */

@media screen and (max-width: 600px)
and (orientation: portrait) {

    html,
    body {
        width: 100%;
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .room4-scene {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
    }

    .room4-view {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
        display: none;
        flex-direction: column;
    }

    .room4-view.active {
        display: flex;
    }


    /* STROP */

    .room4-ceiling {
        flex: 0 0 7vh;
        width: 100%;
        height: 7vh;
    }


    /* ZID */

    .room4-wall {
        position: relative;
        flex: none;
        width: 100%;
        height: auto;
        min-height: 0;

        display: flex;
        flex-direction: column;
        align-items: center;

        overflow: visible;
        padding-bottom: 35px;
    }


    /* POD */

    .room4-floor {
        position: relative;
        flex: 0 0 9vh;
        width: 100%;
        height: 9vh;
    }


    /* ==========================================
       VRATA – MALI NAVIGACIJSKI BLOK
       IZNAD UMJETNINA
    ========================================== */

    .room4-door {
        position: relative;

        top: auto;
        right: auto;
        bottom: auto;
        left: auto;

        transform: none;

        display: block;

        width: fit-content;
        min-width: 125px;
        max-width: 85%;

        height: auto;

        margin: 18px auto 22px;
        padding: 9px 18px;

        background: linear-gradient(
            to right,
            #939290,
            #cbc9c4 40%,
            #cbc9c4 70%,
            #939290
        );

        border: 2px solid #dedbd3;

        box-shadow:
            0 5px 15px rgba(0,0,0,.20),
            inset 0 0 12px rgba(0,0,0,.10);

        z-index: 50;
        cursor: pointer;
    }

    .room4-door-label {
        position: relative;

        top: auto;
        left: auto;

        transform: none;

        display: block;

        width: 100%;

        color: #fff;

        font-size: 12px;
        letter-spacing: 2px;
        line-height: 1.2;

        text-align: center;
        white-space: nowrap;

        text-shadow:
            0 1px 3px rgba(0,0,0,.65);

        z-index: 31;
    }

    .room4-door-hotspot {
        position: absolute;
        inset: 0;
        z-index: 30;
    }


    /* ==========================================
       ZAJEDNIČKI RASPORED UMJETNINA
    ========================================== */

    .room4-artworks {
        position: relative;

        top: auto;
        right: auto;
        bottom: auto;
        left: auto;

        width: 100%;
        height: auto;

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: flex-start;

        gap: 10px;

        padding: 15px 12px 30px;

        overflow: visible;
    }


    /* ==========================================
       SLIKE – ZAJEDNIČKA POSTAVKA
    ========================================== */

    .room4-image {
        display: block;

        width: auto;
        max-width: 88vw;
        max-height: none;

        height: auto;

        margin: 0 auto;

        object-fit: contain;

        transform: none;
    }


    /* ==========================================
       UMJETNINE S OMOTOM
    ========================================== */

    .room4-artwork {
        position: relative;

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: flex-start;

        width: 100%;
        max-width: 100%;

        flex: none;

        gap: 7px;

        margin: 0 auto 25px;
        padding: 0;
    }


    /* ==========================================
       PLOČICE
       KOMPAKTNE – ISPOD SLIKA
    ========================================== */

    .room4-plaque {
        position: relative;

        display: table;

        align-self: center;

        width: fit-content;
        min-width: 0;
        max-width: 88vw;

        margin: 5px auto 20px;
        padding: 3px 6px;

        background: #f4f1e9;

        border: 1px solid #bdb8ae;

        box-shadow:
            0 4px 12px rgba(0,0,0,.12);

        text-align: center;

        line-height: 1.15;

        overflow-wrap: anywhere;
        box-sizing: border-box;
    }

    .room4-plaque-title {
        font-size: 12px;
        margin-bottom: 3px;
    }

    .room4-plaque-technique {
        font-size: 10px;
        margin-bottom: 2px;
    }

    .room4-plaque-format {
        font-size: 10px;
    }


    /* ==========================================
       ZID 1 – TRI SLIKE
       DIREKTNO U HTML-U
    ========================================== */

    .room4-wall1-artworks {
        position: relative;

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: flex-start;

        width: 100%;
        height: auto;

        gap: 8px;

        padding: 20px 12px 25px;
    }

    .room4-wall1-artworks .room4-image {
        position: relative;

        left: auto;

        width: auto;
        max-width: 88vw;
        max-height: none;

        margin: 0 auto;
    }

    .room4-wall1-artworks .room4-plaque {
        position: relative;

        left: auto;

        align-self: center;

        margin: 5px auto 25px;
    }


    /* ==========================================
       ZID 2 – DVIJE SLIKE
    ========================================== */

    .room4-wall2-artworks {
        position: relative;

        top: auto;
        left: auto;
        right: auto;
        bottom: auto;

        width: 100%;
        height: auto;

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: flex-start;

        gap: 20px;

        padding: 15px 12px 25px;
    }

    .room4-wall2-artworks .room4-artwork {
        width: 100%;
        max-width: 100%;

        flex: none;

        flex-direction: column;
        align-items: center;

        margin: 0 auto 25px;
    }

    .room4-wall2-artworks .room4-image {
        width: auto;
        max-width: 88vw;
        max-height: none;
    }


    /* ==========================================
       ZID 3 – DVIJE SLIKE
    ========================================== */

    .room4-wall3-artworks {
        position: relative;

        top: auto;
        left: auto;
        right: auto;
        bottom: auto;

        width: 100%;
        height: auto;

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: flex-start;

        gap: 20px;

        padding: 15px 12px 25px;

        margin: 0;
    }

    .room4-wall3-artworks .room4-artwork {
        position: relative;

        width: 100%;
        max-width: 100%;

        flex: none;

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: flex-start;

        gap: 7px;

        margin: 0 auto 25px;
    }

    .room4-wall3-artworks .room4-image {
        width: auto;
        max-width: 88vw;
        max-height: none;
    }

    .room4-wall3-artworks .room4-plaque {
        align-self: center;
        margin: 5px auto 20px;
    }


    /* ==========================================
       ZID 4 – TRI SLIKE
    ========================================== */

    .room4-wall4-artworks {
        position: relative;

        top: auto;
        left: auto;
        right: auto;
        bottom: auto;

        width: 100%;
        height: auto;

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: flex-start;

        gap: 20px;

        padding: 15px 12px 25px;
    }

    .room4-wall4-artworks .room4-artwork {
        width: 100%;
        max-width: 100%;

        flex: none;

        display: flex;
        flex-direction: column;

        align-items: center;

        margin: 0 auto 25px;
    }

    .room4-wall4-artworks .room4-image {
        width: auto;
        max-width: 88vw;
        max-height: none;
    }


    /* ==========================================
       REFLEKTORI
       NE SMIJU ZAUZIMATI MJESTO U RASPOREDU
    ========================================== */

    .room4-wall1-spot,
    .room4-wall2-spot,
    .room4-wall3-spot,
    .room4-wall4-spot {
        position: absolute;

        top: -12px;

        z-index: 600;
        pointer-events: none;
    }

    .room4-wall1-spot-light {
        height: 100px;
        bottom: -100px;
    }


    /* ==========================================
       NAVIGACIJA
    ========================================== */

    .room4-navigation {
        position: fixed;

        left: 50%;
        bottom: 5px;

        transform: translateX(-50%);

        display: flex;

        justify-content: center;
        align-items: center;

        gap: 55px;

        z-index: 1000;
    }

    .room4-navigation button {
        font-size: 42px;
    }


    /* FULLSCREEN */

    #room4FullscreenImage {
        max-width: 90vw;
        max-height: 75vh;
    }

    #room4FullscreenLabel {
        left: 50%;
        bottom: -85px;

        transform: translateX(-50%);

        width: 150px;
        max-width: 80vw;

        padding: 7px;
        font-size: 12px;
    }

}


/* ==========================================================
   CROARTIS ROOM 4
   MOBILE – ZAVRŠNO DOTJERIVANJE
   DESKTOP SE NE MIJENJA
========================================================== */


/* ==========================================================
   1. OKOMITI MOBITEL
   FIKSNA GALERIJA – BEZ SKROLANJA
========================================================== */

@media screen and (max-width:600px)
and (orientation:portrait){

    html,
    body{
        width:100%;
        height:100%;
        overflow:hidden !important;
    }

    .room4-scene{
        position:relative;
        width:100%;
        height:100vh;
        height:100dvh;
        overflow:hidden;
    }

    .room4-view{
        position:absolute;
        inset:0;
        width:100%;
        height:100%;
        display:none;
        flex-direction:column;
        overflow:hidden;
    }

    .room4-view.active{
        display:flex;
    }


    /* STROP */

    .room4-ceiling{
        flex:0 0 7%;
        height:7%;
        width:100%;
    }


    /* ZID */

    .room4-wall{
        position:relative;
        flex:0 0 83%;
        width:100%;
        height:83%;
        min-height:0;

        display:flex;
        flex-direction:column;
        align-items:stretch;

        overflow:hidden;
    }


    /* POD */

    .room4-floor{
        flex:0 0 10%;
        height:10%;
        width:100%;
    }


    /* VRATA – MALO VIŠA */

    .room4-door{
        position:relative !important;

        top:auto !important;
        right:auto !important;
        bottom:auto !important;
        left:auto !important;

        transform:none !important;

        order:0;

        flex:0 0 8%;
        width:100% !important;
        max-width:100%;

        height:8% !important;
        min-height:32px;
        max-height:46px;

        margin:3px 0 5px;
        padding:3px 10px;

        border:2px solid #dedbd3;

        box-shadow:0 3px 9px rgba(0,0,0,.18);

        z-index:700;

        display:flex;
        align-items:center;
        justify-content:center;
    }

    .room4-door-label{
        position:relative;
        top:auto;
        left:auto;
        transform:none;

        display:block;
        width:100%;

        color:#fff;
        font-size:11px;
        letter-spacing:2px;

        text-align:center;
        white-space:nowrap;

        z-index:701;
    }

    .room4-door::before{
        content:none !important;
    }


    /* UMJETNINE – SVE CENTRIRANO */

    .room4-artworks{
        position:relative !important;
        inset:auto !important;

        order:1;

        flex:1 1 auto;

        width:100%;
        height:auto;
        min-height:0;

        display:flex;
        flex-direction:column;

        align-items:center;
        justify-content:space-evenly;

        gap:0;
        padding:2px 8px;

        overflow:hidden;
    }

    .room4-artwork{
        position:relative;

        flex:0 1 auto;

        width:100%;
        max-width:100%;
        min-height:0;

        display:flex;
        flex-direction:column;

        align-items:center;
        justify-content:center;

        gap:2px;

        margin:0;
        padding:0;
    }


    /* SLIKE – MALO VEĆE */

    .room4-image{
        display:block;

        width:auto !important;
        height:auto;

        max-width:82vw;
        max-height:17vh;

        object-fit:contain;

        margin:0 auto;
    }


    /* PLOČICE – IZGLED OSTaje ISTI */

    .room4-plaque{
        position:relative;

        display:table;
        align-self:center;

        width:fit-content !important;
        min-width:0 !important;
        max-width:90%;

        margin:2px auto 5px !important;

        padding:2px 5px;

        font-size:9px;
        line-height:1.05;

        text-align:center;

        box-shadow:0 2px 5px rgba(0,0,0,.12);

        box-sizing:border-box;
    }

    .room4-plaque-title{
        font-size:10px;
        margin:0 0 1px;
    }

    .room4-plaque-technique,
    .room4-plaque-format{
        font-size:8px;
        margin:0;
        line-height:1.05;
    }


    /* ZID 1 – TRI SLIKE */

    .room4-wall1-artworks{
        display:flex !important;
        flex-direction:column !important;

        justify-content:space-evenly;
        align-items:center;

        gap:0;
        padding:2px 5px;
    }

    .room4-wall1-artworks .room4-image{
        max-width:82vw;
        max-height:17vh;

        position:relative;
        left:auto;
    }

    .room4-wall1-artworks .room4-plaque{
        position:relative;
        left:auto;

        align-self:center;
        margin:2px auto 4px !important;
    }


    /* ZIDOVI 2, 3 I 4 */

    .room4-wall2-artworks,
    .room4-wall3-artworks,
    .room4-wall4-artworks{
        position:relative !important;
        inset:auto !important;

        flex:1 1 auto;

        width:100%;
        height:auto;

        display:flex !important;
        flex-direction:column !important;

        align-items:center;
        justify-content:space-evenly;

        gap:0;
        padding:2px 5px;
    }

    .room4-wall2-artworks .room4-artwork,
    .room4-wall3-artworks .room4-artwork,
    .room4-wall4-artworks .room4-artwork{
        width:100%;
        max-width:100%;

        flex:0 1 auto;

        display:flex;
        flex-direction:column;

        align-items:center;
        justify-content:center;

        margin:0;
        padding:0;
    }


    /* ZID 2 I 3 – DVIJE VEĆE SLIKE */

    .room4-wall2-artworks .room4-image,
    .room4-wall3-artworks .room4-image{
        width:auto !important;

        max-width:82vw;
        max-height:30vh;
    }


    /* ZID 4 – TRI SLIKE */

    .room4-wall4-artworks .room4-image{
        width:auto !important;

        max-width:82vw;
        max-height:17vh;
    }


    /* ======================================================
       REFLEKTORI – OKOMITI MOBITEL

       TRI SLIKE: REFLEKTORI U JEDNOM REDU IZNAD SLIKA
       DVIJE SLIKE: REFLEKTORI ISPOD VRATA, IZNAD SLIKA
    ====================================================== */

    .room4-wall1-spot,
    .room4-wall2-spot,
    .room4-wall3-spot,
    .room4-wall4-spot{
        position:absolute !important;

        display:block !important;

        width:18px;
        height:12px;

        z-index:900 !important;

        pointer-events:none;
    }


    /* ZID 1 – TRI REFLEKTORA U JEDNOM REDU */

    .room4-wall1-spot-1{
        top:1%;
        left:16%;
        transform:translateX(-50%);
    }

    .room4-wall1-spot-2{
        top:1%;
        left:50%;
        transform:translateX(-50%);
    }

    .room4-wall1-spot-3{
        top:1%;
        left:84%;
        transform:translateX(-50%);
    }


    /* ZID 2 – DVA REFLEKTORA ISPOD VRATA */

    .room4-wall2-spot-1{
        top:2%;
        left:25%;
        transform:translateX(-50%);
    }

    .room4-wall2-spot-2{
        top:2%;
        left:75%;
        transform:translateX(-50%);
    }


    /* ZID 3 – DVA REFLEKTORA ISPOD VRATA */

    .room4-wall3-spot-1{
        top:2%;
        left:25%;
        transform:translateX(-50%);
    }

    .room4-wall3-spot-2{
        top:2%;
        left:75%;
        transform:translateX(-50%);
    }


    /* ZID 4 – TRI REFLEKTORA U JEDNOM REDU */

    .room4-wall4-spot-1{
        top:1%;
        left:16%;
        transform:translateX(-50%);
    }

    .room4-wall4-spot-2{
        top:1%;
        left:50%;
        transform:translateX(-50%);
    }

    .room4-wall4-spot-3{
        top:1%;
        left:84%;
        transform:translateX(-50%);
    }

    .room4-wall1-spot-light{
        display:none;
    }


    /* NAVIGACIJA */

    .room4-navigation{
        position:fixed;

        left:50%;
        bottom:2px;

        transform:translateX(-50%);

        display:flex;
        gap:55px;

        z-index:1000;
    }

    .room4-navigation button{
        font-size:36px;
    }


    /* FULLSCREEN */

    #room4FullscreenImage{
        max-width:90vw;
        max-height:75vh;
    }

    #room4FullscreenLabel{
        left:50%;
        bottom:-75px;

        transform:translateX(-50%);

        width:140px;
        padding:6px;

        font-size:11px;
    }
}



/* ==========================================================
   2. VODORAVNI MOBITEL
   POSTOJEĆI RASPORED ZADRŽAN
========================================================== */

@media screen and (max-width:900px)
and (orientation:landscape){

    html,
    body{
        width:100%;
        height:100%;
        overflow:hidden !important;
    }

    .room4-scene{
        position:relative;

        width:100vw;
        height:100vh;

        overflow:hidden;
    }

    .room4-view{
        position:absolute;
        inset:0;

        width:100%;
        height:100%;

        display:none;
        flex-direction:column;

        overflow:hidden;
    }

    .room4-view.active{
        display:flex;
    }


    /* STROP – ZID – POD */

    .room4-ceiling{
        flex:0 0 10%;
        height:10%;
    }

    .room4-wall{
        position:relative;

        flex:0 0 80%;

        width:100%;
        height:80%;

        overflow:visible;
    }

    .room4-floor{
        flex:0 0 10%;
        height:10%;
    }


    /* OSNOVNI RASPORED */

    .room4-artworks{
        position:absolute;

        inset:0;

        display:flex;

        align-items:center;
        justify-content:center;

        overflow:visible;
    }

    .room4-artwork{
        position:relative;

        display:flex;
        flex-direction:column;

        align-items:center;
        justify-content:center;

        flex:0 1 auto;

        min-width:0;

        gap:4px;

        margin:0;
        padding:0;
    }


    /* SLIKE */

    .room4-image{
        display:block;

        width:auto !important;
        height:auto;

        max-width:100%;
        max-height:48vh;

        object-fit:contain;

        margin:0 auto;
    }


    /* PLOČICE */

    .room4-plaque{
        position:relative;

        display:table;

        align-self:center;

        width:fit-content !important;
        min-width:0 !important;
        max-width:95%;

        margin:3px auto 0 !important;

        padding:2px 4px;

        font-size:clamp(6px,0.8vw,8px);
        line-height:1.05;

        text-align:center;

        box-sizing:border-box;
    }

    .room4-plaque-title{
        font-size:clamp(7px,0.9vw,10px);
        margin-bottom:2px;
    }

    .room4-plaque-technique,
    .room4-plaque-format{
        font-size:clamp(6px,0.75vw,8px);
        margin:0;
    }


    /* REFLEKTORI – VODORAVNO
       OVAJ RASPORED OSTAVLJAMO NETAKNUT
    */

    .room4-wall1-spot,
    .room4-wall2-spot,
    .room4-wall3-spot,
    .room4-wall4-spot{
        position:absolute !important;

        top:-18px;

        z-index:950 !important;

        pointer-events:none;
    }


    /* ZID 1 – TRI SLIKE
       SLIKE OSTAJU KAKVE JESU
       PLOČICE SE PODIŽU ODMAH ISPOD SLIKA
    */

    .room4-wall1-artworks{
        position:absolute;

        inset:0;

        display:grid;

        grid-template-columns:repeat(3,minmax(0,1fr));

        /* DVA REDA – SLIKE I ODMAH ISPOD NJIH PLOČICE */
        grid-template-rows:auto auto;

        grid-template-areas:
            "slika1 slika2 slika3"
            "plocica1 plocica2 plocica3";

        align-content:center;
        align-items:center;
        justify-items:center;

        gap:2px;

        width:100%;
        height:100%;

        padding:0 2% 4px;
    }

    .room4-wall1-artworks > .room4-image:nth-child(2){
        grid-area:slika1;

        position:relative;
        left:auto;

        align-self:end;

        max-width:90%;
        max-height:48vh;
    }

    .room4-wall1-artworks > .room4-plaque:nth-child(3){
        grid-area:plocica1;
        align-self:start;
        margin:2px auto 0 !important;
    }

    .room4-wall1-artworks > .room4-image:nth-child(5){
        grid-area:slika2;

        position:relative;
        left:auto;

        align-self:end;

        max-width:90%;
        max-height:48vh;
    }

    .room4-wall1-artworks > .room4-plaque:nth-child(6){
        grid-area:plocica2;
        align-self:start;
        margin:2px auto 0 !important;
    }

    .room4-wall1-artworks > .room4-image:nth-child(8){
        grid-area:slika3;

        position:relative;
        left:auto;

        align-self:end;

        max-width:90%;
        max-height:48vh;
    }

    .room4-wall1-artworks > .room4-plaque:nth-child(9){
        grid-area:plocica3;
        align-self:start;
        margin:2px auto 0 !important;
    }

    .room4-wall1-spot-1{
        left:16%;
        transform:translateX(-50%);
    }

    .room4-wall1-spot-2{
        left:50%;
        transform:translateX(-50%);
    }

    .room4-wall1-spot-3{
        left:84%;
        transform:translateX(-50%);
    }


    /* ZID 2 – VRATA LIJEVO, SLIKE DESNO
       NE MIJENJAMO RASPORED
    */

    .room4-view-2 .room4-door-to-room5{
        position:absolute;

        top:0;
        bottom:0;

        left:1%;
        right:auto;

        width:13%;
        max-width:110px;

        height:100%;

        transform:none;

        z-index:30;
    }

    .room4-wall2-artworks{
        position:absolute;

        top:0;
        right:2%;
        bottom:0;
        left:16%;

        width:auto;
        height:100%;

        display:flex;

        flex-direction:row;

        align-items:center;
        justify-content:space-around;

        gap:2%;

        padding:2px;
    }

    .room4-wall2-artworks .room4-artwork{
        flex:0 1 48%;

        width:48%;
        max-width:48%;

        min-width:0;
    }

    .room4-wall2-artworks .room4-image{
        max-width:100%;
        max-height:48vh;
    }

    .room4-wall2-spot-1{
        left:25%;
        transform:translateX(-50%);
    }

    .room4-wall2-spot-2{
        left:75%;
        transform:translateX(-50%);
    }


    /* ZID 3 – VRATA U SREDINI */

    .room4-view-3 .room4-door-to-room3{
        position:absolute;

        top:0;
        bottom:0;

        left:50%;
        right:auto;

        transform:translateX(-50%);

        width:13%;
        max-width:110px;

        height:100%;

        z-index:30;
    }

    .room4-wall3-artworks{
        position:absolute;

        inset:0;

        width:100%;
        height:100%;

        display:flex;

        flex-direction:row;

        align-items:center;
        justify-content:space-between;

        padding:2px 2%;
    }

    .room4-wall3-artworks .room4-artwork-29{
        flex:0 1 37%;

        width:37%;
        max-width:37%;
    }

    .room4-wall3-artworks .room4-artwork-30{
        flex:0 1 37%;

        width:37%;
        max-width:37%;
    }

    .room4-wall3-artworks .room4-image{
        max-width:100%;
        max-height:48vh;
    }

    .room4-wall3-spot-1{
        left:24%;
        transform:translateX(-50%);
    }

    .room4-wall3-spot-2{
        left:76%;
        transform:translateX(-50%);
    }


    /* ZID 4 – TRI SLIKE */

    .room4-wall4-artworks{
        position:absolute;

        inset:0;

        width:100%;
        height:100%;

        display:flex;

        flex-direction:row;

        align-items:center;
        justify-content:space-around;

        gap:2%;

        padding:2px 2%;
    }

    .room4-wall4-artworks .room4-artwork{
        flex:0 1 31%;

        width:31%;
        max-width:31%;

        min-width:0;
    }

    .room4-wall4-artworks .room4-image{
        max-width:100%;
        max-height:48vh;
    }

    .room4-wall4-spot-1{
        left:16%;
        transform:translateX(-50%);
    }

    .room4-wall4-spot-2{
        left:50%;
        transform:translateX(-50%);
    }

    .room4-wall4-spot-3{
        left:84%;
        transform:translateX(-50%);
    }


    /* NATPISI VRATA */

    .room4-door-label{
        position:absolute;

        top:20%;
        left:50%;

        transform:translate(-50%,-50%);

        width:100%;

        color:#fff;

        font-size:clamp(7px,1vw,11px);
        letter-spacing:1px;

        text-align:center;
        white-space:nowrap;

        z-index:35;
    }

    .room4-door::before{
        content:none !important;
    }


    /* NAVIGACIJA */

    .room4-navigation{
        position:fixed;

        left:50%;
        bottom:3px;

        transform:translateX(-50%);

        display:flex;

        gap:40px;

        z-index:1000;
    }

    .room4-navigation button{
        font-size:34px;
    }


    /* STRElice – SAMO NA ZIDU 3
       POMAKNUTE IZVAN VRATA
    */

    .room4-scene:has(.room4-view-3.active) .room4-navigation{
        width:100%;
        left:0;
        transform:none;

        justify-content:space-between;

        padding:0 8%;
        box-sizing:border-box;
    }


    /* FULLSCREEN */

    #room4FullscreenImage{
        max-width:78vw;
        max-height:78vh;
    }

    #room4FullscreenLabel{
        left:50%;
        bottom:-80px;

        transform:translateX(-50%);

        width:140px;
        padding:6px;
    }
}



/* ==========================================================
   ROOM 4 – OKOMITI MOBITEL
   RAZMAK IZMEĐU REFLEKTORA I SLIKA
   VODORAVNI RASPORED SE NE MIJENJA
========================================================== */

@media screen and (max-width:600px)
and (orientation:portrait){

    /* ZIDOVI S TRI SLIKE – 1 I 4 */

    .room4-wall1-artworks,
    .room4-wall4-artworks{
        padding-top:28px !important;
        box-sizing:border-box;
    }

    .room4-wall1-spot-1,
    .room4-wall1-spot-2,
    .room4-wall1-spot-3,
    .room4-wall4-spot-1,
    .room4-wall4-spot-2,
    .room4-wall4-spot-3{
        top:4px !important;
    }


    /* ZIDOVI S DVIJE SLIKE – 2 I 3 */

    .room4-wall2-artworks,
    .room4-wall3-artworks{
        padding-top:28px !important;
        box-sizing:border-box;
    }

    .room4-wall2-spot-1,
    .room4-wall2-spot-2,
    .room4-wall3-spot-1,
    .room4-wall3-spot-2{
        top:4px !important;
    }

}

/* ROOM 4 – OKOMITI MOBITEL – ZID 3 */

@media screen and (max-width:600px)
and (orientation:portrait){

    .room4-wall3-spot-1{
        left:10% !important;
        top:4px !important;
        transform:translateX(-50%) !important;
    }

    .room4-wall3-spot-2{
        left:90% !important;
        top:4px !important;
        transform:translateX(-50%) !important;
    }

}

/* ROOM 4 – VODORAVNI MOBITEL – ZID 3 */

@media screen and (max-width:900px)
and (orientation:landscape){

    .room4-wall3-spot-1{
        left:20% !important;
        transform:translateX(-50%) !important;
    }

    .room4-wall3-spot-2{
        left:80% !important;
        transform:translateX(-50%) !important;
    }

}


/* =====================================================
   ROOM 4 – WALL 1
   PORTRAIT MOBILE – CENTRIRANJE SLIKA I PLOČICA
   ===================================================== */

@media screen and (max-width:600px)
and (orientation:portrait){

    .room4-wall1-artworks{
        width:100% !important;
        align-items:center !important;
    }

    .room4-wall1-artworks .room4-image{
        align-self:center !important;
        margin-left:auto !important;
        margin-right:auto !important;
        left:auto !important;
    }

    .room4-wall1-artworks .room4-plaque{
        align-self:center !important;
        margin-left:auto !important;
        margin-right:auto !important;
        left:auto !important;
        text-align:center !important;
    }

}



/* =====================================================
   ROOM 4 – WALL 3
   PORTRAIT MOBILE – SLIKE I CIJELE PLOČICE
   ===================================================== */

@media screen and (max-width:600px)
and (orientation:portrait){

    .room4-wall3-artworks .room4-artwork-29,
    .room4-wall3-artworks .room4-artwork-30{
        display:flex !important;
        flex-direction:column !important;
        align-items:center !important;
        justify-content:flex-start !important;
        height:auto !important;
        max-height:none !important;
    }

    .room4-wall3-artworks .room4-image{
        max-width:70vw !important;
        max-height:22vh !important;
        width:auto !important;
        height:auto !important;
        object-fit:contain !important;
        display:block !important;
        margin:0 auto !important;
    }

    .room4-wall3-artworks .room4-plaque{
        position:relative !important;
        top:auto !important;
        bottom:auto !important;
        left:auto !important;
        right:auto !important;
        transform:none !important;
        width:fit-content !important;
        max-width:90% !important;
        height:auto !important;
        margin:4px auto 8px !important;
        text-align:center !important;
        box-sizing:border-box !important;
    }

}


/* =====================================================
   CROARTIS ROOM 4
   POVEĆANE NAVIGACIJSKE STRELICE
   ISTO KAO ROOM 3
===================================================== */

/* VODORAVNI MOBITEL */

@media screen and (max-width:900px)
and (orientation:landscape){

    .room4-navigation button{
        font-size:85px !important;
        padding:5px !important;
    }

    .room4-navigation button:hover{
        transform:scale(1.08);
    }

}


/* OKOMITI MOBITEL */

@media screen and (max-width:600px)
and (orientation:portrait){

    .room4-navigation button{
        font-size:85px !important;
        padding:5px !important;
    }

    .room4-navigation button:hover{
        transform:scale(1.08);
    }

}


/* =====================================================
   ROOM 4 – FULLSCREEN
   OKOMITI MOBITEL – SLIKA GORE, LABELA OSTАJE
===================================================== */

@media screen and (max-width:600px)
and (orientation:portrait){

    #room4FullscreenImage{
        position:relative !important;
        top:-7vh !important;
        transform:none !important;
    }

}


/* ROOM 4 – VEĆI NATPISI NA VRATIMA
   SAMO OKOMITI MOBITEL
*/

@media screen and (max-width:600px)
and (orientation:portrait){

    .room4-door-to-room3 .room4-door-label,
    .room4-door-to-room5 .room4-door-label{
        font-size:20px !important;
        letter-spacing:1px !important;
    }

}



/* =====================================================
   ROOM 4 – VODORAVNI MOBITEL
   ŠIRA VRATA ROOM 3 I ROOM 5
   UKLANJANJE OGRANIČENJA MAKSIMALNE ŠIRINE
   VISINA OSTAJE NEPROMIJENJENA
===================================================== */

@media screen and (max-width:900px)
and (orientation:landscape){

    .room4-view-2 .room4-door-to-room5,
    .room4-view-3 .room4-door-to-room3{

        width:150px !important;
        max-width:none !important;

    }
    
}

/* =====================================================
   ROOM 4 – VODORAVNI MOBITEL
   POVEĆANJE NATPISA NA VRATIMA ROOM 3 I ROOM 5
===================================================== */

@media screen and (max-width:900px)
and (orientation:landscape){

    .room4-view-2 .room4-door-to-room5 .room4-door-label,
    .room4-view-3 .room4-door-to-room3 .room4-door-label{

        font-size:24px !important;

    }

}



/* =====================================================
   CROARTIS ROOM 4
   FULLSCREEN – VODORAVNI MOBITEL
   SLIKA CIJELA, CENTRIRANA
   LABELA DESNO OD SLIKE
===================================================== */

@media screen and (max-width:900px)
and (orientation:landscape){

    /* OKVIR SLIKE */

    #room4FullscreenFrame{

        position:relative !important;

        display:flex !important;

        align-items:center !important;
        justify-content:center !important;

        max-width:calc(100vw - 170px) !important;
        max-height:calc(100dvh - 24px) !important;

        transform:translateX(-75px);

    }


    /* SLIKA – CIJELA I CENTRIRANA */

    #room4FullscreenImage{

        display:block !important;

        width:auto !important;
        height:auto !important;

        max-width:calc(100vw - 180px) !important;
        max-height:calc(100dvh - 24px) !important;

        object-fit:contain !important;

        margin:auto !important;

    }


    /* LABELA – DESNO OD SLIKE */

    #room4FullscreenLabel{

        position:absolute !important;

        left:calc(100% + 10px) !important;

        top:50% !important;
        bottom:auto !important;

        transform:translateY(-50%) !important;

        width:140px !important;
        max-width:140px !important;

        padding:8px !important;

        box-sizing:border-box !important;

        font-size:12px !important;

    }


    #room4FullscreenTitle{
        font-size:14px !important;
    }

    #room4FullscreenInfo{
        font-size:11px !important;
    }

}


/* ROOM 4 – BLAGO PODIZANJE SLIKE U FULLSCREEN PRIKAZU */

@media screen and (max-width:900px)
and (orientation:landscape){

    #room4FullscreenFrame{
        transform:translate(-75px, -10vh) !important;
    }

}



/* ==========================================
   ROOM 4 — UKLANJANJE SVJETLA SA SLIKA
   REFLEKTORI I SNOP SVJETLA OSTAJU NETAKNUTI
========================================== */

.room4-wall2-artworks .room4-artwork::after,
.room4-wall3-artworks .room4-artwork::after,
.room4-wall4-artworks .room4-artwork::after{
    background:none !important;
    filter:none !important;
    mix-blend-mode:normal !important;
    opacity:0 !important;
}




/* ==========================================
   ROOM 4 — ZID 1
   UKLANJANJE SVJETLA SA SLIKA
   REFLEKTORI OSTAJU NETAKNUTI
========================================== */

.room4-wall1-artworks .room4-image{
    filter:none !important;
}




/* =====================================================
   ROOM 4 – ZID 1
   MOBITEL – SREDNJA I DONJA SLIKA 1/3 MANJE
   DESKTOP NETAKNUT
===================================================== */


/* OKOMITI MOBITEL */

@media screen and (max-width:600px)
and (orientation:portrait){

    .room4-wall1-artworks > .room4-image:nth-child(5),
    .room4-wall1-artworks > .room4-image:nth-child(8){

        max-width:54.67vw !important;
        max-height:11.33vh !important;

        width:auto !important;
        height:auto !important;

        object-fit:contain !important;
    }

}


/* VODORAVNI MOBITEL */

@media screen and (max-width:900px)
and (orientation:landscape){

    .room4-wall1-artworks > .room4-image:nth-child(5),
    .room4-wall1-artworks > .room4-image:nth-child(8){

        max-width:60% !important;
        max-height:32vh !important;

        width:auto !important;
        height:auto !important;

        object-fit:contain !important;
    }

}



/* =====================================================
   ROOM 4 – ZID 4
   VODORAVNI MOBITEL
   SREDNJA SLIKA NAJVEĆA
   BOČNE SLIKE 40% MANJE
   ===================================================== */

@media screen and (max-width:900px)
and (orientation:landscape){

    .room4-wall4-artworks .room4-artwork-31 .room4-image,
    .room4-wall4-artworks .room4-artwork-33 .room4-image{

        max-width:60% !important;
        max-height:28.8vh !important;

        width:auto !important;
        height:auto !important;

        object-fit:contain !important;

    }

    .room4-wall4-artworks .room4-artwork-32 .room4-image{

        max-width:100% !important;
        max-height:48vh !important;

        width:auto !important;
        height:auto !important;

        object-fit:contain !important;

    }

}








