/* ==========================================
   CROARTIS ROOM 2
   FINAL CSS
   VIEW 1 + VIEW 2 + VIEW 3 + VIEW 4
========================================== */


/* ==========================================
   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 2 SCENE
========================================== */

.room2-scene{

    position:relative;

    width:100vw;
    height:100vh;

    perspective:1000px;

    overflow:hidden;

}


/* ==========================================
   ROOM 2 - VIEW 1
   ORIGINAL 3D ROOM
========================================== */

.room2{

    position:absolute;

    width:700px;
    height:450px;

    left:50%;
    top:50%;

    transform:
        translate(-50%,-50%);

    transform-style:preserve-3d;

    display:block;

    z-index:100;

}


/* ==========================================
   ROOM 2 3D ELEMENTS
========================================== */

.room2-floor,
.room2-ceiling,
.room2-front-wall,
.room2-left-wall,
.room2-right-wall{

    transform-style:preserve-3d;

}


/* ==========================================
   VIEW 1
   PREDNJI ZID
========================================== */

.room2-front-wall{

    position:absolute;

    width:700px;
    height:450px;

    left:0;
    top:0;

    background:

        linear-gradient(
            to bottom,
            #ffffff,
            #f3f0e8
        );

    transform:
        translateZ(0px);

    box-shadow:

        inset 0 0 100px rgba(0,0,0,.12);

}


/* ==========================================
   VIEW 1
   LIJEVI ZID
========================================== */

.room2-left-wall{

    position:absolute;

    width:600px;
    height:450px;

    left:-600px;
    top:0;

    background:

        linear-gradient(
            to right,
            #ddd8cf,
            #faf8f3
        );

    transform-origin:right center;

    transform:
        rotateY(90deg);

}


/* ==========================================
   VIEW 1
   DESNI ZID
========================================== */

.room2-right-wall{

    position:absolute;

    width:600px;
    height:450px;

    right:-600px;
    top:0;

    background:

        linear-gradient(
            to left,
            #ddd8cf,
            #faf8f3
        );

    transform-origin:left center;

    transform:
        rotateY(-90deg);

}


/* ==========================================
   ROOM 2 - POD
   3D GALERIJSKI PARKET
========================================== */

.room2-floor{

    position:absolute;

    width:700px;
    height:650px;

    left:0;
    top:450px;

    /*
       POD JE VEĆ U 3D PROSTORU
       I POČINJE TOČNO NA DONJEM RUBU ZIDA
    */

    transform-origin:top center;

    transform:
        rotateX(90deg);

    /*
       OSNOVNA BOJA PARKETA
    */

    background:

        linear-gradient(
            to bottom,
            #faf7f3 0%,
            #f5f1eb 45%,
            #e8e2d9 100%
        );

    /*
       DUBINA PROSTORA
    */

    box-shadow:

        inset 0 80px 100px
        rgba(255,255,255,.20),

        inset 0 -120px 140px
        rgba(0,0,0,.22);

    /*
       BITNO:
       pod ne smije prekriti slike
    */

    z-index:1;

}




/* ==========================================
   VIEW 1
   STROP
========================================== */

/* ==========================================
   ROOM 2 - VIEW 1
   STROP
========================================== */

.room2-ceiling{

    position:absolute;

    width:700px;
    height:600px;

    left:0;
    top:-600px;

    background:

        linear-gradient(
            to bottom,
            #fff,
            #d8d2c7
        );

    transform-origin:bottom center;

    transform:
        rotateX(-90deg);

}



/* ==========================================
   VIEW 1
   ROOM 3 VRATA
========================================== */

.room3-door{

    position:absolute;

    width:260px;
    height:390px;

    left:50%;
    bottom:0;

    transform:
        translateX(-50%);

    background:

        linear-gradient(
            to right,
            #939290,
            #cbc9c4 40%,
            #cbc9c4 70%,
            #939290
        );

    border:
        12px solid #dedbd3;

    box-shadow:

        0 35px 80px rgba(0,0,0,.35),

        inset 0 0 50px rgba(0,0,0,.18);

    z-index:20;

}


/* ==========================================
   ROOM 3 LIGHT
========================================== */

.room3-light{

    position:absolute;

    inset:20px;

    background:

        radial-gradient(
            circle,
            rgba(255,245,210,.45),
            transparent 70%
        );

}


/* ==========================================
   ROOM 3 TITLE
========================================== */

.room3-title{

    position:absolute;

    top:80px;

    width:100%;

    text-align:center;

    font-size:20px;

    letter-spacing:6px;

    color:white;

    text-shadow:
        0 4px 15px black;

}


/* ==========================================
   ROOM 3 DOOR HOTSPOT
========================================== */

.room3-door-hotspot{

    position:absolute;

    left:50%;
    bottom:0;

    transform:
        translateX(-50%);

    width:260px;
    height:430px;

    cursor:pointer;

    z-index:30;

}


/* ==========================================
   VIEW 1
   ARTWORK
========================================== */

.room2-artwork{

    position:absolute;

    z-index:100;

    cursor:pointer;

}


/* ==========================================
   VIEW 1
   IMAGE
========================================== */

.room2-image{

    width:300px;
    height:auto;

    display:block;

    border:
        1px solid #222;

    box-shadow:

        0 25px 50px rgba(0,0,0,.35);

    cursor:pointer;

}


/* ==========================================
   VIEW 1
   LEFT PICTURE
========================================== */

.left-picture{

    top:90px;
    left:20px;

    transform:
        translateZ(70px);

}


/* ==========================================
   VIEW 1
   RIGHT PICTURE
========================================== */

.right-picture{

    top:90px;
    right:10px;

    transform:
        translateZ(80px);

}


/* ==========================================
   DESNA SLIKA - VELIČINA
========================================== */

.right-picture .room2-image{

    width:300px;
    height:auto;

}


/* ==========================================
   VIEW 1
   ARTWORK GLOW
========================================== */

.room2-glow{

    position:absolute;

    inset:-40px;

    background:

        radial-gradient(
            ellipse,
            rgba(255,255,220,.45),
            transparent 70%
        );

    filter:blur(25px);

    z-index:-1;

}


/* ==========================================
   VIEW 1
   ARTWORK LABEL
========================================== */

.room2-label{

    position:absolute;

    top:100%;

    margin-top:1px;

    left:35%;

    transform:
        translateX(-50%);

    width:130px;

    background:white;

    border:
        1px solid #222;

    padding:10px;

    text-align:center;

    font-size:11px;

    line-height:1.3;

    box-shadow:

        0 10px 20px rgba(0,0,0,.25);

}


.room2-label span{

    font-size:10px;

    color:#444;

}


/* ==========================================
   FULLSCREEN VIEWER
========================================== */

.image-viewer{

    position:fixed;

    inset:0;

    display:none;

    align-items:center;
    justify-content:center;

    background:
        rgba(255,255,255,.55);

    backdrop-filter:
        blur(25px);

    z-index:99999;

}


/* ==========================================
   VIEWER FRAME
========================================== */

.viewer-frame{

    position:relative;

    max-width:90vw;
    max-height:90vh;

}


/* ==========================================
   VIEWER IMAGE
========================================== */

.viewer-image{

    display:block;

    max-width:85vw;
    max-height:85vh;

    box-shadow:

        0 30px 80px rgba(0,0,0,.4);

}


/* ==========================================
   VIEWER LABEL
========================================== */

