/* Sūduva foto galerija */
.sg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
	margin: 20px 0;
}
.sg-card {
	display: block;
	background: #fff;
	box-shadow: inset 0 0 0 1px #f0f0f0;
	text-decoration: none;
	transition: box-shadow .15s ease, transform .15s ease;
}
.sg-card:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
	transform: translateY(-2px);
}
.sg-card-img {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #ececec;
}
.sg-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.sg-card-body {
	display: block;
	padding: 12px 14px 14px;
}
.sg-card-title {
	display: block;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.35;
	color: #1e1e1e;
}
.sg-card-meta {
	display: block;
	margin-top: 5px;
	font-size: 12px;
	color: #8a8a8a;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.sg-pages {
	margin: 26px 0 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.sg-page {
	display: inline-block;
	min-width: 34px;
	padding: 7px 10px;
	text-align: center;
	background: #f4f4f4;
	color: #1e1e1e;
	text-decoration: none;
	font-size: 14px;
}
.sg-page:hover { background: #e6e6e6; }
.sg-page.sg-current { background: #d5252e; color: #fff; }

/* single gallery */
.sg-single-head { margin: 10px 0 18px; }
.sg-back {
	display: inline-block;
	margin-bottom: 12px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #d5252e;
	text-decoration: none;
}
.sg-back:hover { text-decoration: underline; }
.sg-title { margin: 0 0 4px; }
.sg-date { color: #8a8a8a; font-size: 13px; }
.sg-photos {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
	margin: 18px 0;
}
.sg-photo {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #ececec;
}
.sg-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .2s ease;
}
.sg-photo:hover img { transform: scale(1.04); }

/* lightbox */
.sg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(10, 10, 10, .93);
	display: flex;
	align-items: center;
	justify-content: center;
}
.sg-lightbox[hidden] { display: none; }
.sg-lb-img {
	max-width: 92vw;
	max-height: 88vh;
	display: block;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.sg-lightbox button {
	position: absolute;
	background: none;
	border: 0;
	color: #fff;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
	padding: 14px;
	opacity: .8;
}
.sg-lightbox button:hover { opacity: 1; }
.sg-lb-close { top: 10px; right: 14px; font-size: 42px; }
.sg-lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.sg-lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.sg-lb-count {
	position: absolute;
	bottom: 14px;
	left: 50%;
	transform: translateX(-50%);
	color: #bbb;
	font-size: 13px;
	letter-spacing: .06em;
}
@media (max-width: 600px) {
	.sg-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
	.sg-photos { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }
}

/* kategorijos */
.sg-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 22px;
}
.sg-cat {
	display: inline-block;
	padding: 9px 18px;
	background: #f4f4f4;
	color: #1e1e1e;
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.sg-cat:hover { background: #e6e6e6; }
.sg-cat.sg-current { background: #d5252e; color: #fff; }
