/* =============================================================================
   Super Rack 2026 - catalogue archive

   Loaded on the shop, every product category and search. The product card, the
   section heading and the quantity stepper live in theme.css because the
   homepage uses them too.
   ========================================================================== */

/* ------------------------------------------------------- archive header ---- */

/* The panel sets a floor so a category with no description still gets a proportioned
   header, and the photograph fills whatever height results rather than dictating it. */
/* The yellow rule runs the full width of the header, as a border rather than a bled element
   - the negative-viewport-margin version pushed the document wider than the viewport. */
.srk-archhead {
	display: flex;
	background: var(--srk-ink);
	color: #fff;
	min-height: 470px;
	border-bottom: 8px solid var(--srk-yellow);
}
/* A category with no description carries less copy, so it needs a little less height - but
   the photograph is the point of this band, so the floor stays high either way. */
.srk-archhead--nodesc { min-height: 420px; }

.srk-archhead__panel {
	position: relative;
	width: 44%;
	display: flex;
	flex-direction: column;
	padding: 48px var(--srk-gutter) 28px;
	padding-left: max(var(--srk-gutter), calc((100vw - var(--srk-wrap)) / 2 + var(--srk-gutter)));
}
.srk-archhead--nomedia .srk-archhead__panel { width: 100%; }

/* ---- no photograph to show.
   A handful of categories have no landscape photograph anywhere in their family - the
   square product cut-out the shop grid uses is not one, and cropping it to a strip is what
   this whole treatment exists to avoid. Rather than leaving the right-hand half empty,
   the band becomes a typographic header: shorter, copy at a wider measure, and the figures
   spread along a rule that runs the full width. It should read as a decision, not a gap. */
.srk-archhead--nomedia {
	min-height: 0;
}
.srk-archhead--nomedia .srk-archhead__panel {
	max-width: var(--srk-wrap);
	margin: 0 auto;
	padding: 44px var(--srk-gutter) 30px;
	padding-left: max(var(--srk-gutter), calc((100vw - var(--srk-wrap)) / 2 + var(--srk-gutter)));
	padding-right: max(var(--srk-gutter), calc((100vw - var(--srk-wrap)) / 2 + var(--srk-gutter)));
}
.srk-archhead--nomedia .srk-archhead__desc {
	max-width: 760px;
	font-size: 15.5px;
}
.srk-archhead--nomedia .srk-archhead__stats {
	gap: 30px 72px;
	margin-top: 30px;
}

