/* Celebrity Gallery — grid & cards
 *
 * Text colors INHERIT from the active theme, so the plugin renders correctly
 * on both light themes (dark text) and dark themes (light text).
 * Override the accent color by setting --celeb-accent in your theme if needed.
 */

.celeb-gallery,
.celeb-archive {
	--celeb-accent: #0fb0b0;        /* occupation / link accent */
	--celeb-placeholder: rgba(128, 128, 128, 0.18); /* missing-image fill */
	color: inherit;
}

.celeb-gallery {
	display: grid;
	gap: 26px 18px;
	margin: 24px 0;
}

.celeb-cols-1 { grid-template-columns: 1fr; }
.celeb-cols-2 { grid-template-columns: repeat(2, 1fr); }
.celeb-cols-3 { grid-template-columns: repeat(3, 1fr); }
.celeb-cols-4 { grid-template-columns: repeat(4, 1fr); }
.celeb-cols-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 900px) {
	.celeb-cols-3,
	.celeb-cols-4,
	.celeb-cols-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
	.celeb-gallery { grid-template-columns: repeat(2, 1fr); }
}

.celeb-card {
	display: flex;
	flex-direction: column;
}

.celeb-card__photo {
	display: block;
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: var(--celeb-placeholder);
}

.celeb-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.celeb-card__img--placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--celeb-placeholder);
}

.celeb-card__name {
	margin: 10px 0 2px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	color: inherit;                 /* follows the theme text color */
}

.celeb-card__name a {
	color: inherit;
	text-decoration: none;
}

.celeb-card__name a:hover {
	text-decoration: underline;
}

.celeb-card__age {
	font-weight: 700;
	color: inherit;
}

.celeb-card__role {
	font-size: 13px;
	color: var(--celeb-accent);
}

/* "More" tile — keeps its own background, so its dark text stays readable
   on light or dark themes. */
.celeb-card--more {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fbe3ef;
	border-radius: 14px;
	min-height: 120px;
	text-decoration: none;
	font-weight: 700;
	font-size: 20px;
	color: #111;
}

.celeb-card--more:hover {
	background: #f7d2e6;
}

.celeb-empty {
	color: currentColor;
	opacity: 0.7;
}

/* Archive page */
.celeb-archive {
	max-width: 1100px;
	margin: 32px auto;
	padding: 0 16px;
}

.celeb-archive__title {
	font-size: 26px;
	font-weight: 800;
	margin: 0 0 8px;
	color: inherit;
}

.celeb-archive__nav {
	margin-top: 24px;
}
