/* Orpheus Poets: наследява шрифтовете и цветовете на темата (Astra). */

.op-poet,
.op-archive__header,
.op-filterable,
.op-grid {
	--op-plate: #382656;                /* цвят на плочата с името */
	--op-gold: #d8aa2f;                 /* знак за голяма награда */
	--op-gold-ink: #2b1d00;
	--op-photo-filter: grayscale(1);    /* махни реда, ако снимките трябва да са цветни */
	--op-line: color-mix(in srgb, currentColor 18%, transparent);
	--op-muted: color-mix(in srgb, currentColor 62%, transparent);
}

/* Снимка с плоча: страница на поет и карти */
.op-figure__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.op-figure {
	position: relative;
	aspect-ratio: var(--op-fig-ratio, 17 / 20); /* портретна рамка; сменя се с --op-fig-ratio */
	border-radius: 12px;
	overflow: hidden;
	container-type: inline-size;
	background: var(--op-line);
	box-shadow: 0 18px 36px -18px rgba(56, 38, 86, 0.45);
}

.op-figure__photo {
	position: absolute;
	inset: 0;
}

.op-figure__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 25%;
	filter: var(--op-photo-filter);
}

.op-figure__plate {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 40%;
}

/* Два прозрачни слоя зад плочата дават дълбочината зад върха. */
.op-figure__plate::before,
.op-figure__plate::after,
.op-figure__plate-body {
	content: "";
	position: absolute;
	bottom: 0;
	clip-path: polygon(0 30%, 50% 0, 100% 30%, 100% 100%, 0 100%);
	z-index: 0;
}

.op-figure__plate::before {
	top: 0;
	left: 6%;
	right: 6%;
	background: rgba(255, 255, 255, 0.32);
}

.op-figure__plate::after {
	top: 7%;
	left: 3%;
	right: 3%;
	background: rgba(255, 255, 255, 0.45);
}

