/*
Theme Name:   ESM - Blocksy child
Template:     blocksy
Description:  Tumblr-shaped feed for Eabha Samantha Murphy.
Version:      2.6.4
*/

:root {
	--esm-cream: #FAF3EE;
	--esm-cream-deep: #F3E7E0;
	--esm-ink: #2B2124;
	--esm-muted: #6B5B5E;
	--esm-faint: #9C8B8D;
	--esm-rose: #A33B4C;
	--esm-rose-deep: #7A2436;
	--esm-blush: #E9CFCB;
	--esm-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--esm-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--esm-measure: 660px;
}

body,
.ct-body {
	background-color: var(--esm-cream);
	color: var(--esm-ink);
	font-family: var(--esm-sans);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .entry-title {
	font-family: var(--esm-serif);
	font-weight: 400;
	letter-spacing: -0.01em;
}

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

.ct-header-search,
.ct-header-button,
.ct-header-cta {
	display: none !important;
}

header [data-id="logo"] img,
.site-branding img {
	border-radius: 50%;
}

/* Plain X and Instagram glyphs, in place of the menu words. */
[data-id="socials"].ct-header-socials .ct-social-box {
	display: flex;
	align-items: center;
	gap: 18px;
}

[data-id="socials"].ct-header-socials a {
	color: var(--esm-ink);
	line-height: 0;
}

[data-id="socials"].ct-header-socials a:hover {
	color: var(--esm-rose);
}

[data-id="socials"].ct-header-socials svg {
	display: block;
	width: 16px;
	height: 16px;
	fill: currentColor;
}

#offcanvas [data-id="socials"].ct-header-socials {
	margin-top: 28px;
}

#offcanvas [data-id="socials"].ct-header-socials a {
	color: rgba(255, 255, 255, 0.85);
}

#offcanvas [data-id="socials"].ct-header-socials a:hover {
	color: var(--esm-rose);
}

.esm-socials {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 8px;
}

.esm-socials a {
	color: var(--esm-ink);
	line-height: 0;
}

.esm-socials a:hover {
	color: var(--esm-rose);
}

.esm-socials svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* Admin-only. Logged-out pages are cached without this. */
.esm-ig {
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid var(--esm-blush);
}

.esm-ig-button {
	padding: 12px 22px;
	font: inherit;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	background: var(--esm-rose);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}

.esm-ig-button:hover {
	background: var(--esm-rose-deep);
}

.esm-ig-button[disabled] {
	opacity: 0.6;
	cursor: default;
}

.esm-ig-note,
.esm-ig-status {
	margin: 10px 0 0;
	font-size: 0.78rem;
	line-height: 1.45;
	color: var(--esm-faint);
}

.esm-ig-status:empty {
	display: none;
}

/* ---------- the feed ---------- */

.esm-feed-inner {
	max-width: var(--esm-measure);
	margin: 0 auto;
	padding: 56px 22px 88px;
}

.esm-post + .esm-post {
	margin-top: 84px;
}

.esm-post-media {
	display: block;
	overflow: hidden;
	border-radius: 3px;
	background: var(--esm-cream-deep);
}

.esm-post-media img {
	display: block;
	width: 100%;
	height: auto;
	/* phone photos come in 3:4 and 9:16 - cap the tall ones so the feed stays scannable */
	max-height: 84vh;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
	            opacity 0.4s ease;
}

.esm-post-media:hover img {
	transform: scale(1.015);
	opacity: 0.96;
}

.esm-post-title {
	margin: 20px 0 10px;
	font-size: clamp(1.3rem, 1.1rem + 1vw, 1.65rem);
	line-height: 1.25;
}

.esm-post-title a {
	color: var(--esm-ink);
	text-decoration: none;
}

.esm-post-title a:hover {
	color: var(--esm-rose);
}

.esm-post-caption {
	color: var(--esm-muted);
	font-size: 1rem;
	line-height: 1.68;
	max-width: 54ch;
}

.esm-post-meta {
	margin-top: 16px;
	font-size: 0.74rem;
	letter-spacing: 0.09em;
	text-transform: lowercase;
	color: var(--esm-faint);
}

