/* ==========================================================================
   Ariya – news & promotions / articles / one post (AR News List, AR Article List, AR Post Detail).
   Sizes measured from the old site at 1920 / 1440 and the phone video.
   Own file + own roots (.ar-plist, .ar-post): nothing here touches the other widgets.
   ========================================================================== */

/* ---- base (same idea as ar-base.css, for these two roots only) ---- */
.ar-plist, .ar-post {
	font-family: var(--ar-font, 'Kanit', sans-serif);
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}
:is(.ar-plist, .ar-post) *,
:is(.ar-plist, .ar-post) *::before,
:is(.ar-plist, .ar-post) *::after {
	box-sizing: inherit;
}
.ar-plist :is(h1, h2, h3, h4, h5, h6, p, ul, ol, figure, hr),
.ar-post .ar-post__head :is(h1, h2, h3, h4, h5, h6, p, div) {
	margin: 0;
	padding: 0;
	font-family: var(--ar-font, 'Kanit', sans-serif);
	letter-spacing: normal;
	text-transform: none;
}
.ar-plist a,
.ar-post .ar-post__head a,
.ar-post .ar-post__back-wrap a {
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}
.ar-plist img {
	display: block;
	max-width: 100%;
	height: auto;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
:is(.ar-plist, .ar-post) :focus-visible {
	outline: 2px solid var(--ar-red, #e50019);
	outline-offset: 2px;
}

/* ==========================================================================
   Lists – shared parts
   ========================================================================== */
.ar-plist .ar-plist__inner {
	margin: 0 auto;
	padding: 50px var(--ar-gutter, 20px) 90px;
}
.ar-plist .ar-plist__body {
	position: relative;
}
.ar-plist .ar-plist__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
}
.ar-plist .ar-plist__card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--ar-white, #ffffff);
}
.ar-plist .ar-plist__media {
	display: block;
	overflow: hidden;
	background: #eeeeee;
	line-height: 0;
}
.ar-plist .ar-plist__img {
	width: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
}
.ar-plist .ar-plist__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}
.ar-plist .ar-plist__excerpt {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}
.ar-plist .ar-plist__empty {
	padding: 40px 0;
	color: var(--ar-muted, #8e8e8e);
	font-size: 18px;
	text-align: center;
}

/* page numbers (same look as the machine list) */
.ar-plist .ar-plist__pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 50px;
}
.ar-plist .ar-plist__pager :is(a, span) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	color: var(--ar-ink, #222222);
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
}
.ar-plist .ar-plist__pager a {
	cursor: pointer;
}
.ar-plist .ar-plist__pager a.ar-plist__num:hover {
	color: var(--ar-red, #e50019);
}
.ar-plist .ar-plist__pager .ar-plist__dots {
	width: auto;
	color: var(--ar-muted, #8e8e8e);
}
.ar-plist .ar-plist__pager .ar-plist__arrow {
	color: #555555;
}
.ar-plist .ar-plist__pager .ar-plist__arrow .ar-icon {
	width: 20px;
	height: 20px;
}
.ar-plist .ar-plist__pager .is-current {
	background: var(--ar-red, #e50019);
	color: var(--ar-white, #ffffff);
}

/* loading (no fade): light layer over the cards, only if it takes longer than ~150ms */
.ar-plist[aria-busy="true"] {
	cursor: progress;
}
.ar-plist:not(.ar-plist--fade)[aria-busy="true"] .ar-plist__body::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	background: rgba(255, 255, 255, 0.7);
	opacity: 0;
	animation: ar-pl-wait 0.2s ease 0.15s forwards;
}
@keyframes ar-pl-wait {
	to { opacity: 1; }
}

/* ==========================================================================
   AR News List (ข่าวและโปรโมชั่น)
   ========================================================================== */
.ar-plist--news .ar-plist__inner {
	max-width: calc(1440px + 2 * var(--ar-gutter, 20px));
}
.ar-plist--news .ar-plist__line {
	display: block;
	height: 1px;
	margin: 0 0 100px;
	border: 0;
	background: #dddddd;
}
.ar-plist--news .ar-plist__filter {
	margin-bottom: 35px;
}
.ar-plist--news .ar-plist__tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
}
.ar-plist--news .ar-plist__tab,
.ar-plist--news .ar-plist__tab.ar-plist__tab:is(:hover, :focus) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 2px 25px;
	border: 0;
	border-radius: 20px;
	background: var(--ar-pill, #ededed);
	color: #9a9a9a;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.3;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}
.ar-plist--news .ar-plist__tab.ar-plist__tab:hover {
	color: var(--ar-ink, #222222);
}
.ar-plist--news .ar-plist__tab.is-active.is-active {
	background: var(--ar-red, #e50019);
	color: var(--ar-white, #ffffff);
}
.ar-plist--news .ar-plist__grid {
	column-gap: 40px;
	row-gap: 25px;
}
.ar-plist--news .ar-plist__img {
	height: 250px;
}
.ar-plist--news .ar-plist__content {
	padding: 45px 50px 48px;
}
.ar-plist--news .ar-plist__title {
	color: var(--ar-dark, #333333);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.25;
}
/* Title link always takes the title's colour, also on mouse-over: the site's link colours
   (Site Settings → links, e.g. ".elementor-kit-6 a:hover") must not paint it. */
.ar-plist.ar-plist .ar-plist__title a,
.ar-plist.ar-plist .ar-plist__title a:is(:hover, :focus, :active, :visited) {
	color: inherit;
	text-decoration: none;
}
/* the whole card opens the post */
.ar-plist--news .ar-plist__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.ar-plist--news .ar-plist__card:focus-within {
	outline: 2px solid var(--ar-red, #e50019);
	outline-offset: 2px;
}
.ar-plist--news .ar-plist__link:focus-visible {
	outline: 0;
}
.ar-plist--news .ar-plist__excerpt {
	margin-top: 14px;
	color: var(--ar-muted, #8e8e8e);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.5;
}
.ar-plist--news .ar-plist__date {
	margin-top: auto;
	padding-top: 40px;
	color: var(--ar-muted, #8e8e8e);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}
.ar-plist--news .ar-plist__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 22px;
	color: var(--ar-ink, #222222);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
}
.ar-plist--news .ar-plist__date + .ar-plist__more {
	margin-top: 20px;
}
.ar-plist--news .ar-plist__excerpt + .ar-plist__more,
.ar-plist--news .ar-plist__title + .ar-plist__more {
	margin-top: auto;
	padding-top: 30px;
}
.ar-plist--news .ar-plist__more-icon {
	width: 17px;
	height: 17px;
}

/* mouse-over: the whole card turns red (old site) */
.ar-plist--hover .ar-plist__card,
.ar-plist--hover .ar-plist__card :is(.ar-plist__title, .ar-plist__excerpt, .ar-plist__date, .ar-plist__more) {
	transition: background-color 0.3s ease, color 0.3s ease;
}
.ar-plist--hover .ar-plist__card:hover {
	background-color: var(--ar-red, #e50019);
}
.ar-plist--hover .ar-plist__card:hover :is(.ar-plist__title, .ar-plist__excerpt, .ar-plist__date, .ar-plist__more) {
	color: var(--ar-white, #ffffff);
}

/* changing tab / page: cards fade out, new cards fade in */
.ar-plist--fade .ar-plist__body {
	transition: opacity 0.25s ease;
}
.ar-plist--fade[aria-busy="true"] .ar-plist__body {
	opacity: 0.15;
}
.ar-plist--fade .ar-plist__body.is-entering {
	opacity: 0;
	transition: none;
}

/* ==========================================================================
   AR Article List (บทความ)
   ========================================================================== */
.ar-plist--articles .ar-plist__inner {
	max-width: calc(1120px + 2 * var(--ar-gutter, 20px));
	padding-top: 30px;
	padding-bottom: 80px;
}
.ar-plist--articles .ar-plist__heading {
	margin-bottom: 28px;
	color: var(--ar-ink, #222222);
	font-size: 40px;
	font-weight: 400;
	line-height: 1.3;
}
.ar-plist--articles .ar-plist__grid {
	gap: 26px;
}
.ar-plist--articles .ar-plist__card {
	border: 1px solid #e3e3e3;
}
.ar-plist--articles .ar-plist__img {
	height: 190px;
}
.ar-plist--articles .ar-plist__content {
	padding: 40px 20px 32px;
}
.ar-plist--articles .ar-plist__label {
	color: var(--ar-dark, #333333);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
}
.ar-plist--articles .ar-plist__title {
	margin-top: 10px;
	color: var(--ar-dark, #333333);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.35;
}
.ar-plist--articles .ar-plist__excerpt {
	margin-top: 12px;
	color: #555555;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.6;
	-webkit-line-clamp: 4;
	line-clamp: 4;
}
.ar-plist--articles .ar-plist__foot {
	padding: 22px 20px;
	border-top: 1px solid #e3e3e3;
}
.ar-plist--articles .ar-plist__date {
	color: var(--ar-red, #e50019);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}

/* ==========================================================================
   AR Post Detail (one news / article / promotion)
   ========================================================================== */
.ar-post .ar-post__inner {
	max-width: calc(1440px + 2 * var(--ar-gutter, 20px));
	margin: 0 auto;
	padding: 150px var(--ar-gutter, 20px) 60px;
}
.ar-post .ar-post__title {
	color: var(--ar-ink, #222222);
	font-size: 40px;
	font-weight: 500;
	line-height: 1.3;
}
.ar-post .ar-post__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 40px;
	margin-top: 10px;
}
.ar-post .ar-post__date {
	color: var(--ar-muted, #8e8e8e);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.4;
}
.ar-post .ar-post__share {
	display: flex;
	align-items: center;
	gap: 40px;
	margin-left: auto;
}
.ar-post .ar-post__share-label {
	color: var(--ar-dark, #333333);
	font-size: 24px;
	font-weight: 300;
	line-height: 1;
	text-transform: uppercase;
}
.ar-post .ar-post__share-btns {
	display: flex;
	align-items: center;
	gap: 14px;
}
.ar-post .ar-post__share-btn,
.ar-post .ar-post__share-btn.ar-post__share-btn:is(:hover, :focus) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	text-decoration: none;
}
.ar-post .ar-post__share-btn.ar-post__share-btn {
	background: #f2f2f2;
	color: var(--ar-red, #e50019);
	transition: background-color 0.2s, color 0.2s;
}
.ar-post .ar-post__share-btn.ar-post__share-btn.ar-post__share-btn:hover {
	background: var(--ar-red, #e50019);
	color: var(--ar-white, #ffffff);
}
.ar-post .ar-post__share-btn .ar-icon {
	width: 22px;
	height: 22px;
}
.ar-post .ar-post__share-btn--email .ar-icon {
	width: 21px;
	height: 16px;
}
/* envelope icon has white inner lines: keep them the button colour on hover */
.ar-post .ar-post__share-btn--email:hover .ar-icon path[stroke="#fff"] {
	stroke: var(--ar-red, #e50019);
}
.ar-post .ar-post__media {
	margin-top: 60px;
	line-height: 0;
	text-align: center;
}
.ar-post .ar-post__img {
	display: inline-block;
	max-width: 100%;
	height: auto;
}

/* ---- the post's own text (from the WordPress editor) ---- */
.ar-post .ar-post__content {
	margin-top: 100px;
	color: #555555;
	font-family: var(--ar-font, 'Kanit', sans-serif);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.55;
	overflow-wrap: break-word;
}
.ar-post .ar-post__content > :first-child {
	margin-top: 0;
}
.ar-post .ar-post__content p {
	margin: 0 0 14px;
	font-size: inherit;
	line-height: inherit;
}
.ar-post .ar-post__content :is(h1, h2, h3, h4, h5, h6) {
	margin: 28px 0 14px;
	padding: 0;
	color: #444444;
	font-family: var(--ar-font, 'Kanit', sans-serif);
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: normal;
	text-transform: none;
}
.ar-post .ar-post__content h2 { font-size: 24px; }
.ar-post .ar-post__content h3 { font-size: 20px; }
.ar-post .ar-post__content :is(h4, h5, h6) { font-size: 18px; }
.ar-post .ar-post__content :is(strong, b) {
	font-weight: 500;
}
.ar-post .ar-post__content a {
	color: var(--ar-red, #e50019);
	text-decoration: none;
}
.ar-post .ar-post__content a:hover {
	text-decoration: underline;
}
.ar-post .ar-post__content :is(ul, ol) {
	margin: 0 0 16px;
	padding-left: 40px;
}
.ar-post .ar-post__content ul { list-style: disc; }
.ar-post .ar-post__content ol { list-style: decimal; }
.ar-post .ar-post__content li {
	margin: 0;
	padding: 0;
	font-size: inherit;
}
.ar-post .ar-post__content li + li {
	margin-top: 2px;
}
.ar-post .ar-post__content :is(figure, .wp-block-image) {
	max-width: 100%;
	margin: 40px auto;
	text-align: center;
}
.ar-post .ar-post__content img {
	display: inline-block;
	max-width: 100%;
	height: auto;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
.ar-post .ar-post__content figcaption {
	margin-top: 8px;
	color: var(--ar-muted, #8e8e8e);
	font-size: 14px;
}
.ar-post .ar-post__content .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.ar-post .ar-post__content .alignleft {
	float: left;
	margin: 0 24px 16px 0;
}
.ar-post .ar-post__content .alignright {
	float: right;
	margin: 0 0 16px 24px;
}
.ar-post .ar-post__content::after {
	content: "";
	display: table;
	clear: both;
}
.ar-post .ar-post__content blockquote {
	margin: 24px 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--ar-red, #e50019);
	color: #555555;
	font-style: normal;
}
/* tables (old site: thin dark lines, no stripes) – beat the theme's striped table */
.ar-post .ar-post__content :is(figure.wp-block-table, .wp-block-table) {
	overflow-x: auto;
	text-align: left;
}
.ar-post .ar-post__content table {
	width: 100%;
	margin: 0 0 24px;
	border-collapse: collapse;
	border-spacing: 0;
	font-size: 14px;
	line-height: 1.5;
}
.ar-post .ar-post__content :is(td, th) {
	padding: 8px;
	border: 1px solid #555555;
	background: transparent;
	color: #555555;
	font-size: inherit;
	font-weight: 300;
	line-height: inherit;
	text-align: left;
	vertical-align: top;
}
.ar-post .ar-post__content :is(thead th, thead td, tr:first-child > td, th) {
	font-weight: 500;
}
.ar-post .ar-post__content tr:is(:nth-child(odd), :nth-child(even), :hover) > :is(td, th) {
	background: transparent;
}

/* ---- line + back button ---- */
.ar-post .ar-post__line {
	display: block;
	height: 1px;
	margin: 60px 0 0;
	border: 0;
	background: #cccccc;
}
.ar-post .ar-post__back-wrap {
	display: flex;
	justify-content: center;
	margin-top: 75px;
}
.ar-post .ar-post__back,
.ar-post .ar-post__back.ar-post__back:is(:hover, :focus) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	min-width: 160px;
	min-height: 48px;
	padding: 6px 30px;
	border: 1px solid var(--ar-red, #e50019);
	border-radius: 30px;
	font-family: var(--ar-font, 'Kanit', sans-serif);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
}
.ar-post .ar-post__back.ar-post__back {
	background: var(--ar-red, #e50019);
	color: var(--ar-white, #ffffff);
	transition: background-color 0.2s, color 0.2s;
}
.ar-post .ar-post__back.ar-post__back.ar-post__back:hover,
.ar-post .ar-post__back.ar-post__back.ar-post__back:focus-visible {
	background: var(--ar-white, #ffffff);
	color: var(--ar-red, #e50019);
}
.ar-post .ar-post__back-icon {
	width: 14px;
	height: 14px;
}

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1024px) {
	.ar-plist .ar-plist__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.ar-plist--news .ar-plist__grid {
		column-gap: 30px;
		row-gap: 30px;
	}
	.ar-plist--news .ar-plist__line {
		margin-bottom: 60px;
	}
	.ar-plist--news .ar-plist__img {
		height: 220px;
	}
	.ar-plist--news .ar-plist__content {
		padding: 35px 30px 38px;
	}
	.ar-post .ar-post__inner {
		padding-top: 90px;
	}
	.ar-post .ar-post__title {
		font-size: 34px;
	}
	.ar-post .ar-post__date,
	.ar-post .ar-post__share-label {
		font-size: 20px;
	}
	.ar-post .ar-post__content {
		margin-top: 60px;
	}
}

/* ==========================================================================
   Phone
   ========================================================================== */
@media (max-width: 767px) {
	.ar-plist .ar-plist__inner {
		padding-top: 30px;
		padding-bottom: 60px;
	}
	.ar-plist .ar-plist__grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.ar-plist .ar-plist__pager {
		gap: 6px;
		margin-top: 36px;
	}
	.ar-plist .ar-plist__pager :is(a, span) {
		width: 32px;
		height: 32px;
		font-size: 18px;
	}

	/* news: tabs in one row, swipe sideways */
	.ar-plist--news .ar-plist__line {
		margin-bottom: 36px;
	}
	.ar-plist--news .ar-plist__filter {
		margin: 0 calc(-1 * var(--ar-gutter, 20px)) 26px;
	}
	.ar-plist--news .ar-plist__tabs {
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 8px;
		padding: 2px var(--ar-gutter, 20px) 4px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.ar-plist--news .ar-plist__tabs::-webkit-scrollbar {
		display: none;
	}
	.ar-plist--news .ar-plist__tabs::after {
		content: "";
		flex: 0 0 1px;
	}
	.ar-plist--news .ar-plist__tab,
	.ar-plist--news .ar-plist__tab.ar-plist__tab:is(:hover, :focus) {
		flex: none;
		min-height: 36px;
		padding: 2px 18px;
		font-size: 16px;
	}
	.ar-plist--news .ar-plist__grid {
		row-gap: 24px;
	}
	.ar-plist--news .ar-plist__img {
		height: auto;
		aspect-ratio: 16 / 9;
	}
	.ar-plist--news .ar-plist__content {
		padding: 26px 24px 30px;
	}
	.ar-plist--news .ar-plist__title {
		font-size: 18px;
	}
	.ar-plist--news .ar-plist__excerpt,
	.ar-plist--news .ar-plist__date,
	.ar-plist--news .ar-plist__more {
		font-size: 15px;
	}
	.ar-plist--news .ar-plist__date {
		padding-top: 22px;
	}
	.ar-plist--news .ar-plist__date + .ar-plist__more {
		margin-top: 12px;
	}

	/* articles */
	.ar-plist--articles .ar-plist__heading {
		margin-bottom: 20px;
		font-size: 32px;
	}
	.ar-plist--articles .ar-plist__grid {
		gap: 22px;
	}
	.ar-plist--articles .ar-plist__img {
		height: auto;
		aspect-ratio: 16 / 9;
	}
	.ar-plist--articles .ar-plist__content {
		padding: 26px 20px 26px;
	}
	.ar-plist--articles .ar-plist__title {
		font-size: 21px;
	}

	/* one post */
	.ar-post .ar-post__inner {
		padding-top: 50px;
		padding-bottom: 50px;
	}
	.ar-post .ar-post__title {
		font-size: 26px;
		line-height: 1.35;
	}
	.ar-post .ar-post__meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		margin-top: 8px;
	}
	.ar-post .ar-post__date {
		font-size: 18px;
	}
	.ar-post .ar-post__share {
		gap: 20px;
		margin-left: 0;
	}
	.ar-post .ar-post__share-label {
		font-size: 18px;
	}
	.ar-post .ar-post__share-btn,
	.ar-post .ar-post__share-btn.ar-post__share-btn:is(:hover, :focus) {
		width: 40px;
		height: 40px;
	}
	.ar-post .ar-post__share-btn .ar-icon {
		width: 19px;
		height: 19px;
	}
	.ar-post .ar-post__content {
		margin-top: 36px;
		font-size: 15px;
	}
	.ar-post .ar-post__content h2 { font-size: 21px; margin-top: 24px; }
	.ar-post .ar-post__content h3 { font-size: 18px; }
	.ar-post .ar-post__content :is(ul, ol) {
		padding-left: 24px;
	}
	/* wide tables scroll sideways inside the text, never the whole page */
	.ar-post .ar-post__content table {
		display: block;
		max-width: 100%;
		overflow-x: auto;
		font-size: 13px;
	}
	.ar-post .ar-post__content :is(td, th) {
		min-width: 120px;
	}
	.ar-post .ar-post__content :is(.alignleft, .alignright) {
		float: none;
		margin: 0 auto 16px;
	}
	.ar-post .ar-post__line {
		margin-top: 40px;
	}
	.ar-post .ar-post__back-wrap {
		margin-top: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	:is(.ar-plist, .ar-post) * {
		transition-duration: 0s !important;
		animation-duration: 0s !important;
	}
}

/* ---- AR Post Detail: gallery slider (SCF field "post_gallery") ---- */
.ar-post .ar-post__gallery {
	position: relative;
	line-height: 0;
}
.ar-post .ar-post__gal-viewport {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	outline: none;
}
.ar-post .ar-post__gal-viewport::-webkit-scrollbar {
	display: none;
}
.ar-post .ar-post__slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ar-post .ar-post__gallery .ar-post__img {
	display: block;
	width: 100%;
	height: auto;
}
.ar-post .ar-post__gal-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-top: -38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.ar-post .ar-post__gal-arrow:hover,
.ar-post .ar-post__gal-arrow:focus-visible {
	background: var(--ar-red, #e2231a);
}
.ar-post .ar-post__gal-arrow svg {
	width: 20px;
	height: 20px;
}
.ar-post .ar-post__gal-arrow--prev {
	left: 16px;
}
.ar-post .ar-post__gal-arrow--next {
	right: 16px;
}
.ar-post .ar-post__gal-arrow--next svg {
	transform: scaleX(-1);
}
.ar-post .ar-post__gal-dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 20px;
	line-height: 1;
}
.ar-post .ar-post__gal-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #c8c8c8;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.ar-post .ar-post__gal-dot.is-active,
.ar-post .ar-post__gal-dot:hover {
	background: var(--ar-red, #e2231a);
}
@media (max-width: 767px) {
	.ar-post .ar-post__gal-arrow {
		width: 34px;
		height: 34px;
		margin-top: -32px;
	}
	.ar-post .ar-post__gal-arrow--prev {
		left: 8px;
	}
	.ar-post .ar-post__gal-arrow--next {
		right: 8px;
	}
}

/* ---- gallery on top of the post (full width, previous / next picture peeking, like the old site) ---- */
.ar-post.ar-post--top-gallery {
	padding-top: 90px; /* space under the header, as on the old site */
}
.ar-post.ar-post--top-gallery > .ar-post__inner {
	padding-top: 60px;
}
.ar-post > .ar-post__media {
	margin-top: 0;
}
.ar-post > .ar-post__media--top .ar-post__img {
	display: inline-block;
	width: min(1180px, 78%);
	height: auto;
}
.ar-post .ar-post__gallery--peek {
	--ar-gal-w: min(1180px, 78cqw);
	--ar-gal-gap: 12px;
	container-type: inline-size;
	overflow: hidden;
}
.ar-post .ar-post__gallery--peek .ar-post__gal-viewport {
	position: relative;
	gap: var(--ar-gal-gap);
	padding-inline: calc((100cqw - var(--ar-gal-w)) / 2);
	scroll-padding-inline: calc((100cqw - var(--ar-gal-w)) / 2);
}
.ar-post .ar-post__gallery--peek .ar-post__slide {
	flex: 0 0 var(--ar-gal-w);
	scroll-snap-align: center;
}
.ar-post .ar-post__gallery--peek .ar-post__img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.ar-post .ar-post__gallery--peek .ar-post__gal-arrow--prev {
	left: calc((100cqw - var(--ar-gal-w)) / 2 + 16px);
}
.ar-post .ar-post__gallery--peek .ar-post__gal-arrow--next {
	right: calc((100cqw - var(--ar-gal-w)) / 2 + 16px);
}
@media (max-width: 1024px) {
	.ar-post.ar-post--top-gallery {
		padding-top: 50px;
	}
	.ar-post.ar-post--top-gallery > .ar-post__inner {
		padding-top: 40px;
	}
}
@media (max-width: 767px) {
	.ar-post .ar-post__gallery--peek {
		--ar-gal-w: 84cqw;
		--ar-gal-gap: 8px;
	}
	.ar-post .ar-post__gallery--peek .ar-post__gal-arrow--prev {
		left: calc((100cqw - var(--ar-gal-w)) / 2 + 8px);
	}
	.ar-post .ar-post__gallery--peek .ar-post__gal-arrow--next {
		right: calc((100cqw - var(--ar-gal-w)) / 2 + 8px);
	}
	.ar-post.ar-post--top-gallery > .ar-post__inner {
		padding-top: 30px;
	}
}
