/* JK Fountains Galleries. Colours can be changed by a theme through the --jkfg-* variables. */
.jkfg-projects, .jkfg-videos {
	list-style: none; margin: 0 0 2rem; padding: 0;
	display: grid; gap: 1.25rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.jkfg-project, .jkfg-video { margin: 0; }
.jkfg-project__media, .jkfg-yt {
	position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
	border-radius: var(--jkfg-radius, 12px); background: var(--jkfg-placeholder, #e8eef2);
	border: 0; padding: 0; cursor: pointer;
}
.jkfg-yt { aspect-ratio: 16 / 9; }
.jkfg-project__media img, .jkfg-yt img {
	width: 100%; height: 100%; object-fit: cover; display: block;
	transition: transform .5s ease;
}
.jkfg-project__media:hover img, .jkfg-yt:hover img { transform: scale(1.04); }
.jkfg-count {
	position: absolute; right: .6rem; bottom: .6rem; padding: .2rem .55rem; border-radius: 99px;
	background: rgba(10, 18, 48, .78); color: #fff; font-size: .78rem; font-weight: 600;
}
.jkfg-project__name, .jkfg-video__name { margin: .6rem 0 0; font-weight: 600; line-height: 1.35; color: var(--jkfg-ink, #1c2434); }
.jkfg-project__name small, .jkfg-video__name small { display: block; font-weight: 400; color: var(--jkfg-muted, #5b6474); }
.jkfg-play {
	position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
	background: var(--jkfg-accent, #d7261e); box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
.jkfg-play::after {
	content: ""; position: absolute; left: 26px; top: 20px;
	border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}
.jkfg-yt.is-playing iframe { width: 100%; height: 100%; border: 0; display: block; }

.jkfg-lock { overflow: hidden; }
.jkfg-lb {
	position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
	background: rgba(6, 12, 30, .94); padding: 3.5rem 4rem;
}
.jkfg-lb[hidden] { display: none; }
.jkfg-lb__fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.jkfg-lb__fig img { max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; border-radius: 8px; }
.jkfg-lb__fig figcaption { color: #e9eef6; margin-top: .8rem; display: flex; gap: 1rem; font-size: .95rem; }
.jkfg-lb__count { opacity: .7; }
.jkfg-lb__close, .jkfg-lb__nav {
	position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
	width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1;
	display: grid; place-items: center;
}
.jkfg-lb__close:hover, .jkfg-lb__nav:hover { background: rgba(255, 255, 255, .25); }
.jkfg-lb__close { top: 1rem; right: 1rem; }
.jkfg-lb__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.jkfg-lb__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.jkfg-lb--single .jkfg-lb__nav { display: none; }
@media (max-width: 640px) {
	.jkfg-lb { padding: 3.5rem .75rem 4.5rem; }
	.jkfg-lb__prev, .jkfg-lb__next { top: auto; bottom: 1rem; transform: none; }
	.jkfg-lb__prev { left: calc(50% - 60px); }
	.jkfg-lb__next { right: calc(50% - 60px); }
}
