*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth; /*pocasi scrolla ob pritisku na link v navigaciji*/
}
header{
    background-color: white;
    grid-area: he;
    padding: 1.1%;
    border-bottom: 1px rgb(236, 236, 236) solid;
}
nav{
    background-color: white;
    grid-area: na;
    padding: 2.2%;
    border-bottom: 1px rgb(236, 236, 236) solid;
    gap: 0;
    display: flex;
    justify-content: right;
    flex-wrap: wrap;

}
article{
    background-color: rgba(241, 241, 241, 0.888);
    grid-area: ar;
    padding: 1%;
    min-height: 90vh;
}
footer{
    background-color: white;
    grid-area: fo;
    padding: 1%;
    border-top: 1px rgb(236, 236, 236) solid;
    font-family: arial;
    text-align: center;
    color: #555;
}
hr#dno{
    margin-bottom: 2%;
    border: none;
    height: 1px;
    background-color: #ccc;
}
#layout{
    display: grid;
    max-width: 807px;
    min-width: 481px;
    min-height: auto;
    margin: auto; /*centrira*/
    grid-template-columns: 1fr 1fr 3fr 1fr;
    grid-template-rows: minmax(20px, auto); /*vse se bo razširilo glede na količino vsebine*/
    grid-template-areas:
        "he he na na"
        "ar ar ar ar"
        "fo fo fo fo";
}
#logo{
    height: auto;
    width: 75%;
    vertical-align: middle;
}
.portrait-style #logo2{
    height: auto;
    width: 35%;
    vertical-align: middle;
}
.landscape-style #logo2{
    height: auto;
    width: 14%;
    vertical-align: middle;
}
.portrait-style #logo2{
    height: auto;
    width: 35%;
    vertical-align: middle;
}
.landscape-style #logo2{
    height: auto;
    width: 14%;
    vertical-align: middle;
}
#search{
    vertical-align: middle;
    width: 25%;
    height: 90%;
    padding: 0 2%;
    border-top: 1px solid #ccc;
    border-right: none;
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-top-left-radius: 20px; /* Rounded edges */
    border-bottom-left-radius: 20px; /* Rounded edges */
    font-size: 75%;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
#lupa{
    vertical-align: middle;
    width: 10%;
    height: 90%;
    padding: 0 1%;
    border: 1px solid #ccc;
    border-top-right-radius: 20px; /* Rounded edges */
    border-bottom-right-radius: 20px; /* Rounded edges */
    font-size: 10%;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
#lupa img {
  height: 2.5vw;
  aspect-ratio: 1 / 1;
}
.okvir{
    align-self: center;
    aspect-ratio: 5/6;
    width: 90%;
    height: 100%;
    margin: 5% auto;
    padding: 1%;
    background-color: white;
    border: 2px solid white;
    border-radius: 10px;
    box-shadow: 2px 2px 10px gray;
    user-select: none;
    overflow: hidden;
    position: relative;
    display: inline-block;
}
#country{
    vertical-align: middle;
    width: 32%;
    height: 90%;
    padding: 0 2%;
    border-top: 1px solid #ccc;
    border-right: none;
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-top-left-radius: 20px; /* Rounded edges */
    border-bottom-left-radius: 20px; /* Rounded edges */
    font-size: 65%;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
#pick-country{
    vertical-align: middle;
    width: auto;
    height: 90%;
    padding: 0 2%;
    border: 1px solid #ccc;
    border-top-right-radius: 20px; /* Rounded edges */
    border-bottom-right-radius: 20px; /* Rounded edges */
    font-size: 75%;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
#objave{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 30px;
}
.okvir img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}
.overlay-text{
  position: absolute;
  bottom: 0.8%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2), transparent, transparent);
  color: white;
  width: 100%;
  height: 100%;
  padding: 85% 0 10% 0;
  font-family: arial;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.images{
  position: absolute;
  bottom: 0.9%;
  background: none;
  color: white;
  width: 100%;
  height: 100%;
  padding-top: 6%;
  padding-right: 6%;
  font-family: arial;
  text-align: right;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-shadow: 
    1px 1px 5px #00000095,   /* bottom right */
   -1px 1px 5px #00000095,   /* bottom left */
    1px -1px 5px #00000095,  /* top right */
   -1px -1px 5px #00000095;  /* top left */

}
.okvir.activated .overlay-text, .okvir.activated .images {
    opacity: 1;
    pointer-events: auto;
}

