/*	============================================================ */
/*	#region *** DARKROOM :: the darkroom */
/*	============================================================ */
	/* the darkroom :: the safelight's red over black, the contact sheet and its edge numbers, the pick ringed in grease pencil, the film's boxes, a typewriter
	for the words */

	html[data-template="darkroom"] {
		--dr-amber:								rgb(222, 168, 66);
		--dr-base:								rgb(24, 22, 20);
		--dr-red:								var(--ws-accent);
		--dr-glow:								0 0 18px rgba(224, 48, 30, 0.55);
	}

	html[data-template="darkroom"] body {
		font-size:								calc(var(--ws-t-body) - 1px);
	}

	html[data-template="darkroom"] h1,
	html[data-template="darkroom"] h2,
	html[data-template="darkroom"] h3 {
		font-weight:							600;
		letter-spacing:							0.02em;
		text-transform:							uppercase;
	}

	/* the header :: a black bar, the red lamp lit, the pages numbered like negatives */
	html[data-template="darkroom"] .tpl__head--safelight {
		position:								sticky;
		top:									0;
		z-index:								20;
		min-height:								64px;
		padding:								0 var(--ws-gap);
		display:								flex;
		align-items:							center;
		gap:									16px;

		border-bottom:							1px solid rgba(224, 48, 30, 0.35);
		background:								rgb(5, 5, 5);
	}

	html[data-template="darkroom"] .tpl__lamp {
		height:									10px;
		width:									10px;
		flex:									none;

		border-radius:							50%;
		background:								var(--dr-red);
		box-shadow:								var(--dr-glow), 0 0 4px var(--dr-red);

		animation:								dr-lamp 4s ease-in-out infinite;
	}

	@keyframes dr-lamp {
		0%,
		100% {
			opacity:							1;
		}

		50% {
			opacity:							0.72;
		}
	}

	html[data-template="darkroom"] .tpl__head--safelight .ws__brand {
		margin-right:							auto;
		flex-direction:							row;
		align-items:							baseline;
		gap:									14px;
	}

	html[data-template="darkroom"] .tpl__head--safelight .ws__brandname {
		font-size:								18px;
		font-weight:							600;
		letter-spacing:							0.14em;
		text-transform:							uppercase;
	}

	html[data-template="darkroom"] .tpl__head--safelight .ws__brandline {
		color:									var(--dr-amber);
		font-family:							var(--ws-ff-body);
		font-size:								11px;
		letter-spacing:							0.06em;
		text-transform:							none;
	}

	html[data-template="darkroom"] .tpl__head--safelight .ws__nav {
		gap:									2px;
	}

	html[data-template="darkroom"] .tpl__head--safelight .ws__navlink {
		padding:								8px 10px;
		display:								inline-flex;
		align-items:							baseline;
		gap:									6px;

		border:									none;

		color:									var(--ws-soft);
		font-family:							var(--ws-ff-body);
		font-size:								12px;
		font-weight:							400;
		letter-spacing:							0.04em;
		text-transform:							uppercase;
	}

	html[data-template="darkroom"] .tpl__head--safelight .tpl__no {
		color:									var(--dr-red);
		font-size:								10px;
	}

	html[data-template="darkroom"] .tpl__head--safelight .ws__navlink:hover,
	html[data-template="darkroom"] .tpl__head--safelight .ws__navlink.is-on {
		color:									var(--ws-ink);
	}

	html[data-template="darkroom"] .tpl__head--safelight .ws__navlink.is-on .tpl__nt {
		text-shadow:							var(--dr-glow);
	}

	html[data-template="darkroom"] .tpl__head--safelight .ws__burger {
		border-color:							rgba(224, 48, 30, 0.45);
		border-radius:							0;
	}

	html[data-template="darkroom"] .tpl__head--safelight .ws__nav {
		background:								rgb(5, 5, 5);
	}

	/* the cover :: the contact sheet - frames on the film's base, their edge numbers in amber, the second ringed; the roll's label beside */
	html[data-template="darkroom"] .tpl__cover--contactsheet {
		height:									auto;
		padding:								clamp(28px, 4vw, 64px) var(--ws-gap);
		display:								grid;
		grid-template-columns:					minmax(0, 1fr) minmax(240px, 360px);
		gap:									clamp(24px, 4vw, 56px);
		align-items:							end;

		background:								rgb(14, 14, 14);
	}

	html[data-template="darkroom"] .tpl__sheet {
		padding:								14px 12px;
		display:								grid;
		grid-template-columns:					repeat(4, minmax(0, 1fr));
		gap:									26px 8px;

		background:								var(--dr-base);
		box-shadow:								inset 0 0 0 1px rgb(40, 38, 35);
	}

	html[data-template="darkroom"] .tpl__sheet--1,
	html[data-template="darkroom"] .tpl__sheet--2 {
		grid-template-columns:					repeat(2, minmax(0, 1fr));
	}

	html[data-template="darkroom"] .tpl__sheet--3,
	html[data-template="darkroom"] .tpl__sheet--5,
	html[data-template="darkroom"] .tpl__sheet--6,
	html[data-template="darkroom"] .tpl__sheet--9 {
		grid-template-columns:					repeat(3, minmax(0, 1fr));
	}

	html[data-template="darkroom"] .tpl__frame {
		position:								relative;
		aspect-ratio:							3 / 2;
		margin:									0;

		background:								rgb(8, 8, 8);
	}

	html[data-template="darkroom"] .tpl__frame img {
		height:									100%;
		width:									100%;

		object-fit:								cover;
		filter:									contrast(1.05);

		transition:								filter 0.3s;
	}

	html[data-template="darkroom"] .tpl__frame:hover img {
		filter:									contrast(1.1) brightness(1.08);
	}

	html[data-template="darkroom"] .tpl__edge {
		position:								absolute;
		top:									-17px;
		left:									2px;

		color:									var(--dr-amber);
		font-family:							var(--ws-ff-body);
		font-size:								10px;
		letter-spacing:							0.08em;
	}

	html[data-template="darkroom"] .tpl__edge--b {
		top:									auto;
		right:									2px;
		bottom:									-17px;
		left:									auto;
	}

	html[data-template="darkroom"] .tpl__blank {
		height:									100%;
		display:								block;

		background:								repeating-linear-gradient(135deg, rgb(16, 16, 16) 0 6px, rgb(12, 12, 12) 6px 12px);
	}

	html[data-template="darkroom"] .tpl__frame.is-pick::after {
		position:								absolute;
		inset:									-12px -14px;

		border:									3px solid var(--dr-red);
		border-radius:							46% 54% 50% 48% / 56% 44% 58% 42%;

		content:								"";
		transform:								rotate(-3deg);
		pointer-events:							none;
	}

	html[data-template="darkroom"] .tpl__roll {
		padding-bottom:							6px;
		display:								flex;
		flex-direction:							column;
		gap:									14px;
	}

	html[data-template="darkroom"] .tpl__rollno {
		padding:								4px 8px;
		align-self:								flex-start;

		border:									1px solid var(--dr-amber);

		color:									var(--dr-amber);
		font-family:							var(--ws-ff-body);
		font-size:								11px;
		letter-spacing:							0.1em;
		text-transform:							uppercase;
	}

	html[data-template="darkroom"] .tpl__roll .ws__herotitle {
		font-size:								clamp(30px, 3.4vw, 52px);
		line-height:							0.98;
		overflow-wrap:							anywhere;
	}

	html[data-template="darkroom"] .tpl__roll .ws__heroline {
		margin:									0;

		color:									var(--ws-soft);
		font-size:								13px;
		line-height:							1.6;
	}

	/* the sections :: thin rules, the kicker in red, the words typed */
	html[data-template="darkroom"] .ws__section + .ws__section {
		border-top-style:						dashed;
	}

	html[data-template="darkroom"] .ws__sechead {
		padding-bottom:							10px;

		border-bottom:							1px solid var(--ws-line);
	}

	html[data-template="darkroom"] .ws__sectitle::before {
		height:									8px;
		width:									8px;
		margin:									0 12px 3px 0;
		display:								inline-block;
		vertical-align:							middle;

		border-radius:							50%;
		background:								var(--dr-red);
		box-shadow:								var(--dr-glow);

		content:								"";
	}

	html[data-template="darkroom"] .ws__kicker {
		color:									var(--dr-red);
		font-weight:							400;
	}

	html[data-template="darkroom"] .ws__more {
		border-bottom-color:					var(--dr-red);

		color:									var(--ws-ink);
		font-weight:							400;
	}

	html[data-template="darkroom"] .ws__lead,
	html[data-template="darkroom"] .ws__text {
		color:									var(--ws-soft);
	}

	html[data-template="darkroom"] .ws__btn {
		border-color:							var(--dr-red);
		border-radius:							0;
		background:								transparent;

		color:									var(--ws-ink);
		font-weight:							400;
		transition:								background 0.2s, box-shadow 0.2s;
	}

	html[data-template="darkroom"] .ws__btn:hover {
		background:								var(--dr-red);
		box-shadow:								var(--dr-glow);
	}

	/* the gallery index :: each gallery a box of film - its window, its label, its code */
	html[data-template="darkroom"] .tpl__boxes {
		display:								grid;
		grid-template-columns:					repeat(auto-fill, minmax(230px, 1fr));
		gap:									22px;
	}

	html[data-template="darkroom"] .tpl__box {
		position:								relative;
		padding:								14px 14px 0;
		display:								flex;
		flex-direction:							column;
		gap:									12px;

		border-top:								8px solid var(--dr-red);
		background:								linear-gradient(180deg, rgb(32, 30, 28), rgb(20, 19, 18));
		box-shadow:								0 18px 30px -18px rgba(0, 0, 0, 0.9);

		transition:								transform 0.25s;
	}

	html[data-template="darkroom"] .tpl__box:hover {
		transform:								translateY(-4px);
	}

	html[data-template="darkroom"] .tpl__boxwin {
		aspect-ratio:							4 / 3;
		display:								block;
		overflow:								hidden;

		border:									2px solid rgb(8, 8, 8);
		border-radius:							10px;
		background:								rgb(8, 8, 8);
	}

	html[data-template="darkroom"] .tpl__boxwin img {
		height:									100%;
		width:									100%;

		object-fit:								cover;
	}

	html[data-template="darkroom"] .tpl__boxlabel {
		display:								flex;
		align-items:							baseline;
		justify-content:						space-between;
		gap:									10px;
	}

	html[data-template="darkroom"] .tpl__boxlabel b {
		font-family:							var(--ws-ff-head);
		font-size:								19px;
		font-weight:							600;
		letter-spacing:							0.04em;
		line-height:							1.15;
		text-transform:							uppercase;
	}

	html[data-template="darkroom"] .tpl__boxlabel i {
		color:									var(--dr-amber);
		font-size:								11px;
		font-style:								normal;
		white-space:							nowrap;
	}

	html[data-template="darkroom"] .tpl__boxcode {
		margin:									0 -14px;
		padding:								6px 14px;

		background:								var(--dr-amber);

		color:									rgb(20, 18, 14);
		font-size:								11px;
		font-weight:							600;
		letter-spacing:							0.2em;
	}

	/* a gallery :: the contact sheet with its frame numbers; any other layout keeps the black frames */
	html[data-template="darkroom"] .ws__gallery {
		counter-reset:							frame;
	}

	html[data-template="darkroom"] .ws__item {
		border-radius:							0;
		background:								rgb(8, 8, 8);

		counter-increment:						frame;
	}

	html[data-template="darkroom"] section[data-layout="contact"] .ws__gallery {
		padding:								26px 14px;
		gap:									30px 8px;

		background:								var(--dr-base);
	}

	html[data-template="darkroom"] section[data-layout="contact"] .ws__item {
		overflow:								visible;

		border-color:							rgb(8, 8, 8);
	}

	html[data-template="darkroom"] section[data-layout="contact"] .ws__item::after {
		right:									auto;
		bottom:									auto;
		top:									-18px;
		left:									2px;

		color:									var(--dr-amber);
		font-family:							var(--ws-ff-body);
		font-size:								10px;
		content:								attr(data-n) "A";
	}

	html[data-template="darkroom"] section[data-layout="contact"] .ws__item:hover {
		outline:								3px solid var(--dr-red);
		outline-offset:							6px;
	}

	html[data-template="darkroom"] section[data-layout="contact"] .ws__item[data-mark]::after {
		content:								attr(data-mark);
	}

	/* about :: the darkroom's notes - a print on its board, the titles as labels, the numbers red */
	html[data-template="darkroom"] .ws__portrait {
		padding:								10px 10px 34px;

		background:								rgb(236, 233, 226);
	}

	html[data-template="darkroom"] .ws__badge {
		border-color:							rgba(222, 168, 66, 0.5);
		border-radius:							0;

		color:									var(--dr-amber);
		font-weight:							400;
	}

	html[data-template="darkroom"] .ws__badge--accent {
		border-color:							var(--dr-red);

		color:									var(--ws-ink);
	}

	html[data-template="darkroom"] .ws__stat {
		border-left:							2px solid var(--dr-red);
		border-radius:							0;
		background:								var(--ws-card);
	}

	html[data-template="darkroom"] .ws__statnum {
		color:									var(--dr-red);
		text-shadow:							var(--dr-glow);
	}

	/* the record :: a strip of rows, the award as a red label */
	html[data-template="darkroom"] .ws__row {
		border-bottom-style:					dashed;
	}

	html[data-template="darkroom"] .ws__thumb {
		border:									2px solid rgb(8, 8, 8);
	}

	html[data-template="darkroom"] .ws__award {
		border:									1px solid var(--dr-red);
		border-radius:							0;
		background:								transparent;

		color:									var(--ws-ink);
		font-weight:							400;
	}

	html[data-template="darkroom"] .ws__accepted {
		color:									var(--dr-amber);
	}

	html[data-template="darkroom"] .ws__year {
		color:									var(--dr-amber);
	}

	html[data-template="darkroom"] .ws__inp {
		border-color:							var(--ws-line);
		border-radius:							0;
		background:								rgb(14, 14, 14);

		font-family:							var(--ws-ff-body);
	}

	html[data-template="darkroom"] .ws__inp:focus {
		border-color:							var(--dr-red);
		box-shadow:								var(--dr-glow);
	}

	/* the foot :: the edge of a film, its frame numbers in amber, then the line and the association */
	html[data-template="darkroom"] .tpl__foot--filmedge {
		margin-top:								var(--ws-space);

		border-top:								none;
		background:								rgb(5, 5, 5);
	}

	html[data-template="darkroom"] .tpl__edgeline {
		height:									44px;
		padding:								0 10px;
		display:								flex;
		align-items:							center;
		gap:									0;
		overflow:								hidden;

		background-color:						var(--dr-base);
		background-image:						linear-gradient(90deg, rgb(74, 70, 64) 0 9px, transparent 9px), linear-gradient(90deg, rgb(74, 70, 64) 0 9px, transparent 9px);
		background-size:						22px 7px, 22px 7px;
		background-position:					6px 6px, 6px 31px;
		background-repeat:						repeat-x, repeat-x;
	}

	html[data-template="darkroom"] .tpl__edgeline span {
		min-width:								88px;

		color:									var(--dr-amber);
		font-family:							var(--ws-ff-body);
		font-size:								10px;
		letter-spacing:							0.1em;
		text-align:								center;
	}

	html[data-template="darkroom"] .tpl__foot--filmedge .ws__wrap {
		padding-top:							22px;
		padding-bottom:							30px;
		display:								flex;
		flex-wrap:								wrap;
		align-items:							center;
		justify-content:						space-between;
		gap:									12px 24px;

		color:									var(--ws-mute);
		font-size:								12px;
	}

	@media all and (max-width: 960px) {
		html[data-template="darkroom"] .tpl__cover--contactsheet {
			grid-template-columns:				minmax(0, 1fr);
		}

		html[data-template="darkroom"] .tpl__sheet {
			grid-template-columns:				repeat(3, minmax(0, 1fr));
		}
	}

	@media all and (max-width: 760px) {
		html[data-template="darkroom"] .tpl__head--safelight .ws__brandline {
			display:							none;
		}

		html[data-template="darkroom"] .tpl__head--safelight .ws__nav {
			border-bottom:						1px solid rgba(224, 48, 30, 0.35);
		}

		html[data-template="darkroom"] .tpl__sheet {
			grid-template-columns:				repeat(2, minmax(0, 1fr));
		}

		html[data-template="darkroom"] .tpl__frame:nth-child(n + 7) {
			display:							none;
		}
	}

/*	============================================================ */
/*	#endregion END DARKROOM */
/*	============================================================ */
