/**
 * "Super Enlargement" -- Pete's name (2026-11-05) for the Gallery Hub's own
 * click-to-enlarge detail modal, reused here as a standalone, page-agnostic
 * module instead of being locked inside assets/css/gallery-hub.css. First
 * applied to the creator bio page's gallery (taxonomy-creator.php), which
 * used to open photos in a lightGallery caption-on-image popup -- a
 * different, harder-to-read look Pete asked to replace with this one.
 * Intended to be reused on every other gallery grid on the site eventually
 * (see the memory note "Super Enlargement rollout"), so treat this file as
 * the one shared source for that look -- extend it here, don't fork it
 * per page.
 *
 * Same design tokens as gallery-hub.css's --co-* variables, hardcoded here
 * instead of depending on being nested inside .gallery-hub (this modal
 * needs to work standalone, on pages that never load that file):
 *   --co-clay #ab5a29   --co-pine #3f5e4e   --co-cream #f8f3ef
 *   --co-ink #2e2723     --co-ink-soft #6b5d52   --co-line #d8c7b6
 */

/* --- tile badges (shown on the grid thumbnail, before anyone clicks) --- */
.gh-mark {
	position: absolute;
	z-index: 3;
	font-family: 'Poppins', sans-serif;
	font-weight: 800;
}
.gh-mark--fee {
	left: 8px;
	top: 12px;
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #ab5a29;
	color: #fff;
	font-size: .72rem;
	line-height: 1;
	box-shadow: 0 2px 4px rgba(0,0,0,.35);
}
/* --- reaction total badge, bottom-right of the tile -- same recipe as
   Gallery Hub's own tiles (assets/css/gallery-hub.css), ported here so the
   creator/photographer/collection gallery grids match. --- */
