body {

    background-color: #f9f5ef;
}


.container {
    max-width: 740px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 6%;
    overflow: hidden;
    min-width: 180px;
     
}
/*18px/2*/
.galleryItem {
    color: #797478;
    font-family: Garamond, Helvetica, sans-serif;
    float: left;
    width: 29%;
    margin:  2% 2% 50px 2%;
    min-width: 160px; 
}

.galleryItem p {
 position: relative;
 
}    
  

 
.galleryItem  h2 {
    
    
    text-align: center;
    
}
 
.galleryItem img {
    max-width: 100%;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    width: 100%;
    height: auto;
    max-height: 180px;
    max-width: 240px;
    
}


.galleryItem p {
    border-radius: 10px;
    text-align: center;
    max-width: 100%;
    width: 240px;
    height: auto;
    max-height: 280px;
    
    }

.galleryItem h2 {
    max-width: 230px;
    width: 100%;
    height: auto;
    text-align: center;
    
}

a:link {
    
    text-decoration: none;
    color: #952235;
}
a:visited {
    text-decoration: none;
    color: #952235;
}
a:hover {
    text-decoration: none;
    color: #952235;
   
}

/* Mišem preko teksta pa se promijeni tekst! */

p span.english {display: none;}
p span.croatian {display:inline;}
p:hover span.croatian {display:none;}
p:hover span.english {display:inline;}


/* Mišem preko slike pa se zatamni! */
.galleryItem img {
  
  -webkit-transition: all 1s ease;
     -moz-transition: all 1s ease;
       -o-transition: all 1s ease;
      -ms-transition: all 1s ease;
          transition: all 1s ease;
}
 
 .galleryItem img:hover {
 -webkit-filter: brightness(80%);

}


.logo {
   
    margin-right: auto;
    margin-left: auto;
    width: 100%;
    min-width: 60px; 
    max-width: 120px;

}


.logo img {
    max-width: 100%;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;

} 


@media only screen and (max-width : 940px),
only screen and (max-device-width : 940px){
    .galleryItem {
        width: 29%;
    }
    .logo {
        width: 100%;
    }
    p {
        max-width: 240px;
        width: 100%;
    }
    h2 {
        max-width: 240px;
        width: 100%;
    }
}



 
@media only screen and (max-width : 780px),
only screen and (max-device-width : 800px){
    .galleryItem {
        width: 100%; 
        text-align: center;
    }
    .galleryItem img {
        width: 100%; 
        text-align: center; 
    }
    .galleryItem h2 { 
        width: 100%;  
        font-size: 1.2em; 
        margin-left: auto; 
        margin-right: auto; 
        text-align: center;
    }
    .galleryItem p {
        max-width: 240px; 
        width: 100%; 
        font-size: 1em; 
        margin-left: auto;
        margin-right: auto; 
        text-align: center;
    }
    .logo {
        width: 100%; 
        text-align: center;
    }
}