/*
 * Idol Gallery ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â‚¬Å¾Ã‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¦ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â design system.
 *
 * Layout model: a CSS grid masonry. Cards are portrait media with an overlay
 * title bar, tag pills over the artwork and a compact rating pill in the card
 * footer. Colours, spacing and type scale follow the reference gallery.
 */

:root {
	/* Palette */
	--ig-bg: #f8f6fb;
	--ig-surface: #ffffff;
	--ig-text: #363636;
	--ig-text-soft: #5c5c5c;
	--ig-nav-text: #3e3e3e;
	--ig-accent: #7144b1;
	--ig-accent-hover: #603996;
	--ig-accent-soft: #eae3f3;
	--ig-accent-line: #b8a2d8;
	/* Brand ramp, kept in step with the accent so the mark reads as part of the
	   theme rather than a separate red stamp. */
	--ig-brand: var(--ig-accent);
	--ig-brand-deep: var(--ig-accent-hover);
	--ig-brand-soft: #c9aef0;
	--ig-rating-good: #5c5c5c;
	--ig-vote-up: #00960e;
	--ig-vote-down: #dc3545;
	--ig-border: #e7e2ef;

	/* Shape and elevation */
	--ig-radius: 5px;
	--ig-radius-lg: 12px;
	--ig-shadow: 0 0 8px rgba(96, 68, 105, 0.33);
	--ig-shadow-soft: 0 0 12px 0 rgba(0, 0, 0, 0.1);

	/* Grid */
	--ig-card-min: 350px;
	--ig-gap: 14px;
	--ig-row: 14px;

	/* Chrome */
	--ig-header-h: 116px;
	--ig-container: 1320px;
}

/* ---------------------------------------------------------------- base ---- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--ig-bg);
	color: var(--ig-text);
	font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--ig-accent);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--ig-accent-hover);
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.5em;
	line-height: 1.25;
	color: var(--ig-text);
}

button {
	font: inherit;
	color: inherit;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 16px;
	background: var(--ig-surface);
	border-radius: var(--ig-radius);
	box-shadow: var(--ig-shadow);
}

.site-wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main {
	flex: 1 0 auto;
	width: 100%;
	max-width: var(--ig-container);
	margin: 0 auto;
}

/* -------------------------------------------------------------- header ---- */

.site-header {
	position: static;
	background: transparent;
}

/*
 * One-row bar: the wordmark and the primary menu share a single line, with the
 * menu set a fixed distance to the right of the lockup. The bar is capped at the
 * content width, so the header lines up with the grid below it.
 */

.navbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0 6px;
	width: 100%;
	max-width: var(--ig-container);
	margin: 0 auto;
	padding: 10px 12px;
	overflow: visible;
}

.navbar-toggler {
	display: none;
	flex: 0 0 auto;
	width: 46px;
	height: 34px;
	margin-right: auto;
	padding: 7px 8px;
	background: none;
	border: 0;
	border-radius: var(--ig-radius);
	cursor: pointer;
}

.navbar-toggler-bar {
	display: block;
	height: 2px;
	margin: 4px 0;
	background: var(--ig-nav-text);
	border-radius: 2px;
}

.header-start {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 0;
}

/*
 * Both bar groups share one track, so the menu sits on exactly the same
 * vertical rhythm as the lockup instead of drifting on its own axis.
 */
.header-start-inner,
.header-end-inner {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: var(--ig-container);
	margin: 0 auto;
}

/*
 * The lockup marks the left edge of the bar; everything else hangs off it.
 */
.header-start-inner {
	justify-content: flex-start;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: auto;
}

.brand-logo {
	display: block;
	width: auto;
	height: 36px;
}


.brand--text {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 11px;
	width: auto;
	color: var(--ig-text);
	line-height: 1;
	text-transform: none;
}

