/**
 * Location Posts Shortcode – Styles
 *
 * Three-column and five-column flexbox lists with no bullets and no list-item
 * padding or margin. Includes show-more truncation styles for the state
 * shortcode's opt-in overflow feature.
 *
 * @package LocationPostsShortcode
 */

.location-posts__list {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 15px;
}

.location-posts__item {
	box-sizing: border-box;
	flex: 0 0 33.333%;
	margin: 0;
	padding: 0;
}

/* Five-column variant used by [location_posts_by_state]. */
.location-posts__list--five-col .location-posts__item {
	flex: 0 0 20%;
}

/* Tablet: three columns. */
@media ( max-width: 1024px ) {
	.location-posts__list--five-col .location-posts__item {
		flex: 0 0 33.333%;
	}
}

/* Mobile: single column. */
@media ( max-width: 600px ) {
	.location-posts__list--five-col .location-posts__item {
		flex: 0 0 100%;
	}
}

/* --------------------------------------------------------------------------
   Show-more / show-less truncation
   -------------------------------------------------------------------------
   Overflow items are hidden when the list is collapsed (aria-expanded="false")
   and revealed when expanded (aria-expanded="true").
   -------------------------------------------------------------------------- */

.location-posts__list[aria-expanded="false"] .location-posts__item--overflow {
	display: none;
}

.location-posts__list[aria-expanded="true"] .location-posts__item--overflow {
	display: block;
}

/* Toggle link */
.location-posts__toggle {
	margin: 10px 0 0 0;
	padding: 0;
	text-align: center;
}

.location-posts__toggle-view,
.location-posts__toggle-less {
	display: inline-flex;
	align-items: center;
	gap: 0.25em;
	cursor: pointer;
	/* Reset button defaults */
	background: none;
	border: none;
	padding: 0;
	font: inherit;
	color: inherit;
	text-decoration: underline;
	font-weight: bold;
}

.location-posts__toggle-icon {
	font-size: 0.7em;
	line-height: 1;
}
.location-posts__item a::after {
  content: "›";
  font-size: 20px;
  padding-left: 3px;
}

.location-posts__item a {
  font-weight: bold;
}
