picture img {
    max-width: 100%;
}

.mfp-bg { 
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%; 
    z-index: 1042; 
    overflow: hidden; 
    position: fixed; 
    background-image: url(/theme/public/assets/img/overlay.svg);
    opacity: 1;
    background-size: cover;
    background-position: center;
}

.gallery_automatic .row div a:hover {
    transform: scale(1.05);
    transition: 0.5s ease all;
    z-index: 1025;
    position: relative;
}

.back-to-top {
    width: 100px;
}

.footer p:not(.text-white) {
    color: white;
    font-size: 16px;
}

body:not(.page-on-scroll) #main-nav li a.nav-item-child:hover {
    color: #590d26;
}

@media (min-width: 992px) {
     
.page-on-scroll .header .navbar {
    background: #590d26;
}
.page-on-scroll .header .nav-item-child {
    color: white;
}
.page-on-scroll .header .nav-item-child:hover,
.header .nav-item.open .nav-item-child,
.header .nav-item .nav-item .nav-item-child {
    color: #590d26;
}
body:not(.page-on-scroll) .navbar {
        background-color: rgba(89,13,38,0.8);
    }
}



#rex-yform form input, #rex-yform form textarea, #rex-yform form select, #rex-yform form .form-control { 
    background-color: #eee; 
    color: #333;
}