.esm-post-meta a {
	color: var(--esm-faint);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.esm-post-meta a:hover {
	color: var(--esm-rose);
	border-bottom-color: var(--esm-blush);
}

.esm-dot { margin: 0 0.5em; }

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

.esm-pagination {
	max-width: var(--esm-measure);
	margin: 0 auto 96px;
	padding: 0 22px;
}

.esm-pagination .nav-links {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.esm-pagination a,
.esm-pagination span {
	padding: 9px 16px;
	border-radius: 999px;
	text-decoration: none;
	color: var(--esm-muted);
	border: 1px solid var(--esm-blush);
}

.esm-pagination .current,
.esm-pagination a:hover {
	background: var(--esm-rose);
	border-color: var(--esm-rose);
	color: #fff;
}

/* ---------- single post ---------- */

.entry-content a {
	color: var(--esm-rose-deep);
	text-decoration-color: var(--esm-blush);
	text-underline-offset: 3px;
}

/* ---------- age gate ---------- */

.age-gate-wrapper,
.age-gate { background-color: var(--esm-cream) !important; }

.age-gate__button,
.age-gate-submit {
	background-color: var(--esm-rose) !important;
	border-color: var(--esm-rose) !important;
}

/* ---------- header: cream, hairline, serif name ---------- */

#header,
.ct-header,
[data-header] .ct-header-root {
	background-color: var(--esm-cream) !important;
	box-shadow: none !important;
	border-bottom: 1px solid rgba(43, 33, 36, 0.08);
}

#header .ct-menu-link,
#header [data-id="trigger"],
#header .ct-header-trigger,
#header .ct-toggle {
	color: var(--esm-ink) !important;
}

#header .ct-menu-link:hover,
#header .current-menu-item > .ct-menu-link {
	color: var(--esm-rose) !important;
}

#header .site-title {
	font-family: var(--esm-serif);
	font-size: 1.05rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--esm-ink) !important;
}

#header .site-description {
	color: var(--esm-muted) !important;
	font-size: 0.72rem;
	letter-spacing: 0.06em;
}

#header .site-logo-container img {
	border-radius: 50%;
}

/* offcanvas / mobile menu panel */
.ct-panel,
.ct-panel-content {
	background-color: var(--esm-cream) !important;
}

/* header row: palette colour 8 is cream, so no override needed */
#header [data-row] {
	background-color: var(--esm-cream) !important;
}


#header .site-title,
#header .site-title a {
	font-family: var(--esm-serif) !important;
	font-weight: 500 !important;
	letter-spacing: 0.01em !important;
	color: var(--esm-ink) !important;
}

/* ground: beat Blocksy's own body rule */
html body,
body.ct-body {
	background-color: var(--esm-cream) !important;
}

/* Blocksy paints the page ground on #main-container */
#main-container,
.ct-container-full,
.site-content,
#main {
	background-color: var(--esm-cream) !important;
}

/* ---------- single ---------- */

.esm-post-title--single {
	font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem);
	margin-top: 26px;
}

.esm-single-content {
	margin-top: 26px;
	font-size: 1.02rem;
	line-height: 1.75;
	color: var(--esm-ink);
}

.esm-single-content p + p {
	margin-top: 1.15em;
}

.esm-postnav {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	max-width: var(--esm-measure);
	margin: 72px auto 96px;
	padding: 24px 22px 0;
	border-top: 1px solid var(--esm-blush);
	font-size: 0.82rem;
}

.esm-postnav a {
	color: var(--esm-muted);
	text-decoration: none;
}

.esm-postnav a:hover {
	color: var(--esm-rose);
}

/* Blocksy's single-post hero sets a light title colour; our ground is cream. */
.esm-post-title,
.esm-post-title a,
.esm-post-title--single {
	color: var(--esm-ink) !important;
}

/* no stray archive headings above the feed */
.page-title,
.entry-header .page-title {
	display: none !important;
}

/* ---------- age gate text ---------- */
.age-gate__heading-title,
.age-gate__heading,
.age-gate h1,
.age-gate h2,
.age-gate h3 {
	color: var(--esm-ink) !important;
	letter-spacing: 0.02em;
}

.age-gate__heading-title,
.age-gate h1 {
	font-family: var(--esm-serif) !important;
	font-weight: 400 !important;
}

.age-gate input[type="text"],
.age-gate input[type="number"] {
	border-radius: 3px !important;
	border-color: rgba(43, 33, 36, 0.25) !important;
	background: #fff !important;
}

/* ---------- footer ---------- */
#main-container + footer,
footer.ct-footer,
[data-footer] {
	background-color: var(--esm-cream) !important;
	border-top: 1px solid rgba(43, 33, 36, 0.08);
	color: var(--esm-muted) !important;
}

footer.ct-footer *,
[data-footer] * {
	color: var(--esm-muted) !important;
}

footer.ct-footer a:hover,
[data-footer] a:hover {
	color: var(--esm-rose) !important;
}

/* ============================================================
   Likes ("loves") + replies
   ============================================================ */

.esm-post-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}

