@media screen and (max-height: 875px) {
    .hero .site .site-inner {
        flex-basis: 60%;
    }
    
    .hero .site .site-inner ul.latest li {
        padding: 10px;
        font-size: 12px;
    }

    .hero .site .pic {
        width: auto;
        min-height: 58vh;
        background-size: contain;
        flex-basis: 40%;
    }
}

@media only screen and (max-width: 1366px) {
    body, .hero {
        overflow-x: hidden;
    }

    .hero .hero-inner, footer .footer-inner, #main-content {
        max-width: 96%;
    }

	section#content { 
		min-width: 64vw; 
		max-width: 64vw; 
	}

	aside { 
		min-width: 29vw;
		max-width: 29vw; 
	}
}

@media only screen and (max-width: 1200px) {
    .hero .site .pic {
        width: auto;
        min-height: 58vh;
        background-size: contain;
    }

    .hero .site .site-inner h1 {
        font-size: 48px;
    }

    #latest #latest-inner {
        padding: 20px 0;
        box-sizing: border-box;
        display: block;
    }

    #latest #latest-inner #stats, #latest #latest-inner #cam, #latest #latest-inner #links {
        margin: 0 auto;
        display: table;
    }

    #latest #latest-inner #stats {
        margin-top: 40px;
        padding: 0;
    }

    #latest #latest-inner #stats::before {
        display: none;
    }
    
    #latest #latest-inner #cam {
        font-size: 21px;
        position: absolute;
        left: 0; top: 20px; right: 0;
        margin: auto;
    }
        
    #latest #latest-inner #links {
        margin-top: 15px;
        padding-bottom: 0;
    }

    #latest #latest-inner #links::after {
        top: 0; bottom: unset;
        left: 0; right: unset;
        background: #d9d9d9;
    }
}

@media only screen and (max-width: 1080px) {
    #main-content { 
		margin-bottom: 20px;
        max-width: 96%;
		display: block;
	}

	section#content { 
		min-width: 100%;
		max-width: 100%;
		display: table-header-group;
	}

	aside { 
		width: 100%;
		min-width: 100%;
		max-width: 100%;
		margin: 0 auto;
		display: table-footer-group;
	}

    aside h4.sidetitle::after {
        margin-bottom: 40px;
    }

	aside .proj { 
		max-width: 360px; 
	}

    #pagination {
        margin-bottom: 80px;
    }
}

@media only screen and (max-width: 960px) {
    .hero .site .site-inner ul.latest li {
        padding: 10px;
        font-size: 12px;
    }
}

@media only screen and (min-width: 801px) {
	nav ul.menu {
        display: block !important;
    }
}

@media only screen and (max-width: 800px) {
    body {
        font-size: 13px;
    }

    .hero {
        height: auto;
        padding-bottom: 10vh;
    }

    .hero .site .site-inner {
        flex: 1;
    }

    .hero .site .site-inner h1 {
        font-size: 36px;
    }

    .hero .hero-inner {
        padding-top: 25px;
    }

    nav {
        max-width: 100%;
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 20px;
    }

    nav > *:nth-child(n+3) {
        grid-column: 1 / -1;
    }

	#show-menu {
        display: block;
    }

    .hero .site .pic, nav ul.menu, .social {
        display: none;
    }

    nav ul.menu li {
        display: block;
    }

    nav ul.menu li::before {
        content: '';
        width: 20px;
        height: 2px;
        background: #ffffff;
        margin-right: 20px;
        margin-top: 7px;
        opacity: 1;
        float: left;
    }

    nav ul.menu li::after {
        margin: 15px 0;
        width: 100%;
        height: 2px;
        transform: none;
        display: block;
    }

    nav ul.menu li:first-child {
        margin-top: 20px;
    }

    #latest {
        margin-top: 0;
    }

    article h1.title, article h2 {
        font-size: 27px;
    }

    article .entry {
        padding-left: 3.5vw;
        padding-right: 3.5vw;
    }

	article .entry img, aside .sidebox img {
		max-width: 12vw;
		height: auto;
	}

    aside .proj img {
        max-width: 100%;
    }
}

@media only screen and (max-width: 640px) {
    .hero .site .site-inner h1 {
        font-size: 30px;
    }

    #latest table img {
        width: 90px;
        height: 90px;
    }

    #latest #latest-inner {
        display: flex;
        align-items: center;
    }

    #latest #latest-inner #cam, #latest #latest-inner #links, footer .footer-inner .fpic {
        display: none;
    }

    #latest #latest-inner #stats {
        margin-top: 0;
        text-align: center;
        flex-basis: 100%;
    }

    article h1.title, article h2 {
        font-size: 24px;
    }

    footer ul#cred { 
        text-align: center;
    }

    footer .footer-inner .fcontent .disc {
        padding-left: 0;
    }
}

@media only screen and (max-width: 360px) {	
	aside .proj, aside .proj img {
        max-width: 100%;
    }
}

@media screen and (max-height: 768px) {
    .hero {
        height: auto;
        padding-bottom: 10vh;
    }

    .hero .hero-inner {
        max-height: 90%;
    }

    #latest {
        margin-top: 0;
    }
}