*{

margin:0;
padding:0;
box-sizing:border-box;

}



html,
body{

width:100%;
height:100%;

overflow:hidden;

background:#222;

font-family:Arial, Helvetica, sans-serif;

}



/* SCENA */

.gallery-scene{

width:100vw;
height:100vh;

perspective:900px;

}





.room{


position:absolute;

width:700px;

height:450px;

left:50%;

top:50%;


transform:

translate(-50%,-50%);


transform-style:preserve-3d;


}






/* =====================
   ZIDOVI
===================== */


.back-wall{

position:absolute;

width:700px;

height:450px;


background:

linear-gradient(
to bottom,
#fff,
#faf9f5 55%,
#ebe8df
);


transform:translateZ(-5px);


box-shadow:

inset 0 0 90px rgba(0,0,0,.12);


}



.left-wall{


position:absolute;


width:600px;

height:450px;


left:-600px;


background:

linear-gradient(
to right,
#ddd9d0,
#faf9f5
);


transform-origin:right;


transform:

rotateY(90deg);


}



.right-wall{


position:absolute;


width:600px;

height:450px;


right:-600px;


background:

linear-gradient(
to left,
#ddd9d0,
#faf9f5
);


transform-origin:left;


transform:

rotateY(-90deg);


}






/* =====================
   POD
===================== */


/* =====================
   GALERIJSKI HRASTOV PARKET
===================== */


.floor{


position:absolute;


width:700px;


height:650px;


top:450px;


left:0;



transform-origin:top;


transform:

rotateX(90deg);



background:#e9e8e4;



overflow:hidden;



box-shadow:

inset 0 80px 100px rgba(255,255,255,.12),

inset 0 -100px 130px rgba(0,0,0,.20);



}



/* RED DASAKA */


.plank-row{


position:relative;


display:flex;


width:100%;


height:160px;


gap:4px;



}



/* DASKE */


.plank{


height:160px;


position:relative;


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 */


.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;



}



/* MIKRO RAZLIKE */


.plank1{width:180px;}
.plank2{width:230px;}
.plank3{width:160px;}
.plank4{width:210px;}


.plank5{width:220px;}
.plank6{width:170px;}
.plank7{width:250px;}
.plank8{width:140px;}


.plank9{width:190px;}
.plank10{width:260px;}
.plank11{width:150px;}
.plank12{width:210px;}


.plank13{width:240px;}
.plank14{width:160px;}
.plank15{width:230px;}
.plank16{width:170px;}






/* =====================
   STROP
===================== */


.ceiling{


position:absolute;


width:700px;

height:600px;


top:-600px;


background:

linear-gradient(
to bottom,
#fff,
#d8d2c7
);



transform-origin:bottom;


transform:

rotateX(-90deg);


}








/* =====================
   SLIKA
===================== */


.artwork{

position:absolute;

top:70px;

left:50%;

transform:
translateX(-50%)
translateZ(80px);

z-index:100;

}




.artwork-image{


width:420px;


height:auto;


display:block;



border:1px solid #222;



cursor:pointer;



box-shadow:

0 25px 50px rgba(0,0,0,.30);



user-select:none;


}




/* PLOČICA */


.artwork-label{


position:absolute;


left:calc(97% + 20px);


bottom:0;



width:90px;


background:white;


border:1px solid #222;



padding:8px 10px;



text-align:center;



font-size:11px;


line-height:1.3;



box-shadow:

0 8px 15px rgba(0,0,0,.20);



z-index:20;



}






.artwork-label span{

font-size:10px;

color:#444;

}








/* =====================
   VRATA
===================== */


.next-room{


position:absolute;


width:170px;


height:360px;


right:220px;


bottom:0;



background:#eee;


box-shadow:

inset 0 0 60px rgba(0,0,0,.35);


}


.room-number{


padding-top:80px;

text-align:center;

font-size:20px;

letter-spacing:5px;

color:#555;

}









/* =====================
   VIEWER
===================== */


.image-viewer{


position:fixed;


inset:0;


display:none;


justify-content:center;


align-items:center;



background:

rgba(255,255,255,.55);



backdrop-filter:blur(25px);


z-index:999999;



}






.viewer-image{


max-width:90vw;


max-height:90vh;


object-fit:contain;



box-shadow:

0 30px 80px rgba(0,0,0,.35);



cursor:pointer;


}



/* ==========================
   SADRŽAJ LIJEVOG ZIDA
========================== */


.left-wall-content{

position:absolute;

inset:0;

transform-style:preserve-3d;

pointer-events:auto;

}




/* ==========================
   SLIKA NA LIJEVOM ZIDU
========================== */


.artwork-side{


position:absolute;


top:90px;


left:160px;



transform:


translateZ(40px);



z-index:300;


}





.artwork-side .artwork-image{


width:300px;


display:block;


cursor:pointer;


box-shadow:

0 20px 40px rgba(0,0,0,.35);



}




/* pločica lijeve slike */


.artwork-side .artwork-label{


position:absolute;


left:0;


top:100%;


margin-top:15px;



width:120px;


background:white;


border:1px solid #222;


padding:8px;


text-align:center;


font-size:11px;



}


/* =================================
   LIJEVA SLIKA - SAMOSTALNI SUSTAV
================================= */


.left-artwork-container{


position:absolute;


top:90px;


left:150px;



transform:

translateZ(80px);



z-index:500;


cursor:pointer;



pointer-events:auto;



}