.viewer-label{

    position:absolute;

    right:-200px;

    bottom:20px;

    width:180px;

    background:white;

    border:
        1px solid #222;

    padding:18px;

    text-align:center;

    font-size:18px;

    box-shadow:

        0 10px 30px rgba(0,0,0,.25);

}


.viewer-label span{

    font-size:14px;

    color:#444;

}


/* ==========================================
   VIEW 1 NAVIGATION
========================================== */

.room2-navigation{

    position:fixed;

    bottom:40px;

    left:50%;

    transform:
        translateX(-50%);

    display:flex;

    gap:100px;

    z-index:999999;

}


.room2-navigation button{

    background:none;

    border:none;

    font-size:65px;

    line-height:1;

    color:white;

    cursor:pointer;

    text-shadow:

        0 5px 15px black;

}


/* ==========================================
   GLOBAL TRANSITION OVERLAY
========================================== */

.room2-overlay{

    position:fixed;

    inset:0;

    background:white;

    opacity:0;

    pointer-events:none;

    z-index:999998;

    transition:
        opacity .8s ease;

}


.room2-overlay.active{

    opacity:.8;

}


/* ==========================================================
   ==========================================================
   ROOM 2 - VIEW 2
   ==========================================================
   ========================================================== */


/* ==========================================
   VIEW 2 CONTAINER
========================================== */

.r2v2-container{

    position:fixed;

    inset:0;

    display:none;

    flex-direction:column;

    background:#222;

    z-index:5000;

}


/* ==========================================
   VIEW 2 ACTIVE
========================================== */

.r2v2-container.active{

    display:flex;

}


/* ==========================================
   VIEW 2 CEILING
========================================== */

/* ==========================================
   ROOM 2 - VIEW 2
   STROP
========================================== */

.r2v2-ceiling{

    flex:0 0 10%;

    height:10%;

    background:

        linear-gradient(
            to bottom,
            #fff,
            #d8d2c7
        );

}


/* ==========================================
   VIEW 2 WALL
========================================== */

.r2v2-wall{

    flex:0 0 80%;

    height:80%;

    background:

        linear-gradient(
            to bottom,
            #faf9f5,
            #f2eee6
        );

    position:relative;

    display:flex;

    align-items:center;

    justify-content:space-around;

}


/* ==========================================
   VIEW 2 ARTWORK
========================================== */