/* The badge is the only part of the lockup that moves on hover. */
.brand--text .brand-mark {
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.brand--text:hover .brand-mark,
.brand--text:focus-visible .brand-mark {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(113, 68, 177, 0.42);
}

.brand-text {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1px;
}

/*
 * Exactly one brand variant is visible per breakpoint. These must come after
 * .brand--text, which also sets `display`; equal specificity means the later
 * rule wins, and previously both variants rendered in the desktop header.
 */
.brand--mobile {
	display: none;
}

@media (max-width: 991px) {
	.brand--desktop {
		display: none;
	}

	.brand--mobile {
		display: inline-flex;
	}
}

.brand-title {
	color: var(--ig-brand);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.26em;
	text-transform: uppercase;
}

.brand-name {
	color: var(--ig-text);
	font-size: 25px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	text-transform: none;
}

.brand--text:hover .brand-name,
.brand--text:focus .brand-name {
	color: var(--ig-brand);
}

.brand-mark {
	display: block;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
}

.header-end {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 0;
	border-top: 0;
}

/*
 * The lockup holds the left edge and the menu takes the right, so the bar reads
 * as a full-width masthead instead of one left-hugging cluster.
 */
.header-end-inner {
	justify-content: flex-end;
	padding-left: 34px;
}

.nav-list {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-list .nav-item {
	position: relative;
}

.nav-list .nav-link {
	display: inline-block;
	padding: 12px 14px;
	color: var(--ig-nav-text);
	font-size: 18px;
	font-weight: 400;
	text-transform: uppercase;
	border-bottom: 3px solid transparent;
}

.nav-list .nav-link:hover,
.nav-list .nav-link:focus {
	color: var(--ig-accent);
	border-bottom-color: var(--ig-accent-line);
}

.nav-list .current-menu-item > .nav-link,
.nav-list .current_page_item > .nav-link,
.nav-list .current-menu-ancestor > .nav-link {
	border-bottom-color: var(--ig-accent-line);
	color: var(--ig-accent);
}

.nav-list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 40;
	display: none;
	min-width: 200px;
	max-height: 70vh;
	overflow-y: auto;
	margin: 0;
	padding: 6px;
	background: var(--ig-surface);
	border-radius: var(--ig-radius);
	box-shadow: var(--ig-shadow);
	list-style: none;
}

.nav-list .nav-item:hover > .sub-menu,
.nav-list .nav-item:focus-within > .sub-menu,
.nav-list .nav-item.is-open > .sub-menu {
	display: block;
}

.nav-list .sub-menu a {
	display: block;
	padding: 8px 12px;
	color: var(--ig-nav-text);
	font-size: 14px;
	text-transform: uppercase;
	border-radius: var(--ig-radius);
}

.nav-list .sub-menu a:hover {
	background: var(--ig-accent-soft);
	color: var(--ig-accent);
}

/* ----------------------------------------------------- grid + masonry ---- */

.feed,
.page-wrap {
	width: 100%;
	max-width: var(--ig-container);
	margin: 0 auto;
	padding: 0 12px;
}

.grid-cell {
	padding: 4px;
}

.grid-cell > .card {
	width: 100%;
}

.feed-hero,
.archive-header {
	padding: 16px 4px 10px;
}

.feed-title,
.archive-title,
.error-title {
	margin: 0 0 6px;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.15;
}

.feed-subtitle,
.archive-description,
.archive-meta {
	margin: 0 0 6px;
	color: var(--ig-text-soft);
	font-size: 16px;
}

.feed-count {
	margin: 0;
	color: var(--ig-text-soft);
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.grid {
	display: grid;
	grid-gap: var(--ig-gap);
	grid-template-columns: repeat(auto-fill, minmax(var(--ig-card-min), 1fr));
	grid-auto-rows: var(--ig-row);
	padding: 0 0 60px;
	margin: 0;
	list-style: none;
}

.grid-cell {
	grid-row-end: span var(--ig-span, 22);
	min-width: 0;
	padding: 10px;
}

.card {
	position: relative;
	background: var(--ig-surface);
	border-radius: var(--ig-radius);
	box-shadow: var(--ig-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.feed-hero + .grid,
.archive-header + .grid {
	padding-top: 4px;
}

/* ---------------------------------------------------------------- card ---- */

.post-image-wrapper {
	position: relative;
	overflow: hidden;
	border-radius: var(--ig-radius) var(--ig-radius) 0 0;
}

.post-image-link,
.post-image {
	display: block;
}

.post-image img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.card:hover .post-image img {
	transform: scale(1.03);
}

.card-image--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 200px;
	background: var(--ig-accent-soft);
	color: var(--ig-accent);
	font-size: 64px;
	font-weight: 700;
	text-transform: uppercase;
}

.post-categories {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	flex-wrap: wrap;
	padding: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	pointer-events: none;
}

.post-categories .btn-tag {
	pointer-events: auto;
}

a.btn.btn-tag,
.btn.btn-tag {
	display: inline-block;
	margin: 4px 6px 4px 3px;
	padding: 2px 10px;
	background: var(--ig-accent);
	border: 0;
	color: #fff;
	font-size: 12px;
	line-height: 1.6;
	border-radius: 6px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

a.btn.btn-tag:hover,
a.btn.btn-tag:focus,
.btn.btn-tag:hover,
.btn.btn-tag:focus {
	background: var(--ig-accent-hover);
	color: #fff;
}

a.btn.btn-tag.btn-premium,
.btn.btn-tag.btn-premium {
	border: 2px solid #fff;
	padding-left: 10px;
	padding-right: 10px;
}

.post-details {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: block;
	padding: 4px 10px;
	background: rgba(241, 236, 247, 0.7);
	color: #000;
	font-size: 24px;
	font-weight: 700;
	text-align: left;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.post-details-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.post-details-left {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.post-details-left a {
	color: #000;
}

.post-details-right {
	flex: 0 0 auto;
}

.post-details-set svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: currentColor;
	opacity: 0.7;
}

.post-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	font-size: 14px;
}

.post-date {
	color: var(--ig-text);
	font-size: 15.4px;
}

.rating-controls {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 1.15em;
}

.rating-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 2px;
	background: none;
	border: 0;
	border-radius: 4px;
	color: var(--ig-text-soft);
	cursor: pointer;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.rating-btn svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.rating-btn:hover,
.rating-btn:focus-visible {
	color: var(--ig-accent);
	background: var(--ig-accent-soft);
}

.rating-btn--up.is-active {
	color: var(--ig-vote-up);
}

.rating-btn--down.is-active {
	color: var(--ig-vote-down);
}

.rating-btn--up:hover,
.rating-btn--up:focus-visible {
	color: var(--ig-vote-up);
}

.rating-btn--down:hover,
.rating-btn--down:focus-visible {
	color: var(--ig-vote-down);
}

.rating-value {
	display: inline-block;
	padding: 0 8px;
	background: var(--ig-accent-soft);
	color: var(--ig-rating-good);
	font-weight: 700;
	border-radius: 6px;
}

.rating-value.is-busy {
	opacity: 0.5;
}

/* ------------------------------------------------------- pagination ------- */

/*
 * Numbered pages with prev/next. The control wraps onto two rows on narrow
 * screens: the numbers stay centred and the status counter takes its own line.
 */

.gallery-pagination {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 8px 12px 48px;
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: var(--ig-surface);
	color: var(--ig-accent);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	border: 1px solid var(--ig-accent-line);
	border-radius: var(--ig-radius);
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pagination a.page-numbers:hover,
.pagination a.page-numbers:focus-visible {
	background: var(--ig-accent);
	color: #fff;
	border-color: var(--ig-accent);
}

/* The current page is a span, so it needs its active look declared explicitly. */
.pagination .page-numbers.current {
	background: var(--ig-accent);
	color: #fff;
	border-color: var(--ig-accent);
	cursor: default;
}

.pagination .page-numbers.dots {
	min-width: 24px;
	padding: 0 2px;
	background: none;
	color: var(--ig-text-soft);
	border-color: transparent;
}

/* Previous/next carry a larger glyph than the numerals. */
.pagination .is-prev .page-numbers,
.pagination .is-next .page-numbers {
	font-size: 17px;
}

.pagination-status {
	margin: 0;
	color: var(--ig-text-soft);
	font-size: 13px;
	letter-spacing: 0.02em;
}

.pagination-status strong {
	color: var(--ig-text);
}

@media (max-width: 480px) {
	.pagination .page-numbers {
		min-width: 36px;
		height: 36px;
		padding: 0 9px;
		font-size: 14px;
	}
}
/* --------------------------------------------------------- single view ---- */

.single-media {
	width: 100%;
	max-width: var(--ig-container);
	margin: 0 auto;
	padding: 12px 12px 60px;
}

.viewer {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.viewer-stage {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	/*
	 * The stage hugs the artwork rather than filling a fixed slice of the
	 * viewport. A portrait image inside a full-width box would otherwise sit in
	 * a sea of black; this keeps the frame close to the media at every aspect
	 * ratio while the cap stops tall images from pushing the info panel away.
	 */
	width: fit-content;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	background: #14111b;
	border-radius: var(--ig-radius-lg);
	box-shadow: var(--ig-shadow);
	overflow: hidden;
}

.viewer-image {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	/* Leave room for the header, the thumbnail strip and the info panel. */
	max-height: calc(100dvh - var(--ig-header-h) - var(--ig-single-chrome, 322px));
	object-fit: contain;
}

.post-media-item {
	display: none;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.post-media-item.active {
	display: block;
	opacity: 1;
}

.post-media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 4px;
	overflow: hidden;
}

.post-media video,
.post-media iframe {
	max-width: 100%;
	max-height: 100%;
}

.post-media--video iframe {
	width: 100%;
	height: 100%;
}

.single-content {
	max-width: 74ch;
	margin: 0 0 14px;
}

.post-thumbs {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 6px 2px 2px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: thin;
}

.post-thumb {
	flex-shrink: 0;
	width: 70px;
	height: 70px;
	padding: 0;
	background: var(--ig-accent-soft);
	border: 0;
	border-radius: var(--ig-radius);
	overflow: hidden;
	cursor: pointer;
}

.post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.post-thumb.active {
	border: 4px solid var(--ig-accent);
}

/* Info panel under the viewer: date + source, rating, views, title, tags. */

.pb-bottom {
	margin-top: 12px;
	padding: 16px 18px 18px;
	background: var(--ig-surface);
	border: 1px solid var(--ig-border);
	border-radius: var(--ig-radius-lg);
	box-shadow: var(--ig-shadow-soft);
}

.pb-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--ig-border);
}

.pb-head-left {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
	color: var(--ig-text-soft);
	font-size: 14px;
}

.post-date-inside {
	color: var(--ig-text-soft);
	font-size: 14px;
}

.pb-sep {
	color: var(--ig-accent-line);
}

.pb-source {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.post-info-wrapper {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-left: auto;
}

.rating-controls--inline {
	gap: 2px;
	font-size: 16px;
}

.rating-controls--inline .rating-btn {
	padding: 4px;
}

.rating-controls--inline .rating-btn svg {
	width: 22px;
	height: 22px;
}

.post-info-views {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ig-text-soft);
	font-size: 14px;
}

.post-info-views svg {
	width: 18px;
	height: 18px;
	fill: var(--ig-accent);
}

.post-info-views-value {
	font-weight: 600;
}

.pb-bottom .single-title {
	margin: 14px 0 10px;
	font-size: 30px;
	line-height: 1.2;
}

.pb-block-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

a.btn-outline-tag,
.btn-outline-tag {
	display: inline-block;
	padding: 3px 12px;
	background: var(--ig-surface);
	border: 1px solid var(--ig-accent-line);
	border-radius: 999px;
	color: var(--ig-accent);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

a.btn-outline-tag:hover,
a.btn-outline-tag:focus {
	background: var(--ig-accent);
	border-color: var(--ig-accent);
	color: #fff;
}

a.btn-outline-tag--premium,
.btn-outline-tag--premium {
	border-color: var(--ig-accent);
	border-style: dashed;
}

a.btn-outline-tag--light,
.btn-outline-tag--light {
	border-color: var(--ig-border);
	color: var(--ig-text-soft);
	text-transform: none;
	letter-spacing: 0;
}

a.btn-outline-tag--light:hover,
a.btn-outline-tag--light:focus {
	background: var(--ig-accent-soft);
	border-color: var(--ig-accent-line);
	color: var(--ig-accent);
}

.pb-block-end {
	display: flex;
	justify-content: flex-end;
	padding-top: 12px;
	border-top: 1px solid var(--ig-border);
}

.pb-block-end .btn-outline {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.pb-block-end .btn-outline svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
}

.related {
	margin-top: 40px;
}

.related-title {
	margin-bottom: 14px;
	font-size: 24px;
}

/* ------------------------------------------------------------ archives ---- */

.box {
	background: var(--ig-surface);
	border-radius: var(--ig-radius-lg);
	box-shadow: var(--ig-shadow);
	padding: 24px;
}

.empty-state,
.error-404 {
	max-width: 640px;
	margin: 40px auto;
	text-align: center;
}

.empty-title,
.error-title {
	font-size: 32px;
}

.empty-text,
.error-text {
	color: var(--ig-text-soft);
}

.search-form {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 480px;
	margin: 12px 0;
}

.search-field {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 14px;
	background: var(--ig-surface);
	color: var(--ig-text);
	border: 1px solid var(--ig-border);
	border-radius: var(--ig-radius);
}

.search-field:focus {
	border-color: var(--ig-accent);
	outline: 2px solid var(--ig-accent-soft);
}

.btn {
	display: inline-block;
	padding: 8px 16px;
	background: var(--ig-surface);
	color: var(--ig-text);
	border: 1px solid var(--ig-border);
	border-radius: var(--ig-radius);
	cursor: pointer;
	text-align: center;
}

.btn:hover {
	border-color: var(--ig-accent);
	color: var(--ig-accent);
}

.btn-primary,
.search-submit {
	background: var(--ig-accent);
	border-color: var(--ig-accent);
	color: #fff;
}

.btn-primary:hover,
.search-submit:hover {
	background: var(--ig-accent-hover);
	border-color: var(--ig-accent-hover);
	color: #fff;
}

.btn-outline {
	background: none;
	border-color: var(--ig-accent);
	color: var(--ig-accent);
}

/* ----------------------------------------------------------- A-Z index ---- */

.az-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 12px 4px 20px;
}

.az-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	padding: 4px 8px;
	background: var(--ig-surface);
	color: var(--ig-accent);
	font-size: 14px;
	text-transform: uppercase;
	border-radius: var(--ig-radius);
	box-shadow: var(--ig-shadow);
}

.az-link:hover {
	background: var(--ig-accent);
	color: #fff;
}

.az-link--empty {
	color: #c9c3d6;
	box-shadow: none;
	background: none;
}

.az-sections {
	padding-bottom: 40px;
}

.az-section {
	padding: 18px 0;
	border-bottom: 1px solid var(--ig-border);
	scroll-margin-top: 12px;
}

.az-heading {
	margin: 0 0 10px;
	color: var(--ig-accent);
	font-size: 22px;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.az-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 4px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.az-item a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	padding: 3px 0;
	color: var(--ig-text);
}

.az-item a:hover {
	color: var(--ig-accent);
}

.az-count {
	color: var(--ig-text-soft);
	font-size: 13px;
}

.az-back {
	display: inline-block;
	margin-top: 12px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* ------------------------------------------------------------- creators --- */

.creator-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0 0 60px;
	list-style: none;
}

.creator-card-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	color: var(--ig-text);
}

.creator-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: var(--ig-accent-soft);
	color: var(--ig-accent);
	border-radius: 50%;
	font-weight: 700;
	text-transform: uppercase;
}

.creator-name {
	font-weight: 600;
}

.creator-count {
	margin-left: auto;
	color: var(--ig-text-soft);
	font-size: 13px;
}

/* --------------------------------------------------------------- pages ---- */

.page-article {
	margin: 24px 0;
}

.entry-title {
	font-size: 32px;
}

.entry-thumbnail {
	margin: 0 0 18px;
}

.entry-thumbnail img {
	width: 100%;
	border-radius: var(--ig-radius);
}

.comments-area,
.comment-respond {
	margin: 24px 0;
}

.comment-list {
	margin: 0;
	padding: 0 0 0 4px;
	list-style: none;
}

.comment-list .children {
	margin-left: 24px;
	list-style: none;
}

.comment-body {
	padding: 12px 0;
	border-bottom: 1px solid var(--ig-border);
}

.comment-meta {
	font-size: 14px;
	color: var(--ig-text-soft);
}

.comment-form label {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--ig-border);
	border-radius: var(--ig-radius);
}

