/* || Variables */
:root {
    /* Fontsizes */
    --fs-s: 0.8rem;
    --fs-m: 1rem;
    --fs-l: 1.5rem;
    --fs-xl: 2rem;

    --bold: bold;

    /* Spacing */
    --x-xs: 0.25rem;
    --x-s: 0.5rem;
    --x-sm: 0.75rem;
    --x-m: 1rem;
    --x-l: 2rem;
    --x-xl: 4rem;
    --wrap-tx: 35rem;
    --wrap-md: 100%; 
    --header-h: ;
    --archive-menu-h: ;

    /* Colors */
    /* --color-blo: #ff3300; */
    /* --color-blo: #79b07d; */
    --color-acc: #8F9479;
    --color-000: #ffffff;
    --color-005: #f2f2f2;
    --color-010: #E5E5E5;
    --color-020: #CCCCCC;
    --color-030: #B2B2B2;
    --color-040: #999999;
    --color-050: #808080;
    --color-060: #666666;
    --color-070: #4D4D4D;
    --color-080: #333333;
    --color-090: #1A1A1A;
    --color-100: #000000;

    --color-tx-normal:  var(--color-100);
    --color-tx-muted:   var(--color-040);
    --color-tx-faint:   var(--color-020);
    --color-tx-hover:   var(--color-100);
    --color-tx-accent:  var(--color-acc);

    --color-ui-normal:  var(--color-010);
    --color-ui-hover:   var(--color-100);
    --color-ui-active:  var(--color-100);

    --color-bg-1:       var(--color-000);
    --color-bg-2:       var(--color-005);
    --color-bg-hover:   ;
    --color-bg-active:  var(--color-acc);

    --border-normal: 1px solid var(--color-ui-normal);
    --border-hover: 1px solid var(--color-ui-hover);
    --border-active: 1px solid var(--color-ui-active);

}

* {
    /* background-color: #0000ff05; */
}

/* || Site-wide | text */

@font-face {
    font-family: "NeueMontreal";
    src: url("/assets/fonts/NeueMontreal-Medium.otf");
    font-weight: normal;
}
@font-face {
    font-family: "NeueMontreal";
    src: url("/assets/fonts/NeueMontreal-MediumItalic.otf");
    font-weight: normal;
    font-style: italic;
}

html {
    font-size: 20px;
}
@media only screen and (max-width: 480px) {
    html {
        font-size: 15px;
    }
}

body {
    font-family: "NeueMontreal", Arial, Helvetica, sans-serif;
    letter-spacing: 0.02em;
    color: var(--color-tx-normal);
    background-color: var(--color-bg-1);
    line-height: 1.2;
}

.plain {
    color: var(--color-tx-normal);
}
.muted {
	color: var(--color-tx-muted);
}
.faint {
	color: var(--color-tx-faint);
}
.smaller {
	font-size: 0.8em;
}
.strong {
    font-weight: var(--bold);
}

/* .site-title {
    font-size: var(--fs-m);
    font-weight: normal;
} */
/* .page-title {
    font-size: var(--fs-xl);
    font-weight: normal;
    margin: 0;
} */
.item-title {
    font-size: var(--fs-m);
    font-weight: normal;
    /* font-style: italic; */
}
.small-title {
    font-size: var(--fs-s);
    font-weight: normal;
    color: var(--color-tx-muted);
    margin-bottom: var(--x-xs);
}

/* || Site-wide | Links */

a, a:visited {
    color: var(--color-tx-accent);
    text-decoration: none;
    cursor: pointer;
}
a:hover {
    color: var(--color-tx-accent);
    /* text-decoration: underline; */
    border-bottom: 1px dotted;
}
a.active {
    color: var(--color-tx-accent);
    /* text-decoration: underline; */
    border-bottom: 1px solid;
}
a.plain {
    color: inherit;
    /* text-decoration: none; */
}
a.button {
    border-bottom: none;
}

/* || Site-wide | Utilities  */

.hidden {
    display: none;
}

/* || Site-wide | layout  */


.grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    column-gap: var(--x-m);
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: var(--x-m);
}

.span-2 {
    grid-column: span 2;
}
.span-3 {
    grid-column: span 3;
}
.span-4 {
    grid-column: span 4;
}
.span-6 {
    grid-column: span 6;
}

.header {
    position: sticky;
    top: var(--x-s);
    left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 99;
}
.header__inner {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: var(--x-m);
    padding: var(--x-s);
    /* background-color: var(--color-bg-1); */
}
.header__bio {
    white-space: normal;
}
.header__bio__role {
}
.header__bio__role::after {
    content: ",";
}
.header__bio__role:last-child::after {
    content: none;
}
.header__bio__role:last-child::before {
    content: "and ";
}
.header__bio__role:first-child::before {
    content: "";
}

