/*
 * The Life in Perpetual Beta design from 2011 (The Unstandard 0.1 as customized
 * by the site's designer, mk2), mapped onto the markup of Unstandard 3.0.1.
 * Loaded last. The 2011 stylesheet itself is in lipb-design-reference/style-2011.css.
 *
 * Design images live in /images under their 2011 names:
 *   headerLogo.png (392 x 141), lipb-repeat.jpg, BgCenterRepeat.png, paperTop.gif,
 *   navHover.png, BgCenterBottom.png, mk2dev.gif
 * The header logo and footer badge appear when their files exist. Until
 * BgCenterRepeat.png is there, the body gets .lipb-no-paper and a white column.
 * The theme's small graphics (li.gif, nextprev.gif, distort.gif, search-bg.gif)
 * were never archived, so they are rebuilt in CSS.
 */

:root {
	--lipb-orange: #f47a0e;
	--lipb-orange-dark: #ce6100;
	--lipb-orange-light: #f79b42;
	--lipb-rust: #c45c1f;
	--lipb-brown: #4d4039;
	--lipb-ink: #2c2c2c;
	--lipb-text: #444;
	--lipb-quiet: #6c6c6c;
	--lipb-highlight: #f9f9de;
	--lipb-highlight-edge: #e9e9b4;
}

/* ---------------------------------------------------------------- page */
body,
body *:not(code):not(pre):not(kbd):not(samp) {
	font-family: "Trebuchet MS", Verdana, Helvetica, Arial, sans-serif !important;
}
code, pre, kbd, samp {
	font-family: courier, monospace;
}
body {
	background: var(--lipb-brown) url("images/lipb-repeat.jpg") repeat;
	color: #000;
	font-size: 13px;
	min-width: 0;
}
a {
	color: var(--lipb-ink);
}
a:hover {
	color: var(--lipb-orange);
}

/* The 800 px paper column. */
.masthead .container-12 {
	width: 738px;
	padding: 0 31px;
}
#main .container-12 {
	width: 677px;
	padding: 0 61px 0 62px;
	background: url("images/BgCenterRepeat.png") repeat-y center top;
	border: 0;
	box-shadow: none;
	padding-top: 12px;
}
.lipb-no-paper #main .container-12 {
	background: #fff;
}
#main::after { /* bottom edge of the paper */
	content: "";
	display: block;
	width: 800px;
	height: 24px;
	margin: 0 auto 30px;
	background: url("images/BgCenterBottom.png") no-repeat center top;
}

/* ---------------------------------------------------------------- masthead */
.masthead {
	background: transparent;
	border: 0;
	box-shadow: none;
	margin: 0;
	padding: 0;
}
.masthead .container-12 {
	height: 175px;
	background: url("images/paperTop.gif") no-repeat center bottom;
}
.masthead .container-12 .logo {
	width: 392px;
	margin: 17px 0 0;
	padding: 0;
}
.site-logo,
.site-title {
	margin: 0;
	font-weight: normal;
}
.site-logo img {
	display: block;
	max-width: 100%;
	height: auto;
}
.site-title {
	font-size: 30px;
	line-height: 1.2;
	padding-top: 30px;
}
.site-title a {
	color: #f7f1ea;
	text-decoration: none;
}
.site-title a:hover {
	color: var(--lipb-orange-light);
}

/* Header navigation: two columns of rust uppercase links. */
.masthead .container-12 .main-nav {
	width: 340px;
	margin: 0;
	float: right;
}
ul.menu {
	float: right;
	width: 340px;
	border: 0;
	padding-top: 15px;
}
ul.menu > li,
ul.menu > li:first-child {
	float: left;
	width: 170px;
	border: 0;
	margin: 0;
}
ul.menu a,
ul.menu a:hover,
ul.menu li:hover > a {
	display: block;
	height: 29px;
	padding: 8px 0 0 27px;
	color: var(--lipb-rust);
	background: transparent;
	font-size: 18px;
	line-height: 1.2;
	font-weight: normal;
	text-transform: uppercase;
	text-decoration: none;
	text-align: left;
}
ul.menu li:hover,
ul.menu a:hover,
ul.menu li:hover > a,
ul.menu .current-menu-item > a,
ul.menu .current_page_item > a {
	background: transparent url("images/navHover.png") no-repeat 0 0;
	color: var(--lipb-rust);
	padding-top: 8px;
	padding-bottom: 0;
}
ul.menu .current-menu-item > a,
ul.menu .current_page_item > a {
	color: #3c3d3e;
}