.srk-archhead__crumbs { color: var(--srk-quiet); font-size: 9.5px; margin-bottom: 20px; }
.srk-archhead__crumbs a:hover { color: #fff; }
.srk-archhead__crumbsep { color: var(--srk-red-text); margin: 0 6px; }
.srk-archhead__here { color: var(--srk-red-text); }

.srk-archhead__title {
	font-size: clamp(32px, 3.8vw, 52px);
	line-height: 1.0;
	margin-bottom: 20px;
	text-transform: uppercase;
}

.srk-archhead__desc { color: var(--srk-muted-dark); font-size: 14.5px; max-width: 460px; }
.srk-archhead__desc p:last-child { margin-bottom: 0; }

.srk-archhead__stats {
	display: flex;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 30px 44px;
	/* Pushed to the foot of the panel, so the header keeps its shape whether the category
	   has 400 words of description or none at all. */
	margin: 32px 0 0;
	padding-top: 26px;
	border-top: 1px solid #3A3F45;
	margin-top: auto;
}
.srk-archhead__statvalue { font-size: 30px; line-height: 1; margin: 0; }
.srk-archhead__stat--wide .srk-archhead__statvalue { font-size: 22px; color: var(--srk-yellow); }
.srk-archhead__statlabel { color: var(--srk-quiet); font-size: 9px; margin-top: 6px; }

.srk-archhead__rule { display: none; }

.srk-archhead__media { position: relative; width: 56%; overflow: hidden; background: var(--srk-ink-soft); }
.srk-archhead__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------- catalogue ---- */

.srk-catalogue {
	display: flex;
	gap: 34px;
	align-items: flex-start;
	padding-block: 40px 70px;
}
.srk-results { flex: 1; min-width: 0; }

/* --------------------------------------------------------- the filter rail ---- */

.srk-filters { width: 238px; flex-shrink: 0; }

.srk-filters__head {
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: 2px solid var(--srk-ink);
	padding-bottom: 11px;
}
.srk-filters__title { font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase; }
.srk-filters__clear { margin-left: auto; color: var(--srk-red-text); font-size: 9.5px; }
.srk-filters__clear:hover { color: var(--srk-ink); }
.srk-filters__close,
.srk-filters__open { display: none; }

.srk-fg { margin-top: 26px; }
.srk-fg__title { color: var(--srk-soft); margin: 0 0 10px; }
.srk-fg__list { list-style: none; }
.srk-fg__item { margin: 0; }

.srk-fg__link,
.srk-fg__check {
	display: flex;
	align-items: center;
	gap: 11px;
	font-size: 14px;
	padding: 5px 0;
	line-height: 1.4;
}
.srk-fg__link:hover .srk-fg__label,
.srk-fg__check:hover .srk-fg__label { color: var(--srk-red-text); }

.srk-fg__label { flex: 1; min-width: 0; }
.srk-fg__count { font-size: 11.5px; color: var(--srk-quiet); flex-shrink: 0; }

.srk-fg__link.is-current { color: var(--srk-red-text); font-weight: 700; }
.srk-fg__link--child { padding-left: 14px; border-left: 2px solid var(--srk-line); margin-left: 1px; }
.srk-fg__link--child .srk-fg__label { font-size: 13.5px; color: var(--srk-soft); }
.srk-fg__link--child:hover .srk-fg__label { color: var(--srk-red-text); }

/* A third level, for the children of the sub-category the customer is standing in. */
.srk-fg__link--grandchild { padding-left: 28px; border-left: 2px solid var(--srk-line); margin-left: 1px; }
.srk-fg__link--grandchild .srk-fg__label { font-size: 13px; color: var(--srk-soft); }
.srk-fg__link--grandchild:hover .srk-fg__label { color: var(--srk-red-text); }

/* The way back out.
   This is the one row in the list that moves the customer outwards rather than sideways, and
   it has to read that way at a glance - otherwise it looks like another category to filter by
   and the rail still has no exit. Arrow, full weight, and a rule under it so the indented
   level below plainly belongs to it. */
.srk-fg__link--up {
	font-weight: 700;
	gap: 8px;
	padding-bottom: 9px;
	margin-bottom: 7px;
	border-bottom: 1px solid var(--srk-line);
}
.srk-fg__link--up::before {
	content: "\2190";
	color: var(--srk-red-text);
	font-size: 14px;
	line-height: 1;
	flex-shrink: 0;
}
.srk-fg__link--up .srk-fg__label { color: var(--srk-ink); }
.srk-fg__link--up:hover .srk-fg__label { color: var(--srk-red-text); }

/* The indented levels dim their own label, which would otherwise beat `.is-current` on
   specificity and leave the page you are on looking like every other row. Fourth time this
   cascade has bitten this build; spelt out rather than relying on order. */
.srk-fg__link--child.is-current .srk-fg__label,
.srk-fg__link--grandchild.is-current .srk-fg__label { color: var(--srk-red-text); font-weight: 700; }

/* The rest of the categories, folded away. <details> so it needs no script. */
.srk-more { margin-top: 8px; }
.srk-more__toggle {
	cursor: pointer;
	color: var(--srk-red-text);
	font-size: 9.5px;
	padding: 6px 0;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 7px;
}
.srk-more__toggle::-webkit-details-marker { display: none; }
.srk-more__toggle::before {
	content: "+";
	font-size: 13px;
	line-height: 1;
	width: 12px;
}
.srk-more[open] .srk-more__toggle::before { content: "\2212"; }
.srk-more__toggle:hover { color: var(--srk-ink); }
.srk-more__list { margin-top: 4px; }

.srk-fg__box {
	width: 16px; height: 16px;
	border: 1.5px solid #B7BEC4;
	background: #fff;
	flex-shrink: 0;
	position: relative;
}
.srk-fg__check.is-on .srk-fg__box { background: var(--srk-red); border-color: var(--srk-red-text); }
.srk-fg__check.is-on .srk-fg__box::after {
	content: "";
	position: absolute;
	left: 4px; top: 1px;
	width: 4px; height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.srk-fg__check.is-on .srk-fg__label { font-weight: 700; }

/* ------------------------------------------------------------------ price ---- */

.srk-price__row { display: flex; align-items: center; gap: 8px; }
.srk-price__field {
	border: 1px solid var(--srk-line);
	background: #fff;
	flex: 1;
	min-width: 0;
	height: 38px;
	padding-inline: 10px;
	font: inherit;
	font-size: 13.5px;
	color: var(--srk-ink);
	border-radius: 0;
	appearance: textfield;
	-moz-appearance: textfield;
}
.srk-price__field::-webkit-outer-spin-button,
.srk-price__field::-webkit-inner-spin-button { appearance: none; margin: 0; }
.srk-price__dash { color: var(--srk-soft); }
.srk-price__go { height: 38px; padding: 0 14px; display: inline-flex; align-items: center; line-height: 1; }

/* ------------------------------------------------------------ rail promo ---- */

.srk-filters__promo { background: var(--srk-yellow); padding: 24px 22px; margin-top: 30px; }
.srk-filters__promoeyebrow { color: var(--srk-yellow-ink); font-size: 9.5px; margin: 0 0 12px; }
.srk-filters__promotitle { font-size: 21px; line-height: 1.1; margin: 0 0 12px; text-transform: uppercase; }
.srk-filters__promobody { font-size: 13px; line-height: 1.6; color: #5A4406; margin: 0 0 20px; }
.srk-filters__promocta { display: block; padding: 13px 0; }

/* --------------------------------------------------------------- toolbar ---- */

.srk-toolbar2 {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin-bottom: 18px;
}
.srk-toolbar2__count { font-size: 17px; margin: 0; text-transform: uppercase; letter-spacing: 0.01em; }
.srk-toolbar2__count strong { font-weight: 400; }

.srk-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.srk-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--srk-ink);
	color: #fff;
	padding: 8px 13px;
	font-size: 9.5px;
}
.srk-chip:hover { background: var(--srk-red); }
.srk-chip__x { font-size: 13px; line-height: 1; }

.srk-sort { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.srk-sort__label { color: var(--srk-soft); }
.srk-sort__select {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid var(--srk-line);
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath fill='%235E656B' d='M0 0h11L5.5 7z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	border-radius: 0;
	height: 38px;
	padding: 0 32px 0 12px;
	font: inherit;
	font-size: 13.5px;
	color: var(--srk-ink);
	cursor: pointer;
}

/* ------------------------------------------------------------ pagination ---- */

.srk-pagination { margin-top: 14px; }
.srk-pagination__next { display: block; }
.srk-pagination__pages { margin-top: 18px; }
.srk-pagination__pages ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.srk-pagination__pages a,
.srk-pagination__pages span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--srk-line);
	background: #fff;
	font-size: 13.5px;
}
.srk-pagination__pages a:hover { border-color: var(--srk-ink); }
.srk-pagination__pages .current { background: var(--srk-ink); border-color: var(--srk-ink); color: #fff; }
.srk-pagination__status { font-size: 12.5px; color: var(--srk-soft); margin: 12px 0 0; }

/* ------------------------------------------------------------ no results ---- */

.srk-noresults { background: #fff; border: 1px solid var(--srk-line); padding: 48px 40px; text-align: center; }
.srk-noresults__title { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 12px; text-transform: uppercase; }
.srk-noresults__body { color: var(--srk-soft); max-width: 460px; margin: 0 auto 26px; }
.srk-noresults__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------- related ---- */

.srk-related__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.srk-relcard { background: #fff; border: 1px solid var(--srk-line); display: flex; flex-direction: column; }
/*
 * Taller, and the whole picture rather than a crop of it. These thumbnails are a mix of
 * white-background renders and real photographs; `cover` was cutting the ends off the long
 * ones - a workbench is mostly length, and cropping it leaves a picture of nothing.
 */
.srk-relcard__media {
	display: block;
	height: 210px;
	overflow: hidden;
	padding: 10px;
	background: var(--srk-white);
}
.srk-relcard__media img.srk-relcard__img { width: 100%; height: 100%; object-fit: contain; }
.srk-relcard__body { display: block; padding: 14px 16px 16px; border-top: 1px solid var(--srk-line); }
.srk-relcard__title { display: block; font-size: 16px; }
.srk-relcard:hover .srk-relcard__title { color: var(--srk-red-text); }
.srk-relcard__meta { display: block; font-size: 12.5px; color: var(--srk-soft); margin-top: 6px; }

/* ============================================================= responsive === */

@media (max-width: 1180px) {
	.srk-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.srk-archhead { flex-direction: column-reverse; }
	.srk-archhead__panel { width: 100%; padding: 32px var(--srk-gutter) 0; }
	.srk-archhead { min-height: 0; }
	.srk-archhead__media { width: 100%; height: 260px; }

	.srk-catalogue { display: block; padding-block: 24px 48px; }

	/* The rail becomes a slide-out. It stays in the DOM in source order, so with
	   JavaScript off it simply renders above the grid and every link still works. */
	.srk-filters__open {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		margin-bottom: 18px;
		height: 44px;
		padding: 0 20px;
		line-height: 1;
	}
	.srk-filters__open-count {
		background: var(--srk-yellow);
		color: var(--srk-ink);
		border-radius: 999px;
		min-width: 20px;
		height: 20px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		font-size: 11px;
	}
	.srk-filters__close {
		display: block;
		margin-left: auto;
		background: none;
		border: 0;
		font-size: 28px;
		line-height: 1;
		color: var(--srk-ink);
		cursor: pointer;
		padding: 0 4px;
	}
	.srk-filters__clear + .srk-filters__close { margin-left: 14px; }

	.js .srk-filters {
		position: fixed;
		inset: 0 auto 0 0;
		width: min(320px, 88vw);
		background: var(--srk-paper);
		padding: 20px;
		overflow-y: auto;
		z-index: var(--srk-z-drawer);
		transform: translateX(-101%);
		transition: transform 0.2s ease;
		box-shadow: 0 0 0 100vw rgba(23,23,26, 0);
	}
	.js .srk-filters.is-open { transform: none; box-shadow: 0 0 0 100vw rgba(23,23,26, 0.5); }
}

@media (max-width: 620px) {
	.srk-related__grid { grid-template-columns: minmax(0, 1fr); }
	.srk-toolbar2 { align-items: flex-start; }
	.srk-sort { margin-left: 0; width: 100%; }
	.srk-sort__select { flex: 1; }
	.srk-noresults { padding: 32px 20px; }
}

/* A line with no price still needs to read as a price line. */
.srk-pcard__price--none { font-size: 17px; color: var(--srk-soft); letter-spacing: 0; }

/* ----------------------------------------------------------- WooCommerce notices ---- */
/*
 * The theme drops WooCommerce's stylesheet on templates it owns, so these are ours to
 * style. Kept to the three states WooCommerce actually emits.
 */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	list-style: none;
	margin: 0 0 18px;
	padding: 14px 18px;
	background: #fff;
	border-left: 5px solid var(--srk-ink);
	font-size: 14px;
}
.woocommerce-message { border-left-color: #2E8B57; }
.woocommerce-info    { border-left-color: var(--srk-yellow); }
.woocommerce-error   { border-left-color: var(--srk-red-text); }
.woocommerce-error li { list-style: none; }

.woocommerce-message .button,
.woocommerce-info .button {
	margin-left: auto;
	background: var(--srk-ink);
	color: #fff;
	padding: 10px 18px;
	font-size: 11px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	font-weight: 700;
}
.woocommerce-message .button:hover,
.woocommerce-info .button:hover { background: var(--srk-red); }

/*
 * Category questions and answers. Native <details>, so it works with the stylesheet half
 * loaded and needs no script; the marker is drawn rather than borrowed from the browser so
 * it reads the same in every one of them.
 */
.srk-faq__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	column-gap: clamp(32px, 5vw, 76px);
}
.srk-faq__item { border-bottom: 1px solid var(--srk-line); }
.srk-faq__item:first-child { border-top: 1px solid var(--srk-line); }

@media (min-width: 900px) {
	/* Two columns, so the questions use the width the rest of the page does. A grid rather
	   than columns: an answer opening should push its own column, not reflow the other. */
	.srk-faq__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.srk-faq__item:nth-child(2) { border-top: 1px solid var(--srk-line); }
}

.srk-faq__q {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--srk-ink);
}
.srk-faq__q::-webkit-details-marker { display: none; }

.srk-faq__q::after {
	content: "";
	flex: 0 0 auto;
	margin-left: auto;
	width: 13px;
	height: 13px;
	margin-top: 5px;
	border-right: 2px solid var(--srk-red);
	border-bottom: 2px solid var(--srk-red);
	transform: rotate(45deg);
	transition: transform .18s ease;
}
.srk-faq__item[open] .srk-faq__q::after { transform: rotate(-135deg); }

.srk-faq__q:hover { color: var(--srk-red-text); }
.srk-faq__q:focus-visible { outline: 2px solid var(--srk-red); outline-offset: 3px; }

.srk-faq__a {
	padding: 0 40px 24px 0;
	max-width: 760px;
	font-size: 15.5px;
	line-height: 1.7;
	color: var(--srk-ink);
}
.srk-faq__a > :first-child { margin-top: 0; }
.srk-faq__a > :last-child { margin-bottom: 0; }
.srk-faq__a li::marker { color: var(--srk-red-text); }

@media (max-width: 620px) {
	.srk-faq__q { font-size: 16px; padding: 16px 0; }
	.srk-faq__a { padding-right: 0; }
}

/* ----------------------------------------------------------------------------
 * The category copy.
 *
 * Its own white band across the full width of the page, and inside it the headed sections
 * set as numbered panels that fill the width instead of one narrow column with an empty
 * margin beside it. Multi-column rather than a grid so the panels pack: the sections run
 * from twenty words to a hundred and fifty, and a grid would leave holes.
 * --------------------------------------------------------------------------*/

.srk-about {
	/* Ink rather than white: the page is warm and low-key, and a white band mid-page glared
	   against everything around it. The panels stay light, so the reading area is unchanged. */
	background: var(--srk-ink);
	padding-block: clamp(48px, 5.5vw, 84px);
}
.srk-about__inner {
	max-width: var(--srk-wrap);
	margin-inline: auto;
	padding-inline: var(--srk-gutter);
}

.srk-about__head {
	margin-bottom: 38px;
	padding-bottom: 26px;
	border-bottom: 1px solid var(--srk-ink-line);
}
.srk-about__eyebrow { margin: 0 0 10px; color: var(--srk-yellow); }
.srk-about__title {
	margin: 0;
	font-size: clamp(22px, 2.8vw, 38px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -.015em;
	text-transform: uppercase;
	color: var(--srk-paper);
}
.srk-about__standfirst {
	max-width: 46ch;
	margin: 14px 0 0;
	font-size: clamp(16px, 1.5vw, 19px);
	line-height: 1.5;
	color: var(--srk-dark-body);
}

.srk-about__intro {
	max-width: 78ch;
	margin-bottom: 34px;
	font-size: 17.5px;
	line-height: 1.7;
	color: var(--srk-paper);
}
.srk-about__intro a { color: var(--srk-yellow); }

/* The panels. */
.srk-about__sections { columns: 1; column-gap: 26px; }

.srk-about__card {
	break-inside: avoid;
	margin: 0 0 26px;
	padding: 26px 28px 28px;
	background: var(--srk-paper);
	border-top: 3px solid var(--srk-red);
	scroll-margin-top: 90px;
}
.srk-about__num {
	display: block;
	margin-bottom: 12px;
	font-family: var(--srk-mono);
	font-size: 11px;
	letter-spacing: .1em;
	color: var(--srk-red-text);
}
.srk-about__heading {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.28;
	letter-spacing: -.01em;
	color: var(--srk-ink);
}

.srk-about__body { font-size: 15.5px; line-height: 1.72; color: var(--srk-ink-soft); }
.srk-about__body > :first-child { margin-top: 0; }
.srk-about__body > :last-child { margin-bottom: 0; }
.srk-about__body p { margin: 0 0 1em; }
.srk-about__body h3 { margin: 1.5em 0 .4em; font-size: 15.5px; font-weight: 700; color: var(--srk-ink); }
.srk-about__body ul,
.srk-about__body ol { margin: 0 0 1.1em; padding-left: 1.15em; }
.srk-about__body li { margin-bottom: .4em; }
.srk-about__body li::marker { color: var(--srk-red-text); font-weight: 700; }
.srk-about__body strong { color: var(--srk-ink); font-weight: 700; }
.srk-about__body a { color: var(--srk-red-text); text-underline-offset: 3px; }

@media (min-width: 900px) {
	.srk-about__sections { columns: 2; }
}
@media (min-width: 1500px) {
	.srk-about__sections { columns: 3; }
}

/*
 * Two empty columns beside one panel reads as a mistake, so a short piece of copy keeps the
 * columns it can actually fill.
 */
.srk-about__sections--single,
.srk-about__sections--pair { columns: 1 !important; }
.srk-about__sections--single .srk-about__card,
.srk-about__sections--pair .srk-about__card { max-width: 86ch; }

@media (min-width: 900px) {
	.srk-about__sections--pair { columns: 2 !important; }
	.srk-about__sections--pair .srk-about__card { max-width: none; }
}

/* The rating, in the band at the top of a category. */
.srk-archhead .srk-rating { margin-top: 18px; }
.srk-archhead .srk-rating__text { color: var(--srk-soft); }

/* ----------------------------------------------------------------------------
 * Real installations — the photographs and video, straight after the copy band.
 * --------------------------------------------------------------------------*/

.srk-showcase__title { margin: 0 0 26px; }

.srk-showcase__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.srk-showcase__tile {
	position: relative;
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--srk-line);
	cursor: pointer;
	overflow: hidden;
	aspect-ratio: 4 / 3;
}
.srk-showcase__tile img.srk-showcase__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.srk-showcase__tile:hover .srk-showcase__img { transform: scale(1.04); }
.srk-showcase__tile:focus-visible { outline: 3px solid var(--srk-red); outline-offset: 2px; }

/*
 * The label is white and sits over a photograph, which can be any brightness - on a pale
 * one it was white on near-white. Every tile gets a scrim under its bottom edge so the
 * label always has something dark behind it; the video tile keeps a stronger one.
 */
.srk-showcase__tile::after {
	content: "";
	position: absolute;
	inset: 42% 0 0 0;
	background: linear-gradient(180deg, rgba(23,23,26, 0) 0%, rgba(23,23,26, 0.8) 100%);
}

/* The video tile leads, at twice the size, with the play mark over it. */
.srk-showcase__tile--video::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(23,23,26,0) 45%, rgba(23,23,26,.72) 100%);
}
.srk-showcase__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: var(--srk-z-content);
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border-radius: 50%;
	background: var(--srk-red);
	transition: transform .25s ease;
}
.srk-showcase__play::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -11px 0 0 -6px;
	border-style: solid;
	border-width: 11px 0 11px 18px;
	border-color: transparent transparent transparent #fff;
}
.srk-showcase__tile--video:hover .srk-showcase__play { transform: scale(1.08); }