.esm-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.esm-like {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
	font: inherit;
	font-size: 0.74rem;
	letter-spacing: 0.06em;
	color: var(--esm-faint);
	transition: color 0.18s ease;
}

.esm-like svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linejoin: round;
	transition: transform 0.2s ease, fill 0.2s ease;
}

.esm-like:hover,
.esm-like.is-liked {
	color: var(--esm-rose);
}

.esm-like:hover svg {
	transform: scale(1.12);
}

.esm-like.is-liked svg {
	fill: var(--esm-rose);
	stroke: var(--esm-rose);
}

.esm-like.is-sending svg {
	animation: esm-pop 0.45s ease;
}

@keyframes esm-pop {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.4); }
	100% { transform: scale(1); }
}

.esm-like-count:empty {
	display: none;
}

.esm-replies {
	color: var(--esm-faint);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.esm-replies:hover {
	color: var(--esm-rose);
	border-bottom-color: var(--esm-blush);
}

/* ---------- replies ---------- */

.esm-comments {
	margin-top: 64px;
	padding-top: 34px;
	border-top: 1px solid var(--esm-blush);
}

.esm-comments-title {
	margin: 0 0 26px;
	font-size: 1.08rem;
}

.esm-comment-list {
	display: grid;
	gap: 26px;
	margin: 0 0 44px;
	padding: 0;
	list-style: none;
}

.esm-comment {
	display: flex;
	gap: 14px;
}

.esm-comment-avatar img {
	display: block;
	border-radius: 50%;
}

.esm-comment-body {
	min-width: 0;
	flex: 1;
}

.esm-comment-meta {
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-size: 0.78rem;
	color: var(--esm-faint);
}

.esm-comment-author a {
	color: var(--esm-ink);
	font-weight: 500;
	text-decoration: none;
}

.esm-comment-text {
	margin-top: 5px;
	color: var(--esm-muted);
	font-size: 0.95rem;
	line-height: 1.65;
}

.esm-comment-text p + p {
	margin-top: 0.8em;
}

.esm-comment-pending {
	margin-top: 6px;
	font-size: 0.75rem;
	color: var(--esm-rose);
}

.comment-reply-link {
	display: inline-block;
	margin-top: 6px;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: lowercase;
	color: var(--esm-faint);
	text-decoration: none;
}

.comment-reply-link:hover {
	color: var(--esm-rose);
}

.esm-comment .children {
	display: grid;
	gap: 20px;
	margin: 20px 0 0 20px;
	padding: 0;
	list-style: none;
}

/* ---------- reply form ---------- */

.esm-comment-form-title {
	margin: 0 0 6px;
	font-size: 1.02rem;
}

.esm-comment-note {
	margin: 0 0 20px;
	font-size: 0.78rem;
	color: var(--esm-faint);
}

.esm-comments .comment-form > p {
	margin: 0 0 14px;
}

.esm-comments .comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.72rem;
	letter-spacing: 0.09em;
	text-transform: lowercase;
	color: var(--esm-faint);
}

.esm-comments .comment-form input[type="text"],
.esm-comments .comment-form input[type="email"],
.esm-comments .comment-form input[type="url"],
.esm-comments .comment-form textarea {
	width: 100%;
	padding: 11px 12px;
	font: inherit;
	font-size: 0.95rem;
	color: var(--esm-ink);
	background: #fff;
	border: 1px solid var(--esm-blush);
	border-radius: 3px;
}

.esm-comments .comment-form input:focus,
.esm-comments .comment-form textarea:focus {
	outline: none;
	border-color: var(--esm-rose);
}

.esm-submit,
.esm-comments .submit {
	padding: 12px 28px;
	font: inherit;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	background: var(--esm-rose);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.18s ease;
}

.esm-submit:hover,
.esm-comments .submit:hover {
	background: var(--esm-rose-deep);
}

.comment-form-cookies-consent {
	display: flex;
	gap: 8px;
	align-items: baseline;
	font-size: 0.78rem;
	color: var(--esm-faint);
}

.comment-form-cookies-consent label {
	margin: 0;
}

.esm-comments .comments-pagination {
	margin: 0 0 36px;
}

/* Blocksy wraps comment fields in bordered containers - neutralise, then
   style our own inputs. */
.esm-comments .comment-form p,
.esm-comments .comment-form [class*="comment-form-field"] {
	margin: 0 0 14px;
}

.esm-comments .comment-form [class*="comment-form-field"] {
	border: 0 !important;
	background: none !important;
	padding: 0 !important;
}

