/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&display=swap');
@font-face {
    font-family: 'Bookmark Dingbats';
    src: url('../fonts/Bookmark_Dingbats.woff2') format('woff2'),
         url('../fonts/Bookmark_Dingbats.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* VARIABLES */
html:root {
    /* --primary: #f1784e; */
    /* --secondary: #ffc70a; */
    --background: #ffffff;
    /* --foreground: #9e2139; */
    --white: #f6f6f6;
    /* --gray-20: #dfdede; */
    /* --gray-40: #b1afaf; */
    /* --gray-60: #847f7f; */
    /* --gray-80: #565050; */
    --black: #282020;
    /* --a50-black: rgba(40, 32, 32, 0.5); */
    --dur-lg: 1s;
    --dur-md: 0.66s;
    --dur-sm: 0.33s;
    --easing: ease;
}

/* Animations */
@keyframes throbber {
    from {
        -ms-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -ms-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* HTML RESET */
html, body, div, header, main, aside, footer, nav,
img, span, li, h1, h2, h3, h4, h5, h6, p, a, small {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
    position: relative;
}

html, body {
    background-color: var(--background);
    color: var(--black);
    font-family: "Roboto Condensed", "Arial Condensed", sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* GLOBAL ------------------------------------------------------------------- GLOBAL */
/* Layout */
.center {
    align-items: center;
    justify-content: center;
}
.column {
    display: flex;
    flex-direction: column;
}
.fill {
    height: 100vh;
    left: 0px;
    position: fixed;
    top: 0px;
    width: 100vw;
}
.row {
    display: flex;
    flex-direction: row;
}

/* Button */
a.button {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 48px;
    justify-content: center;
    padding: 0px 16px;
}
a.icon.button {
    font-family: "Bookmark Dingbats";
    padding: 0px;
    width: 48px;
}
a.button, a.button:hover,
a.button:active, a.button:visited {
    color: inherit;
    text-decoration: none;
}

/* Typography */
span, li, h1, h2, h3, h4, h5, h6, p, a, label {
    background-color: inherit;
    color: inherit;
}

/* Misc. */
img {
    display: block;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}
img.lazy {
    opacity: 0.0;
    transition: opacity var(--dur-lg) var(--easing);
}
img.lazy.active {
    opacity: 1.0;
}
/* Thobber */
span.throbber {
    -webkit-animation: throbber var(--dur-md) linear infinite;
    -moz-animation: throbber var(--dur-md) linear infinite;
    -ms-animation: throbber var(--dur-md) linear infinite;
    -o-animation: throbber var(--dur-md) linear infinite;
    animation: throbber var(--dur-md) linear infinite;
    font-family: "Bookmark Dingbats";
    height: 16px;
    left: 50%;
    position: absolute;
    text-align: right;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
}

/* CONTENT ----------------------------------------------------------------- CONTENT */
/* Container */
div.container {
    background-color: var(--background);
    padding: 0px 1px;
}

/* Header */
header {
    /* color: var(--primary); */
    height: 48px;
    margin: 0px -48px;
    /* padding: 48px; */
    /* text-transform: uppercase; */
}
/* header > h1 {
    font-size: 21px;
} */

/* Gallery */
main.grid {
    background: var(--background);
    display: grid;
    grid-gap: 1px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    margin: 0 auto;
    width: 100%;
}
main.grid > div.image-container {
    cursor: pointer;
    padding-top: 100%;
}
main.grid > div.image-container > img {
    position: absolute;
    top: 0px;
    left: 0px;
}

/* Aside (Lightbox) */
aside.lightbox {
    background-color: transparent;
    color: var(--white);
    display: none;
    padding: 16px;
    visibility: hidden;
    z-index: -1;
}
aside.lightbox.active {
    display: flex;
    visibility: visible;
    z-index: 99;
}
/* Lightbox Image */
aside.lightbox div.image-container {
    height: 100%;
}
aside.lightbox img {
    object-fit: contain;
}
/* Lighbox Buttons */
aside.lightbox > a {
    font-size: 27px;
    position: absolute;
    top: 16px;
    z-index: 1;
}
aside.lightbox > a:first-child {
    left: calc(100vw - 128px);
}
aside.lightbox > a:last-of-type {
    left: calc(100vw - 64px);
}

/* Overlay */
div.overlay {
    background-color: var(--black);
    mix-blend-mode: multiply;
    opacity: 0.0;
    padding: 16px;
    transition: opacity var(--dur-lg) var(--easing);
    visibility: hidden;
    z-index: -1;
}
div.overlay.active {
    opacity: 0.8;
    visibility: visible;
    z-index: 98;
}

/* Navigation */
nav.row {
    background-color: var(--background);
    left: 48px;
    justify-content: space-between;
    margin: 0px -48px;
    padding: 0px 12px;
    position: fixed;
    top: calc(100vh - 48px);
    visibility: visible;
    width: 100%;
    z-index: 99;
}
nav.hide {
    display: none;
    visibility: hidden;
}
/* Navigation Buttons */
nav > a {
    font-size: 13px;
}
nav > a:first-child {
    margin-left: -16px;
}
nav > a:last-child {
    margin-right: -16px;
}

/* Footer */
footer {
    height: 48px;
}


/* SCREENS ----------------------------------------------------------------- SCREENS */
/* Horizontal */
@media only screen and (max-height: 479px) and (max-width: 879px) {
    /* CONTENT ----------------------------------------------------------------- CONTENT */
    /* Header */
    /* header {
        padding: 24px 48px;
    } */
    /* header > h1 {
        font-size: 27px;
    } */

    /* Gallery */
    main.grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    main.grid > img {
        height: 200px;
    }
}

/* Tablet */
@media only screen and (min-width: 668px) {
    /* CONTENT ----------------------------------------------------------------- CONTENT */
    /* Header */
    /* header > h1 {
        font-size: 33px;
    } */

    /* Gallery */
    main.grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    main.grid > img {
        height: 200px;
    }
}

/* Desktop */
@media only screen and (min-width: 1000px) {
    /* CONTENT ----------------------------------------------------------------- CONTENT */
    /* Header */
    /* header > h1 {
        font-size: 27px;
    } */

    /* Gallery */
    main.grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    main.grid > img {
        height: 300px;
    }

    /* Aside (Lightbox) */
    /* Lightbox Image */
    /* aside.lightbox img {
        width: 66.66%;
    } */
}

/* Large */
@media only screen and (min-width: 1200px) {
    /* CONTENT ----------------------------------------------------------------- CONTENT */
    /* Header */
    /* header > h1 {
        font-size: 33px;
    } */
}