/* Walkom Projects front end. Colours match the site: green #204920, yellow #F9CE35, sand #F6F1E3. */

/* Key facts bar */
.wkp-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 20px 24px;
	margin: 0;
	padding: 24px 28px;
	background: #204920;
	border-radius: 12px;
}
.wkp-facts__item { display: flex; flex-direction: column-reverse; gap: 2px; }
.wkp-facts dt { color: #DDE7DD; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.wkp-facts dd { margin: 0; color: #F9CE35; font-size: 26px; font-weight: 700; line-height: 1.2; }

/* Sidebar details */
.wkp-details { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; margin: 0; font-size: 15px; }
.wkp-details dt { color: #5C5C5C; }
.wkp-details dd { margin: 0; font-weight: 600; }

/* Highlight pills */
.wkp-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.wkp-pills li { padding: 10px 18px; border-radius: 999px; background: #F6F1E3; color: #204920; font-weight: 600; line-height: 1.3; }

/* Story */
.wkp-story { display: flex; flex-direction: column; gap: 40px; }
.wkp-story__label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8A6A00; }
.wkp-story p { font-size: 17px; line-height: 1.6; color: #4D4D4D; }

/* Gallery */
.wkp-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wkp-gallery-grid__item { margin: 0; }
.wkp-gallery-grid__item--lead { grid-column: span 2; grid-row: span 2; }
.wkp-gallery-grid__item a { display: block; height: 100%; }
.wkp-gallery-grid__item img { display: block; width: 100%; height: 100%; min-height: 220px; object-fit: cover; border-radius: 12px; }
.wkp-gallery-grid__item figcaption { margin-top: 8px; font-size: 14px; color: #5C5C5C; }

/* Videos */
.wkp-videos { display: grid; gap: 24px; }
.wkp-videos__item--embed { position: relative; aspect-ratio: 16 / 9; }
.wkp-videos__item--embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 12px; }

@media (max-width: 767px) {
	.wkp-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wkp-gallery-grid__item--lead { grid-row: span 1; }
	.wkp-facts dd { font-size: 22px; }
}

/* ---------- Built-in templates ---------- */
.wkp-page { font-family: Roboto, system-ui, sans-serif; color: #1E1E1E; }
.wkp-page img { max-width: 100%; height: auto; display: block; }
.wkp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.wkp-section { padding: 64px 0; }
.wkp-section--tight { margin-top: -40px; position: relative; }
.wkp-section--sand { background: #F6F1E3; }
.wkp-section--green { background: #204920; color: #fff; }
.wkp-h2 { margin: 0 0 24px; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; color: inherit; }

/* Eyebrow: yellow tape strip */
.wkp-label {
	position: relative; display: inline-block; margin-bottom: 12px; padding: 2px 10px;
	font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #204920; z-index: 0;
}
.wkp-label::before {
	content: ""; position: absolute; inset: 0; background: #F9CE35; transform: skewX(-8deg);
	box-shadow: 3px 3px 0 #204920; z-index: -1;
}

/* Hero */
.wkp-hero { padding: 48px 0 32px; background: #F6F1E3; }
.wkp-hero__title { margin: 0 0 12px; font-size: clamp(32px, 5vw, 52px); line-height: 1.1; color: #204920; }
.wkp-hero__summary { max-width: 680px; margin: 0 0 8px; font-size: 18px; line-height: 1.6; }
.wkp-hero__location { margin: 0; font-weight: 600; color: #5C5C5C; }
.wkp-hero__media { margin-top: -8px; }
.wkp-hero__img { width: 100%; max-height: 640px; object-fit: cover; border-radius: 12px; }
.wkp-crumbs { display: flex; gap: 8px; margin-bottom: 16px; font-size: 14px; }
.wkp-crumbs a { color: #204920; }

/* Story and sidebar */
.wkp-columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; padding-top: 56px; padding-bottom: 64px; }
.wkp-columns__side { display: flex; flex-direction: column; gap: 24px; }
.wkp-panel { padding: 24px; border: 1px solid #E4DFD1; border-radius: 12px; background: #fff; }
.wkp-panel__title { margin: 0 0 16px; font-size: 18px; }
.wkp-panel--cta { background: #204920; border-color: #204920; color: #fff; }
.wkp-panel--cta .wkp-panel__title { color: #F9CE35; }
.wkp-content { margin-top: 32px; line-height: 1.7; }

/* Buttons */
.wkp-button {
	display: inline-block; padding: 12px 22px; border-radius: 8px; background: #F9CE35; color: #204920;
	font-weight: 700; text-decoration: none; border: 0; cursor: pointer;
}
.wkp-button:hover, .wkp-button:focus-visible { background: #fff; color: #204920; }
.wkp-section--green .wkp-h2 { color: #F9CE35; }
.wkp-cta { max-width: 720px; text-align: center; }
.wkp-cta p { margin: 0 0 24px; font-size: 18px; line-height: 1.6; }

/* Cards */
.wkp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.wkp-card__link { display: block; color: inherit; text-decoration: none; }
.wkp-card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin-bottom: 16px; transition: transform .25s ease; }
.wkp-card__img--empty { background: #E4DFD1; }
.wkp-card__link:hover .wkp-card__img { transform: translateY(-4px); }
.wkp-card__title { margin: 0 0 4px; font-size: 20px; color: #204920; }
.wkp-card__meta { margin: 0; font-size: 14px; color: #5C5C5C; }

/* Filters and pagination */
.wkp-filters { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.wkp-filters__field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.wkp-filters select { min-width: 200px; padding: 10px 12px; border: 1px solid #C9C2AE; border-radius: 8px; background: #fff; font: inherit; font-weight: 400; }
.wkp-pagination { margin-top: 40px; }
.wkp-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.wkp-pagination .page-numbers { padding: 8px 14px; border-radius: 8px; background: #F6F1E3; color: #204920; text-decoration: none; }
.wkp-pagination .page-numbers.current { background: #204920; color: #fff; }

@media (max-width: 900px) {
	.wkp-columns { grid-template-columns: 1fr; gap: 32px; }
	.wkp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.wkp-cards { grid-template-columns: 1fr; }
	.wkp-filters select { min-width: 0; width: 100%; }
	.wkp-filters__field { flex: 1 1 100%; }
	.wkp-section { padding: 48px 0; }
}

/* ---------- Lightbox ---------- */
.wkp-lb-open { overflow: hidden; }
.wkp-lb { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 56px 64px; background: rgba(10, 20, 10, .92); }
.wkp-lb[hidden] { display: none; }
.wkp-lb__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.wkp-lb button { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.wkp-lb button:hover, .wkp-lb button:focus-visible { background: #F9CE35; color: #204920; outline: none; }
.wkp-lb button[hidden] { display: none; }
.wkp-lb__close { top: 12px; right: 12px; }
.wkp-lb__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.wkp-lb__next { right: 8px; top: 50%; transform: translateY(-50%); }
.wkp-lb__count { position: absolute; bottom: 12px; left: 0; right: 0; margin: 0; text-align: center; color: #DDE7DD; font-size: 14px; }
@media (max-width: 600px) { .wkp-lb { padding: 56px 8px; } .wkp-lb__prev, .wkp-lb__next { top: auto; bottom: 4px; transform: none; } }