.op-figure__plate-body {
	top: 14%;
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 0.2em;
	padding: 0 6% 9%;
	text-align: center;
	color: var(--op-plate-ink, #fff);
	background: var(--op-plate);
	overflow: hidden;
	z-index: 1;
}

/* Тънък кръгов шарка зад името. */
.op-figure__plate-body::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -38%;
	width: 78%;
	aspect-ratio: 1;
	transform: translateX(-50%);
	border-radius: 50%;
	background: repeating-radial-gradient(circle, var(--op-plate-pattern, rgba(255, 255, 255, 0.13)) 0 1px, transparent 1px 5px);
	-webkit-mask-image: radial-gradient(circle, #000 35%, transparent 72%);
	mask-image: radial-gradient(circle, #000 35%, transparent 72%);
}

.op-figure__name,
.op-figure__country {
	position: relative;
	margin: 0;
	color: var(--op-plate-ink, #fff);
}

.op-figure__name {
	font-size: clamp(1.05rem, 6.4cqw, 1.9rem);
	font-weight: 400;
	line-height: 1.15;
}

.op-figure__country {
	font-size: clamp(0.8rem, 3.6cqw, 1rem);
}

.op-figure__link:focus-visible {
	outline: 2px solid var(--op-plate);
	outline-offset: 4px;
	border-radius: 14px;
}

/* Страница на поет */
.op-poet {
	padding: 2.5rem 0 4rem;
}

.op-poet__header {
	display: grid;
	grid-template-columns: minmax(240px, var(--op-photo-w, 500px)) 1fr;
	gap: 2.5rem 4rem;
	align-items: start;
	margin-bottom: 4rem;
}

.op-poet__side {
	max-width: 46rem;
}

.op-poet__bio {
	line-height: 1.95;
}

.op-poet__bio > :first-child {
	margin-top: 0;
}

.op-poet__bio > :last-child {
	margin-bottom: 0;
}

/* Стихотворения: колони български, английски, оригинал */
.op-poems__heading {
	margin: 0 0 1.5rem;
}

.op-poem {
	display: grid;
	grid-template-columns: repeat(var(--op-n, 3), minmax(0, 1fr));
	gap: 2rem 3rem;
	padding: 2.25rem 0;
	border-top: 1px solid var(--op-line);
}

.op-poem__lang {
	margin-bottom: 0.5rem;
	color: var(--op-muted);
	font-size: 0.9em;
}

.op-poem__title {
	margin: 0 0 1rem;
	line-height: 1.25;
}

.op-poem__text {
	line-height: 1.75;
	font-size: 1.05em;
}

.op-poem__text p {
	margin: 0 0 1em;
}

.op-poem__text p:last-child {
	margin-bottom: 0;
}

/* Архив и решетка */
.op-archive__header {
	padding: 2.5rem 0 1.5rem;
}

.op-archive__title {
	margin: 0;
}

.op-grid {
	display: grid;
	grid-template-columns: repeat(var(--op-cols, 4), minmax(0, 1fr));
	gap: 2rem 1.5rem;
	margin-bottom: 3rem;
}

@media (max-width: 1000px) {
	.op-poem {
		grid-template-columns: 1fr;
		gap: 2.25rem;
	}

	.op-grid:not(.op-grid--custom) {
		grid-template-columns: repeat(min(var(--op-cols, 4), 3), minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.op-poet__header {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.op-poet__header .op-figure {
		max-width: min(100%, var(--op-photo-w, 500px));
	}

	.op-grid:not(.op-grid--custom) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.5rem 1rem;
	}
}

/* Филтри */
.op-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.op-filter__field {
	flex: 0 1 15rem;
	min-width: 0;
	padding: 0.65rem 0.9rem;
	border: 1px solid var(--op-line);
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font: inherit;
}

.op-filter__field:focus-visible {
	outline: 2px solid var(--op-plate);
	outline-offset: 1px;
}

.op-card[hidden],
.op-empty[hidden] {
	display: none;
}

.op-empty {
	margin: 2rem 0;
	color: var(--op-muted);
}

/* Награди */
.op-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.3em 0.8em 0.3em 0.6em;
	border-radius: 999px;
	background: var(--op-gold);
	color: var(--op-gold-ink);
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.2;
}

.op-badge svg {
	width: 1em;
	height: 1em;
	flex: none;
}

.op-figure__badge {
	position: absolute;
	top: 0.9rem;
	left: 0.9rem;
	z-index: 2;
	font-size: clamp(0.68rem, 3.4cqw, 0.9rem);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.op-card--major .op-figure {
	box-shadow: 0 0 0 2px var(--op-gold), 0 18px 36px -18px rgba(56, 38, 86, 0.45);
}

.op-card__award {
	margin-top: 0.7rem;
	font-size: 0.95em;
	line-height: 1.4;
	color: var(--op-muted);
}

.op-card--major .op-card__award {
	color: inherit;
	font-weight: 600;
}

.op-award {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	margin: 0 0 1.75rem;
	padding: 0.9rem 1.1rem;
	border-left: 3px solid var(--op-line);
}

.op-award--major {
	border-left-color: var(--op-gold);
	background: color-mix(in srgb, var(--op-gold) 12%, transparent);
}

.op-award__text {
	font-weight: 600;
	line-height: 1.4;
}

/* Архив по години */
.op-years {
	--op-year-color: #0f7057;
	--op-year-radius: 12px;
	--op-year-gap: 20px;
	--op-avatar: 36px;
	--op-photo-filter: grayscale(1);
	--op-gold: #d8aa2f;
	--op-line: color-mix(in srgb, currentColor 14%, transparent);
	--op-muted: color-mix(in srgb, currentColor 58%, transparent);
	display: grid;
	gap: var(--op-year-gap);
	margin-bottom: 2rem;
}

.op-year {
	display: flex;
	overflow: hidden;
	border: 1px solid var(--op-line);
	border-radius: var(--op-year-radius);
	box-shadow: 0 10px 28px -20px rgba(0, 0, 0, 0.35);
}

.op-year__side {
	flex: 0 0 7.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 1.25rem 0.75rem;
	background: var(--op-year-color);
	color: #fff;
	text-align: center;
}

.op-year__label {
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.1;
}

.op-year__count {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.82);
}

.op-year__link {
	align-self: stretch;
	margin-top: 0.25rem;
	padding-top: 0.7rem;
	border-top: 1px solid rgba(255, 255, 255, 0.28);
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
}

.op-year__link:hover,
.op-year__link:focus-visible {
	color: #fff;
	text-decoration: underline;
}

.op-year__poets {
	flex: 1 1 auto;
	display: flex;
	flex-wrap: wrap;
	align-content: center;
	gap: 0.75rem;
	padding: 1.5rem;
}

.op-chip {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.55rem 1rem 0.55rem 0.6rem;
	border: 1px solid var(--op-line);
	border-radius: 10px;
	background: var(--op-chip-bg, color-mix(in srgb, currentColor 4%, transparent));
	color: inherit;
	text-decoration: none;
	line-height: 1.25;
}

.op-chip:hover {
	border-color: var(--op-year-color);
}

.op-chip:focus-visible {
	outline: 2px solid var(--op-year-color);
	outline-offset: 2px;
}

.op-chip__avatar {
	flex: none;
	display: grid;
	place-items: center;
	width: var(--op-avatar);
	height: var(--op-avatar);
	overflow: hidden;
	border-radius: 50%;
	background: var(--op-line);
}

.op-chip__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 25%;
	filter: var(--op-photo-filter);
}

.op-chip__initial {
	font-weight: 600;
	color: var(--op-muted);
}

.op-chip__text {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.op-chip__name {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	font-weight: 500;
}

.op-chip__country {
	font-size: 0.82em;
	color: var(--op-muted);
}

.op-chip__star {
	display: inline-flex;
	color: var(--op-gold);
}

.op-chip__star svg {
	width: 1em;
	height: 1em;
}

.op-chip--more {
	align-self: center;
	color: var(--op-muted);
}

@media (max-width: 640px) {
	.op-year {
		flex-direction: column;
	}

	.op-year__side {
		flex: none;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		gap: 0.25rem 1rem;
		padding: 0.9rem 1rem;
	}

	.op-year__link {
		align-self: auto;
		margin: 0;
		padding: 0;
		border-top: 0;
	}

	.op-year__poets {
		padding: 1rem;
	}
}

/* Страница на година: програма и новини в две колони, после галерия */
.op-yearpage__cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 3rem;
	margin-top: 3.5rem;
}

.op-yearpage__cols--single {
	grid-template-columns: minmax(0, 1fr);
}

.op-yearpage__col {
	min-width: 0;
}

.op-yearpage__title {
	margin: 0 0 1.5rem;
}

.op-yearpage__gallery {
	margin-top: 3.5rem;
	padding-bottom: 3rem;
}

@media (max-width: 900px) {
	.op-yearpage__cols {
		grid-template-columns: minmax(0, 1fr);
		gap: 3rem;
	}
}

/* Новини */
.op-news {
	--op-line: color-mix(in srgb, currentColor 16%, transparent);
	--op-muted: color-mix(in srgb, currentColor 60%, transparent);
}

.op-news__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.op-news__item {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid var(--op-line);
}

.op-news__item:first-child {
	padding-top: 0;
}

.op-news__item.has-thumb {
	grid-template-columns: 5.5rem minmax(0, 1fr);
}

.op-news__thumb {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 8px;
	background: var(--op-line);
}

.op-news__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.op-news__date {
	display: block;
	margin-bottom: 0.2rem;
	font-size: 0.85em;
	color: var(--op-muted);
}

.op-news__title {
	font-weight: 600;
	line-height: 1.35;
	color: inherit;
	text-decoration: none;
}

.op-news__title:hover,
.op-news__title:focus-visible {
	text-decoration: underline;
}

.op-news__excerpt {
	margin: 0.4rem 0 0;
	font-size: 0.95em;
	line-height: 1.55;
	color: var(--op-muted);
}

.op-news__all {
	display: inline-block;
	margin-top: 1.25rem;
	font-weight: 600;
	text-decoration: none;
}

.op-news__all:hover,
.op-news__all:focus-visible {
	text-decoration: underline;
}

/* Галерия */
.op-gallery {
	--op-gcols: 4;
	--op-ggap: 12px;
	--op-gradius: 8px;
}

.op-gallery--masonry {
	column-count: var(--op-gcols);
	column-gap: var(--op-ggap);
}

.op-gallery--masonry .op-gallery__item {
	margin: 0 0 var(--op-ggap);
	break-inside: avoid;
}

.op-gallery--grid {
	display: grid;
	grid-template-columns: repeat(var(--op-gcols), minmax(0, 1fr));
	gap: var(--op-ggap);
}

.op-gallery--grid .op-gallery__item {
	aspect-ratio: 1;
}

.op-gallery--grid .op-gallery__item img {
	height: 100%;
	object-fit: cover;
}

.op-gallery__item {
	display: block;
	overflow: hidden;
	border-radius: var(--op-gradius);
}

.op-gallery__item img {
	display: block;
	width: 100%;
	height: auto;
}

a.op-gallery__item {
	cursor: zoom-in;
}

a.op-gallery__item:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

@media (max-width: 900px) {
	.op-gallery {
		--op-gcols: 3;
	}
}

@media (max-width: 600px) {
	.op-gallery {
		--op-gcols: 2;
	}
}

/* Увеличена снимка */
.op-lightbox {
	width: 100vw;
	max-width: none;
	height: 100vh;
	max-height: none;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
}

.op-lightbox::backdrop {
	background: rgba(14, 8, 26, 0.9);
}

.op-lightbox__img {
	position: absolute;
	inset: 0;
	max-width: 90vw;
	max-height: 88vh;
	margin: auto;
	object-fit: contain;
}

.op-lightbox__close,
.op-lightbox__nav {
	position: fixed;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.op-lightbox__close:hover,
.op-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.28);
}

.op-lightbox__close {
	top: 1rem;
	right: 1rem;
}

.op-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
}

.op-lightbox__prev {
	left: 1rem;
}

.op-lightbox__next {
	right: 1rem;
}

.op-lightbox.is-single .op-lightbox__nav {
	display: none;
}

/* Новини като карти */
.op-ncards {
	--op-ncard-bg: #e5f8ff;
	--op-ncard-accent: #d01f55;
	--op-ncard-badge: var(--op-ncard-accent);
	--op-ncard-badge-ink: #fff;
	--op-ncard-radius: 22px;
	--op-ncol-gap: 2rem;
	--op-nrow-gap: 3.25rem;
	--op-nratio: 4/3;
	--op-ncols: 3;
	display: grid;
	grid-template-columns: repeat(var(--op-ncols), minmax(0, 1fr));
	gap: var(--op-nrow-gap) var(--op-ncol-gap);
	padding-top: 1.25rem;
	margin-bottom: 2rem;
}

.op-ncard {
	position: relative;
	border-radius: var(--op-ncard-radius);
	background: var(--op-ncard-bg);
	color: #141414;
}

.op-ncard__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.op-ncard__link:focus-visible {
	outline: 2px solid var(--op-ncard-accent);
	outline-offset: 4px;
	border-radius: var(--op-ncard-radius);
}

.op-ncard__head {
	position: relative;
	padding: 3rem 2.25rem 2.25rem;
}

.op-ncard__head--nodate {
	padding-top: 2.25rem;
}

.op-ncard__link.has-img .op-ncard__head {
	padding-bottom: 1.75rem;
}

.op-ncard__date {
	position: absolute;
	top: -1.25rem;
	right: 1.75rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 4.4rem;
	padding: 0.55rem 0.9rem 0.65rem;
	border-radius: 6px;
	background: var(--op-ncard-badge);
	color: var(--op-ncard-badge-ink);
	line-height: 1;
	box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.4);
}

