.polje-firme{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 1fr;
    gap: 2px;
    padding: 1px;
    grid-auto-flow: dense;

}
#spnTekstOpis{
    font-size: .8em;
    padding: 1em 2em;
    display: block;
}
.firma {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    height: 100%;
    inset-inline: 0px;
    margin: 0px;
    padding: 0px;
    position: relative;
    align-items: center;
    border-radius: 1px;
    outline-offset: 0px;
    /* opacity: 90%; */
    aspect-ratio: 1;
}
.firma img {
    /* max-width: 100%;
    max-height: 100%; */
    width: 100%;
    height: 100%; 
    /* object-fit: contain; */
    transition: 300ms transform ease-in-out, 300ms height ease-in-out;
    /* aspect-ratio: 1 / 1; */
    /* background-color: aqua; */
}
.firma:hover >img{
    transform: scale(1.02);
}
.info-box{
    /* position: absolute; */
    /* float: left; */
    /* aspect-ratio: 1 / 1; */

    width: 100%;
    /* background-color: #ff7b00; */
    height: 0px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 300ms height ease-in-out;
    overflow: hidden;

}
.info-box *{
    overflow: hidden!important;
}
.info-box-dugme{
    position: absolute;
    display: block;
    bottom: 0;
    right: 0;
    background-color: white;
    /* width: 1.2em;
    height: 1.2em; */
    width: 20px;
    /* height: 20px; */
    border-radius: 50% 0 0 0;
    text-align: center;
    font-weight: 800;
    text-shadow: 1px 1px 2px var(--senka);
    z-index: 20;
}
.imaPersonalnuStr{
    background-color: var(--pozadina-elemnta);
    color: var(--slova-crvena);
    box-shadow: inset 1px 1px 2px var(--senka);
}
.prikazi-info-box{
    /* outline: 2px solid var(--ivica); */
}
.prikazi-info-box img{
    /* transform: translateY(-100%)!important;
    transform-origin: top; */
    height: 0px;
    /* aspect-ratio: unset; */
}
.prikazi-info-box .info-box{
    height: 100%;
    /* aspect-ratio: 1 / 1; */
}
#divInfoBox_podatci{
    display: flex;
    flex-direction: column;
}
.naziv-firme{
    font-weight: 700;
}
.kontakt-opcije{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* grid-template-rows: 1fr 1fr; */
    grid-auto-rows: 1fr;
    padding: 0;
    margin: 0;
    margin-top: auto;
}
.kontakt-opcije ul{
    padding: 0;
}
.kontakt-opcije li{
    color: white;
    padding: .4em;
    text-align: center;
}
.kontakt-opcije .strana {
    background-color: #ff7b00;
}
.kontakt-opcije .mapa {
    background-color: orangered;
}
.kontakt-opcije .telefon {
    background-color: green;
}
.kontakt-opcije .webstr {
    background-color: lightskyblue;
}
.kontakt-opcije .email {
    background-color: darkred;
}
.kontakt-opcije .fejsbuk {
    background-color: darkblue;
}
.kontakt-opcije .instagram {
    background-color: purple;
}
.promo-raspored:nth-child(2){
    grid-row-end: span 2;
    height: 100%;
    width: 100%;
    /* aspect-ratio: 100/203!important; */
}

.promo-raspored:nth-child(12){
    grid-row-end: span 2;
    grid-column-end: span 2;
    height: 100%;
}