.left-artwork-image {
    width: 420px;
    height: 310px;

    transform: translateY(-55px);

    display: block;
    border: 1px solid #222;

    box-shadow: 0 25px 50px rgba(0,0,0,.35);

    cursor: pointer;
    user-select: none;
}



.left-artwork-label {
    position: absolute;

    left: 130px;
    top: 98%;

    margin-top: -43px;

    transform: none !important;

    width: 120px;

    background: white;
    border: 1px solid #222;
    padding: 8px 10px;

    text-align: center;
    font-size: 11px;
    line-height: 1.8;

    box-shadow: 0 8px 15px rgba(0,0,0,.25);
}






/* =================================
   3D PORTAL U DRUGU SOBU
================================= */


.door-portal{


position:absolute;


width:170px;

height:280px;


right:220px;

bottom:0;


transform-style:preserve-3d;


overflow:hidden;



}






/* DRUGA PROSTORIJA */

.second-room{


position:absolute;


inset:0;


background:#111;



transform:


translateZ(-120px);



transform-style:preserve-3d;



}





/* ZADNJI ZID DRUGE SOBE */


.second-wall{


position:absolute;


width:170px;


height:280px;


background:


linear-gradient(

to bottom,

#555,

#222

);



}






/* POD DRUGE SOBE */


.second-floor{


position:absolute;


width:300px;


height:200px;


top:230px;


left:-60px;



background:


linear-gradient(

to bottom,

#555,

#222

);



transform-origin:top;


transform:


rotateX(70deg);



}





/* SVJETLO IZ DUBINE */


.second-light{


position:absolute;


width:100%;


height:100%;



background:


radial-gradient(

circle at center,

rgba(255,255,220,.35),

transparent 60%

);



}





/* OKVIR VRATA */


.door-frame{


position:absolute;


inset:0;



border:

12px solid #ddd;



box-shadow:


inset 0 0 30px rgba(0,0,0,.5),


0 20px 40px rgba(0,0,0,.35);



z-index:20;



}





.room-number{


position:absolute;


top:30px;


left:50%;


transform:


translateX(-50%);


z-index:30;



font-size:20px;


letter-spacing:5px;


color:#fff;



text-shadow:

0 8px 15px rgba(0,0,0,.35);



}




/* =================================
   PROLAZAK POSJETITELJA
================================= */


.visitor-shadow{


position:absolute;


bottom:20px;


left:-120px;


width:70px;


height:200px;



opacity:.18;



filter:

blur(3px);



z-index:15;



animation:

walk-through 18s infinite;



}





.visitor-shadow svg{


width:100%;


height:100%;



fill:#000;



}





@keyframes walk-through{


0%{

left:-120px;

opacity:0;

}



10%{

opacity:.18;

}



45%{

left:120px;

opacity:.15;

}



70%{

left:240px;

opacity:.10;

}



100%{

left:350px;

opacity:0;

}



}





/* =================================
   JEDNODIJELNI MUZEJSKI SPOT
================================= */


.museum-spot-single{


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;



}



/* donji otvor / kupola */


.museum-spot-single::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 njega */


.spot-light-soft{


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;



}


/* =================================
   BOČNI STROPNI MUZEJSKI REFLEKTOR
================================= */


.side-museum-spot{


position:absolute;


/* položaj iznad bočne slike */

top:15px;

left:80px;



width:22px;

height:15px;



transform:

translateZ(210px)

rotateY(90deg);



background:


linear-gradient(

to bottom,

#333,

#050505

);



border-radius:

2px 2px 10px 10px;



box-shadow:


inset 1px 2px 3px rgba(255,255,255,.15),


0 8px 18px rgba(0,0,0,.55);



z-index:700;


pointer-events:none;



}






/* donja zaobljena kupola */


.side-museum-spot::after{


content:"";


position:absolute;


left:50%;


bottom:-6px;


transform:translateX(-50%);



width:12px;


height:7px;



background:


radial-gradient(

ellipse,

#222,

#000

);



border-radius:


0 0 50% 50%;



}

/* snop svjetla prema bočnoj slici */

.side-spot-beam{

position:absolute;

top:8px;

left:-150%;

transform:
translateX(-50%)
rotate(32deg);

width:190px;

height:160px;

background:
linear-gradient(
to bottom,

rgba(255,255,255,1) 0%,
rgba(255,255,255,.70) 12%,
rgba(255,255,255,.35) 28%,
rgba(255,255,255,.12) 45%,
rgba(255,255,255,.04) 60%,
transparent 80%

);

/* puno širi stožac */

clip-path:polygon(
48% 0%,
52% 0%,
100% 100%,
0% 100%
);

filter:blur(8px);

opacity:.95;

pointer-events:none;

}




/* =================================
   VIEW NAVIGATION ARROWS
================================= */


.view-navigation{


position:fixed;


left:50%;


bottom:40px;


transform:translateX(-50%);



display:flex;


gap:70px;



z-index:99999;



opacity:0;



transition:

opacity .5s ease;



pointer-events:auto;


}




.view-navigation.visible{


opacity:1;


}





.view-navigation button{


border:none;


background:none;



color:white;



font-size:55px;



font-family:Arial, Helvetica, sans-serif;



cursor:pointer;



text-shadow:

0 2px 8px rgba(0,0,0,.9);



width:50px;

height:50px;



transition:

transform .3s ease;


}




.view-navigation button:hover{


transform:scale(1.25);


}



