/* ============================================================
   FreyrArt — self-hosted replica of freyrart.cargo.site
   Layer 1: fonts (self-hosted files)
   Layer 2: structural layout engine (clean-room equivalent of
            the hosted platform's rendered geometry)
   Layer 3: the site's own design stylesheet (verbatim)
   ============================================================ */

/* ---------- Layer 1: fonts ---------- */
@font-face {
	font-display: block;
	font-family: "Repro Variable";
	src: url("../fonts/CargoReproVariable.woff2") format("woff2-variations");
	font-style: normal;
	font-weight: 100 1000;
}
@font-face {
	font-display: block;
	font-family: "Repro Variable";
	src: url("../fonts/CargoReproItalicVariable.woff2") format("woff2-variations");
	font-style: italic;
	font-weight: 100 1000;
}
@font-face {
	font-display: block;
	font-family: "Guyot Text";
	src: url("../fonts/GuyotText-Regular.woff") format("woff");
	font-style: normal;
	font-weight: normal;
}
@font-face {
	font-display: block;
	font-family: "Guyot Text";
	src: url("../fonts/GuyotText-Italic.woff") format("woff");
	font-style: italic;
	font-weight: normal;
}
@font-face {
	font-display: block;
	font-family: "Guyot Text";
	src: url("../fonts/GuyotText-Bold.woff") format("woff");
	font-style: normal;
	font-weight: bold;
}
@font-face {
	font-display: block;
	font-family: "Guyot Text";
	src: url("../fonts/GuyotText-BoldItalic.woff") format("woff");
	font-style: italic;
	font-weight: bold;
}
@font-face {
	font-display: block;
	font-family: "Arizona Serif Variable";
	src: url("../fonts/CargoArizonaPlusVariable.woff2") format("woff2-variations");
	font-style: normal;
	font-weight: 200 700;
}
@font-face {
	font-display: block;
	font-family: "Arizona Serif Variable";
	src: url("../fonts/CargoArizonaPlusItalicVariable.woff2") format("woff2-variations");
	font-style: italic;
	font-weight: 200 700;
}
@font-face {
	font-display: block;
	font-family: "Diatype Variable";
	src: url("../fonts/Cargo-DiatypePlusVariable.woff2") format("woff2-variations");
	font-style: normal;
	font-weight: 200 1000;
}
@font-face {
	font-display: block;
	font-family: "Diatype Variable";
	src: url("../fonts/Cargo-DiatypePlusVariable-Italic.woff2") format("woff2-variations");
	font-style: italic;
	font-weight: 200 1000;
}

/* ---------- Layer 2: structural engine ---------- */
html {
	--mobile-scale: 1;
	font-size: var(--base-size, 12.96px);
	touch-action: manipulation;
	position: relative;
}
html.mobile {
	font-size: calc(var(--base-size, 12.96px) * var(--mobile-scale));
}
body {
	-webkit-font-smoothing: antialiased;
	text-size-adjust: none;
	-webkit-text-size-adjust: none;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: var(--viewport-height, 100vh);
	justify-content: flex-start;
	margin: 0;
	padding: 0;
	background-color: #fff;
	position: relative;
}
.content,
.page,
.page-layout,
.page-content,
bodycopy,
column-set,
column-unit,
gallery-grid,
gallery-freeform {
	box-sizing: border-box;
}
.content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	min-height: 100%;
	position: relative;
	flex-grow: 1;
	width: 100%;
}
.page {
	position: relative;
	isolation: isolate;
	display: flex;
	justify-content: center;
	flex-flow: row;
	max-width: 100%;
	width: 100%;
	flex: 0 1 0%;
}
.page-layout {
	flex-grow: 1;
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: flex-start;
	width: 0%;
}
.page-content {
	display: flex;
	flex-direction: row;
	height: 100%;
	align-items: flex-start;
	border-color: transparent;
	border-width: 0;
	width: 100%;
	position: relative;
	isolation: isolate;
}
bodycopy {
	width: 100%;
	min-width: 0;
}