.r2v2-artwork {
    position: relative;
    width: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* ==========================================
   OSNOVNE POSTAVKE SLIKA
========================================== */

.r2v2-image {
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid #222;
    box-shadow: 0 25px 50px rgba(0, 0, 0, .35);
    cursor: pointer;
}


/* ==========================================
   LIJEVA SLIKA - VELIČINA
========================================== */

.r2v2-left-picture .r2v2-image {
    width: 420px;
}


/* ==========================================
   DESNA SLIKA - VELIČINA
========================================== */

.r2v2-right-picture .r2v2-image {
    width: 400px;
}


.r2v2-right-picture {
    transform: translateX(-30px);
}

.r2v2-left-picture {
    transform: translateX(-30px);
}
/* ==========================================
   VIEW 2 FLOOR
========================================== */

.r2v2-floor{

    flex:0 0 20%;

    height:20%;

    background:

        linear-gradient(
            to bottom,
            #ddd8cf,
            #bdb6aa
        );

}


.r2v2-floor{

    position:relative;

    overflow:hidden;

}


/* ==========================================
   ROOM 2 VIEW 2
   POD - 6 VODORAVNIH LETVI
========================================== */

.r2v2-floor-wood{

    position:absolute;

    inset:0;

    background:

        repeating-linear-gradient(
            0deg,

            #faf7f3 0px,
            #faf7f3 19px,

            #d8d0c5 20px,
            #d8d0c5 21px
        );

    box-shadow:

        inset 0 15px 25px rgba(255,255,255,.18),

        inset 0 -25px 35px rgba(0,0,0,.12);

}


/* ==========================================
   ROOM 2 VIEW 2
   JAČA 3D PERSPEKTIVA PODA
========================================== */

.r2v2-floor-perspective{

    position:absolute;

    inset:0;

    pointer-events:none;

    z-index:10;

}


.r2v2-floor-perspective span{

    position:absolute;

    bottom:-20%;

    width:2px;

    height:160%;

    background:
        rgba(90,65,40,.18);

    transform-origin:bottom center;

}


/* ==========================================
   PRVI PAR
   NAJBLIZI SREDINI
   KUT +10%
========================================== */

.r2v2-floor-perspective span:nth-child(1){

    left:43%;

    transform:
        rotate(13.2deg);

}


.r2v2-floor-perspective span:nth-child(2){

    left:57%;

    transform:
        rotate(-13.2deg);

}


/* ==========================================
   DRUGI PAR
   ŠIRI
   KUT +10%
========================================== */

.r2v2-floor-perspective span:nth-child(3){

    left:32%;

    transform:
        rotate(22deg);

}


.r2v2-floor-perspective span:nth-child(4){

    left:68%;

    transform:
        rotate(-22deg);

}


/* ==========================================
   TREĆI PAR
   NAJŠIRI
   KUT +10%
========================================== */

.r2v2-floor-perspective span:nth-child(5){

    left:15%;

    transform:
        rotate(33deg);

}


.r2v2-floor-perspective span:nth-child(6){

    left:85%;

    transform:
        rotate(-33deg);

}



/* ==========================================
   ROOM 2 VIEW 2
   SUptilni GODOVI I SJENE
   NE MIJENJA OSNOVNI PARKET
========================================== */

.r2v2-floor-wood::before{

    content:"";

    position:absolute;

    inset:0;

    pointer-events:none;

    background:

        repeating-linear-gradient(
            3deg,

            transparent 0px,
            transparent 34px,

            rgba(100,75,50,.045) 35px,
            transparent 37px
        );

    opacity:.65;

}


/* ==========================================
   BLAGE NEPRAVILNOSTI DRVA
========================================== */

.r2v2-floor-wood::after{

    content:"";

    position:absolute;

    inset:0;

    pointer-events:none;

    background:

        radial-gradient(
            ellipse at 18% 30%,
            rgba(90,70,50,.06),
            transparent 18%
        ),

        radial-gradient(
            ellipse at 72% 65%,
            rgba(90,70,50,.045),
            transparent 20%
        );

    opacity:.7;

}



/* ------------------------------------------
   BLAGA SJENA UZ PERSPEKTIVNE LINIJE
------------------------------------------ */

.r2v2-floor-perspective span{

    box-shadow:
        2px 0 4px rgba(70,45,25,.10),
        -1px 0 3px rgba(255,255,255,.25);

    opacity:.75;

}


/* ------------------------------------------
   TOPLIJI / ISTROŠENI IZGLED PODA
------------------------------------------ */

.r2v2-floor::after{

    content:"";

    position:absolute;

    inset:0;

    pointer-events:none;

    background:

        radial-gradient(
            ellipse at 50% 100%,
            rgba(120,90,55,.16),
            transparent 65%
        ),

        linear-gradient(
            to bottom,
            rgba(255,255,255,.10),
            transparent 35%,
            rgba(90,60,35,.10)
        );

    z-index:2;

}


/* ------------------------------------------
   SUPTILNA NEUJEDNAČENOST
------------------------------------------ */

.r2v2-floor::before{

    content:"";

    position:absolute;

    inset:0;

    pointer-events:none;

    background:

        repeating-linear-gradient(
            90deg,
            transparent 0px,
            rgba(120,90,60,.025) 80px,
            transparent 160px
        );

    opacity:.7;

    z-index:1;

}


/* ------------------------------------------
   PREDNJI DIO PODA - DUBLJA SJENA
------------------------------------------ */

.r2v2-floor{

    box-shadow:

        inset 0 25px 35px rgba(255,255,255,.20),

        inset 0 -80px 100px rgba(70,45,25,.18),

        inset 0 0 80px rgba(90,65,40,.08);

}



/* ==========================================
   ROOM 2 VIEW 2
   POD - 6 PERSPEKTIVNIH LINIJA
========================================== */


/* ==========================================
   POSTOJEĆI POD
========================================== */

.r2v2-floor{

    position:relative;

    overflow:hidden;

}


/* ==========================================
   KONTEJNER PERSPEKTIVNIH LINIJA
========================================== */

.r2v2-floor-perspective{

    position:absolute;

    left:0;
    top:0;

    width:100%;
    height:100%;

    pointer-events:none;

    z-index:50;

}


/* ==========================================
   SVE LINIJE
========================================== */

.r2v2-floor-perspective span{

    position:absolute;

    bottom:-20%;

    width:2px;

    height:160%;

    background:rgba(90,90,90,.22);

    transform-origin:bottom center;

}


/* ==========================================
   STRAŽNJI PAR
========================================== */

.r2v2-floor-perspective span:nth-child(1){

    left:43%;

    transform:rotate(13deg);

}


.r2v2-floor-perspective span:nth-child(2){

    left:57%;

    transform:rotate(-13deg);

}


/* ==========================================
   SREDNJI PAR
========================================== */

.r2v2-floor-perspective span:nth-child(3){

    left:32%;

    transform:rotate(21deg);

}


.r2v2-floor-perspective span:nth-child(4){

    left:68%;

    transform:rotate(-21deg);

}


/* ==========================================
   PREDNJI PAR
========================================== */

.r2v2-floor-perspective span:nth-child(5){

    left:15%;

    transform:rotate(31deg);

}


.r2v2-floor-perspective span:nth-child(6){

    left:85%;

    transform:rotate(-31deg);

}






/* ==========================================
   VIEW 2 NAVIGATION
========================================== */

.r2v2-navigation{

    position:absolute;

    bottom:40px;

    left:50%;

    transform:
        translateX(-50%);

    display:flex;

    gap:100px;

    z-index:6000;

}


.r2v2-navigation button{

    background:none;

    border:none;

    font-size:65px;

    line-height:1;

    color:white;

    cursor:pointer;

    text-shadow:

        0 5px 15px black;

}


/* ==========================================
   VIEW 2 LABEL - OSNOVNI IZGLED
========================================== */

.r2v2-label {
    position: absolute;

    left: 90%;
    bottom: 20px;
    margin-left: 20px;

    width: 130px;

    background: white;
    border: 1px solid #222;
    padding: 10px;

    text-align: center;
    font-size: 11px;
    line-height: 1.3;

    box-shadow: 0 10px 20px rgba(0, 0, 0, .25);
    z-index: 20;
}


/* ==========================================
   LIJEVI LABEL - PODEŠAVANJE
========================================== */

.r2v2-left-picture .r2v2-label {
    left: 100%;       /* Lijevo-desno */
    bottom: 20px;    /* Gore-dolje */
    margin-left: 20px;
}


/* ==========================================
   DESNI LABEL - PODEŠAVANJE
========================================== */

.r2v2-right-picture .r2v2-label {
    left: 97%;       /* Lijevo-desno */
    bottom: 38px;    /* Gore-dolje */
    margin-left: 20px;
}


/* ==========================================
   LABEL - TEKST
========================================== */

.r2v2-label span {
    font-size: 10px;
    color: #444;
}



/* ==========================================================
   ==========================================================
   ROOM 2 - VIEW 3
   ==========================================================
   ========================================================== */


/* ==========================================
   VIEW 3 CONTAINER
========================================== */

.r2v3-container{

    position:fixed;

    inset:0;

    display:none;

    flex-direction:column;

    background:#222;

    z-index:5000;

}


/* ==========================================
   VIEW 3 ACTIVE
========================================== */

.r2v3-container.active{

    display:flex;

}


/* ==========================================
   VIEW 3 CEILING
========================================== */

.r2v3-ceiling{

    flex:0 0 10%;

    height:10%;

    background:

        linear-gradient(
            to bottom,
            #ffffff,
            #ddd8cf
        );

}


/* ==========================================
   VIEW 3 WALL
========================================== */

.r2v3-wall{

    flex:0 0 80%;

    height:80%;

    background:

        linear-gradient(
            to bottom,
            #faf9f5,
            #f2eee6
        );

    position:relative;

    display:flex;

    align-items:center;

    justify-content:space-around;

}


/* ==========================================
   VIEW 3 ARTWORK
========================================== */

.r2v3-artwork{

    position:relative;

    width:30%;

    display:flex;

    justify-content:center;

    align-items:center;

}


/* ==========================================
   VIEW 3 IMAGE
========================================== */

.r2v3-image{

    width:380px;

    max-width:100%;

    height:auto;

    display:block;

    border:
        1px solid #222;

    box-shadow:

        0 25px 50px rgba(0,0,0,.35);

    cursor:pointer;

}


/* ==========================================
   VIEW 3 FLOOR
========================================== */

/* ==========================================
   ROOM 2 VIEW 3
   POD
========================================== */

.r2v3-floor{

    flex:0 0 20%;

    height:20%;

    position:relative;

    overflow:hidden;

    background:
        linear-gradient(
            to bottom,
            #ddd8cf,
            #bdb6aa
        );

}


/* ==========================================
   OSNOVNI PARKET
========================================== */

.r2v3-floor-wood{

    position:absolute;

    inset:0;

    background:

        repeating-linear-gradient(
            0deg,

            #faf7f3 0px,
            #faf7f3 19px,

            #d8d0c5 20px,
            #d8d0c5 21px
        );

    box-shadow:

        inset 0 15px 25px rgba(255,255,255,.18),

        inset 0 -25px 35px rgba(0,0,0,.12);

}


/* ==========================================
   BLAGI GODOVI
========================================== */

.r2v3-floor-wood::before{

    content:"";

    position:absolute;

    inset:0;

    pointer-events:none;

    background:

        repeating-linear-gradient(
            3deg,

            transparent 0px,
            transparent 34px,

            rgba(100,75,50,.045) 35px,

            transparent 37px
        );

    opacity:.65;

}


/* ==========================================
   BLAGE NEPRAVILNOSTI DRVA
========================================== */

.r2v3-floor-wood::after{

    content:"";

    position:absolute;

    inset:0;

    pointer-events:none;

    background:

        radial-gradient(
            ellipse at 18% 30%,
            rgba(90,70,50,.06),
            transparent 18%
        ),

        radial-gradient(
            ellipse at 72% 65%,
            rgba(90,70,50,.045),
            transparent 20%
        );

    opacity:.7;

}


/* ==========================================
   PERSPEKTIVA PODA
========================================== */

.r2v3-floor-perspective{

    position:absolute;

    left:0;
    top:0;

    width:100%;
    height:100%;

    pointer-events:none;

    z-index:20;

}


/* ==========================================
   PERSPEKTIVNE LINIJE
========================================== */

.r2v3-floor-perspective span{

    position:absolute;

    bottom:-20%;

    width:2px;

    height:160%;

    background:

        rgba(90,90,90,.22);

    transform-origin:bottom center;

}


/* ==========================================
   STRAŽNJI PAR
========================================== */

.r2v3-floor-perspective span:nth-child(1){

    left:43%;

    transform:
        rotate(13deg);

}


.r2v3-floor-perspective span:nth-child(2){

    left:57%;

    transform:
        rotate(-13deg);

}


/* ==========================================
   SREDNJI PAR
========================================== */

.r2v3-floor-perspective span:nth-child(3){

    left:32%;

    transform:
        rotate(21deg);

}


.r2v3-floor-perspective span:nth-child(4){

    left:68%;

    transform:
        rotate(-21deg);

}


/* ==========================================
   PREDNJI PAR
========================================== */

.r2v3-floor-perspective span:nth-child(5){

    left:15%;

    transform:
        rotate(31deg);

}


.r2v3-floor-perspective span:nth-child(6){

    left:85%;

    transform:
        rotate(-31deg);

}



/* ==========================================
   VIEW 3 NAVIGATION
========================================== */

.r2v3-navigation{

    position:absolute;

    bottom:40px;

    left:50%;

    transform:
        translateX(-50%);

    display:flex;

    gap:100px;

    z-index:6000;

}


.r2v3-navigation button{

    background:none;

    border:none;

    font-size:65px;

    line-height:1;

    color:white;

    cursor:pointer;

    text-shadow:

        0 5px 15px black;

}


/* ==========================================
   VIEW 3 LABEL - OSNOVNI IZGLED
========================================== */

.r2v3-label {
    position: absolute;

    left: 100%;
    bottom: 0;
    margin-left: 20px;

    width: 130px;

    background: white;
    border: 1px solid #222;
    padding: 10px;

    text-align: center;
    font-size: 11px;
    line-height: 1.3;

    box-shadow: 0 10px 20px rgba(0, 0, 0, .25);
    z-index: 20;
}


/* ==========================================
   LIJEVI LABEL - PODEŠAVANJE
========================================== */

.r2v3-left-picture .r2v3-label {
    left: 95%;       /* Lijevo-desno */
    bottom: 20px;     /* Gore-dolje */
    margin-left: 20px;
}


/* ==========================================
   DESNI LABEL - PODEŠAVANJE
========================================== */

.r2v3-right-picture .r2v3-label {
    left: 95%;       /* Lijevo-desno */
    bottom: 20px;     /* Gore-dolje */
    margin-left: 20px;
}


/* ==========================================
   LABEL - TEKST
========================================== */

.r2v3-label span {
    font-size: 10px;
    color: #444;
}


/* ==========================================================
   ROOM 2 - WALL 4
   CLEAN VERSION
   100% WIDTH
========================================================== */


/* ==========================================
   WALL 4 CONTAINER
========================================== */

.r2v4-container{
    position:fixed;
    inset:0;
    width:100vw;
    height:100vh;
    display:none;
    background:#222;
    z-index:5000;
    overflow:hidden;
}

.r2v4-container.active{
    display:block;
}

.r2v4-wall{
    position:absolute;
    left:0;
    top:0;
    width:110vw;
    height:100vh;

    background:
        linear-gradient(
            to bottom,
            #ffffff,
            #f3f0e8
        );

    box-shadow:
        inset 0 0 120px rgba(0,0,0,.12);
}



/* ==========================================
   WALL 4 CEILING
========================================== */

.r2v4-ceiling{

    position:absolute;

    left:0;
    top:0;

    width:100vw;
    height:10vh;

    background:
        linear-gradient(
            to bottom,
            #ffffff,
            #ddd8cf
        );

}


/* ==========================================
   ROOM 2 VIEW 4
   POD
========================================== */

.r2v4-floor{

    position:absolute;

    left:0;
    bottom:0;

    width:100vw;
    height:10vh;

    overflow:hidden;

    background:
        linear-gradient(
            to bottom,
            #ddd8cf,
            #bdb6aa
        );

}


/* ==========================================
   OSNOVNI PARKET
========================================== */

.r2v4-floor-wood{

    position:absolute;

    inset:0;

    background:

        repeating-linear-gradient(
            0deg,

            #faf7f3 0px,
            #faf7f3 19px,

            #d8d0c5 20px,
            #d8d0c5 21px
        );

    box-shadow:

        inset 0 15px 25px rgba(255,255,255,.18),

        inset 0 -25px 35px rgba(0,0,0,.12);

}


/* ==========================================
   BLAGI GODOVI
========================================== */

.r2v4-floor-wood::before{

    content:"";

    position:absolute;

    inset:0;

    pointer-events:none;

    background:

        repeating-linear-gradient(
            3deg,

            transparent 0px,
            transparent 34px,

            rgba(100,75,50,.045) 35px,

            transparent 37px
        );

    opacity:.65;

}


/* ==========================================
   BLAGE NEPRAVILNOSTI DRVA
========================================== */

.r2v4-floor-wood::after{

    content:"";

    position:absolute;

    inset:0;

    pointer-events:none;

    background:

        radial-gradient(
            ellipse at 18% 30%,
            rgba(90,70,50,.06),
            transparent 18%
        ),

        radial-gradient(
            ellipse at 72% 65%,
            rgba(90,70,50,.045),
            transparent 20%
        );

    opacity:.7;

}


/* ==========================================
   PERSPEKTIVA PODA
========================================== */

.r2v4-floor-perspective{

    position:absolute;

    left:0;
    top:0;

    width:100%;
    height:100%;

    pointer-events:none;

    z-index:20;

}


/* ==========================================
   PERSPEKTIVNE LINIJE
========================================== */

.r2v4-floor-perspective span{

    position:absolute;

    bottom:-20%;

    width:2px;

    height:160%;

    background:
        rgba(90,90,90,.22);

    transform-origin:bottom center;

}


/* ==========================================
   STRAŽNJI PAR
========================================== */

.r2v4-floor-perspective span:nth-child(1){

    left:43%;

    transform:
        rotate(13deg);

}


.r2v4-floor-perspective span:nth-child(2){

    left:57%;

    transform:
        rotate(-13deg);

}


/* ==========================================
   SREDNJI PAR
========================================== */

.r2v4-floor-perspective span:nth-child(3){

    left:32%;

    transform:
        rotate(21deg);

}


.r2v4-floor-perspective span:nth-child(4){

    left:68%;

    transform:
        rotate(-21deg);

}


/* ==========================================
   PREDNJI PAR
========================================== */

.r2v4-floor-perspective span:nth-child(5){

    left:15%;

    transform:
        rotate(31deg);

}


.r2v4-floor-perspective span:nth-child(6){

    left:85%;

    transform:
        rotate(-31deg);

}



/* ==========================================
   WALL 4 ARTWORK
========================================== */

.r2v4-artwork{

    position:absolute;

    z-index:100;

    cursor:pointer;

}


/* ==========================================
   WALL 4 IMAGE POSITION
========================================== */

.r2v4-left-picture{

    left:12vw;

    top:19vh;

}


/* ==========================================
   WALL 4 IMAGE
========================================== */

.r2v4-image{

    width:250px;

    max-width:none;

    height:auto;

    display:block;

    border:1px solid #222;

    box-shadow:
        0 25px 50px rgba(0,0,0,.35);

    cursor:pointer;

}



/* ==========================================
   WALL 4 GLOW
========================================== */

.r2v4-glow{

    position:absolute;

    inset:-40px;

    background:
        radial-gradient(
            ellipse,
            rgba(255,255,220,.45),
            transparent 70%
        );

    filter:blur(25px);

    z-index:-1;

}


/* ==========================================
   WALL 4 LABEL
========================================== */

.r2v4-label{

    position:absolute;

    left:100%;
    bottom:0;

    margin-left:20px;

    width:130px;

    background:white;

    border:1px solid #222;

    padding:10px;

    text-align:center;

    font-size:11px;

    line-height:1.3;

    box-shadow:
        0 10px 20px rgba(0,0,0,.25);

}




.r2v4-label span{

    font-size:10px;

    color:#444;

}


/* ==========================================
   WALL 4 - ROOM 1 DOOR
========================================== */

.r2v4-room1-door{

    position:absolute;

    right:18vw;

    bottom:65px;

    width:260px;

    height:420px;

    background:
        linear-gradient(
            to right,
            #939290,
            #cbc9c4 40%,
            #cbc9c4 70%,
            #939290
        );

    border:12px solid #dedbd3;

    box-shadow:

        0 35px 80px rgba(0,0,0,.35),

        inset 0 0 50px rgba(0,0,0,.18);

    z-index:20;

}


/* ==========================================
   DOOR LIGHT
========================================== */

.r2v4-room1-light{

    position:absolute;

    inset:20px;

    background:
        radial-gradient(
            circle,
            rgba(255,245,210,.45),
            transparent 70%
        );

}


/* ==========================================
   DOOR TITLE
========================================== */

.r2v4-room1-title{

    position:absolute;

    top:80px;

    width:100%;

    text-align:center;

    font-size:20px;

    letter-spacing:6px;

    color:white;

    text-shadow:
        0 4px 15px black;

}


/* ==========================================
   DOOR HOTSPOT
========================================== */

.r2v4-room1-door-hotspot{

    position:absolute;

    right:8vw;

    bottom:0;

    width:260px;

    height:430px;

    cursor:pointer;

    z-index:50;

}


/* ==========================================
   WALL 4 NAVIGATION
========================================== */

.r2v4-navigation{

    position:fixed;

    left:50%;

    bottom:40px;

    transform:translateX(-50%);

    display:flex;

    gap:100px;

    z-index:6000;

}


/* ==========================================
   WALL 4 ARROWS
========================================== */

.r2v4-navigation button{

    appearance:none;

    background:none;

    border:0;

    padding:0;

    margin:0;

    width:auto;
    height:auto;

    font-family:Arial, Helvetica, sans-serif;

    font-size:65px;

    line-height:1;

    color:white;

    cursor:pointer;

    text-shadow:
        0 5px 15px black;

}


.r2v4-navigation button:hover{

    transform:scale(1.08);

}


/* ==========================================
   WALL 4 RESPONSIVE
========================================== */

@media (max-width:900px){

    .r2v4-image{

        width:260px;

        max-width:35vw;

    }


    .r2v4-left-picture{

        left:6vw;

    }


    .r2v4-room1-door{

        right:5vw;

        width:220px;

        height:340px;

    }


    .r2v4-room1-door-hotspot{

        right:5vw;

        width:220px;

        height:380px;

    }

}


@media (max-width:600px){

    .r2v4-image{

        width:200px;

        max-width:40vw;

    }


    .r2v4-left-picture{

        left:4vw;

        top:10vh;

    }


    .r2v4-room1-door{

        right:4vw;

        width:180px;

        height:300px;

    }


    .r2v4-room1-door-hotspot{

        right:4vw;

        width:180px;

        height:330px;

    }


    .r2v4-navigation{

        bottom:25px;

        gap:60px;

    }


    .r2v4-navigation button{

        font-size:55px;

    }

}



/* ==========================================================
   ==========================================================
   IMPORTANT DISPLAY CONTROL
   ==========================================================
   ========================================================== */


/*
   WALL 1:
   JS koristi:

       wall1.style.display = "none";
       wall1.style.display = "block";

   Zato Wall 1 NE treba .active klasu.
*/


.room2[style*="display: none"]{

    visibility:hidden;

}


/*
   VIEW 2 / VIEW 3 / VIEW 4
   Svi su normalno skriveni dok ih JS ne aktivira.
*/


.r2v2-container:not(.active),
.r2v3-container:not(.active),
.r2v4-container:not(.active){

    pointer-events:none;

}


/*
   Aktivni view ponovno prima klikove.
*/


.r2v2-container.active,
.r2v3-container.active,
.r2v4-container.active{

    pointer-events:auto;

}

/* ==========================================
   ROOM 2 - PARKET REDOVI
========================================== */

.room2-floor-row{

    position:relative;

    display:flex;

    width:100%;

    height:162px;

    gap:4px;

}


/* ==========================================
   ROOM 2 - DASKE
========================================== */

.room2-floor-plank{

    position:relative;

    height:162px;

    flex:1;

    background:

        linear-gradient(
            90deg,
            #faf7f3,
            #faf9f3,
            #f8fbfa
        );

    border-right:
        1px solid
        rgba(120,90,60,.20);

    box-shadow:

        inset 0 8px 15px
        rgba(255,255,255,.18),

        inset 0 -12px 20px
        rgba(80,40,10,.18);

}


/* ==========================================
   GODOVI DRVA
========================================== */

.room2-floor-plank::before{

    content:"";

    position:absolute;

    inset:0;

    background:

        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 22px,
            rgba(80,45,20,.12) 24px,
            transparent 27px
        );

    opacity:.6;

}


