.photos-page * {
    box-sizing: border-box;
}

.photos-page .responsive {
    padding: 6px 6px;
    float: left;
    width: calc(100% * 0.2499999);
    margin: 3px 0;
}

@media only screen and (max-width: 900px) {
    .photos-page .responsive {
        width: calc(100% * 0.3332999999);
    }
}

@media only screen and (max-width: 700px) {
    .photos-page .responsive {
        width: calc(100% * 0.4999999);
    }
}

@media only screen and (max-width: 500px) {
    .photos-page .responsive {
        width: calc(100% * 0.99999);
    }
}

.photos-page div.gallery {
    border: 1px solid #ccc;
    overflow: hidden;
}

.photos-page div.gallery a {
    display: inline-block;
    line-height: 0;
}

.photos-page div.gallery img:hover {
    opacity: 0.6;
    cursor: pointer;
}

.photos-page div.gallery img.photo-preview {
    display: block;
    max-width: 0;
    max-height: 0;
    margin: auto;
}

.photos-page div.desc {
    padding-bottom: 5px;
    text-align: center;
    height: 25px;
}

.photos-page div.desc a,
.photos-page div.desc a:active,
.photos-page div.desc a:link,
.photos-page div.desc a:visited,
.photos-page div.desc a:focus {
    color: #3f0e0c;
    text-decoration: none;
    text-align: center;
}
.photos-page div.desc a:hover {
    text-decoration: underline;
}

.photos-page .clearfix:after {
    content: "";
    display: table;
    clear: both;
}

.photos-page .photos-modal-wall {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #efe7e0;
    opacity: 0.8;
    padding: 0;
    z-index: 1010;
}

.photos-page .photos-modal-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    padding: 0;
    background: none;
    z-index: 1011;
    align-items: center;
    justify-content: center;
}

.photos-page .photos-modal-container {
    font-size: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photos-page .close {
    color: #46150a;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.photos-page .close:hover,
.photos-page .close:focus {
    color: #a15849;
}

.photos-page .photos-modal-container img {
    max-width: calc(100vw * 0.9);
    max-height: calc(100vh * 0.9);
}

.photos-page a.download-all-photos,
.photos-page a.download-all-photos:active,
.photos-page a.download-all-photos:link,
.photos-page a.download-all-photos:visited,
.photos-page a.download-all-photos:focus {
    display: inline-block;
    margin-top: 16px;
    text-decoration: none;
    color: #3f0e0c;
}

.photos-page a.download-all-photos:hover {
    text-decoration: underline;
}