/* -------------------------------------------------------------- footer ---- */

.site-footer {
	margin-top: 26px;
	background: var(--ig-surface);
	box-shadow: var(--ig-shadow-soft);
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	justify-content: space-between;
	align-items: center;
	max-width: var(--ig-container);
	margin: 0 auto;
	padding: 14px 12px;
}

.footer-note {
	margin: 0;
	color: var(--ig-text-soft);
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu a {
	color: var(--ig-text);
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.footer-menu a:hover {
	color: var(--ig-accent);
}

.footer-legal,
.footer-extra {
	max-width: var(--ig-container);
	margin: 0 auto;
	padding: 10px 12px 18px;
	color: var(--ig-text-soft);
	font-size: 12px;
}

.legal-18 {
	margin: 0 0 6px;
	color: var(--ig-accent);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.legal-note {
	margin: 0 0 6px;
	line-height: 1.6;
}

/* --------------------------------------------------------- responsive ---- */

@media (max-width: 991px) {
	/* The two rows collapse into one bar here, so the reserved header height
	   drops to match and the single-post viewer keeps its full height. */
	:root {
		--ig-header-h: 52px;
	}

	/* The mark and the toggler share the top row; the menu drops below. */

	.navbar {
		flex-wrap: wrap;
		justify-content: flex-start;
		padding: 8px 12px;
	}

	.navbar-toggler {
		display: block;
	}

	.header-start {
		flex: 1 1 auto;
		justify-content: flex-start;
		padding: 0;
	}

	/*
	 * The collapsed bar keeps the burger and the wordmark on the left, with just
	 * enough separation to read as two distinct controls.
	 */
	.navbar-toggler {
		margin-right: 12px;
	}

	.header-start-inner {
		max-width: none;
	}

	/* The menu is a full-bleed drawer here, so the inline gap must not apply. */
	.header-end-inner {
		padding-left: 0;
	}
	.header-end {
		flex: 1 1 100%;
		display: none;
		z-index: 50;
		margin: 8px -12px 0;
		padding: 0;
		border-top: 1px solid var(--ig-border);
		background: var(--ig-surface);
	}

	.header-end.is-open {
		display: block;
	}

	.nav-list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nav-list .nav-link {
		display: block;
		padding: 12px 24px;
		border-bottom: 1px solid var(--ig-border);
	}

	.nav-list .sub-menu {
		position: static;
		display: block;
		max-height: none;
		box-shadow: none;
		padding-left: 12px;
	}

	.brand-logo {
		height: 28px;
	}

	.brand-mark {
		width: 28px;
		height: 28px;
	}

	.brand-title {
		font-size: 10px;
	}

	.brand-name {
		font-size: 21px;
	}
}

@media (max-width: 768px) {
	.grid {
		grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
		grid-auto-rows: 12px;
		grid-gap: 12px;
	}

	.grid-cell {
		grid-row-end: span var(--ig-span-sm, var(--ig-span, 22));
	}

	.post-details {
		font-size: 20px;
	}

	.feed-title,
	.archive-title {
		font-size: 28px;
	}

	.pb-bottom .single-title {
		font-size: 24px;
	}

	.post-info-wrapper {
		gap: 10px;
	}
}

@media (max-width: 480px) {
	.grid {
		grid-template-columns: 1fr;
	}

	.feed,
	.page-wrap,
	.single-media {
		padding-left: 10px;
		padding-right: 10px;
	}

	.viewer-stage {
		min-height: 0;
	}

	.viewer-stage .viewer-image {
		max-height: 70dvh;
	}

	.post-thumb {
		width: 56px;
		height: 56px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}

	html {
		scroll-behavior: auto;
	}
}
