﻿.image {
    background-position: center center;
    background-repeat: no-repeat;
}

    .image.size-fixed {
        width: 200px;
        height: 200px;
    }

    .image.size-fluid {
        padding-top: 60%;
        width: 100%;
    }

    .image.scale-fit {
        background-size: contain;
    }

    .image.scale-fill {
        background-size: cover;
    }

    .image img {
        display: none;
    }


.v-align {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    -webkit-transform: translate(0%, -50%);
    -moz-transform: translate(0%, -50%);
    -ms-transform: translate(0%, -50%);
    -o-transform: translate(0%, -50%);
    transform: translate(0%, -50%);
    text-align: center;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

    .gallery-item .gallery-overlay {
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 50;
    }

        .gallery-item .gallery-overlay .button {
            color: #fff;
            font-size: 18px;
            font-weight: 300;
            padding: 5px;
            width: 50%;
            left: 25%;
            top: -50%;
            border: 2px solid transparent;
            /*transition: all 0.3s ease-in-out;*/
            background-color: #008435;
        }

    .gallery-item .image {
        transition: all 0.5s ease-in-out;
    }

    .gallery-item:hover .image {
        /*transform: rotate(10deg) scale(1.6);
            transition: all 3s ease-in-out;*/
    }

    .gallery-item:hover .button {
        visibility: visible;
        /*transition: all 0.3s ease-in-out;*/
        top: 50%;
        border: 1px solid #fff;
    }
