@font-face {
    font-family: 'THMali';
    src: url('th_mali_grade6-webfont.eot');
    src: url('th_mali_grade6-webfont.eot') format('embedded-opentype'),
         url('th_mali_grade6-webfont.woff') format('woff'),
         url('th_mali_grade6-webfont.ttf') format('truetype'),
         url('th_mali_grade6-webfont.svg#THMali') format('svg');
}
body {
	font-family: THMali;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.clear {
    clear: both;
}
#brand-header {
    text-align: left;
    padding: 20px 0;
}
#brand-header .social {
    position: absolute;
    top: 0;
    right: 0;
}
#brand-header .social ul {
    display: inline-flex;
    list-style-type: none;
    padding: 0;
}
#brand-header .social ul li a {
    padding: 0 5px;
}
#brand-header .social .btn-contact {
    background-color: #c18a50 !important;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
}
.navbar-brand {
    display: none;
    color: #8b6500;
    font-weight: bold;
}
.navbar {
    background-color: #FFFFFF;
    border-color: #FFFFFF;
    border: 1px solid transparent;
}
.navbar-default {
    background-image: none;
    -webkit-box-shadow: none;
}
.navbar-toggle, .navbar-toggle:focus {
    background-color: #8b6500 !important;
    border-color: #8b6500 !important;
}
.navbar-toggle .icon-bar {
    background-color: #fff !important;
}
.navbar-toggle:hover {
    background-color: #94731B !important;
}
.navbar-nav {
    background-image: url(../images/navbar.png);
    background-size: 100% auto;
    background-repeat: round;
    width: 100%;
    padding: inherit;
}
.navbar-nav li a {
    color: white !important;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-style: italic;
    padding: 15px 20px;
}
.navbar-nav li a:hover {
    color: #e4bb3c !important;
}


#main-slide {
    position: relative;
}
#main-slide .cover {
    background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 20%, rgba(255,255,255,0) 80%,rgba(255,255,255,1) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 20%,rgba(255,255,255,0) 80%,rgba(255,255,255,1) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 20%,rgba(255,255,255,0) 80%,rgba(255,255,255,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */
    background-size: 100% 100%;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}
#main-slide .cover-text {
    background-image: url(../images/title-bar-1.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    width: 100%;
    padding: 15px;
    margin-top: 5%;
}
#main-slide .cover .cover-text h3 {
    color:#4d8800;
    font-size: 1.8vw;
    font-weight: bold;
    font-style: italic;
}
#main-slide .cover .cover-text h4 {
    color:#8b6500;
    font-size: 1.4vw;
    font-weight: bold;
    font-style: italic;
}
.title {
    background-image: url(../images/title-bar-2.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 10px;
    margin-bottom: 40px;
}
.title h2 {
    font-size: 26px;
    font-weight: 600;
    color:#4d8800;
}
#welcome {
    text-align: center;
    margin-bottom: 50px;
}
#welcome p {
    color: #888;
    font-size: 17px;
    font-weight: 600;
    font-style: italic;
    margin: 50px 0;
}
.about {
    color: #888;
    font-size: 17px;
    font-weight: 600;
    font-style: italic;
    margin: 50px 0;
}
#gallery {
    padding: 30px 0;
}
.gallery-thumb {
    width: 100%;
    height: 180px;
    margin-bottom: 30px;
    overflow-y: hidden; 
}
#footer {
    text-align: center;
    padding: 30px 0;
}
#footer .copy{
    color: #4d8800;
    font-size: 16px;
    margin-top: 22px;
    font-weight: bold;
}
#footer ul {
    list-style: none;
    display: -webkit-inline-box;
}
#footer li a {
    padding: 0 5px;
}

#gallery_vanichfarm {
    width: 800px;
    height: 600px;
}
#gallery_vanichfarm .mini-images li {
    width: 80px;
    height: 50px;
}

@media (max-width: 1200px) {
    .navbar-nav li a {
        color: white !important;
        font-size: 16px;
        font-weight: 600;
        text-transform: uppercase;
        font-style: italic;
        padding: 15px 0.8vw;
    }
}

@media (max-width: 1023px) {
    .navbar-brand {
        display: block;
    }
    .navbar-nav {
        background-image: none;
    }
    .navbar-nav li a {
        color: #8b6500 !important;
    }
    .navbar-header {
        float: none;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .navbar-fixed-top {
        top: 0;
        border-width: 0 0 1px;
    }
    .navbar-collapse.collapse {
        display: none!important;
    }
    .navbar-nav {
        float: none!important;
        margin-top: 7.5px;
    }
    .navbar-nav>li {
        float: none;
    }
    .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .collapse.in{
        display:block !important;
    }
}

@media (max-width: 992px) {
    #brand-header {
        text-align: center;
    }
    #brand-header .social {
        position: relative;
        margin-top: 20px;
    }
    #main-slide .cover .cover-text h3 {
        font-size: 3.8vw;
    }
    #main-slide .cover .cover-text h4 {
        font-size: 2.4vw;
    }

    #gallery_vanichfarm {
        width: 100%;
        height: 400px;
    }
    #gallery_vanichfarm .mini-images li {
        width: 50px;
        height: 40px;
    }

}

/* Black Ribbon */
.black-ribbon {
  position: fixed;
  z-index: 9999;
  width: 70px;
}
@media only all and (min-width: 768px) {
  .black-ribbon {
    width: auto;
  }
}

.stick-left { left: 0; }
.stick-right { right: 0; }
.stick-top { top: 0; }
.stick-bottom { bottom: 0; }
/* End Black Ribbon */ 