﻿.gallery-image-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: rgba(255, 255, 255, 0);
    padding: 1em;
    transition: all 0.2s ease;
    font-weight: 600;
    max-width: calc(100% - 9em);
    line-height: 1.25;
    text-align: center;
    box-sizing: border-box;
}

    .gallery-image-caption:before,
    .gallery-image-caption:after {
        content: '';
        position: absolute;
        background: rgba(0, 0, 0, 0.2);
        width: 100%;
        height: 100%;
        padding: 1em;
        transition: all 0.3s ease-in-out;
        opacity: 0;
        z-index: -1;
    }

    .gallery-image-caption:before,
    .gallery-image-caption:after {
        right: 100%;
        bottom: 100%;
    }

    .gallery-image-caption:after {
        left: 100%;
        top: 100%;
    }

.gallery-image-caption-visible {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease 0.3s;
}

    .gallery-image-caption-visible:before,
    .gallery-image-caption-visible:after {
        opacity: 1;
    }

    .gallery-image-caption-visible:before {
        right: -1.5em;
        bottom: -1.5em;
    }

    .gallery-image-caption-visible:after {
        left: -1.5em;
        top: -1.5em;
    }

html {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizelegibility;
}


.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

@media (min-width: 480px) {
    .gallery {
        column-count: 2;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }
}

@media (min-width: 1260px) {
    .gallery {
        column-count: 3;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }
}

.gallery-image {
    position: relative;
    margin: 0;
    padding: 0;
}

    .gallery-image:before,
    .gallery-image:after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border: 16px solid rgba(0, 0, 0, 0.1);
        transition: all 0.2s;
        will-change: border;
    }

    .gallery-image:after {
        border-width: 0;
    }

    .gallery-image img {
        display: block;
        max-width: 300px;
        height: auto;
        aspect-ratio: 3 / 2;
        object-fit: cover;
    }

html:not(.touch) .gallery-image {
    overflow: hidden;
}

    html:not(.touch) .gallery-image:hover:before {
        border-width: 16px;
    }

    html:not(.touch) .gallery-image:hover:after {
        border-width: 32px;
    }

    html:not(.touch) .gallery-image:hover figcaption {
        color: rgba(255, 255, 255, 1);
    }

.touch .gallery-image figcaption {
    top: auto;
    bottom: 2em;
    color: rgba(255, 255, 255, 1);
}

.mfp-with-zoom .mfp-container,
.mfp-with-zoom.mfp-bg {
    opacity: 0;
    backface-visibility: hidden;
    transition: all 0.3s ease-out;
}

.mfp-with-zoom.mfp-bg {
    background-color: rgba(0, 0, 0, 0.9);
}

.mfp-with-zoom.mfp-ready .mfp-container,
.mfp-with-zoom.mfp-ready.mfp-bg {
    opacity: 1;
}

.mfp-with-zoom.mfp-removing .mfp-container,
.mfp-with-zoom.mfp-removing.mfp-bg {
    opacity: 0;
}

.mfp-img.mfp-no-margins {
    padding: 0;
}

.mfp-figure:after {
    top: 0;
    bottom: 0;
}

.mfp-container {
    padding: 0;
}

.mfp-content {
    overflow: hidden;
}

.mfp-bottom-bar {
    top: auto;
    bottom: 0;
    margin-top: 0;
}

.mfp-title {
    position: absolute;
    top: auto;
    bottom: 2em;
    font-size: 14px;
    color: rgba(255, 255, 255, 0);
    padding: 1em;
    transition: all 0.2s ease;
    font-weight: 600;
    max-width: calc(100% - 9em);
    line-height: 1.25;
    text-align: center;
    box-sizing: border-box;
}

    .mfp-title:after,
    .mfp-title:before {
        content: '';
        position: absolute;
        background: rgba(0, 0, 0, 0.2);
        width: 100%;
        height: 100%;
        padding: 1em;
        transition: all 0.3s ease-in-out;
        opacity: 0;
        z-index: -1;
    }

    .mfp-title:after,
    .mfp-title:before {
        right: 100%;
        bottom: 100%;
    }

    .mfp-title:after {
        left: 100%;
        top: 100%;
    }

.mfp-ready .mfp-title {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
}

    .mfp-ready .mfp-title:after,
    .mfp-ready .mfp-title:before {
        opacity: 1;
    }

.mfp-arrow {
    opacity: 1;
    margin-top: 0 !important;
    width: 20%;
    height: 30%;
    transform: translateY(-50%);
}

    .mfp-arrow:before,
    .mfp-arrow:after {
        margin: 0;
        border: none;
        width: 2rem;
        height: 2rem;
        transform: rotate(-45deg) translate(-50%, -100%);
        opacity: 1;
        top: 50%;
        left: 50%;
        transition: all 0.15s;
    }

    .mfp-arrow:active {
        transform: translateY(-50%) scale(0.95);
    }

.mfp-arrow-left {
    left: 0;
}

    .mfp-arrow-left:before,
    .mfp-arrow-left:after {
        border-top: 2px solid white;
        border-left: 2px solid white;
    }

    .mfp-arrow-left:before,
    .mfp-arrow-left:after {
        margin-left: 2rem;
    }

    .mfp-arrow-left:before {
        margin-left: 2rem;
    }

    .mfp-arrow-left:after {
        margin-left: 0;
    }

.mfp-arrow-right {
    right: 0;
}

    .mfp-arrow-right:before,
    .mfp-arrow-right:after {
        border-right: 2px solid white;
        border-bottom: 2px solid white;
    }

    .mfp-arrow-right:before,
    .mfp-arrow-right:after {
        margin-left: 2rem;
    }

    .mfp-arrow-right:before {
        margin-left: 2rem;
    }

    .mfp-arrow-right:after {
        margin-left: 0;
    }

button.mfp-close {
    opacity: 1;
    margin-top: 0 !important;
    width: 20%;
    height: 30%;
    font: 0/0 serif;
    text-shadow: none;
    color: transparent;
}

    button.mfp-close:before,
    button.mfp-close:after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        margin: 0;
        border: none;
        width: 2rem;
        height: 2rem;
        opacity: 1;
        transition: all 0.15s;
        transform-origin: 0 0;
        border-top: 2px solid white;
        border-left: 2px solid white;
    }

    button.mfp-close:before {
        transform: rotate(-45deg);
    }

    button.mfp-close:after {
        transform: rotate(135deg);
    }

    button.mfp-close:hover:before {
        transform: rotate(135deg);
    }

    button.mfp-close:hover:after {
        transform: rotate(315deg);
    }

    button.mfp-close:active {
        transform: scale(0.95);
    }

a {
    text-decoration: none;
    color: inherit;
}

#footer {
    margin-top: 10vh;
    padding: 10vh 0;
    text-align: center;
}

    #footer .container {
        position: relative;
    }

        #footer .container:before,
        #footer .container:after {
            content: '';
            position: absolute;
            bottom: 100%;
            left: 20px;
            z-index: 10;
            border-top: 2px solid;
            width: 10%;
            margin-bottom: 10vh;
        }

        #footer .container:after {
            left: auto;
            right: 20px;
        }

    #footer * {
        display: block;
    }

        #footer * + * {
            margin-top: 5vh;
        }

    #footer .logo {
        font-weight: 600;
        font-size: 1.5em;
    }

    #footer .copy {
        text-transform: uppercase;
        font-size: 0.75em;
        font-weight: 600;
    }
