.tk-page {
	min-height: 60vh;
}

.tk-page-header {
	padding: 1.25rem 0 0.5rem;
}

.tk-menu-card {
	top: 1rem;
	overflow: hidden;
}

.tk-menu-card .list-group-item {
	border-left: 0;
	border-right: 0;
	padding: 0.9rem 1rem;
}

.tk-menu-card .list-group-item:first-child {
	border-top: 0;
}

.tk-menu-card .list-group-item.active {
	font-weight: 600;
}

.tk-content-card {
	min-height: 360px;
}

.tk-rich-content {
	font-size: 1rem;
	line-height: 1.8;
	overflow-wrap: anywhere;
}

.tk-rich-content > :first-child {
	margin-top: 0;
}

.tk-rich-content > :last-child {
	margin-bottom: 0;
}

.tk-rich-content h1,
.tk-rich-content h2,
.tk-rich-content h3,
.tk-rich-content h4,
.tk-rich-content h5,
.tk-rich-content h6 {
	margin-top: 1.75rem;
	margin-bottom: 0.75rem;
	line-height: 1.35;
}

.tk-rich-content img {
	max-width: 100%;
	height: auto;
	border-radius: 0.5rem;
}

.tk-rich-content table {
	width: 100%;
	display: block;
	overflow-x: auto;
	border-collapse: collapse;
}

.tk-rich-content blockquote {
	border-left: 3px solid var(--tblr-primary);
	padding-left: 1rem;
	color: var(--tblr-secondary);
}

.tk-staff-card {
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.tk-staff-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--tblr-box-shadow-card);
}

.tk-staff-avatar {
	width: 96px;
	height: 96px;
	font-size: 2rem;
	background-size: cover;
	background-position: center;
}

.tk-gallery-item {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: 0.5rem;
	overflow: hidden;
	background: var(--tblr-bg-surface-secondary);
	cursor: pointer;
	aspect-ratio: 4 / 3;
}

.tk-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.tk-gallery-item:hover img {
	transform: scale(1.035);
}

.tk-gallery-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0.65rem 0.75rem;
	color: #fff;
	text-align: left;
	font-size: 0.875rem;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}

@media (max-width: 991.98px) {
	.tk-menu-card {
		position: static !important;
	}
}

/* =========================================================
 * Galeri publik - mengikuti tampilan Administrasi > Galeri
 * ========================================================= */
.tk-album-card {
	overflow: hidden;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.tk-album-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--tblr-box-shadow-card);
}


.tk-album-description {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	min-height: 2.5rem;
}

.tk-gallery-photo-card {
	overflow: hidden;
}

.tk-gallery-detail-trigger {
	cursor: zoom-in;
}

.tk-gallery-detail-image {
	transition: transform 0.2s ease;
	background-position: center;
	background-size: cover;
}

.tk-gallery-detail-trigger:hover .tk-gallery-detail-image {
	transform: scale(1.035);
}

.tk-gallery-modal-image {
	max-height: 78vh;
	object-fit: contain;
}

/* Efek Tumpukan Foto (Stack) */
.album-stack {
	position: relative;
	width: 100%;
	padding-top: 100%; /* Membuat rasio kotak 1:1 */
	margin-bottom: 0.5rem;
}
.stack-img {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-size: cover;
	background-position: center;
	border: 6px solid #fff; /* Bingkai ala polaroid */
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
	border-radius: 4px;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Posisi dan rotasi default */
.stack-bottom {
	transform: rotate(-6deg) scale(0.9);
	z-index: 1;
}
.stack-middle {
	transform: rotate(5deg) scale(0.95);
	z-index: 2;
}
.stack-top {
	transform: rotate(0deg) scale(1);
	z-index: 3;
}

/* Efek menyebar saat album di-hover */
.card-link:hover .stack-bottom {
	transform: rotate(-10deg) scale(1) translateX(-15px) translateY(5px);
}
.card-link:hover .stack-middle {
	transform: rotate(10deg) scale(1) translateX(15px) translateY(-5px);
}
.card-link:hover .stack-top {
	transform: rotate(0deg) scale(1.05);
}
