/* Mobile styles - loaded with media="(max-width: 768px)" so desktop is untouched */

html, body {
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
}

#site_container,
#header_container {
	width: auto;
}

/* Header */
#site_name {
	float: none;
	font-size: 26px;
	padding: 8px 10px 0 10px;
}

#header_nav a.nav_item {
	padding: 22px 12px 4px 12px;
	font-size: 14px;
}

/* Anime review page */
#content_anime_review_container {
	display: block;
	width: auto;
	background-image: none;
}

#anime_review_content,
#anime_review_section,
#anime_content_section,
#anime_review_content #related_reviews_section {
	width: auto;
	box-sizing: border-box;
}

/* Sidebar becomes the top of the page; screenshots come before the details table */
#anime_review_sidebar {
	float: none;
	width: auto;
	display: flex;
	flex-direction: column;
}

#anime_review_sidebar #screenshot_container {
	order: -1;
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

#anime_review_sidebar #screenshot_container::-webkit-scrollbar {
	display: none;
}

/* One image per "page" of the swipe carousel */
#screenshot_container > a,
#screenshot_container > img.screenshot {
	flex: 0 0 100%;
	scroll-snap-align: center;
	scroll-snap-stop: always;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

#screenshot_container img.screenshot {
	max-height: 60vh;
	width: auto;
	margin: 0 auto;
}

#anime_review_details {
	padding: 10px;
}

/* Related reviews: stack instead of three across */
ul#related_reviews_list li {
	float: none;
	width: auto;
	margin: 0 0 10px 0;
}

ul#related_reviews_list .image_div {
	max-height: none;
}

/* Other pages */
textarea.contact_us_message,
input[type=text] {
	width: 100%;
	box-sizing: border-box;
}