.esm-comments .comment-form [class*="comment-form-field"] label {
	position: static !important;
	transform: none !important;
	padding: 0 !important;
}

.esm-comments .comment-form input#author,
.esm-comments .comment-form input#email,
.esm-comments .comment-form input#url,
.esm-comments .comment-form textarea#comment {
	height: auto !important;
	min-height: 0 !important;
	line-height: 1.4 !important;
}

.esm-req {
	color: var(--esm-rose);
}

/* Blocksy gives form labels a huge line box; keep them to one small line. */
.esm-comments .comment-form label {
	display: block !important;
	height: auto !important;
	min-height: 0 !important;
	line-height: 1.3 !important;
	padding: 0 0 6px !important;
	margin: 0 !important;
	font-size: 0.72rem !important;
	letter-spacing: 0.09em;
	text-transform: lowercase;
	color: var(--esm-faint) !important;
}

.esm-comments .comment-form label b.required {
	color: var(--esm-rose);
	font-weight: 400;
}

/* gate button text - Blocksy's button rule picks up the muted palette slot */
.age-gate__button,
.age-gate-submit,
.age-gate button[type="submit"] {
	color: #ffffff !important;
}

/* submit button text + tidy the consent row */
.esm-comments .comment-form .submit,
.esm-submit,
button.esm-submit {
	color: #ffffff !important;
}

.comment-form-cookies-consent label {
	font-size: 0.74rem !important;
	line-height: 1.45 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: var(--esm-faint) !important;
}

.comment-form-cookies-consent input[type="checkbox"] {
	margin-right: 8px;
}

/* nobody needs to leave their website under a photo */
.esm-comments .comment-form-field-input-url {
	display: none !important;
}

/* make the consent checkbox actually visible */
.comment-form-cookies-consent input[type="checkbox"] {
	appearance: auto !important;
	-webkit-appearance: checkbox !important;
	width: 15px !important;
	height: 15px !important;
	min-width: 15px;
	margin: 2px 8px 0 0 !important;
	accent-color: var(--esm-rose);
	display: inline-block !important;
}

/* email is optional now - say so, otherwise the field still reads as required */
.esm-comments .comment-form label[for="email"]::after {
	content: " (optional)";
	text-transform: none;
	color: var(--esm-faint);
}

/* ============================================================
   Archive heading (tag / category / author / search)
   ============================================================ */

.esm-archive-head {
	max-width: var(--esm-measure);
	margin: 0 auto;
	padding: 52px 22px 0;
}

.esm-archive-title {
	margin: 0;
	font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem);
	line-height: 1.15;
	color: var(--esm-ink) !important; /* Blocksy's heading colour wins otherwise */
	word-break: break-word;
}

.esm-archive-sub {
	margin: 8px 0 0;
	font-size: 0.74rem;
	letter-spacing: 0.09em;
	text-transform: lowercase;
	color: var(--esm-faint);
}

.esm-feed-inner.has-head {
	padding-top: 36px;
}

.esm-empty {
	color: var(--esm-faint);
}

.esm-search {
	display: flex;
	gap: 8px;
	margin-top: 22px;
}

.esm-search input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 11px 14px;
	font: inherit;
	font-size: 0.95rem;
	color: var(--esm-ink);
	background: #fff;
	border: 1px solid var(--esm-blush);
	border-radius: 999px;
}

.esm-search input[type="search"]:focus {
	outline: none;
	border-color: var(--esm-rose);
}

.esm-search button {
	padding: 0 20px;
	font: inherit;
	font-size: 0.74rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff !important;
	background: var(--esm-rose);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}

/* ============================================================
   Photosets - swipe on phones, arrows on desktop
   ============================================================ */

.esm-set {
	position: relative;
	overflow: hidden;
	border-radius: 3px;
	background: var(--esm-cream-deep);
}

.esm-set-track {
	display: flex;
	aspect-ratio: var(--esm-ratio, 4 / 5);
	max-height: 84vh;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}

.esm-set-track::-webkit-scrollbar {
	display: none;
}

.esm-set-track:focus-visible {
	outline: 2px solid var(--esm-rose);
	outline-offset: -2px;
}