/* =================================
   LEFT WALL EXHIBITION VIEW
   BLOCK 2
================================= */


.left-wall-view{


position:fixed;


inset:0;


background:


linear-gradient(
to bottom,
#ffffff,
#f3f1eb
);



display:none;


align-items:center;


justify-content:center;



z-index:99980;



}



.left-wall-view.active{


display:flex;


}






/* sadržaj zida */


.left-wall-view-content{


position:relative;


width:90vw;


height:90vh;



display:flex;


align-items:center;


justify-content:center;



}






/* velika slika */


.left-wall-view-image{


max-width:75vw;


max-height:75vh;



object-fit:contain;



border:1px solid #222;



box-shadow:


0 35px 80px rgba(0,0,0,.35);



}







/* pločica */


.left-wall-view-label{


position:absolute;



right:-5vw;


bottom:20vh;



width:180px;



background:white;



border:1px solid #222;



padding:20px;



text-align:center;



font-size:18px;



line-height:1.2;



box-shadow:


0 10px 25px rgba(0,0,0,.25);



}



.left-wall-view-label span{


font-size:15px;


color:#444;


}


/* =================================
   MUZEJSKO SVJETLO
   LEFT WALL FULLSCREEN VIEW
================================= */


.left-wall-view-content{

position:relative;

}


/* svjetlo koje dolazi odozgora */


.left-wall-view-content::before{


content:"";


position:absolute;


top:-180px;


left:50%;


transform:translateX(-50%);



width:700px;


height:300px;



background:


radial-gradient(

ellipse at center,

rgba(255,255,230,.38) 0%,

rgba(255,255,240,.25) 30%,

rgba(255,255,255,.08) 55%,

transparent 75%

);



filter:blur(45px);



pointer-events:none;


z-index:1;


}




.left-wall-view-image{


position:relative;


z-index:2;



filter:

brightness(1.06)

contrast(1.06)

saturate(1.05);



box-shadow:

0 35px 80px rgba(0,0,0,.40);


}





/* =================================
   DOOR VIEW - FULLSCREEN MODUL
   ================================= */


.door-view{


position:fixed;

inset:0;


background:#f7f5ef;


display:none;


z-index:9000;


overflow:hidden;


}





.door-view.active{


display:flex;


justify-content:center;

align-items:center;


}





.door-view-content{


position:relative;


width:100%;

height:100%;


display:flex;

justify-content:center;

align-items:center;


background:


linear-gradient(

to bottom,

#ffffff 0%,

#f4f1e9 70%,

#e7e2d7 100%

);



}



/* ===========================
   ZIDNI NATPIS ENTER
=========================== */


.door-wall-text{


position:absolute;


top:120px;


left:50%;


transform:translateX(-50%);


font-size:48px;


letter-spacing:18px;


font-weight:300;


color:#555;


opacity:0;


transition:opacity 1.5s ease;


text-align:center;


z-index:20;


}



.door-view.active .door-wall-text{


animation:

door-text-show 1.5s ease forwards;


animation-delay:5s;


}





.door-arrow{


margin-top:35px;


font-size:60px;


letter-spacing:0;


opacity:0;


}





.door-view.active .door-arrow{


animation:

door-arrow-show 1.5s ease forwards;


animation-delay:7s;


}





@keyframes door-text-show{


from{

opacity:0;

transform:

translateX(-50%)
translateY(-20px);

}


to{


opacity:1;

transform:

translateX(-50%)
translateY(0);


}



}





@keyframes door-arrow-show{


from{


opacity:0;

transform:translateY(-20px);


}


to{


opacity:1;

transform:translateY(0);


}


}






/* ===========================
   VRATA
=========================== */


.gallery-door{


position:absolute;


bottom:40px;


width:300px;


height:500px;



background:


linear-gradient(

to right,

#dcd8d0,

#f8f6f0 18%,

#ffffff 50%,

#f8f6f0 82%,

#dcd8d0

);



border:

10px solid #dedbd3;



box-shadow:


0 35px 70px rgba(0,0,0,.35),


inset 0 0 50px rgba(0,0,0,.12);



z-index:10;



}






/* malo svjetla iza vrata */


.door-inside-light{


position:absolute;


inset:35px;



background:


radial-gradient(

circle at center,

rgba(255,245,210,.45),

transparent 70%

);



opacity:.7;


}






/* natpis na vratima */


.door-title{


position:absolute;


bottom:70px;


left:50%;


transform:translateX(-50%);



font-size:22px;


letter-spacing:6px;


color:white;



text-shadow:

0 0 10px rgba(255,255,255,.8),


0 0 25px rgba(255,255,220,.5);



opacity:.9;


}





/* puls kada dođe vrijeme */


.door-title.pulse{


animation:

door-neon-pulse 2s infinite;


}





@keyframes door-neon-pulse{


0%,100%{


opacity:.65;


text-shadow:

0 0 5px rgba(255,255,255,.4);


}



50%{


opacity:1;


text-shadow:

0 0 20px rgba(255,255,220,1);


}



}




/* =================================
   FULLSCREEN DOOR VIEW
   POGLED ISPRED VRATA
================================= */


.door-view{


position:fixed;


inset:0;


display:none;


background:#faf9f5;


z-index:9990;



}



.door-view.active{


display:flex;


align-items:center;


justify-content:center;



}



/* zid ispred nas */


