/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/



/* ----------------------------------------------------------------
	Lensa Kegiatan: grid rapi 3:2
	- foto lanskap dipotong otomatis dari tengah (object-fit: cover)
	- poster / foto potret / panorama ditampilkan utuh di atas latar buram
-----------------------------------------------------------------*/
.lensa-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	padding: 0 8px;
}
@media (max-width: 991.98px) {
	.lensa-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
	.lensa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 6px; }
}
.lensa-item[hidden] { display: none !important; }
.lensa-item { position: static !important; width: auto !important; margin: 0; }

.lensa-tile {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 8px;
	background: #e5e7eb;
	cursor: zoom-in;
}
.lensa-tile::before { content: ""; display: block; padding-top: 66.6667%; } /* rasio 3:2 */

.lensa-img,
.lensa-blur {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
}
.lensa-img {
	object-fit: cover;
	object-position: center;
	transition: transform .5s ease;
	z-index: 1;
}
.lensa-blur {
	display: none;
	background-size: cover;
	background-position: center;
	filter: blur(16px) brightness(.8);
	transform: scale(1.2);
}
.lensa-tile.is-contain .lensa-blur { display: block; }
.lensa-tile.is-contain .lensa-img { object-fit: contain; }

.lensa-caption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	z-index: 2;
	padding: 28px 10px 8px;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	text-shadow: 0 1px 2px rgba(0,0,0,.6);
	background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.78));
}
/* maksimal 2 baris lalu "..." (clamp di elemen dalam agar padding tidak ikut menampilkan baris ke-3) */
.lensa-caption-teks {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	overflow-wrap: anywhere;
}
/* Latar tampilan foto penuh lebih gelap agar halaman di belakang tidak terlihat */
.mfp-bg { background: #0b0b0b; }
.mfp-bg.mfp-ready { opacity: .92 !important; }
.mfp-title { font-size: 13px; line-height: 1.4; padding-right: 64px; }
/* Perangkat dengan mouse: judul muncul saat kursor di atas foto */
@media (hover: hover) and (pointer: fine) {
	.lensa-caption { opacity: 0; transition: opacity .25s ease; }
	.lensa-tile:hover .lensa-caption,
	.lensa-tile:focus-visible .lensa-caption { opacity: 1; }
	.lensa-tile:hover .lensa-img { transform: scale(1.05); }
	.lensa-tile.is-contain:hover .lensa-img { transform: none; }
}
@media (max-width: 767.98px) {
	.lensa-caption { font-size: 11px; padding: 22px 8px 6px; }
}
.lensa-filter li { cursor: pointer; }
