/*
	Theme Name: Dani Child — Ozan Turkkan Studio
	Template: dani
	Description: Child theme for wheat-donkey-363899.hostingersite.com. All customisations live here so that updates to the purchased Dani theme never overwrite them.
	Version: 1.0.0
	Text Domain: dani-child
*/

/* Customisations are added here as each improvement is built. */


/*-----------------------------------------------------------------------------------
	SINGLE WORK PAGE

	Two info columns either side of the text. Both use the same language:
	a grey uppercase heading, then rows separated by thin horizontal rules.
	No bullets, no pills.
-----------------------------------------------------------------------------------*/

/* One source of truth for how wide the work content runs, so the columns and
   the video below them stay flush with each other. Mirrors wrapper-big's
   gutter, but narrower than its 1680px. */
:root {
	--work-content-max: 1660px;
}

/* Dani sets overflow:hidden on #page-content. That makes it a scroll container,
   which silently stops position:sticky working anywhere inside it. Clipping the
   horizontal axis keeps the behaviour it was there for without the side effect. */
#page-content {
	overflow-x: clip;
	overflow-y: visible;
}

/* breathing room between the hero and the columns — the meta strip used to
   provide this before it was removed */
.single-work { padding-top: 90px; }

.work-heading {
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-size: 14px;
	color: rgba(255,255,255,.5);	/* same grey as the Year / Type / Edition labels */
	margin-bottom: 25px;
	font-weight: 400;
	/* fixed line box, so the larger Specifications heading opposite it sits on
	   the same line rather than riding higher on a proportional line-height */
	line-height: 24px;
}

/* No max-width here — the grid column below sets the measure. Capping it twice
   is what left the dead space between the text and the right column. */
.work-measure {
	line-height: 1.7;
	color: rgba(255,255,255,.8);
	text-align: justify;
}
.work-measure p { margin-bottom: 1.4em; }

/* Share links sit under the Overview text — lift them off the final paragraph
   so they read as a close to the text, not a trailing line of it. */
.work-share { margin-top: 2.6em; }

/* The Sedition promo follows the share. Its separating spacer was consumed by
   the split in single-portfolio.php, so restore the gap here. */
.work-after-text { margin-top: 3.4em; }

/* The parent's share widget draws its Twitter icon as a FontAwesome 4 bird
   glyph on li.twitter a::before. FA4 has no X mark, so we can't swap the glyph;
   instead paint the X logo as a mask. Scoped to .work-share (higher specificity
   than the parent rule, and child loads later, so no !important) and leaving the
   footer's social icons alone. */
.work-share .socialmedia-widget li.twitter a { font-size: 0; }
.work-share .socialmedia-widget li.twitter a::before {
	content: "";
	display: block;
	width: 19px;
	height: 20px;
	/* The FA sibling glyphs sit low in their em box, so a geometrically centred
	   mask reads high. 5px lands the X's centre on the Facebook/Pinterest centres
	   (measured against them magnified in-browser). */
	transform: translateY(5px);
	background-color: currentColor;
	/* 15px (not contain) so the X sits at the same optical size as the FA siblings,
	   which don't fill their em box. */
	-webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%201227'%3E%3Cpath%20d='M714.163%20519.284%201160.89%200h-105.86L667.137%20450.887%20357.328%200H0l468.492%20681.821L0%201226.37h105.866l409.625-476.152%20327.181%20476.152H1200L714.137%20519.284h.026ZM569.165%20687.828l-47.468-67.894-377.686-540.24h162.604l304.797%20435.991%2047.468%2067.894%20396.2%20566.721H754.482L569.165%20687.854v-.026Z'/%3E%3C/svg%3E") center / 15px no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%201227'%3E%3Cpath%20d='M714.163%20519.284%201160.89%200h-105.86L667.137%20450.887%20357.328%200H0l468.492%20681.821L0%201226.37h105.866l409.625-476.152%20327.181%20476.152H1200L714.137%20519.284h.026ZM569.165%20687.828l-47.468-67.894-377.686-540.24h162.604l304.797%20435.991%2047.468%2067.894%20396.2%20566.721H754.482L569.165%20687.854v-.026Z'/%3E%3C/svg%3E") center / 15px no-repeat;
}


/*-----------------------------------------------------------------------------------
	Left column — title, key facts, back link
-----------------------------------------------------------------------------------*/

/* The heading of this column, sitting level with "Overview" opposite it — hence
   the shared 24px line box rather than a proportional line-height. */
.single-work-title {
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-size: 20px;
	/* Hind ships no weight below 300, so this resolves to 300 — the lightest
	   the family has. Left at 200 so it follows the intent if the font changes. */
	font-weight: 200;
	line-height: 24px;
	color: #ffffff;
	margin-bottom: 25px;
	min-height: 24px;			/* holds its line while the scramble runs */
}
.sidebar-row {
	display: flex;
	justify-content: space-between;
	gap: 15px;
	border-top: 1px solid rgba(255,255,255,.18);
	padding: 15px 0;
	font-size: 14px;
}
.sidebar-label {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255,255,255,.5);
	white-space: nowrap;
}
.sidebar-value { color: rgba(255,255,255,.85); text-align: right; }

/* back to works — the page's own type, same weight and rhythm as the labels */
.back-to-works {
	display: inline-block;
	margin-top: 45px;
	/* 4px of breathing room inside the white hover fill, pulled back out on the
	   left so the text still lines up with the column edge */
	padding: 0 4px;
	margin-left: -4px;
	font-size: 13px;
	font-weight: 300;			/* Hind's lightest — same weight as the body text */
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgba(255,255,255,.6);
	background: transparent;
	transition: color .3s ease, background-color .3s ease;
}
.back-to-works:hover,
.back-to-works:focus {
	background: #ffffff;
	color: #000000;
}


/*-----------------------------------------------------------------------------------
	Right column — research themes, methodology, medium, exhibitions, credits,
	production, supported by. Same row language as the left column.
-----------------------------------------------------------------------------------*/

.single-work-secondary .work-section { margin-bottom: 38px; }
.single-work-secondary .work-section:last-child { margin-bottom: 0; }
.single-work-secondary .work-heading { margin-bottom: 7px; }

.info-row {
	display: block;
	border-top: 1px solid rgba(255,255,255,.18);
	padding: 11px 0;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255,255,255,.85);
}
/* the small grey line above a row — an exhibition's year, a credit's category */
.row-meta {
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 12px;
	color: rgba(255,255,255,.5);
	margin-bottom: 4px;
}
.row-line { display: block; }


/*-----------------------------------------------------------------------------------
	Full-width video
-----------------------------------------------------------------------------------*/

/* Content width, not full bleed. It carries wrapper-big in the markup so the
   width and centring come from exactly the same rules as the columns above —
   reproducing the maths separately is how the two drifted apart. Only the cap
   and the vertical rhythm are set here. */
.work-video-full,
.work-wide {
	margin-top: 85px;
	margin-bottom: 85px;
}

/* Smart Slider sizes itself against its container, so it only needs the
   container to be the right width — no override of the slider's own markup. */
