/* =========================================================
   NMW redesign — Artists overview ("osoby artystyczne", Figma frame 64 / node 154:1298)
   Grey title bar + 3-column card grid on an orange base.
   Measurements taken 1:1 from the 1728px design.
   ========================================================= */

.rds-artists {
	font-family: var(--font-sans);
	background: #f97827;              /* orange base (Figma frame bg, shows in gaps) */
	color: #000;
	--rds-purple: #7067e0;
	--rds-olive: #90991a;
	--rds-grey: #cbcbcb;
	--rds-orange: #f97827;
	padding-top: 95px;               /* clear the fixed redesign header (60 + 35) */
}

/* ---- grey "OSOBY ARTYSTYCZNE" title bar (140px) ---- */
.rds-artists__title {
	height: 140px;
	background: var(--rds-grey);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 20px;
}
.rds-artists__title-text {
	margin: 0;
	font-weight: 700;
	font-size: 96px;
	line-height: 0.96;
	text-transform: uppercase;
	text-align: center;
	color: #000;
}

/* ---- 3-column artist card grid ---- */
.rds-artists__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 0;                   /* no vertical separators between columns */
	row-gap: 1px;                    /* only a 1px horizontal line between rows */
	background: var(--rds-orange);   /* gap colour */
}

.rds-artists__card {
	position: relative;
	display: block;
	aspect-ratio: 576 / 577;         /* ~square, from the design */
	overflow: hidden;
	background: #222;
	text-decoration: none;
	isolation: isolate;              /* contain the duotone blend to the card */
}
.rds-artists__img,
.rds-artists__ph {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: filter 0.25s ease;
}
.rds-artists__ph {                   /* fallback when an artist has no photo */
	background: linear-gradient(135deg, #8a8f2a, #77593a);
}

/* hover effect (Figma): 1. saturation + invert on the photo, 2. an exclusion
   overlay in brown #77593A → the blue-highlights / brown-shadows look. */
.rds-artists__tint {
	position: absolute;
	inset: 0;
	background: #77593A;
	mix-blend-mode: exclusion;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}
.rds-artists__card:hover .rds-artists__tint { opacity: 1; }
/* NB: no transition on transform → the mirror is instant (no card-rotation animation) */
.rds-artists__img { transition: filter 0.25s ease, opacity 0.25s ease; }
.rds-artists__card:hover .rds-artists__img { filter: saturate(1.7) invert(1); opacity: 0.6; transform: scaleX(-1); }

/* name strip — brown default (light ink), slate-blue + black ink on hover */
.rds-artists__card-name {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	height: 35px;
	background: #77593A;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 26px;
	line-height: 23px;
	color: #F3F3F3;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 0 12px;
	transition: background 0.2s ease, color 0.2s ease;
}
.rds-artists__card:hover .rds-artists__card-name { background: #88A6C5; color: #000; }

/* role strip removed per design — keep name strip only */
.rds-artists__card-role { display: none !important; }
.rds-artists__card-role--legacy {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 35px;
	z-index: 2;
	padding: 8px 12px;
	background: #000;
	color: #fff;
	font-family: var(--font-mono);
	font-size: 15px;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
}
.rds-artists__card:hover .rds-artists__card-role { opacity: 1; transform: none; }

/* ---- mobile: single column, stacked (M5 frames). MUST stay AFTER desktop. ---- */
@media (max-width: 1024px) {
	.rds-artists__title-text { font-size: 12vw; }
	.rds-artists__grid { grid-template-columns: 1fr; column-gap: 0; row-gap: 1px; }
}