/* =================================
   ROOM 2
   LIJEVI ZID - MUZEJSKI SPOT
   MASTER LIGHTING
================================= */

.room2-left-spot{

    position:absolute;

    top:5px;
    left:50%;

    width:22px;
    height:15px;

    transform:
        translateX(-50%)
        translateZ(140px);

    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;
}


/* DONJA KUPOLA */

.room2-left-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%;
}


/* =================================
   SNOP PREMA SLICI
================================= */

.room2-left-spot-light{

    position:absolute;

    left:50%;

    bottom:-140px;

    transform:
        translateX(-50%);

    width:90px;
    height:150px;

    background:

        radial-gradient(
            ellipse at top,

            rgba(255,255,255,.95) 0%,

            rgba(255,255,255,.65) 18%,

            rgba(255,255,255,.28) 45%,

            rgba(255,255,255,.08) 70%,

            transparent 100%
        );

    filter:
        blur(10px);

    opacity:.9;

    pointer-events:none;
}






/* =================================
   SVJETLOSNI SNOP
   OD LAMPE PREMA SLICI
================================= */

.left-picture .room2-glow{

    position:absolute;

    left:-20px;
    top:-20px;

    width:calc(100% + 40px);
    height:calc(100% + 40px);


    background:

    radial-gradient(

        ellipse 45% 70% at 35% 5%,

        rgba(255,255,240,.65) 0%,

        rgba(255,255,235,.40) 18%,

        rgba(255,255,230,.22) 35%,

        rgba(255,255,255,.10) 52%,

        transparent 75%

    );


    filter:blur(18px);

    opacity:1;


    pointer-events:none;

    z-index:3;

}




