@media only screen and (max-width: 1270px) {
	body {
        overflow-x: hidden;
    }	

	main { 
        width: 96%;
        max-width: 96%; 
    }
}

@media only screen and (max-width: 1200px) {
    header {
        height: 50vw;
    }

    #wrapper {
        margin-top: 50vw;
    }

    main .image, #film img, #film a {
        max-width: 12vw;
        height: auto;
    }

    .display_media img {
        max-width: 65vw !important;
    }
}

@media only screen and (max-width: 1110px) {
    #topbar nav { 
        margin: 0 auto 0 0; 
        position: relative; 
    }

    #topbar nav ul.menu li { 
        margin-left: 1.5vw; 
        margin-right: 1.5vw; 
    }
}

@media only screen and (max-width: 900px) {
    #topbar #social {
        display: none;
    }
}

@media only screen and (min-width: 801px) {
	#topbar nav #rmenu {
        display: block !important;
    }
}

@media only screen and (max-width: 800px) {
    #topbar {
        background: transparent;
        flex-wrap: wrap;
    }

    #topbar #show-menu {
        display: block;
    }

    #topbar nav {
        padding: 10px 0;
        background: #fff9f7;
        border-bottom-width: 5px;
        border-bottom-style: solid;
        border-color: #2e0f01;
        flex-basis: 100%;
        display: none;
    }

    #topbar nav ul.menu li {
        margin: 0;
        padding: 8px 20px;
        text-align: left;
        border-bottom-width: 1px;
        border-bottom-style: solid;
        border-color: #2e0f01;
        box-sizing: border-box;
        display: block;
    }

    #topbar nav ul.menu li:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }

    #topbar nav ul.menu li::before {
        display: inline-block;
    }

    #topbar nav ul.menu li .sub-menu {
        width: 100%;
        max-width: 100%;
        border: none;
        position: relative;
    }

    main .sortorder_cell, main .sortorder_options {
        display: none;
    }
}

@media only screen and (max-width: 768px) {
    main {
        margin-top: 30px;
    }

	.thumbnails {
        padding-left: 0.5vw;
        padding-right: 0.5vw;
    }

    .maintable {
        margin-bottom: 30px;
    }

    .tableh1, main .statlink h2 {
        font-size: 30px;
    }

    .thumbnails .thumb_title_title, .thumbnails .thumb_title_views, .thumbnails .thumb_resolution, .thumbnails .thumb_caption_ctime {
        font-size: 11px;
    }

    main .img_nav {
        padding: 1vw;
    }
}

@media only screen and (max-width: 640px) {
    body {
        font-size: 13px;
    }

    #topbar #site, #topbar #show-menu {
        padding: 10px;
    }

    #topbar #site h1 { 
        font-size: 24px;
    }

    .tableh1, main .statlink h2 {
        font-size: 27px;
    }

    .tableh1 {
        padding-bottom: 11px;
    }

    footer ul#links li {
        display: inline;
    }
}

@media only screen and (max-width: 360px) {
    #topbar #site h1 { 
        font-size: 21px;
    }

	.thumbnails {
        padding-left: 0.25vw;
        padding-right: 0.25vw;
    }

    .thumbnails .thumb_title_title, .thumbnails .thumb_title_views, .thumbnails .thumb_resolution, .thumbnails .thumb_caption_ctime {
        font-size: 9px;
    }
}