/* Phone layout. Everything here is inside the media query below, so screens
   wider than 760px (laptops, desktops) ignore this file completely. */
@media (max-width: 760px) {
	body {
		overflow-x: hidden;
		overflow-wrap: break-word;
		background-position: 0% 100px;
	}

	/* header: title, then the menu wrapping onto two lines */
	header {
		height: auto;
		margin: 0;
		padding: 14px 0 0 0;
		text-align: center;
	}
	h2 {
		position: static;
		font-size: 30px;
	}
	ul {
		position: static;
		margin-top: 10px;
		padding: 6px 2px;
		border-width: 2px 0;
	}
	li {
		display: inline-block;
		padding: 4px 9px;
		font-size: 17px;
	}

	/* page body uses the screen width instead of a fixed 960px */
	.mainscreen {
		margin-top: 18px;
	}
	.main, .under {
		width: auto;
		height: auto;
		margin: 0 12px;
	}
	.nn {
		margin-top: 24px;
	}
	h1 {
		margin: 18px 0 14px 0;
		font-size: 24px;
	}
	.dateText, .yearText, .subAreaText {
		font-size: 22px;
	}
	.newsTitle {
		font-size: 22px;
	}
	img {
		max-width: 100%;
		height: auto;
	}

	/* table rows become stacked blocks */
	table {
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
	td {
		display: block;
		width: auto;
	}
	table td p, p {
		padding: 0 0 12px 0;
		margin: 0;
		font-size: 16px;
		line-height: 140%;
	}

	/* Photos page: one photo per row, full width */
	.photoI {
		width: 100%;
		margin-top: 12px;
	}

	/* 2013-2015 photos with captions: keep two per row so each caption stays under its photo */
	table:has(.subI) td {
		display: table-cell;
		width: 50%;
		vertical-align: top;
	}
	.subI {
		font-size: 14px;
		margin-top: 6px;
	}

	/* People page: centered headshot and name above each bio */
	.peepI {
		margin: 12px auto 0 auto;
	}
	.picT {
		padding: 6px 0 10px 0;
	}

	/* Research page: figure rows become two per line */
	td:has(> img.mainI) {
		display: inline-block;
		width: 48%;
		vertical-align: top;
	}
	.mainI {
		width: 100%;
		max-height: none;
	}

	/* Positions page: logos side by side, smaller */
	td.tee {
		font-size: 17px;
	}
	td:has(> a > img.peepI) {
		display: inline-block;
		width: 45%;
	}
}