/* pinned pages */
.page.pinned-top,
.page.pinned-bottom {
	flex: 0 1 0%;
	z-index: 2;
	left: 0;
	right: 0;
}
.page.pinned-top { top: 0; }
.page.pinned-top:not(.fixed) { position: absolute; min-height: 0; }
.page.pinned-bottom { bottom: 0; position: absolute; }
.page.fixed {
	position: fixed;
	max-height: var(--viewport-height, 100vh);
	z-index: 499;
}
.page.fixed,
.page.fixed .page-layout {
	pointer-events: none;
}
.page.fixed .page-content bodycopy a,
.page.fixed .page-content bodycopy .linked,
.page.fixed .page-content bodycopy .zoomable {
	pointer-events: auto;
}
/* screen-visibility of pinned pages */
html:not(.mobile) [data-pin-visibility="mobile"] { display: none; }
html.mobile [data-pin-visibility="desktop"] { display: none; }

/* backdrop (gradient clipped to its page while fixed to viewport) */
.backdrop {
	flex-shrink: 0;
	width: 100%;
	order: 1;
	position: absolute;
	inset: 0;
}
.backdrop.clip {
	overflow: hidden;
	clip-path: inset(0%);
}
.backdrop > .backdrop-contents {
	top: 0;
	bottom: 0;
	width: 100%;
	position: sticky;
	height: 100%;
	max-height: 100vh;
	overflow: hidden;
	transition: opacity 0.5s ease-in-out;
	opacity: 1;
}
.backdrop.clip > .backdrop-contents {
	height: calc(0.5px + 100vh);
	width: var(--backdrop-width, 100%);
	position: fixed;
}
.backdrop .gradient {
	position: absolute;
	inset: 0;
}
.backdrop .wallpaper {
	position: absolute;
	inset: 0;
}
.backdrop .wallpaper-inner {
	position: absolute;
}
.backdrop .wallpaper-image {
	position: absolute;
	inset: 0;
	display: flex;
	align-content: center;
	justify-content: center;
}
.backdrop .wallpaper-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

/* ----- column-set ----- */
column-set {
	visibility: visible;
	width: 100%;
	position: relative;
	contain: layout;
	clear: both;
	display: flex;
	align-items: stretch;
	justify-content: flex-start;
	flex-direction: row;
	flex-wrap: nowrap;
}
column-unit {
	display: block;
	word-wrap: break-word;
	position: relative;
	max-width: 100%;
	flex-grow: 0;
	flex-shrink: 0;
	flex-basis: var(--column-width);
	width: var(--column-width);
	min-width: 0;
}
column-unit:not(:last-child) { margin-right: var(--columns-gutter, 0px); }
column-unit:last-child { flex-grow: 1; }
/* mobile: stack columns unless the set opts out */
html.mobile column-set:not([mobile-stack="false"]) {
	flex-direction: column;
}
html.mobile column-set:not([mobile-stack="false"]) > column-unit {
	width: 100%;
	flex-basis: auto;
	margin-right: 0;
}
html.mobile column-set:not([mobile-stack="false"]) > column-unit:not(:last-child) {
	margin-bottom: calc(var(--columns-gutter-mobile, var(--columns-gutter, 0px)) * var(--mobile-padding-offset, 1));
}
html.mobile column-set:not([mobile-stack="false"]) > column-unit.empty-unit {
	display: none;
}

/* ----- media-item ----- */
media-item {
	display: inline-flex;
	vertical-align: bottom;
	flex-direction: column;
	position: relative;
	width: var(--resize-parent-width, 100%);
	max-width: var(--media-max-width, 100%);
	transform-origin: center center;
	margin: 0;
	padding: 0;
	z-index: var(--z-index, initial);
}
media-item, media-item * { box-sizing: border-box; }
media-item > figure {
	cursor: var(--image-link-cursor, pointer);
	flex-direction: column;
	position: relative;
	display: flex;
	width: 100%;
	margin: 0;
	padding: 0;
	z-index: 2;
}
media-item:not(.linked):not(.zoomable) > figure { cursor: default; }
media-item .sizing-frame {
	display: block;
	width: 100%;
	flex-grow: 1;
	height: 0;
	padding-bottom: var(--frame-padding, 56.25%);
	position: relative;
	backface-visibility: hidden;
}
media-item .sizing-frame > img,
media-item .sizing-frame > video {
	object-fit: var(--object-fit, cover);
	object-position: center center;
	display: block;
	margin: 0;
	width: 100%;
	min-width: 100%;
	min-height: 100%;
	height: 100%;
	position: absolute;
	inset: 0;
}
media-item figcaption { width: 100%; }
media-item a.media-link {
	display: block;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}