.door-view-content{


position:relative;


width:100vw;


height:100vh;



background:


linear-gradient(

to bottom,

#ffffff 0%,

#faf9f5 55%,

#ebe8df 100%

);



overflow:hidden;


}






/* vrata - ista kao glavna soba */


.door-view-door{


position:absolute;


left:50%;


bottom:0;


transform:translateX(-50%);



width:260px;


height:430px;



background:


linear-gradient(

to right,

#939290,

#cbcac6 38%,

#cbcac6 50%,

#cbcac6 82%,

#939290

);



border:

12px solid #dedbd3;



box-shadow:


0 35px 80px rgba(0,0,0,.30),


inset 0 0 50px rgba(0,0,0,.15);



}








/* svjetlo iznad vrata */


.door-view-light{


position:absolute;


top:0;


left:50%;


transform:translateX(-50%);



width:420px;


height:250px;



background:


radial-gradient(

ellipse at center,

rgba(255,255,230,.55),

rgba(255,255,255,.12) 45%,

transparent 75%

);



filter:blur(20px);



}






/* natpis na vratima */


.door-view-number{


position:absolute;


top:120px;


left:50%;


transform:translateX(-50%);



font-size:22px;


letter-spacing:5px;


color:#555;



text-shadow:

0 5px 15px rgba(0,0,0,.25);



}


/* =================================
   DOOR VIEW SIGNS
================================= */


.door-room-title{


position:absolute;


top:120px;


left:50%;


transform:translateX(-50%);



font-size:28px;


letter-spacing:8px;


color:#444;


opacity:0;



transition:opacity 1s ease;


}




.door-enter-sign{


position:absolute;


left:calc(50% - 330px);


top:330px;



font-size:20px;


letter-spacing:10px;


color:#333;



opacity:0;



transition:opacity 1s ease;



white-space:nowrap;



}




.door-enter-arrow{


margin-top:20px;


font-size:45px;


letter-spacing:0;


text-align:center;


line-height:40px;


transform:rotate(-90deg);


}








/* aktivacija */


/* =================================
   BRZO POJAVLJIVANJE — ROOM TITLE
================================= */

.door-view.active .door-room-title{

    animation:
        roomAppear
        .5s
        ease
        forwards;

    animation-delay:.5s;

}





.door-view.active .door-enter-sign{


animation:

enterAppear 1s ease forwards;



animation-delay:2s;


}



.door-view.active .door-enter-arrow{


animation:

arrowAppear 1s ease forwards;



animation-delay:7s;


}




@keyframes roomAppear{


from{

opacity:0;

transform:translateX(-50%) translateY(-15px);

}


to{

opacity:1;

transform:translateX(-50%) translateY(0);

}


}





@keyframes enterAppear{


from{

opacity:0;

transform:translateX(-20px);

}


to{

opacity:1;

transform:translateX(0);

}


}




@keyframes arrowAppear{


from{

opacity:0;

}


to{

opacity:1;

}


}



/* =================================
   ARTIST PREVIEW
   TATJANA POLITEO
================================= */

.artist-preview-box{

    position:absolute;

    right:170px;
    top:220px;

    width:300px;

    background:rgba(255,255,255,.94);

    border:1px solid #222;

    border-radius:10px;

    overflow:hidden;

    text-decoration:none;

    color:#222;

    opacity:0;

    z-index:5000;

    box-shadow:
        0 18px 45px rgba(0,0,0,.18);

    transition:
        opacity 1.2s ease,
        transform .4s ease,
        box-shadow .4s ease;

}


/* =================================
   POJAVLJIVANJE
================================= */

/* =================================
   ARTIST PREVIEW
   POJAVLJIVANJE NAKON 1 SEKUNDE
================================= */

.door-view.active .artist-preview-box{

    animation:
        artistPreviewAppear
        .7s
        ease
        forwards;

    animation-delay:1s;

}



@keyframes artistPreviewAppear{

    from{

        opacity:0;

        transform:
            translateY(15px);

    }

    to{

        opacity:1;

        transform:
            translateY(0);

    }

}


/* =================================
   SLIKA
================================= */

.artist-preview-image{

    width:100%;

    height:170px;

    overflow:hidden;

    background:#eee;

}


.artist-preview-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    display:block;

    transition:
        transform .7s ease;

}


/* =================================
   TEKST
================================= */

.artist-preview-content{

    padding:18px 22px 20px;

    text-align:left;

}


.artist-preview-content h2{

    margin:0 0 14px 0;

    font-family:Georgia, serif;

    font-size:24px;

    font-weight:400;

    letter-spacing:2px;

    color:#222;

}


.artist-preview-content span{

    display:block;

    margin-bottom:7px;

    font-size:12px;

    letter-spacing:3px;

    text-transform:uppercase;

    color:#777;

    transition:
        color .3s ease,
        transform .3s ease;

}


/* =================================
   HOVER
================================= */

.artist-preview-box:hover{

    transform:
        translateY(-5px);

    box-shadow:
        0 25px 55px rgba(0,0,0,.28);

}


.artist-preview-box:hover
.artist-preview-image img{

    transform:scale(1.05);

}


.artist-preview-box:hover
.artist-preview-content span{

    color:#d00000;

    transform:translateX(4px);

}




  /* =================================
   SOFT GALLERY SHADOW LIFE
   FINAL PROPORTIONS
================================= */


.door-shadow-space{


position:absolute;


inset:0;


overflow:hidden;


pointer-events:none;


z-index:9999;


}





