/* ============================================================
   Photographers & Publishers directory — /artists/ page.
   Shortcode: [wow_photographers_directory] (functions.php).
   Loaded only on this page (wow_is_page('artists')), same
   "page-specific CSS kept out of the sitewide stylesheet" pattern
   as about-page.css / contact-page.css / pro-page.css.
   ============================================================ */

.wow-photographers {
	padding: 96px 32px 110px;
	background: #fff;
}

.wow-photographers__head {
	max-width: 640px;
	margin: 0 auto 56px;
	text-align: center;
}

.wow-photographers__eyebrow {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2.5px;
	color: var(--wp--preset--color--accent);
	margin: 0 0 16px;
}

.wow-photographers__title {
	font-size: clamp(28px, 3.4vw, 44px);
	font-weight: 700;
	letter-spacing: -0.5px;
	line-height: 1.15;
	margin: 0 0 16px;
	color: var(--wp--preset--color--black);
}

.wow-photographers__desc {
	font-size: 16px;
	font-weight: 300;
	line-height: 1.6;
	color: var(--wp--preset--color--grey);
	margin: 0;
}

/* Fluid auto-fill grid rather than a fixed column count — scales smoothly
   from a phone up to a wide desktop without needing a breakpoint for every
   step in between, and never leaves an awkward lone card on its own row. */
.wow-photographers__grid {
	max-width: 1320px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 40px 28px;
}

.wow-photographers__card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

.wow-photographers__photo {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: 16px;
	overflow: hidden;
	margin: 0 0 18px;
	background-color: #f2f0ec;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.3s ease;
}

.wow-photographers__card:hover .wow-photographers__photo,
.wow-photographers__card:focus-visible .wow-photographers__photo {
	box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25);
}

/* Union selector covers the live site's AVIF-optimization plugin, which
   wraps <img> in <picture> and moves any class on the <img> itself onto
   that wrapper instead — same fix as .wow-cat-card__img elsewhere. */
.wow-photographers__photo img,
.wow-photographers__photo picture {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.wow-photographers__card:hover .wow-photographers__photo img,
.wow-photographers__card:focus-visible .wow-photographers__photo img,
.wow-photographers__card:hover .wow-photographers__photo picture,
.wow-photographers__card:focus-visible .wow-photographers__photo picture {
	transform: scale(1.08);
}

/* Gradient reveal on hover — subtle depth cue, echoes the same treatment
   used on the Collector/Open Edition photo cards on the product page. */
.wow-photographers__photo::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.45) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.wow-photographers__card:hover .wow-photographers__photo::after,
.wow-photographers__card:focus-visible .wow-photographers__photo::after {
	opacity: 1;
}

.wow-photographers__type {
	display: inline-block;
	width: fit-content;
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--wp--preset--color--accent);
	margin: 0 0 8px;
}

.wow-photographers__name {
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.2px;
	line-height: 1.25;
	color: var(--wp--preset--color--black);
	margin: 0 0 8px;
}

/* 3-line clamp — keeps every card the same rough height regardless of how
   long each photographer/publisher's ACF bio field happens to run. */
.wow-photographers__bio {
	font-size: 13.5px;
	font-weight: 300;
	line-height: 1.6;
	color: var(--wp--preset--color--grey);
	margin: 0 0 14px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Same underline + arrow-nudge hover treatment as .wow-related__viewall /
   .wow-photographer__cta elsewhere — pushed to the bottom of the card via
   margin-top: auto so every CTA lines up along the same row even when bios
   run to different lengths. */
.wow-photographers__cta {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	width: fit-content;
	margin-top: auto;
	font-family: var(--wp--preset--font-family--josefin);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--wp--preset--color--black);
	padding-bottom: 2px;
	border-bottom: 1px solid #d8d3cd;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.wow-photographers__card:hover .wow-photographers__cta,
.wow-photographers__card:focus-visible .wow-photographers__cta {
	color: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
}

.wow-photographers__cta svg {
	transition: transform 0.2s ease;
}

.wow-photographers__card:hover .wow-photographers__cta svg,
.wow-photographers__card:focus-visible .wow-photographers__cta svg {
	transform: translateX(2px);
}

@media (max-width: 700px) {
	.wow-photographers {
		padding: 64px 20px 72px;
	}

	.wow-photographers__grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 32px 16px;
	}

	.wow-photographers__name {
		font-size: 16px;
	}
}
