.map
{
    background-color: #161719;
    display: inline-block;
    font-size: 16px;
    overflow: hidden;
    position: relative;
    text-align: center;
    width: 100%;
}

.map *,
.map *:before
{
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all 0.35s ease;
    transition: all 0.35s ease;
}

.map img
{
    backface-visibility: hidden;
    max-width: 100%;
    vertical-align: top;
}

.map figcaption
{
    bottom: 30px;
    left: 0;
    position: absolute;
    z-index: 0;
}

.map figcaption:before
{
    background-color: #ffffff;
    bottom: -5px;
    content: '';
    left: 0;
    position: absolute;
    right: 100%;
    top: -5px;
    z-index: -1;
}

.map h3
{
    background-color: #f2aa04;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
    padding: 5px 10px;
    text-transform: uppercase;
    z-index: 1;
}

.map a
{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.map:hover > img,
.map.hover > img
{
    opacity: 0.1;
}

.map:hover figcaption:before,
.map.hover figcaption:before
{
    right: -5px;
}
