
.fw-main-row {
    position: relative;
    background-size: cover;
    background-position: 50%;
    background-repeat: no-repeat;
}

.fw-main-row.dark-bg,
.footer.dark-bg,
.side-panel.dark-bg {
    background-color: #302d2a;
}

.cf-overlay {
    overflow-x: scroll;
    overflow-y: hidden;
    margin: 0 -15px;
}

.cf-items.horisontal {
    height: auto;
    width: 4500px;
}

.horisontal .gallery-item {
    float: left;
}

.horisontal .gallery-item:not(:last-of-type) {
    margin-right: 30px;
}

.cf-items {
    height: 700px;
}

.gallery-item {
    position: relative;
    background-size: cover;
    background-position: 50%;
    padding-bottom: 0;
    padding: 0;
    overflow: hidden;
}

.masonry {
    margin: 0 15px;
}

.masonry .gallery-item {
    padding: 15px;
}

.masonry .gallery-item a {
    position: relative;
    display: block;
}

.masonry .gallery-item a img {
    max-width: 100%;
    vertical-align: bottom;
}

.masonry .gallery-item:after {
    display: none;
}

.gallery-item a {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.gallery-item a > div {
    line-height: 1.2em;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0px;
    padding: 10px 30px;
    background: #000;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.gallery-item:hover a > div {
    opacity: 1;
    visibility: visible;
}

.gallery-item a > div .name {
    font-weight: bold;
}

.gallery-item a > div .text {
    font-style: italic;
    font-size: 0.778em;
}

.horisontal .gallery-item a {
    /* position: relative; */
    /* display: block; */
}

.horisontal .gallery-item img {
    height: 700px;
    display: block;
}

.gallery-item:after {
    content: "";
    display: block;
    margin-bottom: 70%;
}

.horisontal .gallery-item:after {
    display: none;
}


.cf-overlay {
    overflow-x: scroll;
    overflow-y: hidden;
    margin: 0 -15px;
}

.cf-items.horisontal {
    height: auto;
    width: 4500px;
}

.horisontal .gallery-item {
    float: left;
}

.horisontal .gallery-item:not(:last-of-type) {
    margin-right: 30px;
}

.cf-items {
    height: 700px;
}

.gallery-item {
    position: relative;
    background-size: cover;
    background-position: 50%;
    padding-bottom: 0;
    padding: 0;
    overflow: hidden;
}

.masonry {
    margin: 0 15px;
}

.masonry .gallery-item {
    padding: 15px;
}

.masonry .gallery-item a {
    position: relative;
    display: block;
}

.masonry .gallery-item a img {
    max-width: 100%;
    vertical-align: bottom;
}

.masonry .gallery-item:after {
    display: none;
}

.gallery-item a {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.gallery-item a > div {
    line-height: 1.2em;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0px;
    padding: 10px 30px;
    background: #000;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.gallery-item:hover a > div {
    opacity: 1;
    visibility: visible;
}

.gallery-item a > div .name {
    font-weight: bold;
}

.gallery-item a > div .text {
    font-style: italic;
    font-size: 0.778em;
}

.horisontal .gallery-item a {
    /* position: relative; */
    /* display: block; */
}

.horisontal .gallery-item img {
    height: 700px;
    display: block;
}

.gallery-item:after {
    content: "";
    display: block;
    margin-bottom: 70%;
}

.horisontal .gallery-item:after {
    display: none;
}

@media screen and (max-width: 768px){
    .cf-item .image .fw-row > div {
        padding: 5px 0;
    }

    .cf-items.horisontal {
        width: auto !important;
    }
}	