/* ==========================================
   ROOM 2 - VIEW 2
   LIJEVA SLIKA
   SVJETLO NA POVRŠINI SLIKE
========================================== */


/* ==========================================
   KONTEJNER SLIKE
========================================== */

.r2v2-left-picture{

    position:relative;

}


/* ==========================================
   SLIKA
   NE MIJENJAMO POZICIJU NI VELIČINU
========================================== */

.r2v2-left-picture .r2v2-image{

    position:relative;

    display:block;

    z-index:2;

}




/* =================================
   ROOM 2
   DESNI ZID - MUZEJSKI REFLEKTOR
================================= */

.room2-right-spot{

    position:absolute;

    top:5px;
    left:50%;

    width:22px;
    height:15px;


    transform:

        translateX(-50%)
        translateZ(140px);


    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;

}


/* DONJA KUPOLA */

.room2-right-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%;

}


/* =================================
   SVJETLO IZ REFLEKTORA
================================= */

.room2-right-spot-light{

    position:absolute;

    left:50%;

    bottom:-140px;


    transform:

        translateX(-50%);


    width:90px;
    height:150px;


    background:

        radial-gradient(

            ellipse at top,

            rgba(255,255,255,.95) 0%,

            rgba(255,255,255,.65) 18%,

            rgba(255,255,255,.28) 45%,

            rgba(255,255,255,.08) 70%,

            transparent 100%

        );


    filter:

        blur(10px);


    opacity:.9;


    pointer-events:none;

}