.overlay-text, .images {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.okvir {
    background-color: white;
    transition: background-color 0.3s ease;
}

.okvir.activated {
    background-color: black;
}
a, .z, .x, .povezave{
  display: inline-block;  /* allows transform to take effect visibly */
  transition: transform 0.3s ease, color 0.3s ease; /* smooth scaling and color change */
}
.z:hover, .x:hover {
    transform: scale(1) !important;
    filter: none !important;
}
.z:active, .x:active {
    transform: scale(0.97) !important;
    filter: none !important;
}
section{
    grid-area: se;
    background-color: black;
    margin: 0;
    display: flex;
    justify-content: center;     /* horizontal centering */
    align-items: center;
    overflow: hidden;
}
section img{
    display: block;
    max-height: 100%;
    max-width: 100%;
    height: var(--window-inner-height);;
    width: auto;
    object-fit: contain;
    object-position: center;
}
#current-image {
    transition: transform 0.1s ease;
    cursor: default;
    user-select: none;
}
figure p{
    padding-bottom: 2%;
}
button.povezave{
    padding-bottom: 5.5%;
    font-weight: bold;
    background: none;
    border: none;
    width: 90%;
    height: auto;
    background: none;
}
.osem{
    font-size: calc(100vw / (4.5*7));  
}
.devet{
    font-size: calc(100vw / (4.5*8));  
}
.deset {
  font-size: calc(100vw / (4.5*9));
}
button:focus:not(.povezave) {
    outline: none;
    box-shadow: none;
}
aside hr{
    position: absolute;
    height: 0.1%;
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
}
.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}
#no-results{
    display: none;
    font-family: arial;
    font-style: italic;
    text-align: center;
    padding-top: 2%;
    color: rgb(63, 63, 63)
}



html, body {
  height: 100%;
}
.App {
  height: var(--window-inner-height);
}