.work-wide > * { max-width: 100%; }
/* Three things want to size this player: Vimeo's oEmbed wrapper, the theme's
   fitVids (which runs on #page-body and re-wraps the iframe), and us. So don't
   impose an aspect ratio — whichever wrapper ends up around the iframe carries
   padding derived from the real video dimensions, and that is the only record
   of them. Force the width at every level and let those wrappers set height. */
.single-work .work-video-frame,
.single-work .work-video-frame > div,
.single-work .work-video-frame .fluid-width-video-wrapper {
	position: relative;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}
.single-work .work-video-frame iframe,
.single-work .work-video-frame video {
	width: 100% !important;
	border: 0;
}

/* Only if nothing wrapped the iframe at all — then there is no padding to
   inherit a ratio from, so fall back to 16:9. */
.single-work .work-video-frame > iframe {
	display: block;
	aspect-ratio: 16 / 9;
	height: auto;
}


/*-----------------------------------------------------------------------------------
	STICKY COLUMN  (any page-builder row with `col-sticky` in its Class field)

	Grid rather than the theme's floats, for the same reason as the Single Work
	page: a float is only as tall as its own content, so a sticky column inside
	one has no distance to travel. As a grid item the column's area spans the
	full height of the row, and align-self keeps the column itself short so it
	can move through that area.

	Track sizes are written inline by js/sticky-column.js from each column's own
	width class, so the row keeps the proportions set in the layout picker.
-----------------------------------------------------------------------------------*/

@media (min-width: 1025px) {
	.column-section.ots-sticky-row {
		display: grid;
		/* Wider than the theme's 25px gutter, so the content column narrows and
		   leaves air between it and the contact block. Same on every page that
		   uses this row. */
		column-gap: 90px;
	}
	/* .clearfix's ::after would otherwise become a phantom grid cell */
	.column-section.ots-sticky-row::before,
	.column-section.ots-sticky-row::after { content: none; }

	.column-section.ots-sticky-row > .column {
		width: auto !important;
		margin-right: 0 !important;
		float: none;
	}

	.column-section.ots-sticky-row > .ots-sticky-col {
		position: sticky;
		top: 120px;
		align-self: start;			/* without this it fills the row and cannot move */
	}
}


/*-----------------------------------------------------------------------------------
	PRELOADER

	The logo is a plain <img> in header.php, so the browser paints it as it
	downloads — a logo sliced across the middle. Hidden from the very first
	paint here, and revealed by js/preloader.js once it has decoded.
-----------------------------------------------------------------------------------*/

/* Hidden from the first paint; js/preloader.js adds .logo-ready once the image
   has decoded, and it fades in whole. */
#page-loader .loader-name {
	opacity: 0;
	visibility: hidden;
	transition: opacity .5s ease;
}
#page-loader.logo-ready .loader-name {
	visibility: visible;
	opacity: 1;
}

/* The theme only shows the circle after window.load, as a flourish. It carries
   real progress now, so it has to be visible once the logo is in — and the 1.2s
   transition it inherits would lag a step behind every update. */
/* No transition on the offset — requestAnimationFrame drives it frame by
   frame, and a transition on top would lag a step behind. */
/* Dotted ring. The dash pattern makes the dots, so it can't also carry the
   progress the way a single sweeping dash did — a conic mask reveals the dots
   instead, driven by --ots-progress from js/preloader.js. It starts at 90deg,
   which in a conic gradient is three o'clock, and fills clockwise from there —
   the same place the original arc began. */
#page-loader .loader-circle svg {
	display: block;
	-webkit-mask-image: conic-gradient(from 90deg,
		#000 0, #000 var(--ots-progress, 0%), transparent var(--ots-progress, 0%));
	        mask-image: conic-gradient(from 90deg,
		#000 0, #000 var(--ots-progress, 0%), transparent var(--ots-progress, 0%));
}
#page-loader .loader-circle {
	stroke-dasharray: 1.5 11;			/* dot, gap */
	stroke-dashoffset: 0;
	stroke-linecap: round;
	stroke-width: 3;
	transition: none;
	/* dark-style.css draws this in #ffffff */
	stroke: rgba(255,255,255,.55);
}

/* Logo first, then these — hence the delay on the way in only. */
#page-loader .loader-circle svg,
#page-loader .loader-percent {
	opacity: 0;
	transition: opacity .4s ease;
}
#page-loader.logo-ready .loader-circle svg,
#page-loader.logo-ready .loader-percent {
	opacity: 1;
	transition-delay: .5s;
}

/* Sits inside .loader-circle and is moved onto the leading end of the arc by
   js/preloader.js, which also replaces the transform below.
   These values are the fallback for if that never runs — deliberately below the
   circle rather than centred, because centred is exactly where the logo is. */
#page-loader .loader-percent {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translate(-50%, 8px);
	font-size: 15px;
	font-weight: 300;
	letter-spacing: 0.08em;
	line-height: 1;
	white-space: nowrap;
	color: rgba(255,255,255,.55);		/* matches the circle */
}
#page-loader .loader-percent::after { content: "%"; }


/*-----------------------------------------------------------------------------------
	CV DOWNLOAD LINK  —  [ots_cv]
-----------------------------------------------------------------------------------*/

.ots-cv-link {
	display: inline-block;
	padding: 0 4px;
	margin-left: -4px;
	font-size: 13px;
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgba(255,255,255,.6);
	background: transparent;
	transition: color .3s ease, background-color .3s ease;
}
.ots-cv-link:hover,
.ots-cv-link:focus {
	background: #ffffff;
	color: #000000;
}


/*-----------------------------------------------------------------------------------
	EXHIBITION ENTRIES THAT LINK TO A WORK

	Each entry is a row separated by a hairline, in the same language as the
	Single Work page's info rows but tighter, and the whole row fills on hover
	like Back to Works. The <br> tags around these are stripped in PHP, since a
	block-level row breaks its own line.
-----------------------------------------------------------------------------------*/

/* breathing room before the next year heading */
.exhibition-list { margin-bottom: 50px; }

.exhibition-year {
	font-size: 15px;
	font-weight: 300;
	letter-spacing: 0.1em;
	color: rgba(255,255,255,.5);
}

.exhibition-entry {
	display: block;
	text-decoration: none;
	border-top: 1px solid rgba(255,255,255,.09);	/* just enough to register */
	/* dark-style.css has `p a { border-bottom: 1px solid rgba(255,255,255,.24) }`,
	   and these rows are anchors inside a paragraph. Left alone it draws a second
	   line at nearly three times the weight — only under the linked rows, which
	   is what made them look brighter than the rest. */
	border-bottom: 0;
	padding: 7px 4px;
	margin-left: -4px;			/* keeps the text flush with the year headings */
	color: inherit;
	background: transparent;
	transition: color .3s ease, background-color .3s ease;
}

/* Only the entries that lead somewhere respond to the pointer. */
a.exhibition-entry:hover,
a.exhibition-entry:focus {
	background: #ffffff;
	color: #000000;
}


/*-----------------------------------------------------------------------------------
	WORKS GRID

	Title and category stay visible (the theme's own caption); year, place,
	status and the call to action are revealed on hover. Works whether the page
	is set to an overlay caption or a below-thumbnail one.
-----------------------------------------------------------------------------------*/