/* ---------------------------------------------------------------- columns */
#main .container-12 .main-column {
	width: 480px;
	margin: 0;
}
#main .container-12 .sidebar-column {
	width: 177px;
	margin: 0;
	float: right;
}
#middle .grid-12,
#bottom .grid-12,
#footer .grid-12 {
	width: 677px;
	margin: 0;
}

/* ---------------------------------------------------------------- homepage grid */
.main-column .primary-post,
.main-column .primary-post a {
	width: 460px;
	height: 275px;
}
.main-column .secondary-post,
.main-column .secondary-post a {
	width: 227px;
	height: 150px;
}
.main-column .primary-post,
.main-column .secondary-post {
	background: #444;
	margin: 0 7px 7px 0;
}
.secondary-post.right-edge,
.front-page .secondary-post:nth-child(2n+1),
.back-page .secondary-post:nth-child(2n),
.search-page .secondary-post:nth-child(2n) {
	margin-left: 0;
}
.thumbnail-title,
a:hover .thumbnail-title {
	background: #000;
	opacity: 0.85;
	min-height: 0;
	padding: 4px 0;
}
.thumb-post a h2 {
	color: var(--lipb-orange-light);
	text-shadow: none;
	font-size: 16px;
	line-height: 1.4em;
	padding: 6px 10px 5px;
}
.secondary-post a h2 {
	font-size: 14px;
	line-height: 1.6em;
	padding: 2px 7px;
}
.thumb-post a:hover h2 {
	color: #fff;
}
.thumb-post a {
	position: relative;
	display: block;
	overflow: hidden;
}
.comment-count {
	top: 0;
	right: 7px;
	bottom: auto;
	z-index: 3;
	height: 1.8em;
	line-height: 1.8em;
	width: 7.5em;
	padding: 0;
	text-align: center;
	text-transform: lowercase;
	font-size: 11px;
	color: #eee;
	background: var(--lipb-orange);
	border: 1px solid var(--lipb-orange-dark);
	border-top: 0;
}
.thumb-post a:hover .comment-count {
	background: var(--lipb-orange-dark);
}
.search-results-info .results-title {
	color: var(--lipb-orange);
}

/* ---------------------------------------------------------------- posts and pages */
.single-entry h2 {
	color: var(--lipb-orange);
	font-size: 18px;
	line-height: 20px;
}
.post-meta {
	border-top: 2px solid var(--lipb-orange);
	color: var(--lipb-text);
	font-size: 11px;
	text-transform: lowercase;
	padding-top: 4px;
	margin-top: 21px;
}
.post-meta .sub-title {
	color: #999;
}
.post-meta a {
	color: var(--lipb-orange);
	text-decoration: underline;
}
.post-meta a:hover {
	text-decoration: none;
}
.single-entry .type-post,
.single-entry .type-page {
	color: var(--lipb-text);
	font-size: 13px;
	line-height: 1.5em;
}
.single-entry .type-post p,
.single-entry .type-page p {
	margin: 1em 0;
}
.single-entry .type-post p a,
.single-entry .type-post li a,
.single-entry .type-page p a,
.single-entry .type-page li a {
	font-weight: bold;
}
.single-entry .type-post em,
.single-entry .type-page em {
	font-style: normal;
	background: var(--lipb-highlight);
}
.single-entry .type-post blockquote,
.single-entry .type-page blockquote {
	margin: 0 1.5em;
	color: var(--lipb-quiet);
}
.single-entry .type-post h3,
.single-entry .type-page h3 {
	font-size: 16px;
	color: var(--lipb-orange);
	margin-top: 2em;
}
.single-entry .type-post ul,
.single-entry .type-page ul {
	margin: 1em 1.5em;
	list-style: none;
}
.single-entry .type-post ul li,
.single-entry .type-page ul li {
	position: relative;
	margin: 0 0 14px;
	padding-left: 20px;
	color: var(--lipb-quiet);
	line-height: 1.3em;
}
.single-entry .type-post ul li::before,
.single-entry .type-page ul li::before { /* stands in for li.gif */
	content: "\25B8";
	position: absolute;
	left: 2px;
	top: 0;
	color: var(--lipb-orange);
}
/* Photos in the 2008 posts are placed with align="left|right" (or a float style)
   and had no margin, so the words ran into them. Give the text side room. */
