.aurelle-feed {
	box-sizing: border-box;
}
.aurelle-feed * {
	box-sizing: border-box;
}

/* ---------- Post card (shared by all layouts) ---------- */
.aurelle-feed-post {
	background: #fff;
	border: 1px solid rgba(196,129,142,.25);
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.aurelle-feed-post-media {
	position: relative;
	display: block;
	background: #f3d3d6;
	overflow: hidden;
}
.aurelle-feed-post-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/* "Original" ratio: no padding-box trick, image sets its own height. */
.aurelle-feed-post-media:not([style*="padding-bottom"]) img {
	position: static;
}

.aurelle-feed-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(69,58,64,.65);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	pointer-events: none;
}

.aurelle-feed-post-body {
	padding: 14px 16px 16px;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

.aurelle-feed-post-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #8E9399;
	margin-bottom: 8px;
}
.aurelle-feed-post-author {
	color: #453A40;
	font-weight: 600;
}

.aurelle-feed-post-text {
	margin: 0 0 10px;
	color: #453A40;
	font-size: 14px;
	line-height: 1.5;
	flex: 1 1 auto;
}

.aurelle-feed-post-link {
	font-size: 12px;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #C4818E;
	text-decoration: none;
	font-weight: 600;
}
.aurelle-feed-post-link:hover {
	color: #AC717D;
}

/*
 * No border, no padding.
 *
 * Both date from when this was a single line of text, where a dashed
 * box marked it as a notice. They were kept when the placeholder boxes
 * arrived, on the grounds that the dashes marked a region only the
 * owner saw -- which stopped being true the moment the boxes were
 * shown to everyone. A dashed rectangle round a live section reads as
 * something failing to load.
 *
 * The empty state has to be the same shape as a full feed, and a full
 * feed has neither.
 */
.aurelle-feed-empty {
	color: #453A40;
}

/* ---------- List ---------- */
.aurelle-feed-list {
	display: flex;
	flex-direction: column;
	gap: var(--aurelle-gap, 16px);
}
.aurelle-feed-list .aurelle-feed-post {
	flex-direction: row;
}
.aurelle-feed-list .aurelle-feed-post-media {
	flex: 0 0 160px;
	width: 160px;
}
@media (max-width: 480px) {
	.aurelle-feed-list .aurelle-feed-post {
		flex-direction: column;
	}
	.aurelle-feed-list .aurelle-feed-post-media {
		width: 100%;
	}
}

/* ---------- Grid ---------- */
.aurelle-feed-grid {
	display: grid;
	grid-template-columns: repeat(var(--aurelle-columns, 3), 1fr);
	gap: var(--aurelle-gap, 16px);
}
@media (max-width: 782px) {
	.aurelle-feed-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 480px) {
	.aurelle-feed-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Masonry (CSS columns approximation — no JS required) ---------- */
.aurelle-feed-masonry {
	column-count: var(--aurelle-columns, 3);
	column-gap: var(--aurelle-gap, 16px);
}
.aurelle-feed-masonry .aurelle-feed-post {
	break-inside: avoid;
	margin-bottom: var(--aurelle-gap, 16px);
}
@media (max-width: 782px) {
	.aurelle-feed-masonry {
		column-count: 2;
	}
}
@media (max-width: 480px) {
	.aurelle-feed-masonry {
		column-count: 1;
	}
}

/* ---------- Carousel ---------- */
.aurelle-feed-carousel {
	position: relative;
	overflow: hidden;
}
.aurelle-feed-carousel .aurelle-feed-track {
	display: flex;
	gap: var(--aurelle-gap, 16px);
	transition: transform .4s ease;
}
.aurelle-feed-carousel .aurelle-feed-post {
	flex: 0 0 280px;
	width: 280px;
}
.aurelle-feed-prev,
.aurelle-feed-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,.9);
	color: #453A40;
	font-size: 18px;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.aurelle-feed-prev { left: 6px; }
.aurelle-feed-next { right: 6px; }

/* ---------- GDPR consent gate ---------- */
.aurelle-feed-gate-prompt {
	padding: 28px 20px;
	text-align: center;
	border: 1px dashed rgba(196,129,142,.5);
	border-radius: 4px;
	background: #F3D3D620;
}
.aurelle-feed-gate-prompt p {
	margin: 0 0 12px;
	color: #453A40;
}
.aurelle-feed-gate-btn {
	background: #C4818E;
	color: #fff;
	border: none;
	border-radius: 2px;
	padding: 10px 22px;
	font-size: 13px;
	letter-spacing: .05em;
	text-transform: uppercase;
	cursor: pointer;
}
.aurelle-feed-gate-btn:hover {
	background: #AC717D;
}