.work-meta {
	display: block;
	margin-top: 10px;
	opacity: 0;					/* fade only — it holds its position */
	transition: opacity .35s ease;
}

/* Over a thumbnail, the meta sits at the far right, its baseline level with the
   title block on the left. Positioned rather than laid out inline so it never
   displaces the theme's own caption or disturbs its reveal animation.
   2rem matches the padding the caption already carries. */
.thumb-hover .overlay-caption .work-meta {
	position: absolute;
	right: 2rem;
	bottom: 2rem;
	margin-top: 0;
	text-align: right;
}
.portfolio-item-inner:hover .work-meta,
.portfolio-item-inner.is-revealed .work-meta {
	opacity: 1;
	transform: none;
}

.work-meta-row {
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 12px;
	line-height: 1.9;
	color: #ffffff;
}

/* The grid animates its own captions in; without this the meta would inherit a
   transition delay meant for text that is already on screen. */
.work-meta { transition-delay: 0s; }


/*-----------------------------------------------------------------------------------
	Layout

	Dani lays columns out with floats, and a float is only as tall as its own
	content — so position:sticky in the side columns would have no room to
	travel. Grid gives every column the full row height instead. The parent's
	float widths are overridden rather than fought.
-----------------------------------------------------------------------------------*/

@media (min-width: 1025px) {
	/* One width declaration for the columns and the video together.
	   .wrapper-big carries the width in the parent theme, but it is redefined in
	   mqueries.css and loaded from a separate file, so which value won came down
	   to cascade order. Two classes here outrank every .wrapper-big rule there
	   is, so the two blocks cannot compute to different widths. */
	.single-work .work-video-full,
	.single-work .work-wide,
	.column-section.single-work-body {
		width: var(--work-content-max);
		max-width: calc(100% - 100px);
		margin-left: auto;
		margin-right: auto;
	}

	.column-section.single-work-body {
		display: grid;
		/* Ratios, not fixed widths, so the three columns expand together as the
		   content area grows. The numbers are the px widths they were tuned at. */
		grid-template-columns: minmax(0, 264fr) minmax(0, 616fr) minmax(0, 300fr);
		column-gap: 60px;
	}
	/* .clearfix's ::after would otherwise become a phantom grid cell */
	.column-section.single-work-body::before,
	.column-section.single-work-body::after { content: none; }

	.column-section.single-work-body > .column {
		width: auto !important;
		margin-right: 0 !important;
		float: none;
	}
	.single-work-sidebar,
	.single-work-secondary {
		position: sticky;
		top: 120px;
	}
}

@media (max-width: 1024px) {
	.single-work { padding-top: 60px; }
	.single-work-sidebar { margin-bottom: 50px; }
	.single-work-secondary { margin-top: 65px; }
	.column-section.single-work-body .column.one-fourth,
	.column-section.single-work-body .column.two-fourth { width: 100%; float: none; }
	.work-video-full { margin: 70px 0; }
}

@media (prefers-reduced-motion: reduce) {
	.back-to-works { transition: none !important; }
}


/*-----------------------------------------------------------------------------------
	MOVED OUT OF THE PARENT THEME

	These rules were added by hand inside dani/files/css/style.css, between two
	`/* Ozan */` markers, where a theme update would erase them. Copied here
	verbatim so they survive one.

	The parent's copy can stay where it is — the rules are identical, so nothing
	changes either way — or be deleted once this has been confirmed working.

	.scramble-text starts hidden and js/script.js reveals it when it scrolls
	into view, so leaving this out would leave headings permanently invisible.
-----------------------------------------------------------------------------------*/

.portfolio-item-inner {
	position: relative;
	}
.portfolio-item-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    box-shadow: inset 0 0 0 1px rgba(102,102,102,0.4);
    transition: box-shadow 0.3s ease;
}
.portfolio-item-inner:hover::after {
    box-shadow: inset 0 0 0 1px rgba(102,102,102,0.8);
    transition: box-shadow 0.3s ease;
}

.portfolio-item-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.4;
	transition: opacity 0.3s ease;
}
.portfolio-item-inner:hover .portfolio-item-overlay {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.portfolio-item-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* anchor defines the height */
.portfolio-item-inner > a {
    display: block;
	position: relative;
	z-index: 1;
}

.scramble-char {
  opacity: 0.6;
  display: inline-block;
}
.scramble-text {
  visibility: hidden;
}

@media (max-width: 768px) {
  .scramble-text {
    visibility: visible !important;
  }
}


/*-----------------------------------------------------------------------------------
	HEADER LOGO — RGB separation on hover

	Replaces the theme's `header #logo:hover { opacity: 0.6 }`, which would
	otherwise dull the effect to 60% while it played.

	The channel split is two paired drop-shadows rather than a real filter: a
	drop-shadow traces the logo's own alpha, so the red and cyan ghosts follow
	its exact silhouette instead of sitting behind a rectangle. Stepped timing,
	so it jumps between offsets like a signal fault rather than sliding.
-----------------------------------------------------------------------------------*/

header #logo:hover { opacity: 1; }

/* dark-style.css sets `a:hover { background-color: #ffffff }` on every link,
   and the logo is one — a transparent PNG would sit on a white block. */
header #logo a,
/* :not(.ots-page-name) throughout — the page name sits inside #logo and can be
   a link of its own, so an unqualified `#logo a` would catch it too. */
header #logo a:not(.ots-page-name),
header #logo a:not(.ots-page-name):hover,
header #logo a:not(.ots-page-name):focus { background: transparent; }

/* Hovering the logo link, not the whole #logo box — otherwise passing over the
   page name beside it set the glitch off as well. */
header #logo a:not(.ots-page-name):hover img,
header #logo a:not(.ots-page-name):hover .text-logo {
	animation: ots-logo-rgb 300ms steps(1, end);
	/* a span won't take a transform while it's inline */
	display: inline-block;
}

/* Stretches and squashes along one axis and lands back on normal, rather than
   shaking in place. scaleX from the centre, so the logo tears outwards on both
   sides the way a horizontal sync fault does. */
@keyframes ots-logo-rgb {
	0%   { filter: none;
	       transform: scaleX(1); }
	10%  { filter: drop-shadow(3px 0 rgba(255,0,72,.9)) drop-shadow(-3px 0 rgba(0,232,255,.9));
	       transform: scaleX(1.18) translateX(-2px); }
	22%  { filter: drop-shadow(-5px 0 rgba(255,0,72,.9)) drop-shadow(5px 0 rgba(0,232,255,.9));
	       transform: scaleX(0.86) translateX(2px); }
	34%  { filter: drop-shadow(4px 0 rgba(255,0,72,.85)) drop-shadow(-4px 0 rgba(0,232,255,.85));
	       transform: scaleX(1.12); }
	46%  { filter: drop-shadow(-2px 0 rgba(255,0,72,.8)) drop-shadow(2px 0 rgba(0,232,255,.8));
	       transform: scaleX(0.94) translateX(-1px); }
	58%  { filter: drop-shadow(3px 0 rgba(255,0,72,.7)) drop-shadow(-3px 0 rgba(0,232,255,.7));
	       transform: scaleX(1.06); }
	72%  { filter: drop-shadow(-1px 0 rgba(255,0,72,.55)) drop-shadow(1px 0 rgba(0,232,255,.55));
	       transform: scaleX(0.98); }
	100% { filter: none;
	       transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
	/* Still a hover cue, but a static one — no deformation. */
	header #logo a:not(.ots-page-name):hover img,
	header #logo a:not(.ots-page-name):hover .text-logo {
		animation: none;
		transform: none;
		filter: drop-shadow(1.5px 0 rgba(255,0,72,.6)) drop-shadow(-1.5px 0 rgba(0,232,255,.6));
	}
}