.promo-raspored:nth-child(17){
    grid-column-end: span 2;
    height: 100%;
    aspect-ratio: 1.99/1;
}
.vel1{
    aspect-ratio: 1 / 1;
}
.vel1 img{
    /* aspect-ratio: unset; */
    object-fit: cover;
}
.vel2 {
    /* grid-column-end: span 2;
    aspect-ratio: unset; */
    grid-column-end: span 2;
    height: 100%;
    aspect-ratio: 1.99/1;
}
.vel2 img{
    aspect-ratio: unset;
    /* object-fit: cover; */
}
.vel3 {
    /* grid-row-end: span 2;
    aspect-ratio: unset; */
    grid-row-end: span 2;
    height: 100%;
}
.vel3 img{
    /* object-fit: cover; */
    /* aspect-ratio: unset; */
    
}
.vel4 {
    grid-row: span 2;
    grid-column: span 2;
    /* height: 100%; */
}
.vel4 img{
    aspect-ratio: unset;
    object-fit: cover;

}
/* #divDugmeJos{
    background-color: #ff7b00;
    grid-column: span 5;   
    text-align: center;
}
#divDugmeJos span{
    background-color: aqua;
    font-size: 1.3em;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1em;
    display: block;
    width: max-content;
    margin: 1em auto 0 auto;
} */
#divJosFirmi{
    display: none;
    text-align: center;
    margin-top: 1em;
    /* background-color: #ff7b00; */
    font-size: 1em;
}
#divJosFirmi .ulPotkategorije{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    width: max-content;
    margin: 1em auto;
    padding: 0px;
}
#divJosFirmi .ulPotkategorije li{
    /* background-color: white; */
    padding: .2em .5em;
    cursor: pointer;
    /* border-left: 1px solid var(--slova-crvena); */
    border-right: 2px solid var(--slova-crvena);
}
#divJosFirmi .ulPotkategorije li:hover{
    text-decoration: underline;
}
#divJosFirmi .ulPotkategorije li:last-child{
    border-right: none;
}
#spnUkupnoFirmi{
    font-weight: 800;
}
@media screen and (max-width:380px) {
    #divSadrzaj{
        grid-area: sadrzaj;
        /* background-color:darkgreen; */
        
    }
    
}

@media screen and (max-width:480px) {
    #divSadrzaj{
        grid-area: sadrzaj;
        /* background-color:darkgreen; */
        
    }
    .polje-firme{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .promo-raspored:nth-child(1){
        grid-row-start: 1;
        grid-column-start: 1;
        --aspect-ratio: 1/1;
    }
    
    .promo-raspored:nth-child(2){
        grid-row-start: 2;
        grid-column-start: 2;
        grid-row-end: span 2;
        height: 100%;
        --aspect-ratio: 1/1;
    }
    
    .promo-raspored:nth-child(3){
        grid-row-start: 2;
        grid-column-start: 1; 
    }
    
    .promo-raspored:nth-child(4){
        grid-row-start: 3;
        grid-column-start: 1;
    }
    
    .promo-raspored:nth-child(5){
        grid-row-start: 4;
        grid-column-start: 1;
    }
    
    .promo-raspored:nth-child(6){
        grid-row-start: 1;
        grid-column-start: 2;
    
    }
    
    .promo-raspored:nth-child(7){
        grid-row-start: 4;
        grid-column-start: 2;
    }
    
    .promo-raspored:nth-child(8){
        grid-row-start: 5;
        grid-column-start: 1;
    }
    
    .promo-raspored:nth-child(9){
        grid-row-start: 5;
        grid-column-start: 2;
    }
    
    .promo-raspored:nth-child(10){
        grid-row-start: 8;
        grid-column-start: 1;
    }
    
    .promo-raspored:nth-child(11){
        grid-row-start: 8;
        grid-column-start: 2;
    }
    
    .promo-raspored:nth-child(12){
        grid-row-start: 6;
        grid-row-end: span 2;
        grid-column-start: 1;
        grid-column-end: span 2;
        height: 100%;
    }
    
    .promo-raspored:nth-child(13){
        grid-row-start: 10;
        grid-column-start: 1;
    }
    
    .promo-raspored:nth-child(14){
        grid-row-start: 10;
        grid-column-start: 2;
    }
    
    .promo-raspored:nth-child(15){
        grid-row-start: 11;
        grid-column-start: 1;
    }
    
    .promo-raspored:nth-child(16){
        grid-row-start: 11;
        grid-column-start: 2;
    }
    
    .promo-raspored:nth-child(17){
        grid-row-start: 9;
        grid-column-start: 1;
        grid-column-end: span 2;
        aspect-ratio: 2.03/1;
    }
    
    .promo-raspored:nth-child(18){
        grid-row-start: 12;
        grid-column-start: 1;
    }
    
    .promo-raspored:nth-child(19){
        grid-row-start: 12;
        grid-column-start: 2;
    }
    
    .promo-raspored:nth-child(20){
        grid-row-start: 13;
        grid-column-start: 1;
    }
    
    .promo-raspored:nth-child(21){
        grid-row-start: 13;
        grid-column-start: 2;
    }
    
    .promo-raspored:nth-child(22){
        grid-row-start: 14;
        grid-column-start: 1;
    }
    
    .promo-raspored:nth-child(23){
        grid-row-start: 14;
        grid-column-start: 2;
    }
    #divDugmeJos{
        grid-column: span 2;   
    }
}
@media screen and (min-width:481px) and (max-width:768px) {
    
}
@media screen and (min-width: 769px) {
    
}