html.mobile media-item { max-width: 100% !important; }

/* ----- gallery-grid ----- */
gallery-grid {
	display: block;
	width: var(--resize-parent-width, 100%);
	max-width: 100%;
	position: relative;
}
gallery-grid .grid-row {
	align-items: flex-start;
	justify-content: flex-start;
	position: relative;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	width: 100%;
	clear: both;
}
gallery-grid .grid-row + .grid-row { margin-top: var(--grid-gutter, 0px); }
gallery-grid .grid-row > media-item {
	flex-grow: 0;
	flex-shrink: 0;
	width: var(--grid-share, auto);
	max-width: none;
}
gallery-grid .grid-row > media-item:not(:last-child) { margin-right: var(--grid-gutter, 0px); }
gallery-grid .grid-row > media-item.grid-last {
	flex-grow: 1;
	--object-fit: fill;
}
html.mobile gallery-grid[mobile-columns="1"] .grid-row {
	flex-direction: column;
}
html.mobile gallery-grid[mobile-columns="1"] .grid-row > media-item {
	width: 100%;
	margin-right: 0;
}
html.mobile gallery-grid[mobile-columns="1"] .grid-row > media-item:not(:last-child) {
	margin-bottom: var(--grid-gutter-mobile, var(--grid-gutter, 0px));
}

/* ----- gallery-freeform ----- */
gallery-freeform {
	display: block;
	width: 100%;
	position: relative;
}
gallery-freeform > media-item {
	position: absolute;
	left: var(--freeform-x, 0%);
	top: 0;
	width: var(--freeform-scale, 100%);
	max-width: none;
	z-index: var(--freeform-z, 1);
}
html.mobile gallery-freeform[mobile-columns="1"] { height: auto !important; }
html.mobile gallery-freeform[mobile-columns="1"] > media-item {
	position: relative;
	left: auto;
	top: auto;
	width: 100%;
	display: flex;
}
html.mobile gallery-freeform[mobile-columns="1"] > media-item:not(:last-child) {
	margin-bottom: var(--freeform-gutter-mobile, 2rem);
}

/* ----- digital clock ----- */
digital-clock {
	display: inline-block;
	font-variant-numeric: tabular-nums;
}

/* ----- quick view (image zoom overlay) ----- */
.quick-view-overlay {
	position: fixed;
	inset: 0;
	z-index: 999;
	display: none;
	align-items: center;
	justify-content: center;
}
.quick-view-overlay.open { display: flex; }
.quick-view-background {
	position: absolute;
	inset: 0;
}
.quick-view {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}
.quick-view img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}
.quick-view-ui {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}
.quick-view-ui button {
	pointer-events: auto;
	position: absolute;
	width: var(--button-size, 30px);
	height: var(--button-size, 30px);
	border: 0;
	padding: 0;
	border-radius: var(--button-background-radius, 50%);
	background-color: var(--button-background-color, rgba(87, 87, 87, 0.35));
	color: var(--button-icon-color, rgba(255, 255, 255, 0.9));
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.quick-view-ui button:active { opacity: var(--button-active-opacity, 0.7); }
.quick-view-ui svg {
	width: 60%;
	height: 60%;
	stroke: currentColor;
	stroke-width: var(--button-icon-stroke-width, 1.5px);
	fill: none;
}
.quick-view-ui .qv-close { top: var(--button-inset, 20px); right: var(--button-inset, 20px); }
.quick-view-ui .qv-prev { left: var(--button-inset, 20px); top: 50%; transform: translateY(-50%); }
.quick-view-ui .qv-next { right: var(--button-inset, 20px); top: 50%; transform: translateY(-50%); }

/* video media */
media-item video { background: #000; }

/* ============================================================
   Layer 3: the site's design stylesheet (as authored)
   ============================================================ */
html {
	--mobile-scale: 1.4;
	--mobile-padding-offset: 0.75;
}

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);
	background-color: #3408a8;
	--swatch-6: #f2c409;
}