.single-entry .post img[align="left"],
.single-entry .post table[align="left"],
.single-entry .post img[style*="float: left"],
.single-entry .post img[style*="float:left"],
.single-entry .post .alignleft {
	float: left;
	margin: 3px 18px 10px 0;
}
.single-entry .post img[align="right"],
.single-entry .post table[align="right"],
.single-entry .post img[style*="float: right"],
.single-entry .post img[style*="float:right"],
.single-entry .post .alignright {
	float: right;
	margin: 3px 0 10px 18px;
}
.single-entry .post .aligncenter,
.single-entry .post img[align="middle"],
.single-entry .post img[align="center"] {
	display: block;
	float: none;
	margin: 12px auto;
}
.single-entry .post table {
	max-width: 100%;
	border-collapse: collapse;
}
.single-entry .post table img {
	margin: 0;
}
.single-entry .post iframe {
	max-width: 100%;
}

/* A chosen still in place of YouTube's thumbnail (see dp_video_poster in functions.php). */
.lipb-yt {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	overflow: hidden;
	margin: 0 0 1em;
}
.single-entry .post .lipb-yt img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	margin: 0;
}
.lipb-yt-play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 68px;
	height: 48px;
	margin: -24px 0 0 -34px;
	border-radius: 12px;
	background: var(--lipb-orange);
	opacity: 0.92;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.lipb-yt-play::before {
	content: "";
	position: absolute;
	left: 27px;
	top: 14px;
	border-style: solid;
	border-width: 10px 0 10px 18px;
	border-color: transparent transparent transparent #fff;
}
.lipb-yt:hover .lipb-yt-play,
.lipb-yt:focus .lipb-yt-play {
	background: var(--lipb-orange-dark);
	opacity: 1;
}
.lipb-yt-frame {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	margin: 0 0 1em;
}

/* Featured images fill the grid boxes. (#main beats lipb.css's responsive "#main img { height: auto }".) */
#main .main-column .thumb-post a img {
	width: 100%;
	height: 100%;
	min-width: 0;
	object-fit: cover;
}

/* Credits page: the cast in two columns. */
.single-entry .post ul.lipb-credits-cast {
	column-count: 2;
	column-gap: 24px;
}
.single-entry .post ul.lipb-credits-cast li {
	break-inside: avoid;
	margin-bottom: 8px;
}

/* The film homepage. */
.lipb-film {
	position: relative;
	width: 100%;
	aspect-ratio: 655 / 480; /* the archive.org file is 655 x 480 */
	background: #000;
	margin: 0 0 6px;
}
.lipb-film iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
/* The title card in front of the film (images/film-title-card.jpg, 1310 x 960). */
.lipb-film-still {
	position: absolute;
	inset: 0;
	display: block;
	background: #fff;
}
#main .lipb-film-still img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	margin: 0;
}
.lipb-film-still::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid #d8d8d8;
	pointer-events: none;
}
.lipb-film-still:hover .lipb-yt-play,
.lipb-film-still:focus .lipb-yt-play {
	background: var(--lipb-orange-dark);
	opacity: 1;
}
.lipb-film-home .single-entry h2 {
	font-size: 22px;
	line-height: 26px;
	margin-top: 8px;
}
.lipb-vlog-latest ul {
	margin-bottom: 10px;
}
.lipb-vlog-more a,
.lipb-edit a {
	color: var(--lipb-orange);
	font-weight: bold;
	text-decoration: none;
}
.lipb-vlog-more a:hover {
	text-decoration: underline;
}

.lipb-archive-note,
.lipb-video-gone {
	background: var(--lipb-highlight);
	border-left: 3px solid var(--lipb-highlight-edge);
	padding: 7px 10px;
}

/* Older / Newer buttons (stands in for nextprev.gif). */
#main .container-12 .loop-paging {
	width: 467px;
	margin: 14px 0 0;
}
.loop-paging a {
	background: #ddd;
	color: var(--lipb-quiet);
	border: 0;
	font-size: 12px;
	font-weight: bold;
	line-height: 30px;
}
.loop-paging a:hover {
	background: #333;
	color: #eee;
}