/*-----------------------------------------------------------------------------------
	GLASS HEADER

	Keeps the logo and the menu icon legible once the page scrolls under them.
	js/glass-header.js adds .ots-glass past 40px.

	The panel is a pseudo-element rather than the header's own background,
	because it carries a mask — masking the header itself would fade the logo
	and the menu icon along with it.
-----------------------------------------------------------------------------------*/

/* Always in the markup so it can fade both ways — a pseudo-element that only
   exists in the glass state has nothing to animate from. The blur is switched
   on with the state rather than here, so it costs nothing while invisible. */
header::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity .3s ease;
	background-color: rgba(8,8,8,.3);
	/* Solid at the top, gone by the bottom edge, so there is no hard line
	   across the page — the panel just stops. */
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, rgba(0,0,0,0) 100%);
	        mask-image: linear-gradient(to bottom, #000 0%, #000 70%, rgba(0,0,0,0) 100%);
}

header.ots-glass::before {
	opacity: 1;
	-webkit-backdrop-filter: blur(22px) saturate(150%);
	        backdrop-filter: blur(22px) saturate(150%);
}

/* Keeps the logo and menu above the panel. */
header .header-inner {
	position: relative;
	z-index: 1;
}

/* Shorter bar once it's glassed. #logo already carries `transition: padding`,
   so this eases rather than jumps.
   The attribute selector is there to match the specificity of the theme's own
   `header.wrapper:not(.small-header)` rules — without it these lose. */
/*	77px tall, and the same in both states — applying it only once glassed made
	the logo drop as you scrolled. These are floats, and floats align to the top
	of the header, so if the logo and the toggle are different heights the
	shorter one rides high.
	The box is given the height outright rather than built from 30px plus
	padding. The theme's `#logo { height: 30px }` never described the mark
	anyway: its `img { max-height: 100% }` is a percentage against an
	auto-height parent, which resolves to none, so the image renders at its
	natural size and overflows that 30px. Setting the height here and centring
	with flex sidesteps the whole question of how tall the image happens to be.
	The doubled [class] is there purely to match the specificity of the theme's
	`header.wrapper:not(.small-header)` rules — without it these lose. It has to
	be an attribute selector rather than :not(.menu-is-open): excluding the open
	state handed the header back to the theme's own padding the moment the menu
	opened, which is what made everything shift down. */
header[class][class*='wrapper'] #logo,
header[class] #logo {
	height: 77px;
	padding-top: 0;
	padding-bottom: 0;
}
header[class][class*='wrapper'] .menu-toggle,
header[class] .menu-toggle {
	height: 77px;
	margin-top: 0;
}

/*	The theme sets `header.transparent { pointer-events: none }`, which is why
	thumbnails scrolling under the header stayed clickable. Once the panel is
	there it should catch those clicks — while the logo and the menu icon stay
	live in both states. */
header.ots-glass { pointer-events: auto; }

header #logo,
header .menu-actions,
header .menu-toggle { pointer-events: auto; }

/* Fades out as the menu opens — the overlay fills the header, and blurring the
   whole page behind it fights the menu's own background. Opacity rather than
 display, so it can transition. */
header.ots-glass.menu-is-open::before { opacity: 0; }


/* The semi-transparent black square behind the hamburger. */
.menu-toggle,
.menu-toggle:hover { background-color: transparent; }

/* Without the blur the panel has to carry the contrast on its own. */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
	header.ots-glass::before { background-color: rgba(8,8,8,.92); }
}

@media (prefers-reduced-transparency: reduce) {
	header.ots-glass::before {
		background-color: rgba(8,8,8,.96);
		-webkit-backdrop-filter: none;
		        backdrop-filter: none;
	}
}


/*-----------------------------------------------------------------------------------
	PAGE NAME BESIDE THE LOGO

	Written in by js/glass-header.js from a value PHP passes through, so it is
	the page's own title rather than the browser tab's.
-----------------------------------------------------------------------------------*/

/* #logo is a floated box with a fixed 30px height, so an inline label inside it
   sat on the text baseline rather than level with the mark. Flex centres both
   against the same box, whatever the header height is doing. */
header #logo {
	display: flex;
	align-items: center;
	margin-bottom: 21px;
}

/*	The light logo — the one actually visible on a dark header — is absolutely
	positioned at top:25px, so it never saw that flex centring; only the dark
	one did. Pinning top and bottom and letting the margins resolve centres a
	replaced element on the same axis, without a transform that the logo's own
	hover animation would then overwrite, and without hard-coding its height. */
header[class][class*='wrapper'] #logo img#dark-logo + img#light-logo,
header[class] #logo img#dark-logo + img#light-logo {
	top: 0;
	bottom: 0;
	margin-top: auto;
	margin-bottom: auto;
}

.ots-page-name {
	margin-left: 20px;
	font-size: 18px;           /* Change as needed */
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	line-height: 1;
	white-space: nowrap;

	color: #000;
	background: #fff;
	display: inline-block;
	padding: 2px 6px;
	opacity: .9;

	pointer-events: none;      /* a plain label on most pages */
}

/*	On a work it is a link back to Works, so it has to take the pointer.

	The chip has to be restated, and with !important, because of
	`header.transparent #logo a { background-color: transparent !important }`
	in the theme — that strips the background from any link inside the logo,
	which the label only became once it started linking somewhere.

	header[class] is there purely for specificity: it matches the same header
	the theme's rule does, but counts one level higher, so this wins outright
	rather than on source order.

	Colours stay put on hover; opacity is the only thing that moves. */
header[class] #logo a.ots-page-name {
	pointer-events: auto;
	text-decoration: none;
	color: #000;
	background-color: #fff !important;
	opacity: .9;
}
header[class] #logo a.ots-page-name:hover,
header[class] #logo a.ots-page-name:focus {
	color: #fff;
	background-color: #000 !important;
	opacity: .9;
	padding: 2px 6px;
	transition: color .1s ease, background-color .1s ease;
}

@media (max-width: 600px) {
	.ots-page-name { display: none; }
}

/* The front page's label is a full sentence, much wider than a "/ Section"
   word — left unconstrained it can run into the menu icon on a narrow header.
   The 260px allows roughly for the logo, its margin, and the toggle. */
.ots-page-name--tagline {
	max-width: calc(100vw - 260px);
	overflow: hidden;
	text-overflow: ellipsis;

	/* A sentence, not a chip — grey text, no fill. Same grey as the sidebar
	   labels (Year / Type / Edition) elsewhere on the site. */
	background: transparent;
	color: rgba(255,255,255,.5);
	padding: 0;
	opacity: 1;			/* the base rule's .9 was for fading a white chip */
}
@media (max-width: 900px) {
	.ots-page-name--tagline { display: none; }
}


