.gallery.gallery-small {
    max-width: 1000px;
}

.gallery {
    max-width: 1350px;
    width: calc(100% - 90px);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
    width: calc(100% - 5vw);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}

.gallery.gallery-small div {
    max-width: 400px;
    max-height: 400px;
    height: unset;
}

.gallery.gallery-small div img {
    height: auto;
    width: auto;
    max-width: 100%;
}

.gallery div {
    /* flex-grow: 1; */
    /* max-width: 500px; */
    margin: 5px;
    overflow: hidden;
    cursor: pointer;
}

.gallery div.thin {
    /* max-width: 300px; */
}

.gallery div img {
    max-height: 400px;
    width: auto;
    max-width: 100%;
    /* width: 100%; */
    /* object-fit: cover; */
    /* object-position: center center; */
}

.gallery div:hover img {
    filter: brightness(80%); 
}

.modal {
    display: none;
    background-color: #000C;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
}

.modal img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    display: block;
    object-fit: contain;
    width: 90%;
    height: 90%;
}

.modal.captioned img {
    top: 45%;
    height: 80%;
}

.modal div {
    display: none;
}

.modal.captioned div {
    position: absolute;
    bottom: 2.5%;
    left: 5%;
    height: calc(10% - 10px);
    width: calc(90% - 20px);
    background: #0008;
    font-size: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
}

.modal.captioned span {
    display: block;
}


.portfolio-content {
    max-width: 1350px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 0.5em;
}

.account {
    font-weight: bold;
}
