/* DABA Latest Updates
   Titles are <span>s (not headings) so the Elementor Kit's heading styles cannot override them. */

.dlu {
	--dlu-red: #B0061F;
	--dlu-ink: #1D2420;
	--dlu-muted: #6B7570;
	--dlu-line: #E4DFD1;
	--dlu-gap: 18px;
	--dlu-pv: var(--dlu-per-view, 4);
	box-sizing: border-box;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 16px;
	font-family: "Instrument Sans", sans-serif;
	color: var(--dlu-ink);
}
.dlu *,
.dlu *::before,
.dlu *::after {
	box-sizing: border-box;
}

/* Heading row */
.dlu__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}
.dlu__title {
	font-family: "Phudu", sans-serif !important;
	font-size: 26px !important;
	font-weight: 600 !important;
	line-height: 1.15 !important;
	text-transform: none !important;
	color: var(--dlu-ink) !important;
	position: relative;
	padding-bottom: 10px;
}
.dlu__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 44px;
	height: 3px;
	border-radius: 3px;
	background: var(--dlu-red);
}
.dlu__nav {
	display: flex;
	gap: 8px;
}
.dlu__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--dlu-line);
	border-radius: 50%;
	background: #fff;
	color: var(--dlu-ink);
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.dlu__btn:hover,
.dlu__btn:focus-visible {
	background: var(--dlu-red);
	border-color: var(--dlu-red);
	color: #fff;
}

/* Sliding track (native scroll-snap, so swipe works on phones) */
.dlu__track {
	display: flex;
	gap: var(--dlu-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding: 4px 2px 10px;
	margin: 0 -2px;
}
.dlu__track::-webkit-scrollbar {
	display: none;
}
.dlu__track:focus-visible {
	outline: 2px solid var(--dlu-red);
	outline-offset: 4px;
	border-radius: 12px;
}
.dlu__slide {
	flex: 0 0 calc((100% - var(--dlu-gap) * (var(--dlu-pv) - 1)) / var(--dlu-pv));
	min-width: 0;
	scroll-snap-align: start;
}

/* Card */
.dlu-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid var(--dlu-line);
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none !important;
	color: inherit !important;
	box-shadow: 0 1px 2px rgba(29, 36, 32, .04);
	transition: transform .25s ease, box-shadow .25s ease;
}
.dlu-card:hover,
.dlu-card:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 10px 26px rgba(29, 36, 32, .12);
}
.dlu-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: #E4DFD1;
}
.dlu-card__img {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}
/* Whole image shown (Daily Posts, or albums when "no cropping" is on) over a soft blurred copy of itself */
.dlu-card__blur {
	display: none;
	position: absolute;
	inset: -14px;
	background-size: cover;
	background-position: center;
	filter: blur(18px) saturate(1.1);
	opacity: .85;
}
.dlu-card--fit .dlu-card__blur {
	display: block;
}
.dlu-card--fit .dlu-card__img {
	object-fit: contain;
}
.dlu-card__placeholder {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #5FA6B0, #3f8590);
}

.dlu-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px 16px;
}
.dlu-card__label {
	align-self: flex-start;
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(176, 6, 31, .09);
	color: var(--dlu-red);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1.5;
}
.dlu-card--album .dlu-card__label {
	background: rgba(95, 166, 176, .22);
	color: #2f6670;
}
.dlu-card__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--dlu-ink);
}
.dlu-card__date {
	font-size: 13px;
	color: var(--dlu-muted);
}

/* Dots */
.dlu__dots {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
}
.dlu__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #cfc9b8;
	cursor: pointer;
	transition: width .25s, background .25s;
}
.dlu__dot.is-active {
	width: 24px;
	border-radius: 8px;
	background: var(--dlu-red);
}

/* Tablet: 2 across, phone: 1 across */
@media (max-width: 1024px) {
	.dlu { --dlu-pv: min(var(--dlu-per-view, 4), 2); }
}
@media (max-width: 640px) {
	.dlu { --dlu-pv: 1; --dlu-gap: 14px; }
	.dlu__title { font-size: 22px !important; }
	.dlu__btn { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
	.dlu__track { scroll-behavior: auto; }
	.dlu-card { transition: none; }
}
