
h5 {
    margin-bottom: .8em;
}

.artist {
    width: 100%;
    margin-bottom: 3em;
}

.artist p {
    display: block;
}

.statement {
    text-align: left;
    font-size: .8em;
    max-width: 35em;
    padding-left: 1.7em;
    margin-bottom: 3em;
}

.statement .unfold {
    display: block;
    width: 100%;
    margin: .5em;
    margin-top: 1.5em;
    opacity: .5;
    font-size: .8em;
    text-align: right;
}

@media (max-width: 500px) {
    .statement {
        padding: 0 1em;
    }
}

.container:last-of-type {
    padding-bottom: 8rem;
}

/* ****************************************************** cursor label */

.cursor-crosshair, .cursor-crosshair * {
    cursor: crosshair !important;
}

.cursor-label {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

.label-container {
    position: absolute;
    bottom: 0;
    left: 0;
    cursor: default;
}

.label-container .label {
    float: left;
    font-size: .7rem;
    overflow: hidden;
    white-space: nowrap;
    background: rgb(60, 60, 60);
    color: rgb(150, 150, 150);
}

.label-container .label {
    transition: .4s;
    padding: .5rem 0;
    width: 0em;
    opacity: 0;
}

.cursor-label[data-hover="gallery-label"] {
    cursor: crosshair;
}

.cursor-label[data-hover="gallery-label"] .gallery-label {
    padding: .5rem 1.2rem;
    width: 7.5rem;
    opacity: 1;
}

.cursor-label[data-hover="load-more-label"] .load-more-label {
    padding: .5rem 1.2rem;
    width: 6rem;
    opacity: 1;
}

.cursor-label[data-hover="header-label"],
.cursor-label[data-hover="header-label-fade"] { z-index: 2 }

.cursor-label[data-hover="header-label"] .header-label,
.cursor-label[data-hover="header-label-fade"] .header-label {
    padding: .5rem 1.2rem;
    width: auto;
}

.cursor-label[data-hover="header-label"] .header-label {
    opacity: 1;
}

body[data-fs-viewer="true"] .label-container {
    opacity: 0;
}

/* ****************************************************** masonry grid */

.masonry {
    width: 100%;
    max-width: 960px;
    margin: auto;
    overflow: hidden;
}

.masonry.works .brick-sizer,
.masonry.works .brick {
    width: 50%;
}

.masonry.exhibitions .brick-sizer,
.masonry.exhibitions .brick {
    width: 33.3%;
}
.masonry .brick.w2 { width: 22.5%; }
.masonry .brick.w6 { width: 66.6%; }

@media (max-width: 767px) {
    .masonry.exhibitions .brick-sizer,
    .masonry.exhibitions .brick {
        width: 50%;
    }
}

@media (max-width: 500px) {
    .masonry.works .brick-sizer,
    .masonry.works .brick,
    .masonry.exhibitions .brick-sizer,
    .masonry.exhibitions .brick {
        width: 100%;
    }
}

.masonry .brick {
    display: inline-block;
    padding: .2rem;
}

/* text align to center */
.masonry .brick.title p,
.masonry .brick.more a {
    display: flex;
    height: 100%;
    transition: .25s;
    padding: .2rem;
}
.masonry .brick span { margin: auto; }

/* more brick fill avaliable height (not working on Safari) */
.masonry .brick.more {
    min-height: 5em;
    /* height: -webkit-fill-available; */
}

.masonry .brick.title p {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* margin: -.2rem; */
    border: .2rem solid white;
    background-color: rgba(0, 0, 0, .6);
    color: white;
    opacity: 0;
}

.masonry .brick.title p small {
    display: inline-flex;
    line-height: 1.3em;
}

/* local hover styles */
.masonry a:hover { opacity: 1; }
.ready.masonry .brick.title:hover p { opacity: 1; }
.ready.masonry .brick.more a:hover { background-color: lightgray; }
