/* RY photo booth template gallery (U3c; designs managed in WordPress since U3e). Dark & gold, built on the ry-design
   tokens. Loaded only on the gallery pages. */
.ry-tpl,
.ry-tpl-page-intro,
.ry-tpl-related {
	--tpl-surface: var(--ry-c-surface, #171614);
	--tpl-line: var(--ry-c-line, rgba(244, 241, 234, 0.1));
	--tpl-line-gold: var(--ry-c-line-gold, rgba(212, 175, 55, 0.34));
	--tpl-heading: var(--ry-c-heading, #f6f2ea);
	--tpl-text: var(--ry-c-text, #d2ccc1);
	--tpl-muted: var(--ry-c-muted, #a7a093);
	--tpl-gold: var(--ry-c-gold, #d4af37);
	--tpl-gold-light: var(--ry-c-gold-light, #ead27e);
	--tpl-on-gold: var(--ry-c-on-gold, #15130e);
	--tpl-paper: #f1ede4; /* light tile behind the previews (their own background is white) */
	--tpl-display: var(--ry-font-display, "Playfair Display", Georgia, serif);
	--tpl-sans: var(--ry-font-sans, Mulish, "Segoe UI", Arial, sans-serif);
}

.ry-tpl {
	color: var(--tpl-text);
	font-family: var(--tpl-sans);
}

.ry-tpl *,
.ry-tpl *::before,
.ry-tpl *::after {
	box-sizing: border-box;
}

.ry-tpl :focus-visible {
	outline: 2px solid var(--tpl-gold);
	outline-offset: 3px;
}

/* Page parts written in the block editor ---------------------------------------------------- */
.ry-tpl-page-intro {
	max-width: 760px;
	color: var(--tpl-text);
	font-size: 17px;
	line-height: 1.7;
}

.ry-tpl-related {
	margin-top: clamp(40px, 6vw, 72px);
	padding-top: 28px;
	border-top: 1px solid var(--tpl-line);
}

.site-main .ry-tpl-related ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.site-main .ry-tpl-related li {
	margin: 0;
}

.site-main .ry-tpl-related li a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid rgba(244, 241, 234, 0.35);
	border-radius: 2px;
	color: var(--tpl-heading);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.site-main .ry-tpl-related li a:hover,
.site-main .ry-tpl-related li a:focus {
	border-color: var(--tpl-gold);
	color: var(--tpl-gold);
}

/* ry-design.css underlines links in running copy (any "li a" on inner pages). The event cards, event links and
   related links are cards and chips, not copy: ":not(#ry-tpl)" lifts these rules above it without !important. */
.ry-tpl a.ry-tpl-ev__link:not(#ry-tpl),
.ry-tpl .ry-tpl-evnav a:not(#ry-tpl),
.site-main .ry-tpl-related li a:not(#ry-tpl) {
	text-decoration: none;
}

.ry-tpl a.ry-tpl-ev__link:not(#ry-tpl) {
	color: inherit;
}

.ry-tpl .ry-tpl-evnav a:not(#ry-tpl),
.site-main .ry-tpl-related li a:not(#ry-tpl) {
	color: var(--tpl-heading);
}

.ry-tpl .ry-tpl-evnav a:not(#ry-tpl):hover,
.ry-tpl .ry-tpl-evnav a:not(#ry-tpl):focus-visible,
.site-main .ry-tpl-related li a:not(#ry-tpl):hover,
.site-main .ry-tpl-related li a:not(#ry-tpl):focus {
	color: var(--tpl-gold-light);
}

.ry-tpl .ry-tpl-evnav a[aria-current="page"]:not(#ry-tpl) {
	color: var(--tpl-on-gold);
}

/* Sections ---------------------------------------------------------------------------------- */
.ry-tpl-section {
	margin: clamp(36px, 5vw, 60px) 0 0;
}

.ry-tpl-section > h2 {
	margin: 0 0 18px;
}

.ry-tpl .ry-tpl-note {
	max-width: 74ch;
	margin: 18px 0 0;
	color: var(--tpl-muted);
	font-size: 0.9375rem;
	line-height: 1.65;
}

.ry-tpl .ry-tpl-note a {
	color: var(--tpl-gold-light);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Steps ------------------------------------------------------------------------------------------ */
.ry-tpl-step {
	display: block;
	margin: 0 0 4px;
	color: var(--tpl-gold);
	font: 700 0.8125rem/1.3 var(--tpl-sans);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ry-tpl .ry-tpl-section > h2:focus {
	outline: none;
}

.ry-tpl .ry-tpl-step-intro {
	max-width: 70ch;
	margin: -6px 0 18px;
	color: var(--tpl-muted);
	font-size: 0.9375rem;
}

/* Step 1: layout tiles */
.ry-tpl .ry-tpl-lays__title {
	margin: 22px 0 12px;
	color: var(--tpl-heading);
	font: 700 1rem/1.4 var(--tpl-sans);
}

.ry-tpl .ry-tpl-lays {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	max-width: 860px;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ry-tpl .ry-tpl-lays li {
	margin: 0;
}

.ry-tpl .ry-tpl-lay {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 16px 10px 14px;
	border: 1px solid var(--tpl-line);
	border-radius: 10px;
	background: var(--tpl-surface);
	color: var(--tpl-text);
	font: 400 0.875rem/1.35 var(--tpl-sans);
	text-align: center;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ry-tpl .ry-tpl-lay:hover {
	border-color: var(--tpl-line-gold);
}

.ry-tpl .ry-tpl-lay[aria-pressed="true"] {
	border-color: var(--tpl-gold);
	background: rgba(212, 175, 55, 0.12);
	box-shadow: inset 0 0 0 1px var(--tpl-gold);
}

.ry-tpl-lay__svg {
	display: block;
	width: auto;
	height: 96px;
	margin: 0 0 10px;
}

.ry-tpl-lay__svg--landscape {
	height: 64px;
	margin: 16px 0 26px; /* same overall height as the portrait diagrams */
}

.ry-tpl-lay__paper {
	fill: var(--tpl-paper);
	stroke: rgba(244, 241, 234, 0.5);
	stroke-width: 1;
}

.ry-tpl-lay__photo {
	fill: #b9b2a5;
}

.ry-tpl-lay__person {
	fill: #8e8778;
}

.ry-tpl-lay__text {
	fill: #b48f2d;
}

.ry-tpl-lay__name {
	color: var(--tpl-heading);
	font-weight: 700;
}

.ry-tpl-lay__count {
	margin-top: 4px;
	color: var(--tpl-gold);
	font-size: 0.8125rem;
	font-weight: 700;
}

/* Without designs the layout cards are information only (nothing to choose). */
.ry-tpl .ry-tpl-lay--static,
.ry-tpl .ry-tpl-lay--static:hover {
	border-color: var(--tpl-line);
	cursor: default;
}

/* A category (or the whole gallery) without designs yet */
.ry-tpl .ry-tpl-soon {
	max-width: 760px;
	margin: clamp(24px, 4vw, 36px) 0 0;
	padding: 18px 22px;
	border: 1px solid var(--tpl-line-gold);
	border-radius: 10px;
	background: rgba(212, 175, 55, 0.08);
	color: var(--tpl-heading);
	font-size: 1.0625rem;
	font-weight: 600;
}

/* Step 2: hidden until a layout is chosen (the page works without the script: everything shows) */
html.ry-tpl-js .ry-tpl:not(.ry-tpl--nojs) .ry-tpl-step2:not(.is-open) {
	display: none;
}

.ry-tpl .ry-tpl-chosen {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 14px;
	margin: -4px 0 18px;
	color: var(--tpl-text);
}

.ry-tpl .ry-tpl-chosen strong {
	color: var(--tpl-heading);
}



.ry-tpl .ry-tpl-grid[hidden] {
	display: none;
}

.ry-tpl-chip__n {
	opacity: 0.75;
}

/* Overview: one card per event --------------------------------------------------------------- */
.ry-tpl .ry-tpl-evgrid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ry-tpl .ry-tpl-ev {
	margin: 0;
}

.ry-tpl a.ry-tpl-ev__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--tpl-line);
	border-radius: 10px;
	background: var(--tpl-surface);
	color: inherit;
	text-decoration: none;
	transition: border-color 0.2s ease;
}

.ry-tpl a.ry-tpl-ev__link:hover,
.ry-tpl a.ry-tpl-ev__link:focus-visible {
	border-color: var(--tpl-gold);
}

.ry-tpl-ev__thumbs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	align-items: center;
	padding: 14px;
	background: var(--tpl-paper);
}

.ry-tpl-ev__thumbs img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 160px;
	object-fit: contain;
	mix-blend-mode: multiply;
}

/* No designs yet: three empty print outlines in place of the previews */
.ry-tpl-ev__thumbs--soon {
	justify-items: center;
	min-height: 132px;
	opacity: 0.55;
}

.ry-tpl-ev__thumbs--soon .ry-tpl-lay__svg {
	height: 84px;
	margin: 0;
}

.ry-tpl-ev__thumbs--soon .ry-tpl-lay__svg--landscape {
	height: 56px;
	margin: 0;
}

.ry-tpl .ry-tpl-ev--soon .ry-tpl-ev__count {
	color: var(--tpl-muted);
	font-weight: 600;
	letter-spacing: 0;
}

.ry-tpl-ev__name {
	padding: 16px 18px 2px;
	color: var(--tpl-heading);
	font: 500 1.375rem/1.2 var(--tpl-display);
}

.ry-tpl-ev__count {
	padding: 0 18px 18px;
	color: var(--tpl-gold);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

/* Event pages: links to the other events ------------------------------------------------------ */
.ry-tpl .ry-tpl-evnav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ry-tpl .ry-tpl-evnav li {
	margin: 0;
}

.ry-tpl .ry-tpl-evnav a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 42px;
	padding: 8px 15px;
	border: 1px solid var(--tpl-line);
	border-radius: 999px;
	color: var(--tpl-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.ry-tpl .ry-tpl-evnav a:hover,
.ry-tpl .ry-tpl-evnav a:focus-visible {
	border-color: var(--tpl-gold);
	color: var(--tpl-gold-light);
}

.ry-tpl .ry-tpl-evnav a[aria-current="page"] {
	border-color: var(--tpl-gold);
	background: var(--tpl-gold);
	color: var(--tpl-on-gold);
}

.ry-tpl-evnav__n {
	font-size: 0.8125rem;
	opacity: 0.75;
}

/* Search and style filter --------------------------------------------------------------------- */
.ry-tpl .ry-tpl-tools {
	display: grid;
	gap: 14px;
	margin: 0 0 18px;
	padding: 16px;
	border: 1px solid var(--tpl-line);
	border-radius: 10px;
	background: var(--tpl-surface);
}

.ry-tpl .ry-tpl-tools[hidden],
.ry-tpl [data-ry-tpl-js][hidden] {
	display: none;
}

.ry-tpl .ry-tpl-field label {
	display: block;
	margin: 0 0 6px;
	color: var(--tpl-heading);
	font-size: 0.9375rem;
	font-weight: 700;
}

.ry-tpl .ry-tpl-field input {
	width: 100%;
	max-width: 480px;
	min-height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid rgba(244, 241, 234, 0.22);
	border-radius: 4px;
	background: #0f0f0e;
	color: var(--tpl-heading);
	font: 16px/1.2 var(--tpl-sans);
	box-shadow: none;
}

.ry-tpl .ry-tpl-field input::placeholder {
	color: #8f897f;
	opacity: 1;
}

.ry-tpl .ry-tpl-field input:focus {
	border-color: var(--tpl-gold);
	outline: none;
	box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

.ry-tpl .ry-tpl-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ry-tpl .ry-tpl-chip {
	min-height: 40px;
	margin: 0;
	padding: 8px 14px;
	border: 1px solid rgba(244, 241, 234, 0.22);
	border-radius: 999px;
	background: transparent;
	color: var(--tpl-text);
	font: 600 0.875rem/1.2 var(--tpl-sans);
	cursor: pointer;
}

.ry-tpl .ry-tpl-chip:hover {
	border-color: var(--tpl-gold);
}

.ry-tpl .ry-tpl-chip[aria-pressed="true"] {
	border-color: var(--tpl-gold);
	background: rgba(212, 175, 55, 0.16);
	color: var(--tpl-gold-light);
}

.ry-tpl .ry-tpl-count {
	margin: 0 0 16px;
	color: var(--tpl-muted);
	font-size: 0.9375rem;
}

.ry-tpl .ry-tpl-count:empty {
	display: none;
}

/* Template grid ------------------------------------------------------------------------------- */
.ry-tpl .ry-tpl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 28px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ry-tpl .ry-tpl-card {
	min-width: 0;
	margin: 0;
}

.ry-tpl .ry-tpl-card[hidden] {
	display: none;
}

/* Before the script runs, show only the first page of cards (no jump when it hides the rest). */
html.ry-tpl-js .ry-tpl--event:not(.ry-tpl--ready) .ry-tpl-card:nth-child(n + 25) {
	display: none;
}

.ry-tpl .ry-tpl-card__open {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: none;
	cursor: zoom-in;
}

.ry-tpl-card__frame {
	display: grid;
	place-items: center;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	padding: 12px;
	border-radius: 10px;
	background: var(--tpl-paper);
}

.ry-tpl-card__frame img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 100%;
	mix-blend-mode: multiply;
	transition: transform 0.3s ease;
}

.ry-tpl .ry-tpl-card__open:hover img {
	transform: scale(1.04);
}

.ry-tpl .ry-tpl-card__id {
	margin: 10px 0 0;
	color: var(--tpl-gold);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
}

.ry-tpl .ry-tpl-card__name {
	margin: 2px 0 0;
	color: var(--tpl-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
}

.ry-tpl .ry-tpl-card__styles {
	margin: 3px 0 0;
	color: var(--tpl-muted);
	font-size: 0.8125rem;
	line-height: 1.4;
}

.ry-tpl .ry-tpl-more {
	display: flex;
	justify-content: center;
	margin: 30px 0 0;
}

.ry-tpl .ry-tpl-none {
	margin: 8px 0 0;
	padding: 24px;
	border: 1px dashed var(--tpl-line-gold);
	border-radius: 10px;
	color: var(--tpl-text);
	text-align: center;
}

.ry-tpl .ry-tpl-none[hidden] {
	display: none;
}

/* Buttons --------------------------------------------------------------------------------------- */
.ry-tpl .ry-tpl-btn,
.ry-tpl a.ry-tpl-btn,
.ry-tpl a.ry-tpl-btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	margin: 0;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: 3px;
	background: var(--tpl-gold);
	color: var(--tpl-on-gold);
	font: 700 0.9375rem/1.2 var(--tpl-sans);
	letter-spacing: 0.04em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.25s ease, border-color 0.2s ease, color 0.2s ease;
}

.ry-tpl .ry-tpl-btn:hover,
.ry-tpl a.ry-tpl-btn:hover,
.ry-tpl .ry-tpl-btn:focus,
.ry-tpl .ry-tpl-btn:active {
	background: var(--tpl-gold-light); /* the theme greys out focused buttons */
	color: var(--tpl-on-gold);
}

.ry-tpl .ry-tpl-btn--ghost,
.ry-tpl .ry-tpl-btn--ghost:visited {
	border-color: rgba(244, 241, 234, 0.32);
	background: transparent;
	color: var(--tpl-heading);
}

.ry-tpl .ry-tpl-btn--ghost:hover,
.ry-tpl .ry-tpl-btn--ghost:focus,
.ry-tpl .ry-tpl-btn--ghost:active {
	border-color: var(--tpl-gold);
	background: rgba(212, 175, 55, 0.08);
	color: var(--tpl-gold-light);
}

.ry-tpl .ry-tpl-btn[hidden] {
	display: none;
}

.ry-tpl .ry-tpl-link {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--tpl-gold-light);
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* Larger preview -------------------------------------------------------------------------------- */
.ry-tpl .ry-tpl-dialog {
	width: min(1180px, calc(100vw - 24px));
	max-width: none;
	max-height: calc(100dvh - 24px);
	margin: auto;
	padding: 0;
	overflow: auto;
	border: 1px solid var(--tpl-line-gold);
	border-radius: 12px;
	background: var(--tpl-surface);
	color: var(--tpl-text);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.ry-tpl .ry-tpl-dialog::backdrop {
	background: rgba(0, 0, 0, 0.74);
}

.ry-tpl-dialog__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
}

.ry-tpl .ry-tpl-dialog__figure {
	display: grid;
	place-items: center;
	margin: 0;
	padding: 28px;
	background: var(--tpl-paper);
}

/* The larger preview at its own size, up to the space available (never cropped, never enlarged; "contain" keeps the
   proportions when the height limit applies). A small preview (under 360 px wide) keeps its own size. */
.ry-tpl-dialog__figure img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: min(76dvh, 820px);
	object-fit: contain;
	mix-blend-mode: multiply;
}

.ry-tpl-dialog__figure img.is-small {
	width: auto;
	max-width: 100%;
}

.ry-tpl-dialog__info {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px 28px 22px;
}

.ry-tpl .ry-tpl-dialog__id {
	margin: 0;
	padding-right: 48px;
	color: var(--tpl-gold);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.ry-tpl .ry-tpl-dialog__title {
	margin: 0;
	padding-right: 40px;
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	line-height: 1.15;
}

.ry-tpl .ry-tpl-dialog__styles,
.ry-tpl .ry-tpl-dialog__note,
.ry-tpl .ry-tpl-dialog__hint {
	margin: 0;
	color: var(--tpl-muted);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.ry-tpl .ry-tpl-dialog__styles {
	color: var(--tpl-text);
}

.ry-tpl-dialog__choose {
	display: grid;
	gap: 10px;
	margin-top: 6px;
	padding-top: 16px;
	border-top: 1px solid var(--tpl-line);
}

.ry-tpl .ry-tpl-dialog__label {
	color: var(--tpl-heading);
	font-size: 0.875rem;
	font-weight: 700;
}

.ry-tpl .ry-tpl-dialog__text {
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid rgba(244, 241, 234, 0.22);
	border-radius: 4px;
	background: #0f0f0e;
	color: var(--tpl-heading);
	font: 15px/1.2 var(--tpl-sans);
}

.ry-tpl-dialog__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ry-tpl .ry-tpl-dialog__status {
	min-height: 1.5em;
	margin: 0;
	color: var(--tpl-gold-light);
	font-size: 0.9375rem;
}

.ry-tpl-dialog__nav {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-top: 6px;
}

.ry-tpl .ry-tpl-dialog__step,
.ry-tpl .ry-tpl-dialog__close {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(244, 241, 234, 0.25);
	border-radius: 50%;
	background: transparent;
	color: var(--tpl-heading);
	cursor: pointer;
}

.ry-tpl .ry-tpl-dialog__step:hover:not(:disabled),
.ry-tpl .ry-tpl-dialog__close:hover {
	border-color: var(--tpl-gold);
	color: var(--tpl-gold-light);
}

.ry-tpl .ry-tpl-dialog__step:disabled {
	opacity: 0.35;
	cursor: default;
}

.ry-tpl .ry-tpl-dialog__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 1;
	background: rgba(23, 22, 20, 0.9);
}

.ry-tpl-dialog__pos {
	color: var(--tpl-muted);
	font-size: 0.875rem;
}

html.ry-tpl-modal {
	overflow: hidden;
}

/* Responsive ------------------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.ry-tpl .ry-tpl-evgrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.ry-tpl-dialog__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.ry-tpl .ry-tpl-dialog__figure {
		padding: 56px 18px 18px;
	}

	.ry-tpl-dialog__figure img,
	.ry-tpl-dialog__figure img.is-small {
		max-height: 48dvh;
	}

	.ry-tpl-dialog__info {
		padding: 20px 18px 18px;
	}

	.ry-tpl .ry-tpl-dialog__id,
	.ry-tpl .ry-tpl-dialog__title {
		padding-right: 0;
	}
}

@media (max-width: 640px) {
	/* one scrolling row of event links instead of several wrapped rows */
	.ry-tpl .ry-tpl-evnav ul {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 6px;
		scrollbar-width: thin;
	}
}

@media (max-width: 560px) {
	.ry-tpl .ry-tpl-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px 12px;
	}

	.ry-tpl-card__frame {
		padding: 8px;
	}

	.ry-tpl .ry-tpl-tools {
		padding: 12px;
	}

	.ry-tpl-dialog__actions .ry-tpl-btn {
		flex: 1 1 100%;
	}

	.ry-tpl .ry-tpl-lays {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.ry-tpl-lay__svg {
		height: 80px;
	}

	.ry-tpl-lay__svg--landscape {
		height: 54px;
		margin: 13px 0 23px;
	}
}

@media (max-width: 480px) {
	.ry-tpl .ry-tpl-evgrid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ry-tpl-card__frame img,
	.ry-tpl a.ry-tpl-ev__link,
	.ry-tpl .ry-tpl-btn {
		transition: none;
	}

	.ry-tpl .ry-tpl-card__open:hover img {
		transform: none;
	}
}