/* ==========================================
   ROOM 2 - VIEW 2
   STROPNI MUZEJSKI REFLEKTORI
========================================== */

.r2v2-ceiling-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;

}


/* DONJA KUPOLA */

.r2v2-ceiling-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%;

}


/* ==========================================
   LIJEVA LAMPA
========================================== */

.r2v2-left-ceiling-spot{

    left:22%;

}


/* ==========================================
   DESNA LAMPA
========================================== */

.r2v2-right-ceiling-spot{

    left:72%;

}


.r2v2-ceiling-spot-light{

    position:absolute;

    left:50%;
    bottom:-160px;

    transform:
        translateX(-50%);

    width:130px;
    height:170px;

    background:

        linear-gradient(
            to bottom,

            rgba(255,255,255,.95) 0%,
            rgba(255,255,255,.55) 18%,
            rgba(255,255,255,.25) 42%,
            rgba(255,255,255,.08) 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;

}





/* ==========================================
   WALL 3
   STROPNI MUZEJSKI REFLEKTORI
========================================== */

.r2v3-wall{
    position:relative;
}


/* ==========================================
   OSNOVNO TIJELO REFLEKTORA
========================================== */

.r2v3-ceiling-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;
}


/* ==========================================
   DONJA KUPOLA
========================================== */

.r2v3-ceiling-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%;
}


/* ==========================================
   LIJEVI REFLEKTOR
========================================== */

.r2v3-left-ceiling-spot{

    left:25%;

}


/* ==========================================
   DESNI REFLEKTOR
========================================== */

.r2v3-right-ceiling-spot{

    left:75%;

}


/* ==========================================
   WALL 3
   SVJETLO IZ STROPNIH REFLEKTORA
========================================== */

.r2v3-ceiling-spot-light{

    position:absolute;

    left:50%;
    bottom:-160px;

    transform:
        translateX(-50%);

    width:130px;
    height:170px;

    background:

        linear-gradient(
            to bottom,

            rgba(255,255,255,.95) 0%,

            rgba(255,255,255,.55) 18%,

            rgba(255,255,255,.25) 42%,

            rgba(255,255,255,.08) 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;

}





/* ==========================================
   WALL 4
   STROPNI MUZEJSKI REFLEKTOR
   SAMO ZA SLIKU
========================================== */

.r2v4-wall{

    position:relative;

}


.r2v4-picture-ceiling-spot{

    position:absolute;

    top:45px;
    left:20%;

    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;

}


/* DONJA KUPOLA */

.r2v4-picture-ceiling-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%;

}


/* ==========================================
   SNOP IZ REFLEKTORA
========================================== */