.moving-shadow{


position:absolute;


bottom:35px;


background:rgba(70,70,70,.45);


filter:blur(9px);


opacity:0;


border-radius:50% 50% 25% 25%;


}







/* =================================
   ODRASLE OSOBE
   3/4 VISINE VRATA
================================= */



.person-a{


width:30px;


height:250px;


left:-60px;


animation:

softWalk 18s linear infinite;


animation-delay:3s;


}




.person-b{


width:26px;


height:245px;


left:-90px;


animation:

softWalk 15s linear infinite;


animation-delay:7s;


}





.person-c{


width:32px;


height:205px;


left:-120px;


animation:

softWalkSlow 22s linear infinite;


animation-delay:12s;


}








/* =================================
   MAJKA
================================= */



.mother{


width:30px;


height:200px;


left:-130px;


animation:

softWalkSlow 24s linear infinite;


animation-delay:17s;


}







/* DIJETE */


.child{


width:15px;


height:100px;


bottom:35px;


left:-160px;


animation:

softWalk 24s linear infinite;


animation-delay:17s;


}








/* =================================
   MAČKA
================================= */


.cat{


width:80px;


height:20px;


bottom:25px;


left:-70px;


background:rgba(60,60,60,.45);


border-radius:50%;


animation:

catWalk 16s linear infinite;


animation-delay:24s;


}








/* =================================
   KRETANJE
================================= */



@keyframes softWalk{


0%{


transform:translateX(0);


opacity:0;


}



15%{


opacity:.28;


}



80%{


opacity:.18;


}



100%{


transform:translateX(430px);


opacity:0;


}



}







@keyframes softWalkSlow{


0%{


transform:translateX(0);


opacity:0;


}



20%{


opacity:.24;


}



85%{


opacity:.15;


}



100%{


transform:translateX(430px);


opacity:0;


}



}







@keyframes catWalk{


0%{


transform:translateX(0);


opacity:0;


}



20%{


opacity:.25;


}



100%{


transform:translateX(430px);


opacity:0;


}



}

/* =================================
   ROOM 2 ENTER BUTTON
================================= */


.room-enter-button{


position:absolute;


left:calc(50% - 330px);

top:330px;



width:150px;

height:55px;



background:white;


border:

1px solid #000;



border-radius:12px;



font-size:22px;


letter-spacing:8px;



color:red;



cursor:pointer;



font-family:inherit;



z-index:5000;



transition:

color .5s ease,

transform .3s ease,

box-shadow .3s ease;



}



/* stalno mijenjanje boje */


.door-view.active .room-enter-button{


animation:

enterColorCycle 4s infinite;



}






.room-enter-button:hover{


transform:scale(1.08);


box-shadow:

0 10px 25px rgba(0,0,0,.25);



}






@keyframes enterColorCycle{


0%{

color:red;

}


25%{

color:white;

}


50%{

color:black;

}


75%{

color:white;

}


100%{

color:red;

}


}


/* =================================
   FULLSCREEN WORK LABEL
================================= */


.viewer-frame{

position:relative;

display:flex;

justify-content:center;

align-items:center;

}



.viewer-label{


position:absolute;


right:-245px;


bottom:25px;



background:rgba(255,255,255,.92);



border:1px solid #222;



border-radius:6px;



padding:10px 15px;



font-size:22px;



letter-spacing:4px;



color:#333;



line-height:1.5;



box-shadow:

0 10px 30px rgba(0,0,0,.25);



opacity:.95;



}



.viewer-label span{


font-size:16px;


letter-spacing:2px;


}



/* =================================
   DOOR CLICK HOTSPOT
   GLAVNA GALERIJA
================================= */


.door-hotspot{


position:absolute;


inset:0;


cursor:pointer;


z-index:100;



}


/* =========================================
   MUZEJSKA PLOČA — ELEGANTNI DIZAJN
========================================= */

.gallery-instructions {
    position: absolute;

    /* POLOŽAJ PLOČE */
    left: 20%;
    top: 62%;
    transform: translate(-50%, -50%);

    /* VELIČINA I FORMAT */
    width: min(35vw, 460px);
    aspect-ratio: 1.2 / 1;

    box-sizing: border-box;
    padding: clamp(20px, 2.4vw, 32px);

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: clamp(7px, 0.8vw, 12px);

    /* PODLOGA — TOPLI BIJELI PAPIR */
    background:
        linear-gradient(
            145deg,
            #fffef9 0%,
            #f8f6ef 55%,
            #eee9dd 100%
        );

    color: #242424;

    /* TANAK MUZEJSKI OKVIR */
    border: 1px solid #b9ad98;

    outline: 1px solid rgba(255, 255, 255, 0.8);
    outline-offset: -5px;

    /* SJENA ISPOD PLOČE */
    box-shadow:
        0 14px 24px rgba(0, 0, 0, 0.20),
        0 5px 9px rgba(0, 0, 0, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.10);

    font-family: Arial, Helvetica, sans-serif;

    z-index: 20;

    cursor: default;

    overflow: hidden;
}


/* =========================================
   GLAVNI NASLOV
========================================= */

.gallery-instructions h1 {
    margin: 0 0 5px;

    color: #982f2a;

    font-size: clamp(19px, 2vw, 27px);

    line-height: 1.15;

    font-weight: 700;

    letter-spacing: 0.055em;

    text-transform: uppercase;
}


/* =========================================
   PODNASLOV
========================================= */

