
/* ****************************************************** filter tags */


.filter-select {
    /* width: calc(100% - 200px);
    text-align: left; */
    max-width: 60%;
}

.filter-select.category {
    margin-top: 0;
    margin-bottom: 2.5em;
}

.filter {
    display: inline-block;
    height: 2em;
    border: 1px solid rgba(200, 200, 200, 0);
    border-radius: 1em;
    padding: .2em .8em 0 .8em;
    margin-bottom: .5em;
    font-size: .8em;
    transition: .1s;
}

.filter[data-filter-active="true"] {
    border-color: rgba(200, 200, 200, 1);
}
.filter[data-filter-active="true"] button {
    opacity: 1;
}


/* ****************************************************** other */


.link-anchor {
    position: relative;
    margin-top: 1px;
    top: -20vh;
    pointer-events: none;
}

.category {
    width: 100%;
}

.category-title {
    font-size: .8em;
    padding: 1em 0;
    font-weight: 500;
    font-weight: 300;
}


/* ****************************************************** grid item */


.thumb-grid {
    text-align: left;
}

.thumb-grid .item {
    position: static;
    display: inline-table;
    float: none;
    clear: none !important;
    box-sizing: border-box;
    padding: .2rem;
    margin-bottom: 2rem;
    list-style: none;
}

.thumb-grid .item { width: 25% }
@media (max-width: 1199px) { .thumb-grid .item { width: 33.3% } }
@media (max-width: 767px)  { .thumb-grid .item { width: 50% } }
@media (max-width: 575px)  { .thumb-grid .item { width: 100% } }

.thumb-grid .tr {
    display: table-row;
}

.thumb-grid .tr a {
    display: block;
}

.thumb-grid .item .img-wrapper {
    margin-bottom: .3rem;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
@media (max-width: 575px)  { .thumb-grid .item .img-wrapper { margin-bottom: 1rem } }

/* fixes different layout on Safari but not centered */
body[data-agent-safari] .thumb-grid .item .img-wrapper { align-items: end }

.thumb-grid .item img {
    vertical-align: middle;  /* try fixing small thumbnail crop to middle */
}

.thumb-grid .item .works {
    list-style: none;
    padding: 0;
    margin-top: .7em;
    font-size: .7em;
}

.thumb-grid .item .works a {
    display: inline-block;
    font-style: italic;
}


/* ****************************************************** item texts */


.work-list {
    font-size: .9em;
}

.work-list .title {
    font-weight: 400;
    font-style: italic;
}

.work-list .title[href] {
    text-decoration: underline;
}

.work-list .title[href]:hover {
    opacity: .5;
    text-decoration: none;
}

.work-list .date {
    font-size: .65em;
    font-weight: 300;
    font-style: normal;
}

.work-list .short {
    display: block;
    font-size: 0.85em;
    padding-right: 1em;
}


/* ****************************************************** item / texts filtered */


.link-anchor, .category-title,
.thumb-grid .item .img-wrapper,
.thumb-grid .item img,
.thumb-grid .item { transition: .4s }



body[data-filtered=false] .thumb-grid .item {
    width: 12.5%;
    margin-bottom: 1rem;
}
@media (max-width: 1199px) { body[data-filtered=false] .thumb-grid .item { width: 20% } }
@media (max-width: 767px)  { body[data-filtered=false] .thumb-grid .item { width: 33.3% } }



body[data-filtered=false] .thumb-grid .item img {
    /* ---- for max 16:9 width image */
    max-width: 118.5%;
    /* ---- for max  2:1 width image */
    /* max-width: 133.3%; */
    min-height: 100%;
}
body[data-filtered=false] .thumb-grid .item .img-wrapper {
    aspect-ratio: 3 / 2;
}



body[data-filtered=false] .work-list { font-size: .6em }
body[data-filtered=false] .work-list .date,
body[data-filtered=false] .work-list .short {
    display: none;
    opacity: 0;
}



.category-title {
    opacity: 1;
    overflow: hidden;
}
body[data-filtered=true] .category-title {
    height: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
}
body[data-filtered=true] .link-anchor {
    height: 0;
}