.esm-set-slide {
	display: block;
	flex: 0 0 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.esm-set-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.esm-set-count {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 4px 10px;
	font-size: 0.7rem;
	letter-spacing: 0.06em;
	color: #fff !important; /* Blocksy recolours spans */
	background: rgba(43, 33, 36, 0.7);
	border-radius: 999px;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	pointer-events: none;
}

.esm-set-dots {
	position: absolute;
	right: 0;
	bottom: 12px;
	left: 0;
	display: flex;
	justify-content: center;
	gap: 6px;
	pointer-events: none;
}

.esm-set-dots span {
	width: 6px;
	height: 6px;
	background: rgba(255, 255, 255, 0.55);
	border-radius: 50%;
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease, background 0.2s ease;
}

.esm-set-dots span.is-active {
	background: #fff;
	transform: scale(1.3);
}

.esm-set-nav {
	position: absolute;
	top: 50%;
	width: 38px;
	height: 38px;
	padding: 0;
	font-size: 22px;
	line-height: 1;
	color: var(--esm-ink) !important;
	background: rgba(250, 243, 238, 0.88) !important;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	opacity: 0;
	transform: translateY(-50%);
	transition: opacity 0.2s ease;
}

.esm-set-nav.prev { left: 10px; }
.esm-set-nav.next { right: 10px; }

.esm-set:hover .esm-set-nav,
.esm-set-nav:focus-visible {
	opacity: 1;
}

.esm-set-nav[hidden] {
	display: none;
}

@media (hover: none) {
	.esm-set-nav { display: none; }
}

/* ============================================================
   Lightbox - post pages only
   ============================================================ */

.esm-single-post .esm-photo {
	cursor: zoom-in;
}

html.esm-lb-open {
	overflow: hidden;
}

.esm-lightbox {
	width: 100vw;
	max-width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	padding: 0;
	color: #fff;
	background: rgba(18, 13, 15, 0.97);
	border: 0;
}

.esm-lightbox::backdrop {
	background: rgba(18, 13, 15, 0.97);
}

.esm-lightbox-track {
	display: flex;
	width: 100%;
	height: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	scrollbar-width: none;
}

.esm-lightbox-track::-webkit-scrollbar {
	display: none;
}

.esm-lightbox-slide {
	display: flex;
	flex: 0 0 100%;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 100%;
	padding: max(60px, env(safe-area-inset-top)) 0 max(36px, env(safe-area-inset-bottom));
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.esm-lightbox-slide img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	-webkit-user-drag: none;
	user-select: none;
}

.esm-lightbox-close,
.esm-lightbox-nav {
	position: fixed;
	width: 44px;
	height: 44px;
	padding: 0;
	line-height: 1;
	color: #fff !important;
	background: rgba(255, 255, 255, 0.12) !important;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s ease;
}

.esm-lightbox-close:hover,
.esm-lightbox-nav:hover {
	background: rgba(255, 255, 255, 0.24) !important;
}

.esm-lightbox-close {
	top: max(12px, env(safe-area-inset-top));
	right: 12px;
	font-size: 28px;
}

.esm-lightbox-nav {
	top: 50%;
	font-size: 28px;
	transform: translateY(-50%);
}

.esm-lightbox-nav.prev { left: 14px; }
.esm-lightbox-nav.next { right: 14px; }

.esm-lightbox-nav[hidden] {
	display: none;
}

@media (hover: none) {
	.esm-lightbox-nav { display: none; }
}

.esm-lightbox-count {
	position: fixed;
	top: max(24px, calc(env(safe-area-inset-top) + 12px));
	left: 50%;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.85) !important;
	transform: translateX(-50%);
	pointer-events: none;
}

/* ============================================================
   Explore - tag tiles
   ============================================================ */

.esm-tags {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	max-width: 960px;
	margin: 0 auto;
	padding: 34px 22px 96px;
	list-style: none;
}

@media (min-width: 760px) {
	.esm-tags {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 14px;
	}
	.esm-explore .esm-archive-head {
		max-width: 960px;
	}
}

.esm-tag a {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	text-decoration: none;
	background: var(--esm-cream-deep);
	border-radius: 3px;
}

.esm-tag-cover,
.esm-tag-cover img,
.esm-tag-blank {
	display: block;
	width: 100%;
	height: 100%;
}

.esm-tag-cover img {
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.esm-tag-blank {
	background: linear-gradient(160deg, var(--esm-cream-deep), var(--esm-blush));
}

.esm-tag a:hover .esm-tag-cover img {
	transform: scale(1.04);
}

.esm-tag-label {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 28px 12px 11px;
	background: linear-gradient(to top, rgba(28, 20, 23, 0.72), rgba(28, 20, 23, 0));
}

.esm-tag-name {
	font-family: var(--esm-serif);
	font-size: 1.02rem;
	line-height: 1.2;
	color: #fff !important;
	word-break: break-word;
}

.esm-tag-count {
	font-size: 0.66rem;
	letter-spacing: 0.08em;
	text-transform: lowercase;
	color: rgba(255, 255, 255, 0.82) !important;
}
