/* Django Work — front-end rail. Scoped under .django-work-rail so it won't
   leak into the rest of the theme. Colors are hard-coded to match the
   Django Digital brand so this renders consistently in any WordPress theme.
   Horizontal scrolling is plain CSS (overflow-x + scroll-snap) — no JS
   needed, so it stays light and works the same with touch/trackpad/mouse
   wheel out of the box. */

.django-work-rail {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-bottom: 4px;
	box-sizing: border-box;
}
.django-work-rail * {
	box-sizing: border-box;
}
.django-work-rail::-webkit-scrollbar {
	display: none;
}

.django-work-card {
	position: relative;
	flex: 0 0 auto;
	width: min(78vw, 510px);
	aspect-ratio: 4 / 3;
	border-radius: 2px;
	scroll-snap-align: start;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 22px;
	color: #eeeae1;
	text-decoration: none;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
a.django-work-card {
	cursor: pointer;
}
.django-work-card:hover {
	transform: translateY(-8px);
}

.django-work-bg {
	position: absolute;
	inset: 0;
	z-index: 1;
}
.django-work-bg--img {
	background: #1b1a18;
}
.django-work-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.django-work-card::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.75) 100%);
	z-index: 1;
}

.django-work-corner {
	position: absolute;
	top: 0;
	right: 0;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 34px 34px 0;
	border-color: transparent #eeeae1 transparent transparent;
	z-index: 2;
}

.django-work-tag {
	font-family: 'IBM Plex Mono', Menlo, Consolas, monospace;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	position: relative;
	z-index: 2;
}

.django-work-info {
	position: relative;
	z-index: 2;
}
.django-work-info h3 {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-weight: 700;
	font-size: 22px;
	margin: 0;
}
.django-work-info p {
	font-family: 'IBM Plex Mono', Menlo, Consolas, monospace;
	font-size: 12px;
	color: #b8b3a8;
	margin: 4px 0 0;
}

@media (max-width: 760px) {
	.django-work-rail {
		gap: 14px;
	}
	.django-work-card {
		width: 82vw;
		padding: 18px;
	}
}
