*{
    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;
    border-left: 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;
    border-right: 1px rgb(236, 236, 236) solid;
}
article{
    background-color: rgba(241, 241, 241, 0.888);
    grid-area: ar;
    padding: 1%;
    min-height: 75vh;
}
footer{
    background-color: white;
    grid-area: fo;
    padding: 0.8%;
    border-top: 1px rgb(236, 236, 236) solid;
    font-family: arial;
    text-align: center;
    color: #555;
    border-left: 1px rgb(236, 236, 236) solid;
    border-right: 1px rgb(236, 236, 236) solid;
    border-bottom: 1px rgb(236, 236, 236) solid;
}
hr#dno{
    margin-bottom: 1%;
    border: none;
    height: 1px;
    background-color: #ccc;
}
#layout{
    display: grid;
    max-width: 2000px;
    min-width: 1341px;
    min-height: auto;
    margin: auto; /*centrira*/
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: minmax(60px, 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: 21%;
    vertical-align: middle;
}
#logo2{
    height: auto;
    width: 14%;
    vertical-align: middle;
}
#search{
    vertical-align: middle;
    width: 30%;
    height: 100%;
    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: 90%;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
#lupa{
    vertical-align: middle;
    width: 8%;
    height: 100%;
    padding: 0 1%;
    border: 1px solid #ccc;
    border-top-right-radius: 20px; /* Rounded edges */
    border-bottom-right-radius: 20px; /* Rounded edges */
    font-size: 50%;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
#lupa img {
  height: 1.2vw;
  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: 25%;
    height: 100%;
    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: 90%;
    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: 100%;
    padding: 0 2%;
    border: 1px solid #ccc;
    border-top-right-radius: 20px; /* Rounded edges */
    border-bottom-right-radius: 20px; /* Rounded edges */
    font-size: 90%;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
#objave{
    display: grid;
    grid-template-columns: 1fr 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: 88% 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:hover .overlay-text, .okvir:hover .images{
  opacity: 1;
}
.okvir.activated .overlay-text, .okvir.activated .images {
    opacity: 1;
    pointer-events: auto;
}
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 */
}
section{
    grid-area: se;
    background-color: black;
    margin: 0;
    display: flex;
    justify-content: center;     /* horizontal centering */
    align-items: center;
    overflow: hidden;
}
aside{
    grid-area: as;
    margin: 0;
    background-color: rgb(38, 38, 38);
    position: relative;
}
#galerija{
    display: grid;
    min-width: 1281px;
    margin: auto; /*centrira*/
    grid-template-columns: 4fr 1fr;
    grid-template-rows: 100vh;
    grid-template-areas:
        "se as"
}
section img{
    display: block;
    max-height: 100%;
    max-width: 100%;
    height: 100%;
    width: auto;
    object-fit: contain;
    object-position: center;
}
#current-image {
    transition: transform 0.1s ease;
    cursor: default;
    user-select: none;
}
.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;
}
.y{
    position: absolute;
    bottom: 2%;
    left: 57%;
    transform: translateX(-50%);
    color: white;
    font-size: 1vw;
    font-family: arial;
    width: 6vw;
    height: 3vw;
    border: none;
    display: flex;
    justify-content: center;     /* horizontal centering */
    align-items: center;
    text-decoration: none;
}
figure p{
    padding-bottom: 3%;
}
button.povezave{
    padding-bottom: 7%;
    font-weight: bold;
    background: none;
    border: none;
    width: 90%;
    height: auto;
    background: none;
}
.osem {
  font-size: min(calc(100vw / (6*7)), calc(2000px / (6*7)));
}
.devet {
  font-size: min(calc(100vw / (6*8)), calc(2000px / (6*8)));
}
.deset {
  font-size: min(calc(100vw / (6*9)), calc(2000px / (6*9)));
}
#domov{
    top: 2%;
    right: 5%;
    z-index: 9999;
}
#preview{
    top: 2%;
    right: 22%;
}
#slideshow{
    top: 2%;
    right: 39%;
}
#naprej{
    bottom: 2%;
    right: 63%;
    font-weight: bolder;
    transition: transform 0.3s ease, color 0.3s ease;
}
#nazaj{
    bottom: 2%;
    right: 80%;
    font-weight: bolder;
    transition: transform 0.3s ease, color 0.3s ease;
}
#fullscreen{
    bottom: 2%;
    right: 5%;
    transition: transform 0.3s ease, color 0.3s ease;
}
button:focus:not(.povezave) {
    outline: none;
    box-shadow: none;
}
aside h4{
    font-family: arial;
    font-weight: 100;
    font-size: 1vw;
    position: absolute;
    color: white;
    top: 28.5%;
    left: 7%;
    right: 5%;
    max-height: 60%;
    overflow-y: auto;
    padding-right: 10px;
}
aside h3:not(.manjse){
    font-family: arial;
    font-weight: bold;
    font-size: 1.5vw;
    position: absolute;
    color: white;
    top: 13%;
    left: 7%;
    right: 5%;
}

aside h3.manjse{
    font-family: arial;
    font-weight: bold;
    font-size: 1.4vw;
    position: absolute;
    color: white;
    top: 13%;
    left: 7%;
    right: 5%;
}

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%;
}
aside hr{
    position: absolute;
    height: 0.1%;
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
}
hr#glavna{
    top: 9.5%;
    background-color: white;
}
hr#spodnja{
    bottom: 9.5%;
    background-color: white;
}
hr#srednja{
    top: 26%;
    background-color: rgb(77, 77, 77);
    border: rgb(42, 42, 42);
}
#povecaj{
    position: absolute;
    right: 80%;
    top: 2%;
    transition: transform 0.3s ease, color 0.3s ease;
}
#pomanjsaj{
    position: absolute;
    right: 63%;
    top: 2%;
    transition: transform 0.3s ease, color 0.3s ease;
}
.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)
}



.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);
}
.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{
    display: grid;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: rgb(241, 241, 241);
    min-width: 1281px;
    margin: auto; /*centrira*/
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(60px, 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;
}
.opis h4{
    font-family: arial;
    font-weight: 100;
    font-size: 2.1vh;
    color: rgb(0, 0, 0);
    top: 28.5%;
    left: 7%;
    right: 5%;
    text-align: justify;
}
.opis h4 b{
    font-weight: bold;
}
.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;
}
.opis h3{
    font-family: arial;
    font-weight: bold;
    font-size: 5vh;
    color: black;
    padding-bottom: 0.5vw;
}
.opis h5{
    font-family: arial;
    font-weight: 100;
    font-size: 2vh;
    color: rgb(99, 99, 99);
    line-height: 160%;
    padding-bottom: 3vw;
}
#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;
}