/* Shlomo Pozner – static rebuild of the Cargo site.
   Part 1: layout (replaces Cargo's own engine). Part 2 (below): the site's text styles. */

@font-face { font-family: "VCR OSD Mono"; src: url(/fonts/VCROSD-Mono.woff) format("woff"); font-display: swap; }
@font-face { font-family: "Libertinus Mono"; src: url(/fonts/LibertinusMono.woff) format("woff"); font-display: swap; }
@font-face { font-family: "Optician Sans"; src: url(/fonts/OpticianSans.woff) format("woff"); font-display: swap; }
@font-face { font-family: "DM Mono"; font-weight: 300; src: url(/fonts/dm-mono-300.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "DM Mono"; font-weight: 400 700; src: url(/fonts/dm-mono-400.woff2) format("woff2"); font-display: swap; }
/* Diatype (Cargo-only licence) is replaced by Inter */
@font-face { font-family: "Inter"; font-weight: 100 900; src: url(/fonts/inter-variable.woff2) format("woff2"); font-display: swap; }

/* Cargo scales the whole site with the window width */
html { font-size: 0.9vw; --viewport-height: 100vh; -webkit-text-size-adjust: 100%; }
html.mobile { font-size: 2.24vw; }
@supports (height: 100svh) { html.mobile { --viewport-height: 100svh; } }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #fff; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; }
a { cursor: pointer; }

/* Sizes are set as --font-size so pages can rescale them (Cargo's --font-scale) */
h1,
h2,
.bodycopy,
.caption,
.button-5,
.bnb,
.big,
.mobile-1,
.about,
.shabbat,
.mobile-homepage,
.button-10,
.mobile-cv,
.icon,
.nitti,
.mobile-name,
.mobile-text,
.button-8,
.button-8-1,
.back,
.black-back,
.shlomo,
[style*="--font-scale"] {
	font-size: calc(var(--font-size) * var(--font-scale, 1));
}

/* Pages */
.page { position: relative; display: flex; justify-content: flex-end; min-height: var(--viewport-height); }
.page-layout { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; }
.page-content { flex: 1 0 auto; align-self: stretch; width: 100%; display: block; position: relative; }
.bodycopy { white-space: normal; overflow-wrap: break-word; }
/* Cargo drops page padding on phones */
html.mobile .page-content { padding: 0 !important; }

/* Desktop menu: fixed, left 40% */
.page.pinned { position: fixed; inset: 0 auto auto 0; width: 100%; height: var(--viewport-height); z-index: 10; pointer-events: none; }
.page.pinned .page-layout { pointer-events: auto; }
html.mobile .desktop-nav, html.mobile .desktop-only { display: none; }
html:not(.mobile) .mobile-only { display: none; }

/* Background images */
.backdrop { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.backdrop-contents { position: absolute; inset: 0; }
.wallpaper { position: absolute; inset: 0; background: center / cover no-repeat; }

/* Lists */
ol li::marker { font-family: "DM Mono", monospace; font-weight: 300; }

/* Icons used inline with text */
.text-icon { aspect-ratio: 1; height: 1.2em; width: auto; margin-top: -1em; margin-bottom: -.25em; display: inline-block; vertical-align: baseline; position: relative; }
.text-icon svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.icon-link { display: inline-block; text-decoration: none; }
.button-5.icon-link { line-height: 0; }
.button-5 .text-icon { margin: 0; height: 1.2em; vertical-align: top; }

/* Columns (12-column grid, like Cargo's column sets) */
.columns { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter, 1rem); }
.column { grid-column: span var(--span, 12); min-width: 0; }
html.mobile .columns[data-mobile-stack="true"] { display: block; }
html.mobile .columns[data-mobile-stack="true"] > .column:empty { display: none; }
html.mobile .columns[data-mobile-stack="false"] { column-gap: var(--mgutter, var(--gutter, 1rem)); }

/* Image grids */
.gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 2rem; align-items: start; }
html.mobile .gallery { grid-template-columns: repeat(var(--mcols, var(--cols, 3)), minmax(0, 1fr)); gap: 0; }
html.mobile .gallery[data-mobile-valign="center"] { align-items: center; }
.media { margin: 0; }
.media a, .media img { display: block; width: 100%; height: auto; }
.zoom { cursor: zoom-in; }