.r2v4-picture-ceiling-spot .r2v4-ceiling-spot-light{

    position:absolute;

    left:50%;
    bottom:-160px;

    transform:
        translateX(-50%);

    width:130px;
    height:170px;

    background:

        linear-gradient(
            to bottom,

            rgba(255,255,255,.95) 0%,
            rgba(255,255,255,.55) 18%,
            rgba(255,255,255,.25) 42%,
            rgba(255,255,255,.08) 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;

}





/* ==========================================
   LABEL MORA BITI IZNAD SVJETLA
========================================== */

.r2v4-label{

    z-index:200;

}

/* ==========================================
   FULLSCREEN VIEWER
   SAKRIJ NAVIGACIJU
========================================== */

.image-viewer{
    position:fixed;
    inset:0;
    z-index:9999;
}


/* dok je fullscreen otvoren,
   strelice Room 2 nisu vidljive */

.image-viewer[style*="display: flex"]
~ .room2-navigation{

    display:none;

}


/* ==========================================================
   CROARTIS ROOM 2
   ZAVRŠNI MOBILNI OKOMITI PRIKAZ
   DESKTOP I LANDSCAPE OSTAJU NETAKNUTI
========================================================== */

@media screen and (orientation: portrait) {


    /* ======================================================
       VIEW 2 – DVIJE SLIKE OKOMITO
    ====================================================== */

    .r2v2-container {
        flex-direction: column !important;
    }

    .r2v2-ceiling {
        flex: 0 0 8vh !important;
        height: 8vh !important;
        min-height: 0 !important;
    }

    .r2v2-wall {
        position: relative !important;
        width: 100% !important;
        height: auto !important;

        flex: 1 1 auto !important;
        min-height: 0 !important;

        display: flex !important;
        flex-direction: column !important;
        justify-content: space-evenly !important;
        align-items: center !important;

        gap: 1vh !important;
        padding: 1vh 0 !important;
    }

    .r2v2-artwork {
        position: relative !important;

        width: 100% !important;
        height: auto !important;

        flex: 1 1 0 !important;
        min-height: 0 !important;

        display: flex !important;
        justify-content: center !important;
        align-items: center !important;

        margin: 0 auto !important;
        transform: none !important;
    }

    .r2v2-left-picture,
    .r2v2-right-picture {
        transform: none !important;
    }

    .r2v2-image {
        width: auto !important;
        height: auto !important;

        max-width: 82vw !important;
        max-height: 34vh !important;

        object-fit: contain !important;
    }

    .r2v2-floor {
        flex: 0 0 12vh !important;
        height: 12vh !important;
        min-height: 0 !important;
    }

    .r2v2-navigation button {
        font-size: 130px !important;
    }


    /* ======================================================
       VIEW 3 – DVIJE SLIKE OKOMITO
    ====================================================== */

    .r2v3-container {
        flex-direction: column !important;
    }

    .r2v3-ceiling {
        flex: 0 0 8vh !important;
        height: 8vh !important;
        min-height: 0 !important;
    }

    .r2v3-wall {
        position: relative !important;
        width: 100% !important;
        height: auto !important;

        flex: 1 1 auto !important;
        min-height: 0 !important;

        display: flex !important;
        flex-direction: column !important;
        justify-content: space-evenly !important;
        align-items: center !important;

        gap: 1vh !important;
        padding: 1vh 0 !important;
    }

    .r2v3-artwork {
        position: relative !important;

        width: 100% !important;
        height: auto !important;

        flex: 1 1 0 !important;
        min-height: 0 !important;

        display: flex !important;
        justify-content: center !important;
        align-items: center !important;

        margin: 0 auto !important;
        transform: none !important;
    }

    .r2v3-left-picture,
    .r2v3-right-picture {
        transform: none !important;
    }

    .r2v3-image {
        width: auto !important;
        height: auto !important;

        max-width: 82vw !important;
        max-height: 34vh !important;

        object-fit: contain !important;
    }

    .r2v3-floor {
        flex: 0 0 12vh !important;
        height: 12vh !important;
        min-height: 0 !important;
    }

    .r2v3-navigation button {
        font-size: 130px !important;
    }


    /* ======================================================
       VIEW 4 – VEĆA SLIKA I UŽA VRATA
    ====================================================== */

    .r2v4-image {
        width: 300px !important;
        max-width: 75vw !important;
    }

    .r2v4-room1-door,
    .r2v4-room1-door-hotspot {
        width: 120px !important;
    }

    .r2v4-navigation button {
        font-size: 130px !important;
    }

}



/* ======================================================
   ROOM 2 – DVOSTRUKO VEĆE NAVIGACIJSKE STRELICE
   SVA ČETIRI ZIDA – OKOMITI MOBITEL
====================================================== */

.room2-navigation button,
.r2v2-navigation button,
.r2v3-navigation button,
.r2v4-navigation button {
    font-size: 150px !important;
}


/* ======================================================
   ROOM 2 – VIEW 2 I VIEW 3
   SLIKA / PLOČICA / SLIKA / PLOČICA
   SAMO OKOMITI MOBITEL
====================================================== */

@media screen and (orientation: portrait) {

    /* UMJETNINE – VIEW 2 I VIEW 3 */

    .r2v2-artwork,
    .r2v3-artwork {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
        min-height: 0 !important;
    }


    /* SLIKE – MALO SMANJENE DA STANU PLOČICE */

    .r2v2-artwork .r2v2-image,
    .r2v3-artwork .r2v3-image {
        width: auto !important;
        height: auto !important;
        max-width: 78vw !important;
        max-height: 27vh !important;
        object-fit: contain !important;
        flex-shrink: 1 !important;
    }


   /* PLOČICE – IZVORNI OBLIK I ŠIRINA */

.r2v2-label,
.r2v3-label {
    position: relative !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    display: table !important;
    width: fit-content !important;
    max-width: 90vw !important;

    margin: 5px auto 0 !important;

    transform: none !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}



    /* SVJETLOSNI EFEKT NE SMIJE ZAUZIMATI MJESTO */

    .r2v2-left-picture-glow {
        position: absolute !important;
        pointer-events: none !important;
    }

}


/* ROOM 2 – VIEW 2
   JEDNAKA VELIČINA OBAJU SLIKA */

@media screen and (orientation: portrait) {

    .r2v2-left-picture .r2v2-image,
    .r2v2-right-picture .r2v2-image {
        height: 24vh !important;
        width: auto !important;
        max-width: 78vw !important;
        max-height: 24vh !important;
        object-fit: contain !important;
    }

}


/* ======================================================
   CROARTIS ROOM 2 – VIEW 4
   SLIKA GORE / VRATA DOLJE
   OKOMITI MOBITEL
====================================================== */

@media screen and (orientation: portrait) {

    /* GLAVNI PROSTOR */

    .r2v4-wall {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;

        width: 100vw !important;
        height: 100vh !important;

        overflow: hidden !important;
    }


    /* STROP */

    .r2v4-ceiling {
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 6vh !important;
    }


    /* GORNJA POLOVICA – UMJETNINA */

    .r2v4-artwork.r2v4-left-picture {
        position: absolute !important;

        top: 8vh !important;
        left: 0 !important;
        right: auto !important;

        width: 100vw !important;
        height: 40vh !important;

        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;

        gap: 6px !important;
        transform: none !important;
    }


    /* SLIKA */

    .r2v4-image {
        width: auto !important;
        height: auto !important;

        max-width: 78vw !important;
        max-height: 30vh !important;

        object-fit: contain !important;
    }


    /* PLOČICA ISPOD SLIKE */

    .r2v4-label {
        position: relative !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        display: table !important;
        width: fit-content !important;
        max-width: 90vw !important;

        margin: 5px auto 0 !important;
        transform: none !important;

        text-align: center !important;
    }


    /* REFLEKTOR IZNAD SLIKE */

    .r2v4-picture-ceiling-spot {
        position: absolute !important;

        top: 5vh !important;
        left: 50% !important;
        right: auto !important;

        transform: translateX(-50%) !important;
        z-index: 10 !important;
    }


    /* DONJA POLOVICA – VRATA */

    .r2v4-room1-door {
        position: absolute !important;

        top: auto !important;
        bottom: 11vh !important;

        left: 50% !important;
        right: auto !important;

        width: 190px !important;
        height: 36vh !important;

        transform: translateX(-50%) !important;
        z-index: 5 !important;
    }


    /* HOTSPOT PRATI VRATA */

    .r2v4-room1-door-hotspot {
        position: absolute !important;

        top: auto !important;
        bottom: 11vh !important;

        left: 50% !important;
        right: auto !important;

        width: 190px !important;
        height: 36vh !important;

        transform: translateX(-50%) !important;
        z-index: 8 !important;
    }


    /* POD */

    .r2v4-floor {
        position: absolute !important;

        left: 0 !important;
        bottom: 0 !important;

        width: 100vw !important;
        height: 10vh !important;

        z-index: 3 !important;
    }


    /* NAVIGACIJA */

    .r2v4-navigation {
        position: absolute !important;
        bottom: 0 !important;
        z-index: 20 !important;
    }

}



/* ROOM 2 – VIEW 4
   VEĆA SLIKA I DVOSTRUKO ŠIRA VRATA */

@media screen and (orientation: portrait) {

    /* VEĆA SLIKA */

    .r2v4-image {
        max-width: 90vw !important;
        max-height: 35vh !important;
    }


    /* VRATA – DVOSTRUKA ŠIRINA */

    .r2v4-room1-door,
    .r2v4-room1-door-hotspot {
        width: 380px !important;
    }

}



/* ======================================================
   CROARTIS ROOM 2
   FULLSCREEN VIEWER – PORTRAIT + LANDSCAPE
   SLIKA 90% / CIJELA SLIKA / TEKST ISPOD
====================================================== */

.image-viewer {
    position: fixed !important;
    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    display: none;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;

    padding: 2vh 3vw !important;
    box-sizing: border-box !important;

    overflow: hidden !important;
    z-index: 2147483647 !important;
}

.viewer-frame {
    display: flex !important;
    flex-direction: column !important;

    justify-content: center !important;
    align-items: center !important;

    gap: 12px !important;

    width: 94vw !important;
    max-width: 94vw !important;

    max-height: 96vh !important;

    margin: auto !important;
    box-sizing: border-box !important;
}

.viewer-image {
    display: block !important;

    width: 90vw !important;
    height: auto !important;

    max-width: 90vw !important;
    max-height: 78vh !important;

    object-fit: contain !important;
    object-position: center !important;

    flex-shrink: 1 !important;
}

.viewer-label {
    position: relative !important;

    display: table !important;

    width: fit-content !important;
    max-width: 90vw !important;

    margin: 0 auto !important;

    text-align: center !important;

    flex-shrink: 0 !important;
}


/* ======================================================
   CROARTIS ROOM 2 – VIEW 4
   VODORAVNI MOBILNI PRIKAZ
   SLIKA + PLOČICA LIJEVO / VRATA DESNO
   SAMO OVAJ ZID – OSTALO SE NE MIJENJA
====================================================== */

@media screen and (orientation: landscape)
and (hover: none)
and (pointer: coarse) {

    /* ZID – TOČNO ŠIRINA EKRANA */

    .r2v4-wall {
        width: 100vw !important;
        height: 100vh !important;
    }


    .r2v4-image {
    display: block !important;

    width: 20vw !important;
    height: auto !important;

    max-width: 20vw !important;
    max-height: 58vh !important;

    object-fit: cover !important;
    object-position: center !important;
}



    /* PLOČICA – ODMAH DESNO OD SLIKE */

    .r2v4-label {
        position: absolute !important;

        left: 100% !important;
        right: auto !important;

        top: 50% !important;
        bottom: auto !important;

        transform: translateY(-50%) !important;

        width: 130px !important;
        max-width: 18vw !important;

        margin-left: 18px !important;

        z-index: 200 !important;
    }


    /* REFLEKTOR – TOČNO IZNAD SREDINE SLIKE */

    .r2v4-picture-ceiling-spot {
        position: absolute !important;

        left: 23vw !important;
        right: auto !important;

        top: calc(18vh - 24px) !important;

        transform: translateX(-50%) !important;

        z-index: 600 !important;
    }


    /* VRATA – MALO SPUŠTENA I SMANJENA */

    .r2v4-room1-door {
        position: absolute !important;

        right: 6vw !important;
        left: auto !important;

        bottom: 12vh !important;

        width: 18vw !important;
        height: 65vh !important;

        z-index: 20 !important;
    }


    /* HOTSPOT – PRATI NOVI POLOŽAJ VRATA */

    .r2v4-room1-door-hotspot {
        position: absolute !important;

        right: 6vw !important;
        left: auto !important;

        bottom: 12vh !important;

        width: 18vw !important;
        height: 65vh !important;

        z-index: 50 !important;
    }

}




/* ======================================================
   CROARTIS ROOM 2
   FULLSCREEN – VODORAVNI MOBILNI PRIKAZ
   SLIKA LIJEVO / PLOČICA DESNO
   SVI ZIDOVI – SAMO FULLSCREEN
====================================================== */

@media screen
and (orientation: landscape)
and (hover: none)
and (pointer: coarse) {

    /* GLAVNI FULLSCREEN PROSTOR */

    .image-viewer {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;

        gap: 3vw !important;
        padding: 3vh 4vw !important;
    }


    /* OKVIR SLIKE I PLOČICE */

    .viewer-frame {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;

        gap: 3vw !important;

        width: 94vw !important;
        max-width: 94vw !important;
        max-height: 90vh !important;
    }


    /* SLIKA LIJEVO */

    .viewer-image {
        width: auto !important;
        height: auto !important;

        max-width: 72vw !important;
        max-height: 85vh !important;

        object-fit: contain !important;
        flex-shrink: 1 !important;
        
        transform: translateY(-40px) !important;
    }


    /* PLOČICA DESNO */

    .viewer-label {
        position: relative !important;

        width: fit-content !important;
        max-width: 22vw !important;

        margin-left: -100px !important;

        flex-shrink: 0 !important;

        text-align: left !important;
    }

}



/* ROOM 2 – PODIZANJE STRELICA
   SAMO OKOMITI MOBITEL */

@media screen and (orientation: portrait) {

    .room2-navigation,
    .r2v2-navigation,
    .r2v3-navigation,
    .r2v4-navigation {

        bottom: 10vh !important;

    }

}



/* ==========================================
   ROOM 2 – OKOMITI FULLSCREEN
   PLOČICA ISPOD SLIKE, S JASNIM RAZMAKOM
========================================== */

@media screen and (orientation: portrait) {

    .image-viewer {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .image-viewer .viewer-frame {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 30px !important;
    }

    .image-viewer .viewer-image {
        max-width: 90vw !important;
        max-height: 68vh !important;
        width: auto !important;
        height: auto !important;
    }

    .image-viewer .viewer-label {
    position: relative !important;
    display: block !important;

    width: fit-content !important;
    min-width: 220px !important;
    max-width: 88vw !important;

    margin: 0 !important;
    padding: 12px !important;

    font-size: 14px !important;
    line-height: 1.3 !important;

    transform: translateX(-130px) !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

}


/* ==========================================
   ROOM 2 – OKOMITI PRIKAZ
   VANJSKE PLOČICE +40%
========================================== */

@media screen and (orientation: portrait) {

    .room2-label,
    .r2v2-label,
    .r2v3-label,
    .r2v4-label {

        transform: none !important;

        zoom: 0.9 !important;

        max-width: 64vw !important;

        width: fit-content !important;

        transform-origin: center center !important;
    }
}



/* ==================================================
   ROOM 2 – VIEW 2
   DRUGA SLIKA – FULLSCREEN +60%
================================================== */

@media screen and (max-width: 600px)
and (orientation: portrait) {

    .image-viewer .viewer-image[src*="5tp.webp"] {
        transform: scale(0.9) !important;
        transform-origin: center center !important;
    }

}




/* ==========================================
   ROOM 2 — VIEW 1
   POVRATAK CIJELE PROSTORIJE U KADAR
   SAMO OKOMITI MOBITEL
========================================== */

@media screen and (max-width:600px)
and (orientation:portrait){

    .room2{
        transform:
            translate(-50%,-50%) scale(.40) !important;

        transform-origin:center center !important;
    }

}







/* =====================================================
   ROOM 2 — VIEW 1
   VODORAVNI MOBITEL — ODJUMIRANJE CIJELE PROSTORIJE
   POTPUNO IZOLOVANO
===================================================== */

@media only screen
and (max-width: 900px)
and (max-height: 500px)
and (orientation: landscape)
and (hover: none)
and (pointer: coarse){

    .room2-scene .room2{

        transform:
            translate(-50%,-50%) scale(.55) !important;

        transform-origin:
            center center !important;

    }

}



/* =====================================================
   ROOM 2 — VIEW 1
   VODORAVNI MOBITEL
   CIJELA PROSTORIJA + KLIKABILNA VRATA ROOM 3
   IZOLOVANI ZAVRŠNI BLOK
===================================================== */

@media only screen
and (max-width: 900px)
and (max-height: 500px)
and (orientation: landscape)
and (hover: none)
and (pointer: coarse){

    /* CIJELA PROSTORIJA U KADRU */

    .room2-scene .room2{

        transform:
            translate(-50%,-50%) scale(.55) !important;

        transform-origin:
            center center !important;

    }


    /* VRATA ROOM 3 – VIZUALNI SLOJ */

    .room2 .room3-door{

        pointer-events:none !important;

    }


    /* VRATA ROOM 3 – KLIKABILNA ZONA */

    .room2 > .room3-door-hotspot{

    position:absolute !important;

    left:50% !important;
    top:0 !important;

    transform:translateX(-50%) !important;

    width:260px !important;
    height:450px !important;

    z-index:999999 !important;

    pointer-events:auto !important;

    cursor:pointer !important;

}





/* ==========================================
   KRAJ ROOM 2 CSS
========================================== */

