html {
    font-size: 20px;
}

body {
    font-family: "Helvetica Neue", sans-serif;
    margin: 20px;
    padding: 0;
    background: #ffffff;
    color: #000000;
}

.ctrl {
    display: none;
}

header,
main,
footer {
    max-width: 1000px;
    margin: auto;
}

main {
    margin-bottom: 2rem;
}

.header-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.header-meta > h1 {
    white-space: nowrap;
}

nav a {
    display: inline-block;
    padding: 0.5rem 0;
    margin-right: 1rem;
}

nav.top a {
    text-decoration: none;
}

nav.projects a.projects,
nav.blog a.blog,
nav.about a.about,
nav.follow a.follow,
nav.links a.links,
nav.top a:hover {
    border-bottom: 1px solid #000000;
}

.content-category {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    justify-items: center;

}

.content-category-video {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 50px;
    grid-row-gap: 0px;
    align-items: stretch;
}


@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (orientation: portrait) {

    nav,
    .content-category,
    .content-category-video {
        font-size: 1.2rem;
    }
    .description {
        display: none;
    }

    /* 
    body {
        margin: 0;
    }
    .header-meta {
        flex-wrap: wrap;
        align-items: center;
        padding: 0.5rem 0.5rem 0;
    }
    .header-meta > h1 {
        margin: 0;
    }
    .ctrl {
        display: inline;
    }
    nav.top,
    main,
    footer {
        margin: 0 10px;
    }

    nav.top a {
        display: block;
    }

    nav.top {
        display: none;
    }

    input#foo:checked ~ nav {
        display: block;
    }
    

    .content-category,
    .content-category-video {
        grid-template-columns: repeat(1, 1fr);
    }

    */
}

.tile {
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    
}

.video-tile {
    position: relative;
}

.tile:hover,
.video-tile:hover {
    filter:brightness(1.3);
}

.tile p {
    line-height: 1.5rem;
    margin: 0 0 50px 0;
}
.tile h3 {
    margin-bottom: 0.5rem;
}

.tile a,
.video-tile a {
    color: #000;
    text-decoration: none;
}

.tile a:hover,
.video-tile a:hover {
    text-decoration: underline;
}

.image-placeholder {
    width: auto;
}

.image-placeholder img,
.video-slate-placeholder img {
    width:100%;
    max-height: auto;
    /* box-shadow: 2px 2px 10px 1px rgba(204, 204, 204, 1); */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
}

hr {
    width: 50%;
    border: 1px solid #ccc;
}

/* music pages */

body.music {
    background-color: #252525;
    color: #fff;
}

.music-link-section {
    text-align: center;
    max-width: 500px;
    margin: auto;
}

.music-link-section > * {
    flex-grow: 1;
}

.music-link-header {
    font-size: 2rem;
}

.music-link-image {
    width: 100%;
}

.music-link-group {
    list-style: none;
    padding: 0;
    margin: 0;
}

a.music-link {
    display: block;
    font-size: 1.6rem;
    padding: 20px;
    background: royalblue;
    color: white;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    margin-bottom:20px;
}

footer {
    border-top: 1px solid #000000;
    padding: 2rem 0;
}

/* blog styles */

.post {
    line-height: 1.6rem;
    margin-bottom:3rem;
}

.post img {
    max-width: 100%;
}

.post blockquote {
    border-left: 2px solid #ccc;
    padding-left: 1rem;
}

.post .video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.post .video-embed iframe {
    position: absolute;
    top:0;
    left:0;
    height: 100%;
    width: 100%;
}