.op-ncard__day {
	font-size: 2rem;
	line-height: 1;
}

.op-ncard__month {
	margin-top: 0.3rem;
	font-size: 1.05rem;
	font-weight: 700;
}

.op-ncard__cat {
	position: relative;
	display: inline-block;
	margin-bottom: 1.1rem;
	padding-bottom: 0.55rem;
	font-weight: 600;
	color: var(--op-ncard-accent);
}

.op-ncard__cat::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 3.5rem;
	height: 2px;
	background: linear-gradient(90deg, var(--op-ncard-accent), transparent);
}

.op-ncard__title {
	margin: 0;
	font-size: 1.85rem;
	font-weight: 300;
	line-height: 1.2;
	color: inherit;
}

.op-ncard__link:hover .op-ncard__title {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

.op-ncard__excerpt {
	margin: 1rem 0 0;
	font-size: 0.95em;
	line-height: 1.55;
}

.op-ncard__img {
	margin-top: auto;
	overflow: hidden;
	border-radius: var(--op-ncard-radius);
	aspect-ratio: var(--op-nratio);
}

.op-ncard__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
	.op-ncard__img img {
		transition: transform 0.5s ease;
	}

	.op-ncard__link:hover .op-ncard__img img {
		transform: scale(1.03);
	}
}