/* ---------------------------------------------------------------- sidebar */
.widget .widgettitle {
	color: var(--lipb-orange);
	font-size: 16px;
	text-transform: none;
	border-bottom: 0;
	margin-bottom: 4px;
}
.sidebar-column .widget ul li {
	border-top: 1px solid #ccc;
	color: #777;
	line-height: 1.5em;
}
.sidebar-column .widget ul li a {
	position: relative;
	display: block;
	color: #888;
	text-decoration: none;
	padding: 3px 0 3px 20px;
}
.sidebar-column .widget ul li a::before { /* stands in for li-grey.gif */
	content: "\25B8";
	position: absolute;
	left: 2px;
	color: #bbb;
}
.sidebar-column .widget ul li a:hover,
.sidebar-column .widget ul li a:hover::before {
	color: var(--lipb-orange);
}

/* Search box (stands in for search-bg.gif). */
.search-form {
	background: var(--lipb-orange);
	padding: 8px 8px 10px;
}
.search-input {
	border: 1px solid var(--lipb-orange);
	color: #666;
	font-size: 12px;
	padding: 3px;
	width: 100%;
	box-sizing: border-box;
}

/* Categories band under the content. */
#middle .grid-12 {
	border: 1px solid #bbb;
	border-width: 1px 0;
	padding: 14px 0;
	margin: 35px 0 21px;
}
#middle .widget_categories > ul {
	margin-left: 0;
}
#middle .widget_categories li {
	width: 150px;
	margin: 0 10px 0 0;
	color: #999;
}
#middle .widget_categories li a {
	color: var(--lipb-orange);
	font-weight: bold;
	text-decoration: none;
}
#middle .widget_categories li a:hover {
	text-decoration: underline;
}

/* ---------------------------------------------------------------- comments */
.comments-title { /* stands in for distort.gif */
	color: var(--lipb-orange);
	font-size: 18px;
	border-top: 1px solid #ddd;
	padding-top: 21px;
}
.comment-meta,
.comment-author {
	font-size: 11px;
	text-transform: lowercase;
}
.comment-body {
	border-top: 2px solid var(--lipb-orange);
	padding-top: 6px;
}
.comment-body a {
	font-weight: bold;
}
.bypostauthor > .comment-body {
	background: #eee;
	border: 1px solid #ddd;
	border-top: 2px solid var(--lipb-orange);
	padding: 7px;
}

/* ---------------------------------------------------------------- footer */
#footer {
	color: #555;
	font-size: 12px;
}
#footer a {
	font-weight: bold;
}
#footer .grid-12 {
	border-top: 1px solid #ccc;
}
/* With no widgets below the categories band, its bottom rule is the footer's top rule. */
#middle + #footer {
	padding-top: 0;
}
#middle + #footer .grid-12 {
	border-top: 0;
}
#footer .footer-left {
	width: 300px;
	margin: 0;
}
#footer .footer-right {
	width: 377px;
	margin: 0;
	float: right;
	display: flex;
	align-items: center;
	gap: 10px;
	line-height: 1.5;
}
.design-credit {
	flex: none;
}

/* ---------------------------------------------------------------- small screens */
@media (max-width: 820px) {
	.masthead .container-12,
	#main .container-12 {
		width: auto;
		padding-left: 14px;
		padding-right: 14px;
	}
	#main .container-12 {
		background: #fff;
	}
	#main::after {
		width: auto;
		margin: 0 0 20px;
		background: none;
	}
	.masthead .container-12 {
		height: auto;
		padding-bottom: 12px;
		background: none;
	}
	.masthead .container-12 .logo {
		width: auto;
		margin: 14px 0 8px;
		text-align: center;
	}
	.site-logo img {
		margin: 0 auto;
	}
	.masthead .container-12 .main-nav,
	ul.menu {
		width: auto;
		float: none;
	}
	ul.menu > li,
	ul.menu > li:first-child {
		width: 50%;
	}
	#main .container-12 .main-column,
	#main .container-12 .sidebar-column,
	#middle .grid-12,
	#bottom .grid-12,
	#footer .grid-12 {
		width: auto;
		float: none;
	}
	.main-column .primary-post,
	.main-column .primary-post a,
	.main-column .secondary-post,
	.main-column .secondary-post a {
		width: auto;
	}
	.main-column .primary-post,
	.main-column .secondary-post {
		margin-right: 0;
	}
	.main-column .primary-post,
	.main-column .primary-post a {
		height: 220px;
	}
	#middle .widget_categories li {
		width: 45%;
	}
	#footer .footer-left,
	#footer .footer-right {
		width: auto;
		float: none;
	}
}