a:active,
.linked:active,
.zoomable figure:active {
	opacity: 0.7;
}

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.5em;
}

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.6);
	border: 0;
	height: 1px;
	display: block;
	margin-top: 0.4rem;
	margin-bottom: 0.5rem;
}

.content {
	border-color: rgba(0,0,0,.85);
}

bodycopy {
	font-size: 1rem;
	font-weight: 350;
	color: rgba(255, 255, 255, 0.85);
	font-family: "Repro Variable";
	font-style: normal;
	line-height: 1.15;
	letter-spacing: 0;
	display: block;
	font-variation-settings: 'slnt' 0;
}

bodycopy a {
	color: rgba(255, 255, 255, 0.85);
	border-bottom: 0px solid rgba(127, 127, 127, 0.2);
	text-decoration: none;
}

h1 {
	font-family: "Guyot Text";
	font-style: normal;
	font-weight: 400;
	margin: 0;
	font-size: 12.05rem;
	line-height: 1;
	color: rgba(255, 255, 255, 0.85);
	letter-spacing: -0.03em;
	font-feature-settings: "onum";
}

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

h2 {
	font-size: 2rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.85);
	font-family: "Guyot Text";
	font-style: normal;
	line-height: 1.2;
	letter-spacing: 0em;
	margin: 0;
}

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

.caption {
	font-size: 1rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.6);
	font-family: "Repro Variable";
	font-style: normal;
	line-height: 1.15;
	letter-spacing: 0em;
	display: block;
	font-variation-settings: 'slnt' 0;
}

.caption a {
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
}

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

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: center;
	min-height: var(--viewport-height);
}

.page-content {
	padding: 1rem;
	text-align: left;
	border-style: solid;
	box-shadow: 0rem 0rem 0rem 0rem rgba(0, 0, 0, 0.25);
	align-items: flex-start;
}

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

.page-layout {
	align-items: flex-start;
	max-width: 100%;
	padding: 0.0rem;
}

.mobile .page-content {
	padding: calc(1rem * var(--mobile-padding-offset, 1));
}

.quick-view {
	height: 100%;
	width: 100%;
	padding: 7rem;
	margin: auto;
}

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

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

.style-4 {
	--text-style: "中等标题";
	font-size: 2.3rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.85);
	font-family: Newsreader;
	font-style: normal;
	line-height: 1.15;
	letter-spacing: 0;
	display: block;
}

.style-4 a {
	color: rgba(255, 255, 255, 0.85);
	border-bottom: 0px solid rgba(127, 127, 127, 0.2);
	text-decoration: none;
}

.style-5 {
	--text-style: "中等标题英文";
	font-size: 3rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.85);
	font-family: "Arizona Serif Variable";
	font-style: normal;
	line-height: 1.15;
	letter-spacing: 0;
	display: block;
	font-variation-settings: 'slnt' 0, 'SRFF' 1;
}

.style-5 a {
	color: rgba(255, 255, 255, 0.85);
	border-bottom: 0px solid rgba(127, 127, 127, 0.2);
	text-decoration: none;
}

.quick-view-overlay {
	--button-size: 30px;
	--button-inset: 20px;
	--button-icon-color: rgba(255, 255, 255, 0.9);
	--button-icon-stroke-width: 1.5px;
	--button-background-color: rgba(87, 87, 87, 0.35);
	--button-background-radius: 50%;
	--button-active-opacity: 0.7;
}
.mobile .quick-view-overlay { --button-inset: 25px; }

/* the site's scroll-in animation parameters (as authored) */
media-item {
	--scroll-animation: scrollAnimationScaleIn-1;
	--scroll-animation-timing: linear;
	--scroll-animation-mode: animation;
	--scroll-animation-transition-duration: 750ms;
}

@keyframes scrollAnimationScaleIn-1 {
	0% { transform: scale(0.875); transform-origin: 50% 0%; }
	50% { transform: scale(1); transform-origin: 50% 0%; }
	100% { transform: scale(1); transform-origin: 50% 0%; }
}