.menu {
    text-align: right;
}




/* || Images */

img {
    width: 100%;
    vertical-align: bottom;
}

figcaption {
    font-size: var(--fs-s);
    text-align: center;
    margin-top: var(--x-s);
    color: var(--color-tx-muted);
}

/* ||  Gallery */

.gallery {
    margin: 0;
    padding: 0;
}
.gallery__items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--x-m);
}
.gallery__item {

}
.gallery__caption {
    text-align: left;
}

/* || Video */

.video {
    margin: 0 auto;
    max-height: 800px;
    width: auto;
    display: flex;
    flex-direction: column;
}
.video video {
    margin: 0 auto;
    width: auto;
    max-width: 100%;
    max-height: 800px;
    object-fit: contain;

}
.video iframe {
    width: 100%;
    height: 100%;
    max-height: 800px;
    object-fit: contain;
}

.video__caption {

}

/* || Template: Archive */

.archive__menu {
    position: fixed;
    left: 0;
    top: var(--header-h);
    width: calc(100vw - var(--x-l));
    margin: 0 var(--x-m);
    background-color: var(--color-bg-1);
    font-size: 0.8rem;
    z-index: 1;
    max-height: 0px;
    transition: max-height 0.35s ease;
    overflow: hidden;
    
}

.archiveMenuIsOpen .archive__menu {
    max-height: var(--archive-menu-h);
}

.archive__menu__inner {
    padding-top: var(--x-s);
    padding-bottom: var(--x-m);
    border-bottom: var(--border-normal);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}
@media only screen and (max-width: 1200px) {
    .archive__menu__inner {
        grid-template-columns: repeat(6, 1fr);
    }
}
@media only screen and (max-width: 600px) {
    .archive__menu__inner {
        grid-template-columns: repeat(2, 1fr);
    }
}
 
.archive__menu__filter__group,
.archive__menu__sort__buttons,
.archive__menu__view__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--x-xs);
}

.button--filter,
.button--sort,
.button--view {
    text-transform: lowercase;
}

.button {
    padding: 1px 4px 3px 4px;
    color: var(--color-tx-normal);
    background-color: var(--color-bg-2);
    text-decoration: none;
    border-radius: 1px;
}
.button:hover {
    box-shadow: var(--shadow-yellow);
    background-color: var(--color-bg-hover);
}
.button.active {
    background-color: var(--color-bg-active);
}
.button.disabled {
    color: var(--color-tx-faint);
    pointer-events: none; 
}
.button-eq {
    padding-top: 3px;
}

.archive-items {
    margin: var(--x-s) 0;
    /* padding: 0 var(--x-s); */
}
.archive-item__inner {
    display: flex;
    flex-direction: column;
    gap: var(--x-xs);
}
.archive-item__meta {
    font-size: var(--fs-m);;
    color: var(--color-tx-muted);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: var(--x-s);
}
.archive-item__date {
    font-variant-numeric: tabular-nums;
    display: flex;
}

.archive-item__date-line {
    height: 1px;
    width: var(--x-m);
    margin-top: 0.5em;
    margin-left: var(--x-xs);
    margin-right: var(--x-xs);
    background-color: var(--color-tx-faint);
    /* background-color: #ffffff00; */
    flex-grow: 1;
}

.archive-item__tag::before {
    content: "#";
}

.archive-items--list .archive-item:hover{
    background-color: var(--color-bg-2);
}

.archive-items--list .archive-item__inner {
    padding: var(--x-xs) 0;
    flex-direction: row;
    justify-content: space-between;
    border-top: var(--border-normal);
    
}
.archive-items--list .archive-item__title{
    font-size: var(--fs-m);
}
.archive-items--list .archive-item__cover {
    display: none;
}

.archive-items--list .archive-item__meta {
    flex-direction: row;
    gap: var(--x-s);
}

.archive-items--grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); */
    grid-template-columns: repeat(4, 1fr);
    column-gap: var(--x-m);
    row-gap: var(--x-m);
}
@media only screen and (max-width: 1200px) {
    .archive-items--grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media only screen and (max-width: 600px) {
    .archive-items--grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.archive-items--grid .archive-item__inner {
    position: sticky;
    top: calc(var(--header-h) + var(--x-s));
    border: var(--border-normal);
    padding: var(--x-s);
}
.archiveMenuIsOpen .archive-items--grid .archive-item__inner {
    top: calc(var(--header-h) + var(--archive-menu-h) + var(--x-s)); 
}

.archive-item__color {
    position: relative;
    left: 0;
    top: 0.15rem;
    width: 0.8rem;
    height: 0.8rem;
    background-color: grey;
    /* border-radius: 1px; */
    /* border-radius: 50%; */
}

.results-count {
    display: flex;
    justify-content: end;
}

iframe {
    border: none;
}