/* Videos: one per row, full width, 16:9 */
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery[style*="--cols:1"] { gap: 2rem; }

/* Click-to-enlarge (Cargo "quick view") */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 3rem; background: #fff; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; cursor: zoom-out; }
html.mobile .lightbox { padding: 10px; }
.lightbox button { position: absolute; border: 0; background: rgba(87, 87, 87, .35); color: rgba(255, 255, 255, .9); width: 30px; height: 30px; border-radius: 50%; padding: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox button svg { width: 100%; height: 100%; }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
html.mobile .lightbox .lb-prev { left: 10px; }
html.mobile .lightbox .lb-next { right: 10px; }
html.mobile .lightbox .lb-close { top: 10px; right: 10px; }
.lightbox button:active { opacity: .7; }
body.lightbox-open { overflow: hidden; }

/* Hidden helper links from Cargo: back arrows that only make sense on phones */
html:not(.mobile) a.nav-back { display: none; }

/* ---- Text styles and colours from the Cargo site ---- */
html {
	--mobile-scale: 1;
	--mobile-padding-offset: 0;
}

body {
	--swatch-1: rgba(0, 0, 0, 0.85);
	--swatch-2: rgba(0, 0, 0, 0.75);
	--swatch-3: rgba(0, 0, 0, 0.6);
	--swatch-4: rgba(0, 0, 0, 0.4);
	--swatch-5: rgba(0, 0, 0, 0.25);
	--swatch-6: #ff0000;
}

body.mobile {
}

a:active,
.linked:active,
.zoom:active {
	opacity: 0.7;
}

.page a.active {
	color: #ff0000;
}

sub {
	position: relative;
	vertical-align: baseline;
	top: 0.3em;
}

sup {
	position: relative;
	vertical-align: baseline;
	top: -0.4em;
}

.small-caps {
	font-variant: small-caps;
	text-transform: lowercase;
}

ol {
	margin: 0;
	padding: 0 0 0 2.8em;
}

ul {
	margin: 0;
	padding: 0 0 0 2.0em;
}

ul.lineated {
	margin: 0;
	padding: 0;
	list-style-type: none;
	margin: 0 0 0 3em;
	text-indent: -3em;
}

blockquote {
	margin: 0;
	padding: 0 0 0 2em;
}

hr {
	background: rgba(0, 0, 0, 0.75);
	border: 0;
	height: 2px;
	display: block;
	margin-top: 1rem;
	margin-bottom: 1rem;
}

.content {
	border-color: rgba(0, 0, 0, 0.85);
	border-style: solid;
	border-width: 0rem;
}

:where(.bodycopy) {
	--font-size: 1.4rem;
	font-weight: 400;
	color: rgba(6, 6, 5, 0.75);
	font-family: "VCR OSD Mono", monospace;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: 0;
	display: block;
}

.mobile :where(.bodycopy) {
	color: rgba(243, 237, 235, 0.75);
	--font-size: 2.15rem;
}

:where(.bodycopy) a {
	color: rgba(0, 46, 232, 0.75);
	text-decoration: none;
}

:where(.bodycopy) a:hover {
}

h1 {
	font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
	font-style: normal;
	font-weight: 400;
	margin: 0;
	--font-size: 2.8rem;
	line-height: 1;
	color: rgba(241, 82, 14, 0.85);
	letter-spacing: -0.03em;
}

.mobile h1 {
	--font-size: 1.8rem;
}

h1 a {
	color: rgba(241, 82, 14, 0.85);
	text-decoration: none;
}

h1 a:hover {
}

h2 {
	font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
	font-style: normal;
	font-weight: 500;
	margin: 0;
	color: rgba(207, 33, 33, 0.85);
	--font-size: 2.6rem;
	line-height: 1;
	letter-spacing: -0.03em;
}

h2 a {
	color: rgba(207, 33, 33, 0.85);
	text-decoration: none;
}

h2 a:hover {
}

.caption {
	--font-size: 1.2rem;
	font-weight: 500;
	color: rgba(0, 0, 0, 0.85);
	font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: -0.03em;
	display: block;
}

.caption a,
a.caption {
	color: rgba(0, 0, 0, 0.85);
	text-decoration: underline;
}

.caption a:hover {
}

media-item .caption {
	margin-top: .5em;
}

gallery-grid .caption,
gallery-columnized .caption,
gallery-justify .caption {
	margin-bottom: 2em;
}

[thumbnail-index] .caption {
	text-align: center;
}

[thumbnail-index] .caption .tags {
	margin-top: 0.25em;
}

.page {
	justify-content: flex-end;
	min-height: var(--viewport-height);
}

.page-content {
	padding: 0rem;
	text-align: left;
	border-width: 0rem;
	border-color: rgba(0,0,0,.85);
	border-style: solid;
	border-radius: 0rem;
	align-items: flex-start;
}

.mobile [id] .page-layout {
	padding: 0;
	max-width: 100%;
}

.mobile [id] .page-content {
	border: 0;
	border-radius: 0;
}

.page-layout {
	align-items: flex-start;
	max-width: 60%;
}

.media img {
	border: 0;
	padding: 0rem;
}

.quick-view {
	height: 100%;
	width: 100%;
	padding: 3rem;
	margin-top: auto;
	margin-right: auto;
	margin-bottom: auto;
	margin-left: auto;
}

.quick-view-background {
	background-color: #ffffff;
}

.quick-view .caption {
	color: rgba(255, 255, 255, 1.0);
	padding: 20px 0;
	text-align: center;
	transition: 100ms opacity ease-in-out;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
}

.quick-view .caption-background {
	padding: 0.5rem 1rem;
	display: inline-block;
	background: rgba(0, 0, 0, 0.5);
	border-radius: .5rem;
	text-align: left;
	max-width: 50rem;
}

.mobile .quick-view {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 10px;
}

.mobile .quick-view .caption {
	padding: 10px 0;
}

.button-5 {
	--text-style: "button 5";
	--font-size: 1.4rem;
	font-weight: 400;
	font-family: "VCR OSD Mono", monospace;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: 0;
	color: rgba(0, 0, 0, 0.85);
	display: inline-block;
	border-color: rgba(0, 0, 0, 0.85);
	border-style: solid;
	border-width: 0.2rem;
	padding: 1rem;
	padding-top: 0.7rem;
	padding-bottom: 0.7rem;
	background: #ffffff;
	filter: drop-shadow(0.3rem 0.3rem 0rem rgba(0,0,0,0.85));
	will-change: filter;
}

.button-5 a,
a.button-5 {
	color: rgba(0, 0, 0, 0.85);
	text-decoration: none;
}

.button-5 a:hover {
	
}

.button-5 a.active {
	color: rgba(0, 0, 0, 0.85);
	text-decoration: none;
}

.bnb {
	--text-style: "BNB";
	--font-size: 1.4rem;
	font-weight: 400;
	color: rgba(30, 28, 27, 0.75);
	font-family: "Libertinus Mono", monospace;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: 0em;
	display: block;
}

.mobile .bnb {
	color: rgba(242, 66, 21, 0.75);
}

.bnb a,
a.bnb {
	color: rgba(0, 46, 232, 0.75);
	text-decoration: none;
}

.bnb a:hover {
	
}

.big {
	--text-style: "big";
	--font-size: 2.6rem;
	font-weight: 400;
	color: rgba(29, 26, 74, 0.75);
	font-family: "Optician Sans", sans-serif;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: 0;
	display: block;
}

.mobile .big {
	color: rgba(242, 66, 21, 0.75);
}

.big a,
a.big {
	color: rgba(0, 46, 232, 0.75);
	text-decoration: none;
}

.big a:hover {
	
}

.mobile-1 {
	--text-style: "MOBILE";
	--font-size: 1.4rem;
	font-weight: 700;
	color: rgba(33, 40, 25, 0.75);
	font-family: "DM Mono", monospace;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: 0;
	display: block;
}

.mobile .mobile-1 {
	color: rgba(242, 66, 21, 0.75);
}

.mobile-1 a,
a.mobile-1 {
	color: rgba(0, 46, 232, 0.75);
	text-decoration: none;
}

.mobile-1 a:hover {
	
}

.about {
	--text-style: "about";
	--font-size: 1.4rem;
	font-weight: 400;
	color: rgba(18, 18, 17, 0.75);
	font-family: "DM Mono", monospace;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: 0;
	display: block;
}

.mobile .about {
	color: rgba(242, 66, 21, 0.75);
}

.about a,
a.about {
	color: rgba(0, 46, 232, 0.75);
	text-decoration: none;
}

.about a:hover {
	
}

.shabbat {
	--text-style: "Shabbat";
	--font-size: 1.55rem;
	font-weight: 400;
	color: rgba(131, 232, 0, 0.75);
	font-family: "DM Mono", monospace;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: 0;
	display: block;
}

.mobile .shabbat {
	color: rgba(21, 28, 242, 0.75);
	--font-size: 0.5rem;
}

.shabbat a,
a.shabbat {
	color: rgba(0, 46, 232, 0.75);
	text-decoration: none;
}

.shabbat a:hover {
	
}

.mobile-homepage {
	--text-style: "mobile homepage";
	--font-size: 2.4rem;
	font-weight: 400;
	color: rgba(12, 8, 143, 0.75);
	font-family: "VCR OSD Mono", monospace;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: 0;
	display: block;
	background: rgba(0,0,0,0);
}

.mobile .mobile-homepage {
	color: rgba(242, 66, 21, 0.75);
}

.mobile-homepage a,
a.mobile-homepage {
	color: rgba(0, 46, 232, 0.75);
	text-decoration: none;
}

.mobile-homepage a:hover {
	
}

.button-10 {
	--text-style: "button 10";
	font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
	font-style: normal;
	font-weight: 400;
	margin: 0;
	--font-size: 2.8rem;
	line-height: 1;
	letter-spacing: -0.03em;
	color: #ffffff;
	background: #46c661;
	display: inline-block;
	border-color: #066dfa;
	border-style: solid;
	border-radius: 999rem;
	padding-top: 1rem;
	padding-right: 2rem;
	padding-bottom: 1rem;
	padding-left: 2rem;
}

.mobile .button-10 {
	--font-size: 1.8rem;
}

.button-10 a,
a.button-10 {
	color: #ffffff;
	text-decoration: none;
}

.button-10 a:hover {
	
}

.button-10 a.active {
	color: #ffffff;
	text-decoration: none;
}

.mobile-cv {
	--text-style: "mobile cv";
	--font-size: 1.4rem;
	font-weight: 700;
	color: rgba(222, 18, 39, 0.75);
	font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: -0.03em;
	display: block;
}

.mobile .mobile-cv {
	color: rgba(242, 66, 21, 0.75);
}

.mobile-cv a,
a.mobile-cv {
	color: rgba(0, 46, 232, 0.75);
	text-decoration: none;
}

.mobile-cv a:hover {
	
}

.icon {
	--text-style: "icon";
	--font-size: 1.95rem;
	font-weight: 400;
	color: #ff0000;
	font-family: "VCR OSD Mono", monospace;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: 0;
	display: block;
}

.mobile .icon {
	color: rgba(242, 66, 21, 0.75);
}

.icon a,
a.icon {
	color: rgba(0, 46, 232, 0.75);
	text-decoration: none;
}

.icon a:hover {
	
}

.nitti {
	--text-style: "nitti";
	--font-size: 1.4rem;
	font-weight: 400;
	color: rgba(131, 232, 0, 0.75);
	font-family: "Inter", sans-serif;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: -0.03em;
	display: block;
}

.mobile .nitti {
	color: rgba(242, 66, 21, 0.75);
}

.nitti a,
a.nitti {
	color: rgba(0, 46, 232, 0.75);
	text-decoration: none;
}

.nitti a:hover {
	
}

.mobile-name {
	--text-style: "mobile name";
	--font-size: 0.5rem;
	font-weight: 400;
	color: rgba(131, 232, 0, 0.75);
	font-family: "DM Mono", monospace;
	font-style: normal;
	line-height: 2.05;
	letter-spacing: 0;
	display: block;
}

.mobile .mobile-name {
	color: rgba(242, 66, 21, 0.75);
}

.mobile-name a,
a.mobile-name {
	color: rgba(0, 46, 232, 0.75);
	text-decoration: none;
}

.mobile-name a:hover {
	
}

.mobile-text {
	--text-style: "mobile text";
	--font-size: 1.55rem;
	font-weight: 300;
	color: rgba(12, 13, 12, 0.75);
	font-family: "DM Mono", monospace;
	font-style: normal;
	line-height: 1.5;
	letter-spacing: 0em;
	display: inline-block;
}

.mobile .mobile-text {
	color: rgba(242, 66, 21, 0.75);
}

.mobile-text a,
a.mobile-text {
	color: rgba(12, 12, 14, 0.75);
	text-decoration: none;
}

.mobile-text a:hover {
	
}

.button-8 {
	--text-style: "button 8";
	--font-size: 1.4rem;
	font-weight: 400;
	font-family: "VCR OSD Mono", monospace;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: 0;
	color: rgba(0, 0, 0, 0.85);
	display: inline-block;
	border-color: rgba(0, 0, 0, 0.85);
	border-style: solid;
	border-width: 0.2rem;
	filter: drop-shadow(0rem 0rem 0rem rgba(0,0,0,0.85));
	will-change: filter;
	border-radius: 0.5rem;
	padding: 0.8rem;
	padding-right: 1rem;
	padding-left: 1rem;
}

.mobile .button-8 {
	color: rgba(242, 66, 21, 0.75);
}

.button-8 a,
a.button-8 {
	color: rgba(0, 0, 0, 0.85);
	text-decoration: none;
}

.button-8 a:hover {
	
}

.button-8 a.active {
	color: rgba(0, 0, 0, 0.85);
	text-decoration: none;
}

.button-8-1 {
	--text-style: "button 8-1";
	--font-size: 1.4rem;
	font-weight: 400;
	font-family: "VCR OSD Mono", monospace;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: 0;
	color: rgba(0, 0, 0, 0.85);
	display: inline-block;
	border-color: rgba(0, 0, 0, 0.85);
	border-style: solid;
	border-width: 0.2rem;
	filter: drop-shadow(0rem 0rem 0rem rgba(0,0,0,0.85));
	will-change: filter;
	border-radius: 0.5rem;
	padding: 0.8rem;
	padding-right: 1rem;
	padding-left: 1rem;
}

.mobile .button-8-1 {
	color: rgba(242, 66, 21, 0.75);
}

.button-8-1 a,
a.button-8-1 {
	color: rgba(0, 0, 0, 0.85);
	text-decoration: none;
}

.button-8-1 a:hover {
	
}

.button-8-1 a.active {
	color: rgba(0, 0, 0, 0.85);
	text-decoration: none;
}

.back {
	--text-style: "back";
	--font-size: 1.4rem;
	font-weight: 400;
	color: rgba(131, 232, 0, 0.75);
	font-family: "VCR OSD Mono", monospace;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: 0;
	display: block;
}

.mobile .back {
	color: rgba(243, 237, 235, 0.75);
	--font-size: 2.15rem;
}

.back a,
a.back {
	color: rgba(242, 242, 242, 0.75);
	text-decoration: none;
}

.back a:hover {
	
}

.black-back {
	--text-style: "black back";
	--font-size: 1.4rem;
	font-weight: 400;
	color: rgba(0, 0, 0, 0.75);
	font-family: "VCR OSD Mono", monospace;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: 0;
	display: block;
}

.mobile .black-back {
	color: rgba(243, 237, 235, 0.75);
	--font-size: 2.15rem;
}

.black-back a,
a.black-back {
	color: rgba(15, 15, 16, 0.75);
	text-decoration: none;
}

.black-back a:hover {
	
}

.shlomo {
	--text-style: "2024shlomo";
	--font-size: 1.4rem;
	font-weight: 200;
	color: rgba(6, 6, 5, 0.75);
	font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: -0.03em;
	display: block;
}

.mobile .shlomo {
	color: rgba(243, 237, 235, 0.75);
	--font-size: 2.15rem;
}

.shlomo a,
a.shlomo {
	color: rgba(0, 46, 232, 0.75);
	text-decoration: none;
}

.shlomo a:hover {
	
}

.mobile .quick-view .caption-background {
	max-width: 100vw;
}

