.apg-rankings-wrapper {
	width: 100%;
}

.apg-ranking-section {
	margin-bottom: 48px;
	text-align: center;
}

.apg-ranking-kicker {
	letter-spacing: 2px;
	font-size: 12px;
	font-weight: 700;
	color: #c99b4a;
	text-transform: uppercase;
	margin-bottom: 4px;
}

.apg-ranking-heading {
	margin-top: 0;
	margin-bottom: 24px;
	font-weight: 800;
}

.apg-ranking-grid {
	display: grid;
	grid-template-columns: repeat(var(--apg-cols, 2), minmax(220px, 1fr));
	gap: 24px;
	justify-items: center;
	align-items: start;
	max-width: 1100px;
	margin: 0 auto;
}

@media (max-width: 782px) {
	.apg-ranking-grid {
		grid-template-columns: 1fr;
	}
}

.apg-ranking-card {
	position: relative;
	margin: 0;
	max-width: 100%;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
	overflow: hidden;
}

.apg-ranking-card img {
	display: block;
	width: 100%;
	height: auto;
}

.apg-ranking-link {
	display: block;
	cursor: zoom-in;
}

.apg-ranking-missing {
	padding: 40px 12px;
	color: #b32d2e;
	font-weight: 600;
	background: #fbeaea;
}

/* Lightbox */
body.apg-lightbox-open {
	overflow: hidden;
}

.apg-lightbox-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	cursor: zoom-out;
}

.apg-lightbox-overlay img {
	max-width: 96vw;
	max-height: 92vh;
	width: auto;
	height: auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	border-radius: 4px;
	cursor: default;
}

.apg-lightbox-close {
	position: absolute;
	top: 16px;
	right: 24px;
	color: #fff;
	font-size: 40px;
	line-height: 1;
	cursor: pointer;
	font-weight: 300;
}
