.ampPotwSlider {
	display: flex;
	gap: 5px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	border-radius: var(--wcfBorderRadius);
}

.ampPotwSlider::-webkit-scrollbar {
	display: none;
}

.ampPotwSlide {
	position: relative;
	flex: 0 0 100%;
	scroll-snap-align: center;
}

.ampPotwSlide img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 320px;
	object-fit: cover;
	border-radius: var(--wcfBorderRadius);
}

.ampPotwSlideLabel {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 18px 8px 6px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
	border-radius: 0 0 var(--wcfBorderRadius) var(--wcfBorderRadius);
	color: #fff;
	font-size: var(--wcfFontSizeSmall);
}

.ampPotwSlideLabel:hover {
	color: #fff;
}

.ampPotwSlideTitle {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ampPotwMeta {
	margin-top: 10px;
}

.ampPotwTitle {
	display: block;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ampPotwInfo {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 5px;
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

.ampPotwLikes {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.ampPotwArchiveLink {
	display: inline-block;
	margin-top: 5px;
	font-size: var(--wcfFontSizeSmall);
}

/* archive page */
.ampPotwArchiveGrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
}

.ampPotwArchiveCard {
	padding: 10px;
	background-color: var(--wcfContentContainerBackground);
	border: 1px solid var(--wcfContentContainerBorder);
	border-radius: var(--wcfBorderRadius);
}

.ampPotwArchiveWeek {
	margin-bottom: 5px;
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
	font-weight: 600;
	text-transform: uppercase;
}


/* current picture of the week (hero on archive page) */
.ampPotwHero .ampPotw {
	max-width: 700px;
}

/* small attachment-style preview thumbnails (archive page) */
.ampPotwThumbStrip {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.ampPotwThumb img {
	display: block;
	height: 96px;
	width: auto;
	max-width: 100%;
	object-fit: cover;
	border: 1px solid var(--wcfContentContainerBorder);
	border-radius: var(--wcfBorderRadius);
}

.ampPotwThumbStripLarge .ampPotwThumb img {
	height: 140px;
}

/* runners-up (ranks 2 and 3) */
.ampPotwRunnerList {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--wcfContentContainerBorder);
	counter-reset: ampPotwRank 1;
}

.ampPotwRunner {
	display: flex;
	align-items: center;
	gap: 10px;
	counter-increment: ampPotwRank;
}

.ampPotwRunner + .ampPotwRunner {
	margin-top: 8px;
}

.ampPotwRunner::before {
	content: "#" counter(ampPotwRank);
	flex: 0 0 auto;
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
	font-weight: 600;
}

.ampPotwRunnerImage {
	flex: 0 0 auto;
}

.ampPotwRunnerImage img {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: var(--wcfBorderRadius);
}

.ampPotwRunnerMeta {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ampPotwRunnerTitle {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: var(--wcfFontSizeSmall);
	font-weight: 600;
}

.ampPotwRunnerMeta .ampPotwInfo {
	display: flex;
	gap: 10px;
	justify-content: flex-start;
	margin-top: 2px;
}

/* voting page */
.ampPotwVoteGrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}

.ampPotwVoteCard {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px;
	background-color: var(--wcfContentContainerBackground);
	border: 1px solid var(--wcfContentContainerBorder);
	border-radius: var(--wcfBorderRadius);
}

.ampPotwVoteImage img {
	display: block;
	width: 100%;
	height: 160px;
	object-fit: cover;
	border-radius: var(--wcfBorderRadius);
}

.ampPotwVoteMeta {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ampPotwVoteMeta .ampPotwInfo {
	display: flex;
	gap: 10px;
	justify-content: flex-start;
	margin-top: 2px;
}

.ampPotwVoteButton {
	align-self: flex-start;
}
