* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Source Sans Pro';
    font-weight: 400;
    padding: 0;
    font-size: 13pt;
    color: rgba(255, 255, 255, 0.8); /*Intro Text*/
    background-color:black;
}
/* Masonry layout */
.masonry {
    column-count: 1;
    column-gap: .8rem;
    max-width: 100%;
    margin: 0 auto;
    background-color: white;
    border: solid;
    border-color: white;
    border-width: 12px;
}

@media (min-width: 600px) {
    .masonry {
        column-count: 2;
    }
}

@media (min-width: 900px) {
    .masonry {
        column-count: 4;
    }
}

@media (min-width: 1300px) {
    .masonry {
        column-count: 6;
    }
}

.item {
    position: relative;
    cursor: pointer;
    margin-bottom: 1rem;
    break-inside: avoid;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp .6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item img {
    width: 100%;
    /*border-radius: .6rem;*/
    display: block;
}

/* Caption overlay */
.caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: .5rem .75rem;
    background: rgba(0,0,0,0.75);
    color: #fff;
    pointer-events: none;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    padding: 2rem;
    z-index: 9999;
    -moz-transition: opacity 0.25s ease-in-out;
    -webkit-transition: opacity 0.25s ease-in-out;
    -ms-transition: opacity 0.25s ease-in-out;
    transition: opacity 0.25s ease-in-out;
}

    .modal.open {
        opacity: 1;
        pointer-events: auto;
    }

    .modal img {
        max-width: 92vw;
        max-height: 85vh;
        margin-bottom:0px;
    }
.modal-image-wrapper {
    position: relative;
    display: inline-block;
    border: solid;
    border-color: white;
    border-width: 12px;
}

.modal-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: .75rem 1rem;
    background: rgba(0,0,0,0.75);
    color: #fff;
    /*border-radius: 0 0 .6rem .6rem;*/
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,.2);
    border: none;
    padding: .5rem .8rem;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
}

/* Infinite scroll loader */
#loader {
    text-align: center;
    margin: 2rem 0;
    font-size: 1rem;
    opacity: .6;
}
