.album {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 14px -7px;
}
.album-item {
    display: block;
    position: relative;
    width: calc(20% - 14px);
    margin: 7px;
}
.album-item::before {
    display: block;
    content: "";
    width: 100%;
    margin-top: 75%;
}
.album-item figure {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.album-item figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.album-item figcaption {
    position: absolute;
    box-sizing: border-box;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    width: 100%;
    padding: 7px;
    background: var(--colorMain);
    background: var(--bgMain75);
    color: var(--colorWhite);
    line-height: 1.1;
    overflow: hidden;
    min-height: 64px;
}
.album-item:hover {
    box-shadow: 2px 2px 4px var(--colorMain), -1px -1px 0 var(--colorRed);
}
.album-item:hover figcaption {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    -webkit-animation: img-name 1s ease;
    -o-animation: img-name 1s ease;
    animation: img-name 1s ease;
}
@keyframes img-name {
    0% {opacity: 0.333;}
    100% {opacity: 1;}
}
hr.item-photo {
    border: 0 none;
    height: 2px;
    background: var(--colorMain);
    background-image: -webkit-linear-gradient(left, var(--colorWhite), var(--colorMain), var(--colorWhite));
    background-image: -moz-linear-gradient(left, var(--colorWhite), var(--colorMain), var(--colorWhite));
    background-image: -ms-linear-gradient(left, var(--colorWhite), var(--colorMain), var(--colorWhite));
    background-image: -o-linear-gradient(left, var(--colorWhite), var(--colorMain), var(--colorWhite));
    margin: 14px 5%;
    width: 90%;
}
@media only screen and (min-width:1281px) and (max-width:1440px) {
    .album-item {
        width: calc(25% - 14px);
    }
}
@media only screen and (min-width:961px) and (max-width:1280px) {
    .album-item {
        width: calc(33.333% - 14px);
    }
}
@media only screen and (min-width:641px) and (max-width:960px) {
    .album-item {
        width: calc(50% - 14px);
    }
}
@media only screen and (max-width:640px) {
    .album-item {
        width: calc(100% - 14px);
    }
}