.srk-showcase__label {
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: 18px;
	z-index: var(--srk-z-content);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--srk-white);
	text-align: left;
}

@media (min-width: 700px) {
	.srk-showcase__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.srk-showcase__tile--video:first-child { grid-column: span 2; grid-row: span 2; }
}

/* The questions heading needed room under it. */
.srk-faq .srk-h2 { margin: 0 0 28px; }

/*
 * An image dropped into a panel with Add Media — the system diagrams live here.
 *
 * Held to a thumbnail. Five diagrams at panel width made one column three times the height
 * of its neighbours, and at that size the labels on a technical drawing are unreadable
 * anyway. Small in the copy, full size on a click.
 */
.srk-about__body { display: flow-root; } /* so a float at the end stays inside the panel */
.srk-about__body img {
	float: right;
	max-width: 46%;
	max-height: 140px;
	width: auto;
	height: auto;
	margin: 4px 0 10px 16px;
	padding: 6px;
	background: var(--srk-white);
	border: 1px solid var(--srk-line);
	cursor: zoom-in;
	transition: border-color .2s ease;
}
.srk-about__body img:hover { border-color: var(--srk-red-text); }

/* No float on a phone: half a column is too narrow to read either the copy or the diagram. */
@media (max-width: 700px) {
	.srk-about__body img {
		float: none;
		display: block;
		max-width: 100%;
		max-height: 200px;
		margin: 1.1em 0;
	}
}
.srk-about__body .alignleft,
.srk-about__body .alignright { float: none; margin: 1.1em 0; }
.srk-about__body figure { margin: 1.2em 0; }
.srk-about__body figcaption {
	margin-top: 8px;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--srk-soft);
}
