/**
 * 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;
}

@media (max-width: 992px) {
    .hib-column {
        padding-top: 15px;
        padding-bottom: 15px;
    }
}

/**
 * 1.1 Background Image
 */

.hib-container img {
    width: 100%;
    height: 100%;
}

/**
 * 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 (max-width: 992px) {
    .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;
}