/*-----------------------------------------------------------------------------------
	SECTION TITLE  —  <h5 class="ots-section-title">/ WORKS</h5>

	The white chip, for titles inside page content. A heading tag alone loses it,
	because the theme's own h1–h6 rules take over; this class puts it back and
	overrides them where they clash.

	inline-block so the chip hugs the words rather than running the width of the
	column, which also lets the surrounding text-align centre it.

	js/script.js lists this class as a scramble target, so it animates in on
	scroll without needing `scramble-text` alongside it.
-----------------------------------------------------------------------------------*/

h1.ots-section-title,
h2.ots-section-title,
h3.ots-section-title,
h4.ots-section-title,
h5.ots-section-title,
.ots-section-title {
	display: inline-block;
	padding: 2px 8px;
	color: #000;
	background: #fff;
	font-family: inherit;		/* theme sets Playfair Display on headings */
	font-size: 18px;
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	line-height: 1.35;
	white-space: nowrap;
}

h5.ots-section-title {
	display: inline-block;
	padding: 2px 8px;
	color: rgba(255, 255, 255, .5);
	background: #000;
	font-family: inherit;		/* theme sets Playfair Display on headings */
	font-size: 15px;
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	line-height: 1.35;
	white-space: nowrap;
}


/*-----------------------------------------------------------------------------------
	SECTION TITLES ABOVE THE VIDEO AND THE SLIDER
-----------------------------------------------------------------------------------*/

.work-wide-title {
	margin-bottom: 10px;
}

/* The Gallery element's grid carries its own `margin-top: 50px` (theme
   default, meant for a gallery sitting under a page-builder heading with no
   spacing of its own). Collapsing against the title's 10px, the larger of the
   two wins, which is what left 50px here against 10px under the Video and the
   Slider. Zeroed so this title matches those. */
.work-wide .isotope-grid {
	margin-top: 0;
}

/* A hairline round the player, the same weight and grey as the frame on the
   portfolio thumbnails. border-box so it sits inside the 1660px rather than
   pushing the player 2px wider than the columns above it. */
.single-work .work-video-frame {
	box-sizing: border-box;
	border: 1px solid rgba(102,102,102,.4);
}

/* Titles in page content are centred; the ones labelling the player and the
   slider stay flush with the media they belong to.
   fit-content keeps the chip hugging its words — a plain block would stretch
   the white across the whole column. */
.ots-section-title:not(.work-wide-title) {
	display: block;
	width: fit-content;
	margin-left: auto;
	margin-right: auto;
}

/* EmailOctopus overlay */

.modal-container,
.modal-container.active{
    background: rgba(0,0,0,.7) !important;
}

.sr-button{
    padding: 8px 14px !important;
    font-size: 11px !important;
    letter-spacing: .08em;
}

.mastfoot{
    display:none !important;
}

.modal-container-inner {
    background: #fefefe;
    background-color: rgb(254, 254, 254);
    border-radius: 5px;
    width: 600px; !important;
	height: 270px !important;
}

/* EmailOctopus positions its close button straddling the modal's corner
   (right/top: -17px, half outside the card) as a black circle with a solid
   Font Awesome glyph. Pull it inside the corner and rebuild it as the site's
   own thin-line X (two 1px bars, same construction as the lightbox close),
   with the same grey hover the lightbox close uses. */
.modal-container-inner button.close {
	top: 16px !important;
	right: 16px !important;
	width: 20px !important;
	height: 20px !important;
	padding: 0 !important;
	background-color: transparent !important;
	border-radius: 0 !important;
}
.modal-container-inner button.close svg {
	display: none !important;
}
.modal-container-inner button.close:after,
.modal-container-inner button.close:before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 1px;
	background-color: #fff;
	transition: background-color 0.2s ease;
}
.modal-container-inner button.close:after {
	transform: translate(-50%, -50%) rotate(45deg);
}
.modal-container-inner button.close:before {
	transform: translate(-50%, -50%) rotate(-45deg);
}
.modal-container-inner button.close:hover:after,
.modal-container-inner button.close:hover:before {
	background-color: #b3b3b3;
}



/*-----------------------------------------------------------------------------------
	PROCESS GALLERY  (the page builder's Gallery element, [sr-gallery], inside
	a Single Work page)

	Same one-line frame and hover as the Works grid thumbnails: an inset border
	that brightens on hover, and a slight zoom on the image. Scoped to .work-wide
	so it only touches the gallery here, not any other use of [sr-gallery].

	.isotope-item already carries `position: relative; overflow: hidden` from
	the theme, which is what the border and the clipped zoom both need — this
	only adds what is missing.
-----------------------------------------------------------------------------------*/

.work-wide .sr-gallery-item::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 2;
	box-shadow: inset 0 0 0 1px rgba(102,102,102,.4);
	transition: box-shadow .3s ease;
}
.work-wide .sr-gallery-item:hover::after {
	box-shadow: inset 0 0 0 1px rgba(102,102,102,.8);
}

.work-wide .sr-gallery-item img {
	display: block;
	transition: transform .3s ease;
}
.work-wide .sr-gallery-item:hover img {
	transform: scale(1.05);
}

/* [sr-gallery] hardcodes `class="thumb-hover overlay-effect"` on each item's
   link whenever its lightbox option is on — that class pair is the theme's own
   white-wash-on-hover treatment (style.css:
   `.thumb-hover.overlay-effect:hover::before { background:#fff; opacity:.7 }`).
   Not part of what was asked for here — the frame and the zoom above are the
   whole hover language for this gallery, so the wash is switched off.
   content:none drops the pseudo-element outright rather than fight its opacity. */
.work-wide .sr-gallery-item .thumb-hover.overlay-effect::before {
	content: none;
}

@media (prefers-reduced-motion: reduce) {
	.work-wide .sr-gallery-item img { transition: none; }
	.work-wide .sr-gallery-item:hover img { transform: none; }
}


/*-----------------------------------------------------------------------------------
	LIGHTBOX  (Lightcase — the "click to view" popup used by the Process
	gallery, and any other lightbox link on the site)
-----------------------------------------------------------------------------------*/

/* Same frame as the gallery thumbnails, around the enlarged image. */
#lightcase-case[data-lc-type="image"] .lightcase-contentInner img {
	box-sizing: border-box;
	border: 1px solid rgba(102,102,102,.4);
}

/*  Smart Slider's own "Flat" transition, replicated exactly (definition
	read from the slider's live config): 0.75s, easeOutCubic, outgoing and
	incoming overlapping, BOTH shrinking together regardless of which way
	navigation goes — outgoing fades while scaling down to 0.5, incoming
	fades in settling down from 1.5. Lightcase inserts a fresh <img> per
	item, so the "in" animation re-runs on every arrival and outranks the
	plugin's quick inline fade. The outgoing half is the .ots-lc-ghost clone
	script.js pins on top — the plugin itself can only run out-then-in
	sequentially in its single container, so the overlap needs this second
	layer. The html[data-ots-lc-dir="open"] attribute (set by script.js)
	swaps this out for a plain fade on arrival — the shrink is for
	travelling BETWEEN images, not for the first one appearing. */
