



.banner{
    margin: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
    url('/images/aboutbg1.jpg'); 
   background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 250px;
}

#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;
    margin: 0;
}
.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 #slika{
    margin: -3% 3%;
     width: 40%;
     max-height: 100%;

}

.first-container-content{
    width: 50%;
    margin-left: 5%;
}
.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: 100%;
    display: block;
    border-radius: 10px;
}
  
#first-acc h1{
 color: rgb(22, 22, 22);

}



@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 {
           border: 1px solid red;
            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:100%; /*Full width for content*/ 
            
            margin-left: 0;
             /*Center-align text*/
             border: 1px solid red;
        }
    
        .first-container-content h1 {
            font-size: 4rem;
        }
    
        .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 {
        height: auto; /*Allow content to dictate height on smaller screens*/ 
    
    }

    .first-container {
        flex-direction: column; /*Stack elements vertically*/ 
        align-items: center;
        padding: 5%;
    }

    .first-container .slika1 {
        width: 80%; /*Scale image to fit smaller screens*/ 
        margin-bottom: 20px;
    }
    .first-container #slika{
    margin: 3%;
     width: 100%;
     max-height: 100%;

    }

    .first-container-content {
        width: 100%; /*Full width for content*/ 
        margin-left: 0;
        text-align: center;  /*Center-align text*/
    }

    .first-container-content h1 {
        font-size: 4rem;
    }

    .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;
    }
    .grid {
  
    grid-template-columns: repeat(1, 1fr);
}
.banner h2{
    font-size: 40px;
}

   }
 