/*
 * ForestWander Mobile - homepage (start_page.php). Phones only. Loaded after mobile-header.css
 * (which already turns the main layout table into one column with the main cell first).
 * Inside .Sheet-body > div:not(:first-child):
 *   table 2 (main): row 1 = cats | cats | MAIN (h1, 2 featured photos, 336x280 ad) | cats | cats ; row 2 = macro | 468x60 ad | Christian Wallpaper
 *   table[width="95%"]: the 12 category spots (4 columns) with two 150x600 ad columns between
 *   table[width="100%"][align="left"]: mission text
 */
@media (max-width: 767px) {
	/* Two featured photos and the 336x280 ad, stacked. */
	.Sheet-body > div:not(:first-child) > table:nth-of-type(2) > tbody > tr > td:nth-child(3) > table,
	.Sheet-body > div:not(:first-child) > table:nth-of-type(2) > tbody > tr > td:nth-child(3) > table > tbody,
	.Sheet-body > div:not(:first-child) > table:nth-of-type(2) > tbody > tr > td:nth-child(3) > table > tbody > tr,
	.Sheet-body > div:not(:first-child) > table:nth-of-type(2) > tbody > tr > td:nth-child(3) > table > tbody > tr > td { display: block; width: 100% !important; }
	.Sheet-body > div:not(:first-child) > table:nth-of-type(2) > tbody > tr > td:nth-child(3) > table img { width: 100%; max-width: 300px; height: auto; } /* 200px files */

	/* The 12 category spots: one list, each spot with its photo floated left. The two 150x600 ad columns are dropped. */
	.Sheet-body table[width="95%"],
	.Sheet-body table[width="95%"] > tbody,
	.Sheet-body table[width="95%"] > tbody > tr { display: block; width: 100% !important; }
	.Sheet-body table[width="95%"] > tbody > tr > td { display: block; width: auto !important; padding: 0 12px; box-sizing: border-box; font-size: 15px; line-height: 1.4; text-align: left; }
	.Sheet-body table[width="95%"] > tbody > tr > td[width="5%"] { display: none; }
	.Sheet-body table[width="95%"] > tbody > tr > td > a { display: block; clear: both; padding-top: 10px; } /* each spot starts below the previous photo */
	.Sheet-body table[width="95%"] img { width: 100px; height: auto; float: left; margin: 0 10px 6px 0; } /* 80px files: keep upscaling small */
	.Sheet-body table[width="95%"] b { font-size: 16px; }

	/* Mission text. */
	.Sheet-body table[width="100%"][align="left"],
	.Sheet-body table[width="100%"][align="left"] > tbody,
	.Sheet-body table[width="100%"][align="left"] > tbody > tr,
	.Sheet-body table[width="100%"][align="left"] > tbody > tr > td { display: block; width: 100% !important; float: none !important; }
	.Sheet-body table[width="100%"][align="left"] td { padding: 0 12px; box-sizing: border-box; font-size: 15px; line-height: 1.45; }
	.Sheet-body table[width="100%"][align="left"] h3 { font-size: 17px; }
}