#lightcase-case[data-lc-type="image"] .lightcase-contentInner img {
	animation: ots-lc-in 750ms cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}
/* The plugin's content box clips its children. While the incoming image is
   still scaled above 1 its edges sit OUTSIDE that box, so its 1px frame was
   invisible until the settle finished — the frame seemed to pop in at the
   end. Unclipped, image and frame ride the whole animation as one piece,
   the frame there from the first visible moment. */
#lightcase-case[data-lc-type="image"] #lightcase-content,
#lightcase-case[data-lc-type="image"] .lightcase-contentInner {
	overflow: visible !important;
}
html[data-ots-lc-dir="open"] #lightcase-case[data-lc-type="image"] .lightcase-contentInner img {
	animation-name: ots-lc-in-open;
}
@keyframes ots-lc-in {
	from { opacity: 0; transform: scale(1.5); }
	to   { opacity: 1; transform: none; }
}
@keyframes ots-lc-in-open {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/*  The page behind eases dark on open and eases back on close.

	This is our own element (script.js creates it), not the plugin's
	overlay, because the plugin sets display:none on its overlay the moment
	closing starts — nothing can fade after that. A separate element we
	control fades symmetrically off one class, in both directions.

	The plugin's overlay stays in the DOM and stays clickable, just
	invisible: click-the-backdrop-to-close is its behaviour, and an
	opacity:0 element still receives clicks. */
#ots-lc-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1999;			/* under #lightcase-overlay (2000) and the case */
	background: #000;
	opacity: 0;
	pointer-events: none;	/* the plugin's own overlay handles clicks */
	transition: opacity 350ms ease;
}
#ots-lc-backdrop.is-visible {
	opacity: 0.95;			/* matches the overlayOpacity setting */
}
#lightcase-overlay {
	opacity: 0 !important;
}

img.ots-lc-ghost {
	position: fixed;
	z-index: 99999;
	margin: 0;
	pointer-events: none;
	box-sizing: border-box;
	border: 1px solid rgba(102,102,102,.4);
	animation: ots-lc-out 750ms cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}
@keyframes ots-lc-out {
	to { opacity: 0; transform: scale(0.5); }
}
/* Closing: fade only, no shrink — matching the plain fade on opening. */
img.ots-lc-ghost--closing {
	animation-name: ots-lc-out-closing;
	animation-duration: 350ms;
}
@keyframes ots-lc-out-closing {
	to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	#lightcase-case[data-lc-type="image"] .lightcase-contentInner img { animation: none; }
	img.ots-lc-ghost { display: none; }
}

/* Arrows and close: the theme draws these as plain CSS shapes (borders and
   bars), not an icon font, so thinning them is a stroke-width change — 3px
   down to 1px — not a different icon. Selectors match dark-style.css's own
   overrides exactly, so these replace them rather than compete on specificity.

   Hover fills the same white-chip / black-mark language used everywhere else
   on the site (Back to Works, the exhibition rows, the page-name label). */
#lightcase-nav a.lightcase-icon-prev:after,
#lightcase-nav a.lightcase-icon-next:after {
	height: 1px;
}
#lightcase-nav a.lightcase-icon-prev:before,
#lightcase-nav a.lightcase-icon-next:before {
	border-left-width: 1px;
	border-bottom-width: 1px;
}
#lightcase-nav a.lightcase-icon-next:before {
	border-top-width: 1px;
	border-right-width: 1px;
}
#lightcase-nav a.lightcase-icon-close:after,
#lightcase-nav a.lightcase-icon-close:before {
	height: 1px;
}

#lightcase-nav a[class*='lightcase-icon-']:hover {
	background-color: #ffffff;
}
#lightcase-nav a.lightcase-icon-prev:hover:after,
#lightcase-nav a.lightcase-icon-next:hover:after,
#lightcase-nav a.lightcase-icon-close:hover:after,
#lightcase-nav a.lightcase-icon-close:hover:before {
	background-color: #000000;
}
#lightcase-nav a.lightcase-icon-prev:hover:before,
#lightcase-nav a.lightcase-icon-next:hover:before {
	border-color: #000000;
}

/* Native EmailOctopus button — match site button styling */