.gh-mark--reactions {
	right: 8px;
	bottom: 8px;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 1px 8px 1px 5px;
	font-size: .72rem;
	font-weight: 800;
	color: #fff;
	background: linear-gradient(rgba(255,100,0,0.82), rgba(230,75,0,0.88)), url('../images/paisley-bg.jpg') center/280px;
	border-radius: 999px;
	box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.gh-mark--reactions img {
	/* !important on width/height: live still carries an old, untracked
	   stock-template rule (.light-gallery figure.overlay img, in
	   custom.css -- not in this repo) that forces width:100% !important
	   on every <img> inside one of these figures. Without matching it,
	   Harry's icon here blows up to fill the whole tile instead of
	   staying a small 26px badge. */
	width: 26px !important;
	height: auto !important;
	display: block;
	box-sizing: content-box;
	background: #fff;
	border-radius: 50%;
	padding: 1px;
}
.gh-mark--rare {
	right: 8px;
	top: 12px;
	padding: 3px 8px;
	font-size: .64rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #f8f3ef;
	background: #3f5e4e;
	border-radius: 3px;
	transform: rotate(2deg);
}
.gh-mark--free {
	left: 8px;
	top: 12px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 50%, #f4d58d 0 40%, transparent 42%),
		conic-gradient(from 0deg, #ab5a29 0 100%);
	-webkit-mask: radial-gradient(circle at 50% 50%, #000 0 46%, transparent 48%),
		repeating-conic-gradient(from 0deg, #000 0 8deg, transparent 8deg 22deg);
	mask: radial-gradient(circle at 50% 50%, #000 0 46%, transparent 48%),
		repeating-conic-gradient(from 0deg, #000 0 8deg, transparent 8deg 22deg);
	opacity: .9;
}
.gh-mark--blocked::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(135deg,
		transparent calc(50% - 1.5px),
		#c0392b calc(50% - 1.5px),
		#c0392b calc(50% + 1.5px),
		transparent calc(50% + 1.5px));
}

/* --- the modal itself --- */
.gh-modal { position: fixed; inset: 0; z-index: 9999; display: flex; }
.gh-modal[hidden] { display: none; }
.gh-modal-scrim { position: absolute; inset: 0; background: rgba(46, 39, 35, .62); }
.gh-modal-card {
	position: relative;
	margin: auto;
	width: min(1200px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	overflow: auto;
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	background: #f8f3ef;
	border-radius: 18px;
	box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
}
@media (max-width: 720px) {
	.gh-modal-card { grid-template-columns: 1fr; }
}
.gh-modal-x {
	position: absolute; top: 8px; right: 12px;
	appearance: none; border: 0; background: transparent;
	font-size: 2rem; line-height: 1; color: #2e2723; cursor: pointer;
	z-index: 2;
}
.gh-modal-figure { background: #000; }
.gh-modal-figure img { width: 100%; height: 100%; max-height: 82vh; object-fit: contain; display: block; }
.gh-modal-body { padding: 26px 26px 30px; }
.gh-modal-title {
	margin: 0 0 6px;
	font-family: 'Pacifico', cursive;
	font-weight: 400;
	font-size: 1.6rem;
	color: #2e2723;
}
.gh-modal-meta { margin: 0 0 14px; font-size: .86rem; color: #6b5d52; }
.gh-modal-meta a { color: #ab5a29; font-weight: 700; text-decoration: underline; }

/* --- reaction buttons inside the modal --- */
.gh-reaction-heading { margin: 0 0 8px; font-family: 'Poppins', sans-serif; font-weight: 900; color: #8e0079; }
.gh-modal-reaction:empty { display: none; }
.gh-modal-reaction { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0 0 16px; }
.gh-reaction-btn {
	display: inline-flex; align-items: center; gap: 6px;
	font-family: 'Poppins', sans-serif; font-size: .82rem; color: #fff;
	background: linear-gradient(rgba(255,100,0,0.82), rgba(230,75,0,0.88)),
		url('../images/paisley-bg.jpg') center/280px;
	border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer;
	box-shadow: 0 1px 4px rgba(0,0,0,.3); transition: filter 0.12s ease;
}
.gh-reaction-btn:hover:not(:disabled) { filter: brightness(1.1); }
.gh-reaction-btn:disabled { cursor: default; opacity: .75; }
/* A plain, non-interactive "total shower" -- same pill, no hover/click
   affordance (used for a creator's hero total, which isn't a vote button). */
.gh-reaction-btn--static { cursor: default; }
.gh-reaction-btn--static:hover { filter: none; }
.gh-reaction-icons { display: inline-flex; align-items: center; gap: 3px; }
.gh-reaction-icons img { width: 34px; height: auto; display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.gh-reaction-label { font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.gh-reaction-count { color: #fff; opacity: .9; margin-left: 2px; padding-left: 6px; border-left: 1px solid rgba(255,255,255,.5); text-shadow: 0 1px 2px rgba(0,0,0,.4); }

/* --- price / sale block --- */
.gh-modal-price { border-top: 2px dashed #d8c7b6; border-bottom: 2px dashed #d8c7b6; padding: 8px 0; margin: 0 0 18px; font-family: 'Poppins', sans-serif; }
.gh-price-fee { font-size: 1.4rem; font-weight: 800; color: #ab5a29; }
.gh-price-free { font-size: 1.35rem; font-weight: 800; color: #3f5e4e; }
.gh-price-note { display: block; margin-top: 4px; font-size: .82rem; font-weight: 400; color: #6b5d52; }
.gh-price-note--cta { margin-top: 2px; font-weight: 700; line-height: 1.3; color: #8e0079; }
.gh-price-given { display: block; margin-top: 8px; font-size: .84rem; color: #2e2723; }
.gh-price-given a { color: #ab5a29; font-weight: 700; }
.gh-price-free--blocked, .gh-price-note--blocked { text-decoration: line-through; text-decoration-color: #c0392b; text-decoration-thickness: 2px; opacity: .6; }
.gh-stock-notice {
	display: block; margin-top: 10px; padding: 8px 12px;
	font-size: .8rem; font-weight: 600; line-height: 1.35;
	color: #7a2718; background: #fdece7; border: 1px solid #e8b4a4; border-radius: 8px;
}

/* --- lightGallery caption title (taxonomy-creator/photographer/collection.php) ---
   Pete, 2026-11-05: checked the mobile view while rolling this out sitewide --
   the fixed 3em title overwhelmed a phone-width caption (lightGallery's own
   .lg-sub-html is full-width with 40px side padding, so a phone really only
   gets ~300px of room here). Shrinks on narrow screens instead. */
.gh-caption-title { font-size: 3em; min-width: 300px; }
@media (max-width: 480px) {
	.gh-caption-title { font-size: 1.6em; min-width: 0; }
}

/* --- main CTA --- */
.gh-cta {
	display: inline-block;
	background: linear-gradient(rgba(142,0,121,0.60),rgba(107,0,91,0.70)), url('../images/paisley-bg.jpg') center/280px;
	border: 2px solid rgba(0,0,0,0.55);
	color: #fff;
	padding: 10px 28px;
	border-radius: 50px;
	font-family: 'Poppins', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(0,0,0,0.35);
	white-space: nowrap;
}
.gh-cta:hover { filter: brightness(1.08); }
.gh-cta[hidden] { display: none; }