.gallery-instructions h2 {
    margin: 7px 0 2px;

    padding-top: 10px;

    border-top: 1px solid #c9bdab;

    color: #982f2a;

    font-size: clamp(14px, 1.35vw, 19px);

    line-height: 1.2;

    font-weight: 700;

    letter-spacing: 0.06em;

    text-transform: uppercase;
}


/* =========================================
   REDOVI S UPUTAMA
========================================= */

.gallery-instructions .instruction-row {
    display: flex;

    align-items: center;

    gap: 12px;

    font-size: clamp(12px, 1.15vw, 16px);

    line-height: 1.3;

    font-weight: 600;

    letter-spacing: 0.025em;

    text-transform: uppercase;
}


/* =========================================
   IKONE U KRUŽNIM OKVIRIMA
========================================= */

.gallery-instructions .instruction-icon {
    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    box-sizing: border-box;

    display: flex;

    align-items: center;
    justify-content: center;

    /* KRUŽNI OKVIR */
    border: 1px solid #a99b85;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.65);

    color: #982f2a;

    font-size: 24px;

    line-height: 1;

    /* SUZDRŽANA SJENA IKONE */
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
}


/* =========================================
   IKONA MOBITELA
========================================= */

.gallery-instructions .mobile-icon {
    font-size: 23px;
}


/* =========================================
   LIJEVI I DESNI ZID
========================================= */

.gallery-instructions .wall-navigation {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;
}

.gallery-instructions .wall-direction {
    display: flex;

    align-items: center;

    gap: 7px;

    font-size: clamp(10px, 0.95vw, 14px);

    font-weight: 700;

    letter-spacing: 0.015em;

    text-transform: uppercase;
}

.gallery-instructions .wall-direction .instruction-icon {
    flex: 0 0 29px;

    width: 29px;
    height: 29px;

    font-size: 24px;
}


/* =========================================
   IKONE VRATA
========================================= */

.gallery-instructions .door-icon {
    font-size: 22px;
}


/* =========================================
   NAGLAŠENI TEKST
========================================= */

.gallery-instructions strong {
    font-weight: 800;

    color: #982f2a;
}


/* =========================================
   DONJA NAPOMENA
========================================= */

.gallery-instructions .instruction-footer {
    margin-top: 5px;

    padding-top: 9px;

    border-top: 1px solid #c9bdab;

    color: #4b4842;

    font-size: clamp(11px, 0.9vw, 15px);

    line-height: 1.4;

    font-weight: 500;

    letter-spacing: 0.01em;
}


/* =========================================
   MINIMALISTIČKI MUZEJSKI UKRAS
========================================= */

.gallery-instructions::before,
.gallery-instructions::after {
    content: "";

    position: absolute;

    left: 50%;

    width: 36px;
    height: 3px;

    transform: translateX(-50%);

    background: #b8a68a;

    opacity: 0.8;

    pointer-events: none;
}

.gallery-instructions::before {
    top: 8px;
}

.gallery-instructions::after {
    bottom: 8px;
}


/* =====================================================
   CROARTIS ROOM 1
   RESPONSIVE ADAPTATION — FIRST VERSION
   Desktop rules remain unchanged.
===================================================== */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.gallery-scene {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    touch-action: manipulation;
}

/* IMAGE VIEWER */

.image-viewer {
    padding:
        max(12px, env(safe-area-inset-top))
        max(12px, env(safe-area-inset-right))
        max(12px, env(safe-area-inset-bottom))
        max(12px, env(safe-area-inset-left));
}

.viewer-image {
    display: block;
    max-width: 90vw;
    max-height: 86vh;
    max-height: 86dvh;
    object-fit: contain;
}

/* NAVIGATION */

.view-navigation {
    bottom: max(12px, env(safe-area-inset-bottom));
    gap: clamp(48px, 12vw, 90px);
    padding: 4px 12px;
}