/* ---------- Masonry, once the script has balanced it ---------- */

/*
 * Applied only after the script has grouped the posts into columns, so
 * the CSS-columns rules above stay in charge until then and a feed with
 * the script blocked still lays out.
 */
.aurelle-feed-masonry.is-balanced {
	column-count: initial;
	display: flex;
	gap: var(--aurelle-gap, 16px);
	align-items: flex-start;
}

.aurelle-feed-masonry.is-balanced .aurelle-feed-col {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: var(--aurelle-gap, 16px);
}

.aurelle-feed-masonry.is-balanced .aurelle-feed-post,
.aurelle-feed-masonry.is-balanced .aurelle-feed-ph {
	margin-bottom: 0;
	break-inside: auto;
}

/* A placeholder in a levelled column has to be able to lose its own
   shape, the same as a picture does. */
.aurelle-feed-masonry.is-balanced .aurelle-feed-col.is-level .aurelle-feed-ph {
	min-height: 0;
}

/*
 * A levelled column is given the tallest column's height, expressed as
 * a multiple of its own width -- so it stays correct at any screen size
 * without ever being measured in pixels.
 */
.aurelle-feed-masonry.is-balanced .aurelle-feed-col.is-level {
	aspect-ratio: 1 / var(--aurelle-col-h, 1);
}

/* The pictures take the height rather than sit inside it. */
.aurelle-feed-masonry.is-balanced .aurelle-feed-col.is-level .aurelle-feed-post {
	min-height: 0;
	overflow: hidden;
}

.aurelle-feed-masonry.is-balanced .aurelle-feed-col.is-level .aurelle-feed-post img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---------- Empty feed, as its editor sees it ---------- */

/*
 * The empty state borrows the layout classes, so a masonry feed's
 * placeholders sit in columns and a grid's sit in a grid. It is the
 * shape of the thing that is missing, which is the point.
 */
.aurelle-feed-empty {
	grid-auto-rows: auto;
}

/*
 * Tinted rather than grey. A grey box on a page reads as an image that
 * failed to load; a box in the site's own colour reads as a space
 * waiting to be filled, which is what it is.
 *
 * The colour is overridable, so a feed on a differently coloured page
 * does not have to wear this one.
 */
.aurelle-feed-ph {
	border-radius: 10px;
	background: var( --aurelle-ph-bg, linear-gradient( 135deg, #EFE3E6, #F7EFF1 ) );
	break-inside: avoid;
	margin-bottom: var(--aurelle-gap, 16px);
}



/* ---------- The section around a feed ---------- */

/*
 * Sits outside the feed element, not inside it. The feed carries the
 * layout -- a grid, or columns -- so anything placed within it is laid
 * out as though it were a post.
 */
.aurelle-feed-head { text-align: center; margin: 0 0 30px; }

.aurelle-feed-eyebrow {
	font-family: Georgia, 'Times New Roman', serif;
	font-style: italic;
	font-size: 19px;
	color: #C4818E;
	margin: 0 0 6px;
}

.aurelle-feed-heading {
	font-family: Georgia, 'Times New Roman', serif;
	font-weight: 400;
	font-size: 31px;
	line-height: 1.2;
	color: #453A40;
	margin: 0 0 12px;
}

.aurelle-feed-ornament {
	display: block;
	width: 74px;
	height: 16px;
	color: #C4818E;
	margin: 0 auto 14px;
}

.aurelle-feed-handle { margin: 0; }

.aurelle-feed-handle a {
	color: #AC717D;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .02em;
}
.aurelle-feed-handle a:hover { text-decoration: underline; }

.aurelle-feed-cta { text-align: center; margin: 34px 0 0; }

.aurelle-feed-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	padding: 13px 34px;
	font-size: 14.5px;
	font-weight: 600;
	border: 1px solid #C4818E;
	background: #C4818E;
	color: #fff;
	text-decoration: none;
	line-height: 1.2;
}

.aurelle-feed-cta-btn:hover,
.aurelle-feed-cta-btn:focus {
	background: #AC717D;
	border-color: #AC717D;
	color: #fff;
	text-decoration: none;
}

@media (max-width: 480px) {
	.aurelle-feed-heading { font-size: 26px; }
	.aurelle-feed-cta-btn { width: 100%; }
}
