/* ARDGroup Project — front-end grid + lightbox
   Brand: accent #F3953F, heading font Plus Jakarta Sans (fallback to theme). */

.ardp-grid {
	--ardp-accent: #F3953F;
	/* Masonry via CSS multi-column so portrait/landscape covers keep their own
	   height. Column count comes from the shortcode's `columns` attr. */
	column-count: var(--ardp-cols, 3);
	column-gap: 22px;
	font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
}

.ardp-card {
	display: inline-block;
	width: 100%;
	margin: 0 0 22px;
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	text-decoration: none;
	color: inherit;
	border: 1px solid #ededed;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow .25s, transform .25s, border-color .25s;
}

.ardp-card:hover {
	box-shadow: 0 10px 30px rgba(243, 149, 63, .18);
	border-color: var(--ardp-accent);
	transform: translateY(-3px);
}

.ardp-card-thumb {
	display: block;
	position: relative;
	background: #f3f3f3;
	overflow: hidden;
	line-height: 0;
}

/* Image covers keep their natural ratio (masonry). */
.ardp-card-thumb img {
	width: 100%;
	height: auto;
	display: block;
}

/* Video posters are always 16/9; crop the 4:3 YouTube still so there are no
   black bars and every video card stays uniform. */
.ardp-card-thumb.is-video img {
	aspect-ratio: 16 / 9;
	height: auto;
	object-fit: cover;
}

/* Click-to-play facade is a <button>: strip native chrome, keep it full-width. */
button.ardp-card-thumb {
	width: 100%;
	padding: 0;
	border: 0;
	font: inherit;
	cursor: pointer;
	background: #f3f3f3;
	-webkit-appearance: none;
	appearance: none;
}

/* Inline player after click — fill the 16/9 slot. */
.ardp-card-thumb.is-playing {
	aspect-ratio: 16 / 9;
}

.ardp-card-thumb.is-playing iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Subtle zoom on the poster when hovering a playable video. */
.ardp-video-facade img {
	transition: transform .3s;
}

.ardp-video-facade:hover img {
	transform: scale(1.04);
}

/* Hide the play badge once the iframe is live. */
.ardp-card-thumb.is-playing::after {
	display: none;
}

/* Play badge for video cards */
.ardp-card-thumb.is-video::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='white'><path d='M8 5v14l11-7z'/></svg>") no-repeat center / 24px;
}

.ardp-card-body {
	padding: 18px 20px 20px;
}

/* Category eyebrow — all categories, accent colour */
.ardp-card-cats {
	font-size: 13px;
	font-weight: 600;
	color: var(--ardp-accent, #F3953F);
	margin: 0 0 6px;
}

.ardp-card-cats a {
	color: inherit;
	text-decoration: none;
}

.ardp-card-cats a:hover {
	text-decoration: underline;
}

/* Title with the brand accent bar on the left */
.ardp-card-title {
	margin: 0 0 12px;
	padding-left: 12px;
	border-left: 4px solid var(--ardp-accent, #F3953F);
	font-size: 18px;
	font-weight: 800;
	font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
	line-height: 1.2;
	text-transform: uppercase;
}

/* "Jejak Karya:" scope-of-work list */
.ardp-card-sow {
	font-size: 13.5px;
	line-height: 1.5;
	margin: 0 0 12px;
}

.ardp-sow-label {
	display: block;
	font-weight: 700;
	margin: 0 0 6px;
}

.ardp-card-sow ul,
.ardp-card-sow ol {
	margin: 0;
	padding-left: 20px;
}

.ardp-card-sow li {
	margin: 2px 0;
}

.ardp-card-client {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 2px;
}

.ardp-card-year {
	font-size: 13px;
	opacity: .6;
	margin: 0 0 14px;
}

/* Share Now */
.ardp-card-share {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
}

.ardp-share-label {
	font-size: 13px;
	font-weight: 600;
	margin-right: 2px;
}

.ardp-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #2f2f2f;
	color: #fff;
	text-decoration: none;
	transition: background .2s, transform .2s;
}

.ardp-share-btn:hover {
	background: var(--ardp-accent, #F3953F);
	transform: translateY(-2px);
}

/* "Jelajahi Strategi" — filled pill, only when the project has a detail page */
.ardp-card-cta {
	display: inline-block;
	margin-top: 2px;
	padding: 11px 26px;
	font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	color: #fff;
	background: var(--ardp-accent, #F3953F);
	border-radius: 8px;
	transition: opacity .2s, transform .2s;
}

.ardp-card-cta:hover {
	opacity: .92;
	transform: translateY(-2px);
}

/* Responsive: collapse to a single column on tablet/phone (overrides the inline
   grid-template-columns the shortcode prints). Matches the old 2-col masonry that
   dropped to 1 col on tablet. */
@media (max-width: 781px) {
	.ardp-grid {
		column-count: 1 !important;
		column-gap: 18px;
	}
}

/* Load More */
.ardp-more-wrap {
	text-align: center;
	margin: 28px 0 0;
}

.ardp-load-more {
	font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
	font-weight: 700;
	font-size: 14px;
	color: #fff;
	background: var(--ardp-accent, #F3953F);
	border: 0;
	border-radius: 999px;
	padding: 12px 32px;
	cursor: pointer;
	transition: opacity .2s, transform .2s;
}

.ardp-load-more:hover {
	transform: translateY(-2px);
	opacity: .92;
}

.ardp-load-more:disabled {
	opacity: .6;
	cursor: default;
	transform: none;
}

/* Lightbox */
.ardp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .85);
	padding: 24px;
}

.ardp-lightbox.is-open {
	display: flex;
}

.ardp-lightbox__inner {
	position: relative;
	max-width: 1100px;
	width: 100%;
}

.ardp-lightbox__inner img {
	max-width: 100%;
	max-height: 85vh;
	display: block;
	margin: 0 auto;
	border-radius: 6px;
}

.ardp-lightbox__video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
}

.ardp-lightbox__video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 6px;
}

.ardp-lightbox__close {
	position: fixed;
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #000;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
	transition: transform .2s, background .2s;
}

.ardp-lightbox__close:hover {
	transform: rotate(90deg);
	background: var(--ardp-accent, #F3953F);
	color: #fff;
}
