/* =========================================================
   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);
	gap: 2px;
	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;
}
.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);
}

/* purple tint overlay — revealed on hover (duotone treatment from the design) */
.rds-artists__tint {
	position: absolute;
	inset: 0;
	background: var(--rds-purple);
	mix-blend-mode: color;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}
.rds-artists__card:hover .rds-artists__tint { opacity: 0.85; }
.rds-artists__card:hover .rds-artists__img { filter: grayscale(1) contrast(1.05); }

/* olive name strip — overlaps the bottom of the photo */
.rds-artists__card-name {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 35px;
	background: var(--rds-olive);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 26px;
	line-height: 23px;
	color: #fff;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 0 12px;
}
.rds-artists__card:hover .rds-artists__card-name { color: #000; }

/* role — hidden until hover, sits just above the name strip */
.rds-artists__card-role {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 35px;
	padding: 8px 12px;
	background: var(--rds-purple);
	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; gap: 3px; }
}
