@charset "utf-8";

.display-item {
    float: left;
    width: 32.3333%;
    margin: 0 0.5% 1%;
}
.display-link {
    display: block;
    position: relative;
    text-align: center;
}

.display-figure > img {
    max-width: 100%;
    height: auto;
}
.display-figure > .caption {
    position: absolute;
    z-index: 2;
    top: 0; right: 0; bottom: 0; left: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: background 0.5s ease-in-out;
}
.display-figure > .caption .author,
.display-figure > .caption .title {
    display: none;
    position: absolute;
    top: 50%; left: 0;
    width: 100%;
    color: #fff;
    line-height: 1;
}
.display-figure > .caption .author {
    margin-top: -2em;
    font-size: 1.8em;
    font-weight: 500;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}
.display-figure > .caption .title {
    font-size: 1.4em;
    margin-top: 1em;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.display-link:hover .display-figure > .caption {
    background-color: rgba(0, 0, 0, 0.3);
}
.display-link:hover .display-figure > .caption:after {
    content:"";
    display: block;
    position: absolute;
    z-index: 3;
    top: 50%; left: 50%;
    width: 3em; height: 2px;
    margin: -1px 0 0 -1.5em;
    background-color: #fff;
}
.display-figure:hover > .caption .author,
.display-figure:hover > .caption .title {
    display: block;
}

@media screen and (max-width: 768px) {
    .display-item {
        width: 48%;
        margin: 0 1% 2%
    }
    .display-link { text-align: left; }
    .display-figure > .caption {
        padding: 10px 5px 5px;
    }
    .display-figure > .caption,
    .display-figure > .caption .author,
    .display-figure > .caption .title {
        display: block;
        position: static;
        top: auto; right: auto; bottom: auto; left: auto;
    }
    .display-figure > .caption .author,
    .display-figure > .caption .title {
        display: block;
        margin: 0;
        color: #231815;
        font-weight: normal;
        letter-spacing: -0.03em;
    }
    .display-figure > .caption .author {
		-webkit-box-sizing: content-box;
		-moz-box-sizing: content-box;
		box-sizing: content-box;
        overflow: hidden;
		min-height: 1.2em;
        padding-bottom: 10px;
        font-size: 1.2em;
        text-shadow: none;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .display-figure > .caption .title {
        font-size: 1.05em;
    }
    .display-link:hover .display-figure > .caption {
        background-color: transparent;
    }
    .display-link:hover .display-figure > .caption:after {
        top: 0; left: 0;
        width: 100%; height: 100%;
        margin: 0;
        background-color: rgba(0, 0, 0, 0.2);
    }
}