.portrait-style #domov{
    top: 20%;
    right: 5%;
    z-index: 9999;
}
.landscape-style #domov{
    top: 2%;
    right: 5%;
    z-index: 9999;
}
.portrait-style #preview{
    top: 80%;
    left: 5%;
}
.landscape-style #preview{
    top: 2%;
    right: 22%;
}
.portrait-style #slideshow{
    top: 80%;
    left: 19%;
}
.landscape-style #slideshow{
    top: 2%;
    right: 39%;
}
.portrait-style .x{
    position: absolute;
    color: white;
    background-color: rgb(72, 72, 72);
    font-size: 3vw;
    width: 8vw;
    height: 8vw;
    border: none;
    border-radius: 100%;
    display: flex;
    justify-content: center;     /* horizontal centering */
    align-items: center;
    text-decoration: none;
}
.landscape-style .x{
    position: absolute;
    color: white;
    background-color: rgb(72, 72, 72);
    font-size: 1.3vw;
    width: 3vw;
    height: 3vw;
    border: none;
    border-radius: 100%;
    display: flex;
    justify-content: center;     /* horizontal centering */
    align-items: center;
    text-decoration: none;
}
.portrait-style div.ena {
  height: 1200%;
  width: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4), transparent);
  position: absolute;
  margin: 0;
  top: 0;
}
.portrait-style div.dva {
  height: 2500%;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.8), transparent);
  position: absolute;
  margin: 0;
  top: 7500%;
}
.portrait-style aside {
  height: 1%;
  width: 100%;
  background: none;
  position: absolute;
  margin: 0;
  overflow: visible;
}
.landscape-style aside{
    grid-area: as;
    margin: 0;
    background-color: rgb(38, 38, 38);
    position: relative;
}
.portrait-style{
    height: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: "se";
    margin: 0;
}
.landscape-style{
    height: 100%;
    display: grid;
    grid-template-columns: 4fr 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: "se as";
    margin: 0;
}
.portrait-style #pomanjsaj{
    position: absolute;
    left: 19%;
    top: 20%;
    transition: transform 0.3s ease, color 0.3s ease;
}
.landscape-style #pomanjsaj{
    position: absolute;
    right: 63%;
    top: 2%;
    transition: transform 0.3s ease, color 0.3s ease;
}
.portrait-style #povecaj{
    position: absolute;
    left: 5%;
    top: 20%;
    transition: transform 0.3s ease, color 0.3s ease;
}
.landscape-style #povecaj{
    position: absolute;
    right: 80%;
    top: 2%;
    transition: transform 0.3s ease, color 0.3s ease;
}
.portrait-style hr#glavna{
    visibility: hidden;
}
.portrait-style hr#spodnja{
    bottom: 22%;
    background-color: white;
}
.portrait-style hr#srednja{
    visibility: hidden;
}
.landscape-style hr#glavna{
    top: 11%;
    background-color: white;
}
.landscape-style hr#spodnja{
    bottom: 11%;
    background-color: white;
}
.landscape-style hr#srednja{
    top: 26%;
    background-color: rgb(77, 77, 77);
    border: rgb(42, 42, 42);
}
.portrait-style aside h4{
    font-family: arial;
    font-weight: 300;
    font-size: 3.3vw;
    position: absolute;
    color: white;
    bottom: 7vh;
    left: 6%;
    right: 6%;
    max-height: 40%;
    overflow-y: auto;
    padding-right: 10px;
}
.portrait-style aside h3:not(.manjse){
    font-family: arial;
    font-weight: bold;
    font-size: 4.8vw;
    position: absolute;
    color: white;
    top: -67.5vh;
    left: 30%;
    right: 5%;
}
.portrait-style aside h3.manjse{
    font-family: arial;
    font-weight: bold;
    font-size: 4.3vw;
    position: absolute;
    color: white;
    top: -67.5vh;
    left: 30%;
    right: 5%;
}
.portrait-style aside h5{
    font-family: arial;
    font-weight: 100;
    font-size: 2vw;
    position: absolute;
    color: rgb(241, 241, 241);
    top: -64vh;
    left: 30%;
    right: 5%;
    line-height: 160%;
    font-weight: bold;
}
.landscape-style aside h4{
    font-family: arial;
    font-weight: 100;
    font-size: 0.9vw;
    position: absolute;
    color: white;
    top: 28.5%;
    left: 7%;
    right: 5%;
    max-height: 60%;
    overflow-y: auto;
    padding-right: 10px;
}
.landscape-style aside h3:not(.manjse){
    font-family: arial;
    font-weight: bold;
    font-size: 1.5vw;
    position: absolute;
    color: white;
    top: 13%;
    left: 7%;
    right: 5%;
}
.landscape-style aside h3.manjse{
    font-family: arial;
    font-weight: bold;
    font-size: 1.4vw;
    position: absolute;
    color: white;
    top: 13%;
    left: 7%;
    right: 5%;
}
.landscape-style aside h5{
    font-family: arial;
    font-weight: 100;
    font-size: 0.8vw;
    position: absolute;
    color: rgb(198, 198, 198);
    top: 19%;
    left: 7%;
    right: 5%;
    line-height: 160%;
    font-weight: bold;
}
.portrait-style #naprej{
    bottom: 200%;
    right: 5%;
    font-weight: bolder;
    transition: transform 0.3s ease, color 0.3s ease;
}
.portrait-style #nazaj{
    bottom: 200%;
    left: 5%;
    font-weight: bolder;
    transition: transform 0.3s ease, color 0.3s ease;
}
.landscape-style #naprej{
    bottom: 2%;
    right: 63%;
    font-weight: bolder;
    transition: transform 0.3s ease, color 0.3s ease;
}
.landscape-style #nazaj{
    bottom: 2%;
    right: 80%;
    font-weight: bolder;
    transition: transform 0.3s ease, color 0.3s ease;
}
.landscape-style #fullscreen{
    bottom: 2%;
    right: 5%;
    transition: transform 0.3s ease, color 0.3s ease;
}
.portrait-style #fullscreen{
    top: 80%;
    right: 5%;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 20;
}
.portrait-style .y{
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2.5vw;
    font-family: arial;
    width: 20vw;
    height: 3vw;
    border: none;
    display: flex;
    justify-content: center;     /* horizontal centering */
    align-items: center;
    text-decoration: none;
}
.landscape-style .y{
    position: absolute;
    bottom: 2%;
    left: 57%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9vw;
    font-family: arial;
    width: 6vw;
    height: 3vw;
    border: none;
    display: flex;
    justify-content: center;     /* horizontal centering */
    align-items: center;
    text-decoration: none;
}
.portrait-style aside {
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.portrait-style aside.shown {
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}



.portrait-style .vrh{
    grid-area: vrh;
    background-color: white;
    border-bottom: 1px rgb(236, 236, 236) solid;
    padding: 3%;
}
.landscape-style .vrh{
    grid-area: vrh;
    background-color: white;
    border-bottom: 1px rgb(236, 236, 236) solid;
    padding: 1%;
}
.naslovnica{
    grid-area: naslov;
    padding: 5% 2%;
    position: relative;
    width: 100%;
    height: 100%;
}
.opis{
    grid-area: opis;
    padding: 5%;
}
.bliznjice{
    grid-area: bl;
    padding: 2%;
    border-top: dotted 3px rgb(0, 0, 0);
}
.portrait-style .predogled-slik{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 30px;
}
.landscape-style .predogled-slik{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    row-gap: 30px;
}
.predogled-slik .primer{
    display: flex; /* this enables flex layout */
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */
    aspect-ratio: 16/9;
    width: 90%;
    height: 100%;
    margin: 5% auto;
    padding: 1%;
    background-color: none;
    user-select: none;
    overflow: hidden;
    position: relative;
}
.predogled-slik img{
    display: block;
    max-height: 95%;
    max-width: 95%;
    height: var(--window-inner-height);
    width: auto;
    object-fit: contain;
    object-position: center;
    align-items: center;
    box-shadow: 0 0 7px rgb(142, 142, 142);
    transition: transform 0.3s ease, color 0.3s ease;
}
#predogled.portrait-style{
    display: grid;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: rgb(241, 241, 241);
    max-width: 807px;
    min-width: 481px;
    margin: auto; /*centrira*/
    grid-template-columns: 1fr;
    grid-template-rows: minmax(60px, auto); /*vse se bo razširilo glede na količino vsebine*/
    grid-template-areas:
        "vrh"
        "naslov"
        "opis"
        "bl"
}
#predogled.landscape-style{
    display: grid;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: rgb(241, 241, 241);
    max-width: 807px;
    min-width: 481px;
    margin: auto; /*centrira*/
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(20px, auto); /*vse se bo razširilo glede na količino vsebine*/
    grid-template-areas:
        "vrh vrh"
        "naslov opis"
        "bl bl"
}
.naslovnica img{
    width: 100%;
    height: auto;
    position: sticky;
    top: 5%;
    bottom: 0;
    left: 0;
    object-fit: contain;
}
.portrait-style .opis h4{
    font-family: arial;
    font-weight: 300;
    font-size: 1.7vh;
    color: rgb(0, 0, 0);
    top: 28.5%;
    left: 7%;
    right: 5%;
    text-align: justify;
}
.opis h4 b{
    font-weight: bold;
}
.landscape-style .opis h4{
    font-family: arial;
    font-weight: 300;
    font-size: 4vh;
    color: rgb(0, 0, 0);
    top: 28.5%;
    left: 7%;
    right: 5%;
    text-align: justify;
}
.portrait-style .z{
    position: absolute;
    color: black;
    background-color: rgb(195, 195, 195);
    font-size: 3vw;
    width: 23vw;
    height: 8vw;
    border: none;
    display: flex;
    justify-content: center;     /* horizontal centering */
    align-items: center;
    text-decoration: none;
    top: 2.4%;
    right: 17%;
    z-index: 9999;
}
.landscape-style .z{
    position: absolute;
    color: black;
    background-color: rgb(195, 195, 195);
    font-size: 1.2vw;
    width: 10vw;
    height: 3vw;
    border: none;
    display: flex;
    justify-content: center;     /* horizontal centering */
    align-items: center;
    text-decoration: none;
    top: 2%;
    right: 6%;
    z-index: 9999;
}
.portrait-style .opis h3{
    font-family: arial;
    font-weight: bold;
    font-size: 3.3vh;
    color: black;
    padding-bottom: 0.9vw;
}
.landscape-style .opis h3{
    font-family: arial;
    font-weight: bold;
    font-size: 7vh;
    color: black;
    padding-bottom: 0.5vw;
}
.portrait-style .opis h5{
    font-family: arial;
    font-weight: 300;
    font-size: 1.7vh;
    color: rgb(99, 99, 99);
    line-height: 160%;
    padding-bottom: 7vw;
}
.landscape-style .opis h5{
    font-family: arial;
    font-weight: 300;
    font-size: 3.5vh;
    color: rgb(99, 99, 99);
    line-height: 160%;
    padding-bottom: 3vw;
}
.landscape-style #backToTop {
  visibility: hidden;             /* Hidden by default */
  opacity: 0;
  position: fixed;
  width: 5vw;
  aspect-ratio: 1 / 1;
  bottom: 8%;
  right: 5%;
  z-index: 1000;
  font-size: 2vw;
  padding: 0.5% 0.5% 0.8% 0.5%;
  border: none;
  background-color: rgb(72, 72, 72);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 1s ease;
}
.portrait-style #backToTop {
  visibility: hidden;             /* Hidden by default */
  opacity: 0;
  position: fixed;
  width: 10vw;
  aspect-ratio: 1 / 1;
  bottom: 8%;
  right: 5%;
  z-index: 1000;
  font-size: 4vw;
  padding: 0.5% 0.5% 0.8% 0.5%;
  border: none;
  background-color: rgb(72, 72, 72);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 1s ease;
}