/* ==========================================================================
   PokerNoticias - Fotos en la página de torneo
   Los títulos usan doble clase para ganar a los h2/h3 blancos del kit de Elementor.
   ========================================================================== */

.pkn-fg {
	--pkn-fg-ink: #111827;
	--pkn-fg-muted: #6b7280;
	--pkn-fg-line: #e5e7eb;
	--pkn-fg-blue: #0067FE;
	width: 100%;
	color: var(--pkn-fg-ink);
}

.pkn-fg *,
.pkn-fg *::before,
.pkn-fg *::after {
	box-sizing: border-box;
}

.pkn-fg--torneo {
	margin: 8px 0 36px;
	scroll-margin-top: 110px;
}

.pkn-fg--dia {
	padding-top: 6px;
	scroll-margin-top: 110px;
}

.pkn-fg .pkn-fg__head {
	margin-bottom: 14px;
}

.pkn-fg .pkn-fg__h2 {
	margin: 0 0 6px;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--pkn-fg-ink);
}

.pkn-fg .pkn-fg__title {
	margin: 0 0 4px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--pkn-fg-ink);
}

.pkn-fg .pkn-fg__intro,
.pkn-fg .pkn-fg__meta {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--pkn-fg-muted);
}

/* ---------- Rejilla de fotos ---------- */

.pkn-fg__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
}

.pkn-fg__ph {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: 8px;
	background: #f3f4f6;
	cursor: zoom-in;
}

.pkn-fg__ph img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	border-radius: 0;
	transition: transform 0.3s ease;
}

.pkn-fg__ph:hover img,
.pkn-fg__ph:focus-visible img {
	transform: scale(1.05);
}

.pkn-fg__ph:focus-visible {
	outline: 3px solid var(--pkn-fg-blue);
	outline-offset: 2px;
}

.pkn-fg__ph.is-extra {
	display: none;
}

.pkn-fg__grid.is-expanded .pkn-fg__ph.is-extra {
	display: block;
}

.pkn-fg .pkn-fg__more {
	display: block;
	margin: 16px auto 0;
	padding: 11px 22px;
	border: 1px solid var(--pkn-fg-line);
	border-radius: 999px;
	background: #fff;
	color: var(--pkn-fg-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.pkn-fg .pkn-fg__more:hover {
	border-color: var(--pkn-fg-blue);
	color: var(--pkn-fg-blue);
	background: #fff;
}

/* ---------- Índice de días (sección del torneo) ---------- */

.pkn-fg__days {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
}

.pkn-fg__days li {
	margin: 0;
	padding: 0;
}

.pkn-fg .pkn-fg__day {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--pkn-fg-line);
	border-radius: 12px;
	background: #fff;
	color: var(--pkn-fg-ink);
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pkn-fg .pkn-fg__day:hover,
.pkn-fg .pkn-fg__day:focus-visible {
	border-color: var(--pkn-fg-blue);
	box-shadow: 0 8px 22px rgba(17, 24, 39, 0.1);
	transform: translateY(-2px);
	color: var(--pkn-fg-ink);
}

.pkn-fg__day-cover {
	display: block;
	aspect-ratio: 3 / 2;
	background: #f3f4f6;
}

.pkn-fg__day-cover img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	border-radius: 0;
}

.pkn-fg__day-text {
	display: block;
	padding: 10px 12px 12px;
}

.pkn-fg__day-title {
	display: block;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.pkn-fg__day-meta {
	display: block;
	margin-top: 3px;
	font-size: 12.5px;
	color: var(--pkn-fg-muted);
}

.pkn-fg__block {
	margin-top: 28px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.pkn-fg__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.pkn-fg__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 6px;
	}

	.pkn-fg__ph {
		border-radius: 6px;
	}

	.pkn-fg__days {
		display: flex;
		gap: 10px;
		margin: 0 -16px 8px;
		padding: 0 16px 4px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.pkn-fg__days::-webkit-scrollbar {
		display: none;
	}

	.pkn-fg__days li {
		flex: 0 0 62%;
		scroll-snap-align: start;
	}

	.pkn-fg .pkn-fg__h2 {
		font-size: 20px;
	}
}

@media (max-width: 420px) {
	.pkn-fg__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.pkn-fg *,
	.pkn-fg__ph img {
		transition: none !important;
	}
}

html.pkn-fg-loading,
html.pkn-fg-loading .pkn-fg__ph,
html.pkn-fg-loading .pkn-fg__day {
	cursor: progress;
}

/* ---------- Página de evento ---------- */

.pkn-fg--evento {
	margin: 32px 0 40px;
	scroll-margin-top: 110px;
}

.pkn-fg--evento .pkn-fg__block {
	margin-top: 26px;
}

.pkn-fg .pkn-fg__block-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.pkn-fg .pkn-fg__block-head .pkn-fg__title {
	margin: 0;
}

.pkn-fg .pkn-fg__link {
	flex: none;
	font-size: 14px;
	font-weight: 700;
	color: var(--pkn-fg-blue);
	text-decoration: none;
	white-space: nowrap;
}

.pkn-fg .pkn-fg__link::after {
	content: " →";
}

.pkn-fg .pkn-fg__link:hover {
	text-decoration: underline;
	color: var(--pkn-fg-blue);
}