.view-navigation button {
    display: grid;
    place-items: center;

    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;

    border-radius: 50%;
    background: rgba(20, 20, 20, 0.35);
    color: #fff;

    font-size: 48px;
    line-height: 1;

    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.view-navigation button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* ================================================
   TABLETS AND SMALLER SCREENS
================================================ */

@media (max-width: 900px) {

    /* Keep the room as a 3D object. */
    .room {
        transform: translate(-50%, -50%) scale(0.78);
        transform-origin: center center;
    }

    /* Main artwork information */
    .artwork-label {
        left: auto;
        right: -8px;
        bottom: -72px;

        width: 112px;
        padding: 7px 8px;

        font-size: 10px;
        line-height: 1.35;
    }

    /* Side artwork information */
    .left-artwork-label {
        left: 50%;
        top: calc(100% + 8px);

        margin-top: 0;
        transform: translateX(-50%);

        width: 112px;
        padding: 7px 8px;

        line-height: 1.35;
    }

    /* Fullscreen artwork information */
    .viewer-label {
        right: 0;
        bottom: 8px;

        max-width: min(90vw, 280px);
        box-sizing: border-box;

        padding: 10px 12px;
        font-size: 14px;
        line-height: 1.35;
    }

    .viewer-label span {
        font-size: 12px;
        letter-spacing: 0;
    }

    /* Wall artwork view */
    .left-wall-view-content {
        width: 100vw;
        height: 100vh;
        height: 100dvh;

        padding: 12px;
        box-sizing: border-box;
    }

    .left-wall-view-image {
        max-width: 84vw;
        max-height: 76vh;
        max-height: 76dvh;

        object-fit: contain;
    }

    .left-wall-view-label {
        right: 12px;
        bottom: 12px;

        width: min(180px, 44vw);
        padding: 10px;

        box-sizing: border-box;
        font-size: 13px;
    }

    .left-wall-view-label span {
        font-size: 11px;
    }

    /* Door view */
    .door-view-content {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
    }

    .door-view-door {
        width: clamp(170px, 34vw, 260px);
        height: min(56vh, 430px);
        height: min(56dvh, 430px);
    }

    .door-room-title {
        max-width: 90vw;
        text-align: center;
    }

    /* Instructions panel */
    .gallery-instructions {
        width: min(38vw, 420px);
        max-height: 78vh;
        max-height: 78dvh;

        padding: clamp(12px, 2vw, 22px);
        gap: 7px;

        box-sizing: border-box;
        overflow-y: auto;
    }

    /* Artist biography card */
    .artist-preview-box {
        width: min(27vw, 240px);
        right: 3vw;
        top: 24vh;
    }

    .artist-preview-image {
        height: clamp(80px, 15vh, 140px);
    }

    .artist-preview-content {
        padding: 10px 12px;
    }

    .artist-preview-content h2 {
        font-size: clamp(13px, 1.8vw, 18px);
        letter-spacing: 1px;
        margin-bottom: 8px;
    }

    .artist-preview-content span {
        font-size: 10px;
        letter-spacing: 1px;
    }
}

/* ================================================
   PHONES — PORTRAIT
================================================ */

@media (max-width: 600px) and (orientation: portrait) {

    .room {
        transform: translate(-50%, -50%) scale(0.54);
    }

    .view-navigation {
        gap: clamp(72px, 22vw, 120px);
        bottom: max(12px, env(safe-area-inset-bottom));
    }

    .view-navigation button {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;

        font-size: 52px;
        background: rgba(20, 20, 20, 0.42);
    }

    .left-wall-view-image {
        max-width: 92vw;
        max-height: 70dvh;
    }

    .left-wall-view-label {
        right: 10px;
        bottom: 76px;

        width: min(150px, 45vw);
        padding: 8px;

        font-size: 12px;
    }

    .door-view-door {
        width: min(54vw, 230px);
        height: 43dvh;
        min-height: 230px;
        bottom: 0;
    }

    .door-room-title {
        font-size: clamp(17px, 5vw, 26px);
        letter-spacing: clamp(2px, 1vw, 5px);
    }

    /* Instructions remain readable on narrow screens. */
    .gallery-instructions {
        left: 50%;
        top: max(8px, env(safe-area-inset-top));

        transform: translateX(-50%);

        width: min(94vw, 440px);
        max-height: 43dvh;

        padding: 15px 16px;
        gap: 5px;

        box-sizing: border-box;
        overflow-y: auto;
        overscroll-behavior: contain;

        z-index: 30;
    }

    .gallery-instructions h1 {
        font-size: clamp(15px, 4vw, 20px);
        margin-bottom: 2px;
    }

    .gallery-instructions h2 {
        font-size: clamp(12px, 3.3vw, 16px);
        padding-top: 6px;
        margin: 4px 0 1px;
    }

    .gallery-instructions .instruction-row {
        gap: 8px;
        font-size: clamp(10px, 2.8vw, 13px);
    }

    .gallery-instructions .instruction-icon {
        flex-basis: 27px;
        width: 27px;
        height: 27px;
        font-size: 19px;
    }

    .gallery-instructions .wall-direction {
        font-size: clamp(9px, 2.5vw, 12px);
        gap: 5px;
    }

    .gallery-instructions .instruction-footer {
        font-size: clamp(10px, 2.5vw, 12px);
        line-height: 1.3;
        margin-top: 2px;
        padding-top: 5px;
    }

    /* Biography card sits near the bottom-right corner. */
    .artist-preview-box {
        top: auto;
        right: 8px;
        bottom: max(8px, env(safe-area-inset-bottom));

        width: min(42vw, 170px);
        max-height: 30dvh;

        z-index: 35;
    }

    .artist-preview-image {
        height: clamp(55px, 10dvh, 90px);
    }

    .artist-preview-content {
        padding: 7px 8px;
    }

    .artist-preview-content h2 {
        font-size: clamp(10px, 2.7vw, 13px);
        line-height: 1.25;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
    }

    .artist-preview-content span {
        font-size: clamp(8px, 2vw, 10px);
        letter-spacing: 0.3px;
        margin-bottom: 3px;
    }

    /* Fullscreen image */
    .viewer-image {
        max-width: 94vw;
        max-height: 78dvh;
    }

    .viewer-frame {
        width: 100%;
        height: 100%;
        align-items: center;
    }

    .viewer-label {
        right: 0;
        bottom: 6px;

        max-width: 70vw;
        padding: 8px 10px;

        font-size: 12px;
        border-radius: 4px;
    }

    .viewer-label span {
        font-size: 10px;
    }
}

/* ================================================
   PHONES AND TABLETS — LANDSCAPE
================================================ */

@media (max-width: 900px) and (orientation: landscape) {

    .room {
        transform: translate(-50%, -50%) scale(0.72);
    }

    .view-navigation {
        bottom: max(5px, env(safe-area-inset-bottom));
        gap: clamp(55px, 10vw, 100px);
    }

    .view-navigation button {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;

        font-size: 44px;
    }

    .left-wall-view-image {
        max-width: 70vw;
        max-height: 78dvh;
    }

    .left-wall-view-label {
        right: 8px;
        bottom: 8px;

        width: 150px;
        padding: 8px;

        font-size: 12px;
    }

    .door-view-door {
        height: 58dvh;
        width: clamp(150px, 24vw, 230px);
    }

    .gallery-instructions {
        left: 3vw;
        top: 50%;

        transform: translateY(-50%);

        width: min(35vw, 360px);
        max-height: 86dvh;

        padding: 10px 12px;
        gap: 4px;

        box-sizing: border-box;
        overflow-y: auto;
    }

    .gallery-instructions h1 {
        font-size: clamp(13px, 2.4vw, 18px);
    }

    .gallery-instructions h2 {
        font-size: clamp(11px, 1.8vw, 14px);
        padding-top: 5px;
        margin: 3px 0 0;
    }

    .gallery-instructions .instruction-row {
        font-size: clamp(9px, 1.5vw, 12px);
        gap: 6px;
    }

    .gallery-instructions .instruction-icon {
        flex-basis: 24px;
        width: 24px;
        height: 24px;
        font-size: 17px;
    }

    .gallery-instructions .instruction-footer {
        font-size: clamp(9px, 1.3vw, 11px);
        padding-top: 4px;
        margin-top: 1px;
    }

    .artist-preview-box {
        top: 50%;
        right: 2vw;

        transform: translateY(-50%);
        width: min(22vw, 190px);
    }

    .artist-preview-image {
        height: 15dvh;
    }

    .artist-preview-content {
        padding: 7px 9px;
    }

    .artist-preview-content h2 {
        font-size: clamp(11px, 1.5vw, 14px);
        letter-spacing: 0.5px;
        margin-bottom: 4px;
    }

    .artist-preview-content span {
        font-size: 9px;
        letter-spacing: 0.5px;
        margin-bottom: 3px;
    }

    .viewer-image {
        max-height: 86dvh;
        max-width: 82vw;
    }
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
    .view-navigation,
    .view-navigation button,
    .artist-preview-box,
    .artist-preview-image img {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================
   MOBITELI — VRATA, NASLOV I OGLASNA PLOČA
========================================= */


/* =========================================
   OKOMITI PRIKAZ — VRATA I NASLOV
========================================= */

@media screen and (max-width: 600px) and (orientation: portrait) {

    /* Vrata: uspravan oblik i prilagođena visina */
    #door.active .door-view-content > .door-view-door {
        width: min(68vw, 260px) !important;
        height: 52dvh !important;
        min-height: 0 !important;
        max-height: none !important;
        box-sizing: border-box !important;

        left: 50% !important;
        bottom: 0 !important;
        transform: translateX(-50%) !important;
    }

    /* Naslov: uvijek iznad vrata */
    #door.active .door-view-content > #room-no-2 {
        position: absolute !important;
        top: auto !important;
        bottom: calc(52dvh + 14px) !important;

        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;

        width: 90% !important;
        max-width: 90vw !important;
        text-align: center !important;
        white-space: nowrap !important;

        font-size: 20px !important;
        letter-spacing: 3px !important;
        opacity: 1 !important;
        z-index: 99999 !important;
    }

}


/* =========================================
   VODORAVNI PRIKAZ — VRATA I NASLOV
   VRATA I NASLOV OSTAJU NEPROMIJENJENI
========================================= */

@media screen and (max-width: 900px) and (orientation: landscape) {

    #door.active .door-view-content > .door-view-door {
        width: clamp(130px, 18vw, 210px) !important;
        height: 70dvh !important;
        min-height: 0 !important;
        max-height: none !important;
        box-sizing: border-box !important;

        left: 50% !important;
        bottom: 0 !important;
        transform: translateX(-50%) !important;
    }

    #door.active .door-view-content > #room-no-2 {
        position: absolute !important;
        top: auto !important;
        bottom: calc(70dvh + 12px) !important;

        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;

        width: 90% !important;
        text-align: center !important;
        white-space: nowrap !important;

        font-size: clamp(16px, 2.5vw, 22px) !important;
        letter-spacing: 3px !important;
        opacity: 1 !important;
        z-index: 99999 !important;
    }

  /* OGLASNA PLOČA — STARA ŠIRINA, POVEĆANA VISINA */
#door.active .gallery-instructions {
    transform: translateY(-120px) scaleX(1) scaleY(1.12) !important;
    transform-origin: bottom center !important;
    height: calc(100% + 10px) !important;
    box-sizing: content-box !important;
}


/* DISPLAY SLIKARA — 50% VIŠE LIJEVO, PREMA VRATIMA */
#door.active .artist-preview-box {
    transform: translate(-52.5%, -52.5px) scale(1.10) !important;
    transform-origin: center center !important;
}


.view-navigation {
    gap: 15px;
}

.view-navigation .exit-label {
    color: white !important;
    -webkit-text-fill-color: white !important;
    margin-right: -10px !important;
}




/* =====================================================
   CROARTIS – FULLSCREEN LABELS
   VODORAVNI MOBITEL – POMAK UDESNO
   SAMO U FULLSCREEN PRIKAZU
===================================================== */

@media screen and (max-width: 900px)
and (orientation: landscape) {

    /* GLAVNA LABELA */
    .viewer-label {
        right: -185px !important;
    }

    /* LABELA LIJEVE SLIKE */
    .left-wall-view-label {
        right: -175px !important;
    }

}












