/**
 * Hover Image Button Style Sheet
 *
 * @link https://github.com/igpremuo/hover-image-button
 *
 * @package   Hover_Image_Button
 * @author    Ignacio Pérez
 * @license   GPLv2 or later
 *
 */

 /**
  * 1 Main container
  */

.hib-container {
    position: relative;
    overflow: hidden;
}

.hib-container * {
    -webkit-transition: all .25s ease-in-out;
    -moz-transition: all .25s ease-in-out;
    -o-transition: all .25s ease-in-out;
    transition: all .25s ease-in-out;
}

/**
 * 1.1 Background Image
 */

.hib-container img {
    width: 100%;
    height: 100%;
    vertical-align: middle;
    border: 0 none;
}

/**
 * 1.2 Title and subtitle container
 */

.hib-text-container {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    z-index: 1;
}

.hib-text-table {
    width: 100%;
    height: 100%;
    display: table;
    padding: 10px;
}

.hib-text-table-cell {
    width: 100%;
    height: 100%;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

/**
 * 1.2.1 Title
 */

.hib-text-table-cell .title {
    width: 100%;
    position: relative;
    display: block;
}

.hib-text-table-cell .title * {
    width: 100%;
    text-align: center;
    margin: 0;
}

/**
 * 1.2.2 Subtitle
 */

.hib-text-table-cell .subtitle {
    width: 100%;
    height: 0;
    opacity: 0;
    text-align: center;
}

@media handheld, only screen and (max-width: 991px) {
    .hib-text-table-cell .subtitle {
        margin-top: 10px;
        height: auto;
        opacity: 1;
    }
}

.hib-text-table-cell:hover .subtitle {
    margin-top: 10px;
    height: auto;
    opacity: 1;
}

/**
 * 1.2.3 Link
 */

.hib-text-table-cell .link {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/**
 * 2 Grid System
 */

.hib-grid {
    width: auto;
    margin: 0 -15px;
}

.hib-grid *, .hib-grid *::before, .hib-grid *::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

@media handheld, only screen and (max-width: 767px) {
    .hib-grid {
        margin: -15px 0;
    }
}

.hib-col-1 {
    width: 100%;
}

.hib-col-2 {
    width: 50%;
}

.hib-col-3 {
    width: 33.33%;
}

.hib-col-4 {
    width: 25%;
}

.hib-col-5 {
    width: 20%;
}

.hib-col-6 {
    width: 16.667%;
}

.hib-col-7 {
    width: 14.28%;
}

.hib-col-8 {
    width: 12.5%;
}

.hib-col-9 {
    width: 11.11%;
}

.hib-col-10 {
    width: 10%;
}

.hib-col-11 {
    width: 9.09%;
}

.hib-col-12 {
    width: 8.33%
}

.hib-col-1, .hib-col-2, .hib-col-3, .hib-col-4, .hib-col-5, .hib-col-6, .hib-col-7, .hib-col-8, .hib-col-9, .hib-col-10, .hib-col-11, .hib-col-12 {
    float: left;
    position: relative;
    min-height: 1px;
    padding: 0 15px;
}

@media handheld, only screen and (max-width: 767px) {
    .hib-col-1, .hib-col-2, .hib-col-3, .hib-col-4, .hib-col-5, .hib-col-6, .hib-col-7, .hib-col-8, .hib-col-9, .hib-col-10, .hib-col-11, .hib-col-12 {
        width: auto;
        float: none;
        padding: 15px 0;
    }
}