.emailoctopus-form input[type="submit"] {
  width: auto !important;
  min-width: 177px !important;
  height: 38px !important;
  padding: 0 16px !important;

  background: transparent !important;
  border: 2px solid rgba(255, 255, 255, 0.26) !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  color: #fff !important;
  font-family: Roboto, "Franklin Gothic Medium", Tahoma, sans-serif !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;

  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.emailoctopus-form input[type="submit"]:hover,
.emailoctopus-form input[type="submit"]:focus {
  background: #fff !important;
  border-color: #fff !important;
  color: #000 !important;
  box-shadow: none !important;
  outline: none !important;
}

.emailoctopus-form input[type="submit"]:active {
  background: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
  box-shadow: none !important;
  outline: none !important;
}

/* EmailOctopus disables the button while the request is in flight. Disabled
   inputs don't receive :hover/:active in the browser, so without this the
   button would drop to its transparent base style and pick up EmailOctopus's
   own `.btn:disabled { opacity: .65 }` — a grey flash instead of the white
   "engaged" look while it's waiting on the request. */
.emailoctopus-form input[type="submit"]:disabled {
  background: #fff !important;
  border-color: #fff !important;
  color: #000 !important;
  opacity: 1 !important;
  box-shadow: none !important;
}


/*-----------------------------------------------------------------------------------
	DIGITAL COLLECTIONS

	Spiral gallery: one centred work facing forward, neighbours swung/turned/
	drifted around a helix via CSS 3D transforms (js/digital-collections.js
	recalculates these on every frame — this file only supplies
	the box each tile sits in).
-----------------------------------------------------------------------------------*/

/* Just the header (logo + menu) and the gallery filling the rest — no footer,
   no scroll. :has() targets any page that contains the gallery wrapper
   directly, rather than assuming what body class WordPress/the theme add. */
body:has(#digital-collections) {
	overflow: hidden;
}
body:has(#digital-collections) #footer {
	display: none;
}

.dc-empty {
	text-align: center;
	padding: 140px 0;
	color: rgba(255, 255, 255, .55);
	font-size: 14px;
}
.dc-empty a { color: #fff; text-decoration: underline; }

/* Full screen, like the home slider — the footer is pushed below via normal
   document flow, not a fixed overlay. */
.dc-gallery {
	position: relative;
	height: 100vh;
	perspective: 1400px;
	overflow: hidden;
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
	touch-action: pan-y;
}
.dc-gallery:focus-visible { outline: 1px solid rgba(255, 255, 255, .4); outline-offset: 6px; }
.dc-gallery:focus:not(:focus-visible) { outline: none; }

.dc-track {
	position: absolute;
	inset: 0;
	transform-style: preserve-3d;
}

.dc-tile {
	position: absolute;
	top: 50%;
	left: 50%;
	width: var(--dc-tile-w, 320px);
	height: var(--dc-tile-h, 384px);
	margin: 0;
	will-change: transform, opacity;
	/* Tiles are purely visual: clicks are resolved by the gallery root's own
	   projection math (js/digital-collections.js), because browser hit-testing
	   of elements inside perspective + preserve-3d is unreliable (Firefox
	   computes hit regions at unprojected positions). No backface-visibility:
	   tiles past 90° of tilt must stay visible (mirrored) like the reference's
	   THREE.DoubleSide — culling them is what kept truncating the spiral to
	   the front ±3 steps. */
	pointer-events: none;
	/* Centred fallback if JS hasn't run yet (or fails) — js/digital-collections.js
	   overrides this every frame with the full translate3d/rotate/scale once it's
	   running, but without this a tile sits pinned by its top-left corner instead
	   of its centre. */
	transform: translate(-50%, -50%);
}
.dc-tile > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Transparent, not #0a0a0a: a still-loading image then shows nothing
	   inside the hairline instead of a dark grey slab. */
	background: transparent;
	border-radius: var(--dc-corner-radius, 0px);
	pointer-events: none;
	transition: transform 0.3s cubic-bezier(0.600, 0.000, 0.200, 1.000);
}

/*  Works-grid hover language, shared by the spiral tiles and the carousel.
	The theme's overlay PNG turned out to be fully transparent (measured:
	alpha 0 everywhere), so the Works hover is really the hairline plus the
	scale(1.05) image zoom (.thumb-hover:hover img, same bezier) — that's
	what's reproduced here. Spiral tiles are pointer-events:none, so their
	.is-hover class is set by the projection hit-test in
	js/digital-collections.js; the flat carousel tiles use native :hover. */

.dc-tile,
.dc-row-media {
	overflow: hidden;   /* clips the hover zoom */
}

/*  The hairline, plus the corner highlight: four viewfinder brackets drawn
	as 1px gradient bars (the theme's overlay PNG turned out to be fully
	transparent — on production too — so the corners are drawn in CSS
	instead). Subtle at rest here; the bright copies fade in on hover from a
	::before layer, since gradients themselves can't transition. */
.dc-tile::after,
.dc-row-media::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 5;
	box-shadow: inset 0 0 0 1px rgba(102, 102, 102, 0.4);
	transition: box-shadow 0.3s ease;
	border-radius: var(--dc-corner-radius, 0px);
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
		linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
		linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
		linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
		linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
		linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
		linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
		linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3));
	background-repeat: no-repeat;
	background-size: 22px 1px, 1px 22px, 22px 1px, 1px 22px, 22px 1px, 1px 22px, 22px 1px, 1px 22px;
	background-position: left top, left top, right top, right top, left bottom, left bottom, right bottom, right bottom;
}
/* Hover line: 1px, white. */
.dc-tile.is-hover::after {
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

/* On hover the whole image darkens slightly — heavier toward the bottom,
   where the caption sits (caption is z-index 3, this is 2) — and the bright
   corner brackets fade in with it, so the text reads clearly against busy
   artwork while the image stays present. */
.dc-tile::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background-image:
		linear-gradient(#fff, #fff), linear-gradient(#fff, #fff),
		linear-gradient(#fff, #fff), linear-gradient(#fff, #fff),
		linear-gradient(#fff, #fff), linear-gradient(#fff, #fff),
		linear-gradient(#fff, #fff), linear-gradient(#fff, #fff),
		linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.4) 55%, rgba(0, 0, 0, 0.4));
	background-repeat: no-repeat;
	background-size: 22px 1px, 1px 22px, 22px 1px, 1px 22px, 22px 1px, 1px 22px, 22px 1px, 1px 22px, 100% 100%;
	background-position: left top, left top, right top, right top, left bottom, left bottom, right bottom, right bottom, center;
	border-radius: var(--dc-corner-radius, 0px);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.dc-tile.is-hover::before {
	opacity: 1;
}

/* The carousel's bright corner brackets, fading in on hover. */
.dc-row-media::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 6;
	background-image:
		linear-gradient(#fff, #fff), linear-gradient(#fff, #fff),
		linear-gradient(#fff, #fff), linear-gradient(#fff, #fff),
		linear-gradient(#fff, #fff), linear-gradient(#fff, #fff),
		linear-gradient(#fff, #fff), linear-gradient(#fff, #fff);
	background-repeat: no-repeat;
	background-size: 22px 1px, 1px 22px, 22px 1px, 1px 22px, 22px 1px, 1px 22px, 22px 1px, 1px 22px;
	background-position: left top, left top, right top, right top, left bottom, left bottom, right bottom, right bottom;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.dc-row-tile:hover .dc-row-media::before {
	opacity: 1;
}

.dc-row-tile:hover .dc-row-media::after {
	box-shadow: inset 0 0 0 1px rgba(102, 102, 102, 0.8);
}
.dc-tile.is-hover > img,
.dc-row-tile:hover .dc-row-media img {
	transform: scale(1.05);
}

/* Collection title + NFT count, on the thumbnail — thin and grey, the same
   quiet voice as the site's meta rows. */
.dc-tile-caption {
	position: absolute;
	left: 14px;
	right: 14px;
	/* Sat at 62px, which left the block floating well clear of the bottom edge
	   — more so now it runs to three lines. 20px puts it on the edge with a
	   margin a little deeper than the 14px at its sides, which is what an even
	   inset looks like under a line of text. It still clears the 22px corner
	   brackets, and sits in the heaviest part of the hover darkening. */
	bottom: 20px;
	z-index: 3;
	pointer-events: none;
}
.dc-tile-title {
	display: block;
	color: rgba(255, 255, 255, .70);
	font-size: 19px;
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: .08em;
	line-height: 1.4;
}
.dc-tile-count {
	display: block;
	margin-bottom: 23px;
	margin-top: 2px;
	color: rgba(255, 255, 255, .70);
	font-size: 13px;
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: .1em;
}

/*  Focus layer — the open collection's NFTs as a flat carousel
	(second navigation level; js/digital-collections.js populates .dc-row
	and toggles .is-active at the transition's invisible midpoint). */

.dc-focus {
	position: absolute;
	inset: 0;
	display: none;
}
.dc-focus.is-active { display: block; }

.dc-row {
	position: absolute;
	inset: 0;
}

/* The tile is image + caption below; --dc-row-h sizes only the image, so the
   caption gets its own room instead of eating into the artwork. */
.dc-row-tile {
	position: absolute;
	top: 50%;
	left: 50%;
	width: var(--dc-row-w, 400px);
	margin: 0;
	cursor: pointer;
	transform: translate(-50%, -50%);
	will-change: transform, opacity;
}
.dc-row-media {
	position: relative;
	width: 100%;
	height: var(--dc-row-h, 500px);
}
.dc-row-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Transparent for the same reason as the spiral tiles: an image still in
	   flight shows an empty hairline frame, not a dark grey slab. */
	background: transparent;
	border-radius: var(--dc-corner-radius, 0px);
	pointer-events: none;
	transition: transform 0.3s cubic-bezier(0.600, 0.000, 0.200, 1.000);
}

/* NFT title + edition under the image — the Works grid's below-thumb voice. */
.dc-row-caption {
	margin-top: 14px;
	min-height: 40px;
	pointer-events: none;
}
.dc-row-title {
	display: block;
	color: #fff;
	font-size: 17px;
	text-transform: uppercase;
	letter-spacing: .08em;
	line-height: 1.4;
}
/* .dc-tile-edition is the set's size on a spiral thumbnail. It shares this rule
   rather than restating it, so the edition line reads identically whether you
   are looking at a collection on the spiral or at a piece inside it. */
.dc-row-edition,
.dc-tile-edition {
	display: block;
	margin-top: 3px;
	color: rgba(255, 255, 255, .55);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .1em;
}

/* Collection name and edition size above the carousel — the site's
   section-title chip (.ots-section-title carries the look), left-aligned
   with the visible row: the side tile's centre sits 1.06 row-widths out, so
   the row's left edge is 1.56. Fades in with the carousel.

   The pair is positioned as a unit, so the edition always follows the chip
   however long the collection's name runs. */
.dc-focus-head {
	position: absolute;
	left: max(24px, calc(50% - var(--dc-row-w, 400px) * 1.56));
	bottom: calc(50% + var(--dc-row-h, 500px) / 2 + 64px);
	display: flex;
	align-items: baseline;
	gap: 16px;
	z-index: 1300;
	opacity: 0;
	transition: opacity 0.5s ease;
}
.dc-focus.is-active .dc-focus-head {
	opacity: 1;
}
.dc-focus-title {
	margin: 0;
	/* Purely a heading. The gallery sets cursor:pointer for its tiles and
	   that inherits down to here, which made static text read as clickable —
	   the click itself is ignored in js/digital-collections.js. */
	cursor: default;
}
/* The collection's Edition field, beside the name — grey, and quieter than
   the chip, since it qualifies the collection rather than naming it. */
.dc-focus-edition {
	color: rgba(255, 255, 255, .5);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .1em;
	line-height: 1.4;
	white-space: nowrap;
	cursor: default;
}
.dc-focus-edition:empty {
	display: none;
}

/* Marketplace button, below the carousel — same construction as the theme's
   own buttons (see the EmailOctopus submit styling above). The extra 54px
   clears the caption block that now hangs under the images. */
/* "Soon on the NFT Marketplace" state — disabled, non-clickable label while the
   NFTs aren't live. Remove .is-soon from the markup to restore the live button. */
.dc-marketplace.is-soon {
	pointer-events: none;
	opacity: .5;
	cursor: default;
}
.dc-marketplace {
	position: absolute;
	bottom: max(24px, calc(50% - var(--dc-row-h, 500px) / 2 - 130px));
	left: 50%;
	transform: translateX(-50%);
	z-index: 1300;
	padding: 11px 22px;
	border: 2px solid rgba(255, 255, 255, .26);
	color: #fff;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: .08em;
	text-transform: uppercase;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.dc-marketplace:hover {
	background: #fff;
	border-color: #fff;
	color: #000;
}

/*  Back to Collections — the Single Work page's own control, reused rather
	than restyled: the .back-to-works class on the element carries the type,
	spacing and white-chip hover, so the two can never drift apart. This rule
	only places it and undoes the fact that it is a <button> here, not a link.

	Mirrors .dc-focus-title's offsets so name and control sit on one baseline
	at either end of the visible row. */
.dc-focus-back {
	position: absolute;
	right: max(24px, calc(50% - var(--dc-row-w, 400px) * 1.56));
	bottom: calc(50% + var(--dc-row-h, 500px) / 2 + 64px);
	z-index: 1300;
	margin-top: 0;			/* .back-to-works carries 45px for its column layout */
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.5s ease, color .3s ease, background-color .3s ease;

	/* The parent theme paints chrome onto every button, which is where the
	   pale box on the old close control came from. font: inherit keeps
	   .back-to-works's type instead of the browser's button font. */
	font-family: inherit;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	-webkit-appearance: none;
	appearance: none;
}
.dc-focus.is-active .dc-focus-back {
	opacity: 1;
}
/* Restated (not !important, which would also block the hover fill) so the
   theme's own button:hover background cannot win on specificity. */
.dc-focus-back:hover,
.dc-focus-back:focus {
	background: #ffffff;
	color: #000000;
}

/*  Chain rail — the open collection's network and address, stood on end at the
	left of the carousel.

	Both belong to the collection, so js/digital-collections.js fills them per
	open and scrambles them in once the transition has landed. Until then the
	two spans are empty, and the :empty rules below take them out of the layout
	entirely — which is what keeps them off the moving carousel, rather than any
	timing here.

	Top-aligned with the artwork and given its height, so a long address wraps
	inside the image's own run rather than trailing past it. vertical-rl wraps
	leftwards — away from the work — on the rare occasion it needs a second
	column. */
.dc-chain {
	position: absolute;
	/* 46px further out than .dc-focus-head's edge, which is flush with the row. */
	left: max(24px, calc(50% - var(--dc-row-w, 400px) * 1.56 - 46px));
	top: calc(50% - var(--dc-row-h, 500px) / 2);
	height: var(--dc-row-h, 500px);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	z-index: 1300;
	opacity: 0;
	transition: opacity 0.5s ease;

	/*  Metadata, not a control.

		.dc-gallery carries cursor:pointer and it inherits the whole way down,
		so this has to be turned off explicitly — and that needs the element to
		be taking pointer events at all. It was set to `none`, which is the
		opposite of what it sounds like here: with no events of its own, both
		the cursor and the click belonged to the gallery underneath, so the rail
		showed a hand and clicking it closed the carousel as empty space.

		Taking the events instead, and refusing to act on them (the click
		handler in js/digital-collections.js ignores this element), is the same
		arrangement the collection name uses. */
	pointer-events: auto;
	cursor: default;
}
.dc-focus.is-active .dc-chain {
	opacity: 1;
}

/* The site's white chip, turned on its side. Smaller than a section title:
   this labels the address beneath it rather than naming anything.
   The margins undo the auto-centring that .ots-section-title carries for
   titles sitting in a page column. */
.dc-chain-network {
	writing-mode: vertical-rl;
	flex: 0 0 auto;
	margin-left: 0;
	margin-right: 0;
	font-size: 12px;
	/* .ots-section-title's 2px 8px padding and 1.35 leading are measured for a
	   chip lying flat, where they sit at the ends of the words and above and
	   below them. Stood on end they swap roles: both now run across the word,
	   and the box came out 32px wide around 12px of letterform. 2px each side
	   keeps the white off the glyphs without the slack. */
	padding: 2px;
	line-height: 1;
}
/* An unfilled chip would otherwise sit there as a bare white sliver — and a
   collection with no network at all would keep the gap where it would have
   been. */
.dc-chain-network:empty {
	display: none;
}

/* Same grey and measure as the edition line under each NFT. No text-transform:
   the mixed case in an address is a checksum, and uppercasing it would make a
   valid address unverifiable. */
.dc-chain-address {
	writing-mode: vertical-rl;
	flex: 0 1 auto;
	min-height: 0;
	color: rgba(255, 255, 255, .55);
	font-size: 11px;
	font-weight: 300;
	letter-spacing: .1em;
	line-height: 1.4;
	overflow-wrap: anywhere;
}
.dc-chain-address:empty {
	display: none;
}

/* The row itself already runs wider than the viewport by here, so the rail
   would land on the artwork rather than beside it. */
@media (max-width: 900px) {
	.dc-chain { display: none; }
}