﻿.eightimages .photos {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-content: stretch;
    padding: 0;
    max-width: 100%;
}

.eightimages .photos > a {
    display: block;
    float: left;
    flex: 0 0 auto;
    background-color: #fff;
    margin-right: 7px !important;
    margin-bottom: 7px !important;
}

@media screen and (min-width: 1024px) {
    .eightimages .photos > a {
        width: calc(100%/8);
        height: calc(100%/8);
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .eightimages .photos > a {
        width: calc(100%/4);
        height: calc(100%/4);
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
    .eightimages .photos > a {
        width: calc(100%/4);
        height: calc(100%/4);
    }
}

@media screen and (max-width: 320px) {
    .eightimages .photos > a {
        width: 100%;
        height: 100%;
    }
}

.eightimages .photos > img {
    display: block;
    float: left;
    flex: 0 0 auto;
    background-color: #fff;
    margin-right: 7px !important;
    margin-bottom: 7px !important;
}

@media screen and (min-width: 1024px) {
    .eightimages .photos > img {
        width: calc(100%/8);
        height: calc(100%/8);
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .eightimages .photos > img {
        width: calc(100%/4);
        height: calc(100%/4);
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
    .eightimages .photos > img {
        width: calc(100%/4);
        height: calc(100%/4);
    }
}

@media screen and (max-width: 320px) {
    .eightimages .photos > img {
        width: 100%;
        height: 100%;
    }
}