.op-ncards__more {
	display: inline-block;
	padding: 0.7rem 1.4rem;
	border: 2px solid var(--op-ncard-accent, #d01f55);
	border-radius: 999px;
	color: var(--op-ncard-accent, #d01f55);
	font-weight: 600;
	text-decoration: none;
}

.op-ncards__more:hover,
.op-ncards__more:focus-visible {
	background: var(--op-ncard-accent, #d01f55);
	color: #fff;
}

@media (max-width: 1000px) {
	.op-ncards {
		--op-ncols: 2;
	}
}

@media (max-width: 640px) {
	.op-ncards {
		--op-ncols: 1;
	}

	.op-ncard__title {
		font-size: 1.6rem;
	}
}

/* Слайдер с участници */
.op-slider {
	--op-plate: #382656;
	--op-per-view: 3;
	--op-slide-gap: 1.75rem;
	--op-dash-color: #f5a800;
	--op-dash-active: #1b1b1b;
	--op-dash-w: 2.5rem;
	--op-dash-h: 4px;
	--op-dots-bg: transparent;
	--op-photo-filter: grayscale(1);
	--op-gold: #d8aa2f;
	--op-gold-ink: #2b1d00;
	--op-line: color-mix(in srgb, currentColor 18%, transparent);
	--op-muted: color-mix(in srgb, currentColor 62%, transparent);
	margin-bottom: 2rem;
}

/* Светла плоча с име и държава */
.op-slider--light {
	--op-plate: #f4effb;
	--op-plate-ink: #2a1b45;
	--op-plate-pattern: rgba(56, 38, 86, 0.09);
}

.op-slider__viewport {
	position: relative;
}

.op-slider__track {
	display: flex;
	gap: var(--op-slide-gap);
	margin-inline: -6px;
	padding: 1.25rem 6px 2.5rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 6px;
	scrollbar-width: none;
}

.op-slider__track::-webkit-scrollbar {
	display: none;
}

.op-slider__track:focus-visible {
	outline: 2px solid var(--op-dash-active);
	outline-offset: -2px;
	border-radius: 12px;
}

.op-slide {
	flex: 0 0 calc((100% - (var(--op-per-view) - 1) * var(--op-slide-gap)) / var(--op-per-view));
	min-width: 0;
	scroll-snap-align: start;
}

/* Чертички за преминаване между слайдовете */
.op-slider__nav {
	display: flex;
	justify-content: center;
}

.op-slider__dots {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	padding: 0.15rem 0.5rem;
	border-radius: 6px;
	background: var(--op-dots-bg);
}

.op-slider__dot {
	position: relative;
	width: calc(var(--op-dash-w) + 0.5rem);
	height: 1.75rem;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.op-slider__dot::before {
	content: "";
	position: absolute;
	left: 0.25rem;
	right: 0.25rem;
	top: 50%;
	height: var(--op-dash-h);
	transform: translateY(-50%);
	border-radius: 999px;
	background: var(--op-dash-color);
}

.op-slider__dot[aria-current="true"]::before {
	height: calc(var(--op-dash-h) + 2px);
	background: var(--op-dash-active);
}

.op-slider__dot:focus-visible {
	outline: 2px solid var(--op-dash-active);
	outline-offset: -2px;
}

/* Стрелки (по желание) */
.op-slider__arrow {
	position: absolute;
	top: calc(50% - 1.5rem);
	z-index: 2;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	color: #1b1b1b;
	font-size: 1.6rem;
	line-height: 1;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
	cursor: pointer;
}

.op-slider__prev {
	left: -0.75rem;
}

.op-slider__next {
	right: -0.75rem;
}

.op-slider__arrow[disabled] {
	opacity: 0.35;
	cursor: default;
}

@media (max-width: 1000px) {
	.op-slider {
		--op-per-view: 2;
	}
}

@media (max-width: 640px) {
	.op-slider {
		--op-per-view: 1;
	}
}

/* Снимките са черно-бели и стават цветни при посочване */
.op-figure:hover .op-figure__photo img,
.op-figure__link:focus-visible .op-figure__photo img,
.op-chip:hover .op-chip__avatar img,
.op-chip:focus-visible .op-chip__avatar img {
	filter: none;
}

@media (prefers-reduced-motion: no-preference) {
	.op-figure__photo img,
	.op-chip__avatar img {
		transition: filter 0.4s ease;
	}
}

/* Снимка с изрязани ъгли и табелка */
.op-shot {
	margin: 0;
	container-type: inline-size;
}

.op-shot__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.op-shot__frame {
	--op-cut-bg: #fff;
	--op-shot-r: clamp(14px, 3.2cqw, 30px);
	--op-nw: clamp(56px, 9.5cqw, 120px);
	--op-nh: clamp(30px, 6.2cqw, 64px);
	position: relative;
	overflow: hidden;
	border-radius: var(--op-shot-r);
	aspect-ratio: var(--op-shot-ratio, auto);
}

.op-shot__frame > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Изрезките: правоъгълник в цвета на фона със закръглен вътрешен ъгъл и две закръгления на краищата му. */
.op-shot__cut,
.op-shot__fillet {
	position: absolute;
	z-index: 1;
	pointer-events: none;
	background: var(--op-cut-bg);
}

.op-shot__cut {
	width: var(--op-nw);
	height: var(--op-nh);
}

.op-shot__fillet {
	width: var(--op-shot-r);
	height: var(--op-shot-r);
	background: radial-gradient(circle at var(--fx) var(--fy), transparent calc(var(--op-shot-r) - 0.5px), var(--op-cut-bg) var(--op-shot-r));
}

.op-shot__cut--tr { top: 0; right: 0; border-bottom-left-radius: var(--op-shot-r); }
.op-shot__fillet--tr-a { top: 0; right: var(--op-nw); --fx: 0; --fy: 100%; }
.op-shot__fillet--tr-b { top: var(--op-nh); right: 0; --fx: 0; --fy: 100%; }

.op-shot__cut--tl { top: 0; left: 0; border-bottom-right-radius: var(--op-shot-r); }
.op-shot__fillet--tl-a { top: 0; left: var(--op-nw); --fx: 100%; --fy: 100%; }
.op-shot__fillet--tl-b { top: var(--op-nh); left: 0; --fx: 100%; --fy: 100%; }

.op-shot__cut--bl { bottom: 0; left: 0; border-top-right-radius: var(--op-shot-r); }
.op-shot__fillet--bl-a { bottom: var(--op-nh); left: 0; --fx: 100%; --fy: 0; }
.op-shot__fillet--bl-b { bottom: 0; left: var(--op-nw); --fx: 100%; --fy: 0; }

.op-shot__cut--br { bottom: 0; right: 0; border-top-left-radius: var(--op-shot-r); }
.op-shot__fillet--br-a { bottom: var(--op-nh); right: 0; --fx: 0; --fy: 0; }
.op-shot__fillet--br-b { bottom: 0; right: var(--op-nw); --fx: 0; --fy: 0; }

/* Табелка: трапец, вписан в долния ръб на снимката */
.op-shot__badge {
	--op-bs: clamp(22px, 4cqw, 40px);
	position: absolute;
	right: var(--op-badge-off, 7%);
	bottom: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: clamp(0.5rem, 1.8cqw, 1rem);
	padding: clamp(0.4rem, 1.6cqw, 0.8rem) calc(var(--op-bs) + clamp(0.5rem, 1.6cqw, 1.1rem));
	background: var(--op-badge-bg, var(--op-cut-bg));
	clip-path: polygon(
		0 100%,
		calc(var(--op-bs) - 7px) 12px,
		calc(var(--op-bs) - 2px) 3px,
		calc(var(--op-bs) + 5px) 0,
		calc(100% - var(--op-bs) - 5px) 0,
		calc(100% - var(--op-bs) + 2px) 3px,
		calc(100% - var(--op-bs) + 7px) 12px,
		100% 100%
	);
}

.op-shot--badge-left .op-shot__badge {
	right: auto;
	left: var(--op-badge-off, 7%);
}

.op-shot__icon {
	display: inline-flex;
	font-size: clamp(1.4rem, 5cqw, 2.6rem);
	line-height: 1;
	color: #d81b60;
}

.op-shot__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.op-shot__number {
	font-size: clamp(2rem, 7cqw, 3.8rem);
	font-weight: 800;
	line-height: 1;
	color: #5a3a9a;
}

.op-shot__label {
	max-width: 7rem;
	font-size: clamp(0.75rem, 1.9cqw, 1rem);
	font-weight: 700;
	line-height: 1.25;
	color: #1b1b1b;
}

/* Контейнер на страниците на плъгина: центрира съдържанието в теми, които не добавят свой (напр. Konfer).
   В Astra и други теми със собствен контейнер не добавя втори отстъп. Размерите се менят с --op-wrap-max и --op-wrap-pad. */
.op-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--op-wrap-max, 1200px);
	margin-inline: auto;
	padding-inline: var(--op-wrap-pad, 1.25rem);
}

.ast-container .op-wrap,
.container .op-wrap,
.site-content > .container .op-wrap {
	max-width: none;
	padding-inline: 0;
}
