



.banner{
    margin: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
    url('/images/abbg.jpg'); 
   background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 250px;
}
#bannerspa{
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
    url('/images/abbg.PNG');
      background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    

}
#sep-acc p,
#sep-acc span,
#sep-acc h1{
    color: #E8E8E8;

   }
   .nav-links{
    
    width: auto;
    margin-left: 70%;
    justify-content: space-evenly;
   }

   
.banner{
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;  
}
#banner{
    margin-bottom: 5%;
}
.banner h2{
    font-size: 65px;
    margin-top: 10px;
    color: whitesmoke;
    text-wrap: nowrap;
}
.banner p{
    color: whitesmoke;
    margin-bottom: 5px;
    font-size: 15px;
}
.banner-slika{
    width: 100%;
    height:auto;
}

   .gallery-container {
    
    width: 90%;
    margin: 50px auto;
}

.first{
    height: auto;
}

.first-container{
    display: flex;
    max-height: 100%;
    width: 90%;
    border-radius: 10px;
     padding: 2%;
     margin: 5%;
}
.first-container .slika1{
      margin: 0 3%;
     width: 40%;
     max-height: 100%;
     
}

.first-container-content{
    width: 50%;
    margin: 5% 0%;
    
}
.first-container-content h2{
    
    font-size: 5rem;
  font-weight: normal;
  text-wrap: nowrap;
}

.first-container-content p{
   margin-top: 3%;
    font-size: 1.2rem;
    line-height: 1.7rem;
    color: #3B3B3B;
    text-align: justify;
}




 

.grid {
    display: grid;
   grid-template-columns: repeat(4, 1fr);
     grid-template-rows: auto;
    gap:15px;
    width: 90%;
    margin: 0 auto;
}
.grid .small {
    grid-column: span 2 ;
}

.grid .medium {
    grid-column: span 2;
}

.grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}
  
#first-acc h1{
 color: rgb(22, 22, 22);
}

.spa-gallery{
  max-width: 90%;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3,1fr);
  margin: 3% auto;
 
 
}
.spa-gallery img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spa-gallery .mala:nth-of-type(1) {
  grid-column: 2;
  grid-row: 1;
}

.spa-gallery .mala:nth-of-type(2) {
  grid-column: 1;
  grid-row: 1;
}
.spa-gallery .mala:nth-of-type(3){
   grid-column: 2;
   grid-row: 3;
}
.spa-gallery .mala:nth-of-type(4){
    grid-column: 3;
    grid-row: 4;

}

.spa-gallery .uspravna:nth-of-type(5) {
  grid-column: 3;
  grid-row: 1 / span 2; 
}
.spa-gallery .uspravna:nth-of-type(6){
    grid-column: 1;
    grid-row: 2 /span 2;

}
.spa-gallery .mala:nth-of-type(7){
    grid-row: 3;
    grid-column: 3;
}
.spa-gallery .mala:nth-of-type(10){
    grid-column: 2;
    grid-row: 2;
}


@media screen and (min-width:1366px) and (max-width:1440px){

.nav-links{
    margin-left: 65%;
    justify-content: space-evenly;
   }
  .first-container { 
            padding: auto;
         
        }
    
        .first-container .slika1 {
             margin: 0 auto;
             width: 45%;
            
        }
    
        .first-container-content {
            width: 80%;  
        }
    
    #second-acc .first-container-content{
         margin-left: 0;
         margin-right: 50px;
    }
    #second-acc .first-container .slika1 {
             margin: 0 auto;
             width: 45%;
             
        }
         @-moz-document url-prefix() {
    .first-container .slika1,
    #second-acc .first-container .slika1 {
      width: 50%; /* Slight tweak for Firefox if needed */
    }

    #second-acc .first-container-content {
      margin-right: 48px;
    }
     #second-acc .first-container-content p,
    #first-acc .first-container-content p{
        font-size: 1rem;
    }
  }
    
        
   }
   @media screen and (min-width:1024px) and (max-width:1280px){
    
 .nav-links{
    margin-left: 65%;
    justify-content: space-evenly;
   }
  

    .first-container {
            gap: 5px;
            padding: auto;
            height: auto;
        }
    
        .first-container .slika1 {
            width:calc(50% + 2vw); 
            height: initial;/*Scale image to fit smaller screens*/ 
            margin: 5% 3%;
        }
    
        .first-container-content {
            width:50%; /*Full width for content*/ 
            
            margin-left: 0;
             /*Center-align text*/
          
        }
    
        .first-container-content h2 {
            font-size: 4rem;
            text-align: center;
        }
    
        .first-container-content p {
            font-size: 1rem;
            margin-top: 3%;
             font-size: 1rem;
             line-height: 1.5rem;
             
          }
     }
   
@media screen and (min-width: 510px) and (max-width: 1000px),
       only screen and (min-device-width: 320px) and (max-device-width: 500px) and (orientation: portrait) and (max-aspect-ratio: 21/9){
     .first {
        height: auto; /*Allow content to dictate height on smaller screens*/ 
    
    }


    .first-container {
        flex-direction: column; /*Stack elements vertically*/ 
        align-items: center;
        padding: 5%;
        width: 100%;
        margin: auto;
    }
.first-container .slika1 {
        width: 100%; /*Scale image to fit smaller screens*/ 
        margin-bottom: 20px;
    }
    

    .first-container-content {
        width: 100%; /*Full width for content*/ 
     text-align: center;  /*Center-align text*/
    }

    .first-container-content h2 {
        font-size: 3rem;
    }

    .first-container-content p {
        font-size: 1rem;
        margin-top: 10px;
        font-size: 1rem;
             line-height: 1.5rem;
    }
   
    #second-acc .first-container-content p{
        margin-bottom: 15px;
    }
  .first .spa-grid{
    margin: 0;
    max-width: 100%;
    gap: 6px;
   
  }
  .grid{
    grid-template-columns: repeat(1,1fr);
  }
.bannerspa2 h2{
    font-size: 2px;
}
.spa-gallery{
  max-width: 96%;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2,1fr);
  margin: 3% auto;
  height: auto;
 
 
}
.spa-gallery img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spa-gallery .mala:nth-of-type(1) {
  grid-column: 1;
  grid-row: 1;
}

.spa-gallery .mala:nth-of-type(2) {
  grid-column: 1;
  grid-row: 2;
}
.spa-gallery .mala:nth-of-type(3){
   grid-column: 2;
   grid-row: 3;
}
.spa-gallery .mala:nth-of-type(4){
    grid-column: 1;
    grid-row: 6;

}

.spa-gallery .uspravna:nth-of-type(5) {
  grid-column: 2;
  grid-row: 1 / span 2; 
}
.spa-gallery .uspravna:nth-of-type(6){
    grid-column: 1;
    grid-row: 3 /span 2;

}
.spa-gallery .mala:nth-of-type(7){
    grid-row: 4;
    grid-column: 2;

}
.spa-gallery .mala:nth-of-type(8){
    grid-column: 2;
    grid-row: 6;
}
.spa-gallery .mala:nth-of-type(10){
    grid-column: 1;
    grid-row: 5;
}


       }