.iss-gallery {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.iss-gallery-album {
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.iss-gallery-album-card {
	aspect-ratio: 4 / 3;
	background: #111827;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 6px;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
	display: block;
	overflow: hidden;
	position: relative;
	text-decoration: none;
}

.iss-gallery-album-card::after {
	background: linear-gradient(180deg, rgba(3, 7, 18, 0) 38%, rgba(3, 7, 18, 0.82) 100%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.iss-gallery-album-thumb {
	background: #111827;
	display: block;
	height: 100%;
	overflow: hidden;
	width: 100%;
}

.iss-gallery-album-thumb img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 180ms ease;
	width: 100%;
}

.iss-gallery-album-card.is-video .iss-gallery-album-thumb img {
	filter: grayscale(18%) brightness(68%);
}

.iss-gallery-album-card:hover .iss-gallery-album-thumb img {
	transform: scale(1.04);
}

.iss-gallery-album-title,
.iss-gallery-album-count {
	display: block;
	left: 14px;
	position: absolute;
	right: 14px;
	z-index: 1;
}

.iss-gallery-album-title {
	bottom: 38px;
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.iss-gallery-album-count {
	align-items: center;
	bottom: 14px;
	color: rgba(255, 255, 255, 0.82);
	display: flex;
	font-size: 13px;
	font-weight: 600;
	gap: 6px;
	justify-content: center;
	text-align: center;
}

.iss-gallery-album-count::before {
	background: rgba(255, 255, 255, 0.72);
	border-radius: 999px;
	content: "";
	display: inline-block;
	height: 6px;
	width: 6px;
}

.iss-gallery-album-back {
	margin: 0 0 18px;
}

.iss-gallery-album-back a {
	color: inherit;
	font-weight: 700;
	text-decoration: none;
}

.iss-gallery-album-back a:hover {
	text-decoration: underline;
}

@media (max-width: 640px) {
	.iss-gallery-album {
		gap: 14px;
		grid-template-columns: 1fr;
	}

	.iss-gallery-album-card {
		aspect-ratio: 16 / 10;
	}
}

.iss-gallery-item {
	aspect-ratio: 1;
	background: #f0f0f1;
	display: block;
	overflow: hidden;
	position: relative;
}

.iss-gallery-item img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 180ms ease;
	width: 100%;
}

.iss-gallery-item.is-video img {
	filter: grayscale(18%) brightness(68%);
}

.iss-gallery-item:hover img {
	transform: scale(1.04);
}

.iss-gallery-play {
	background: rgba(255, 255, 255, 0.24);
	border: 2px solid rgba(255, 255, 255, 0.76);
	border-radius: 999px;
	height: 48px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 48px;
}

.iss-gallery-play::before {
	border-bottom: 12px solid transparent;
	border-left: 18px solid rgba(255, 255, 255, 0.92);
	border-top: 12px solid transparent;
	content: "";
	left: 18px;
	position: absolute;
	top: 12px;
}

.iss-gallery-lightbox {
	align-items: center;
	background: rgba(0, 0, 0, 0.88);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 28px;
	position: fixed;
	z-index: 999999;
}

.iss-gallery-lightbox img,
.iss-gallery-lightbox video {
	max-height: calc(100vh - 80px);
	max-width: calc(100vw - 80px);
}

.iss-gallery-lightbox button {
	background: transparent;
	border: 0;
	color: #fff;
	cursor: pointer;
	font-size: 34px;
	position: absolute;
	right: 18px;
	top: 12px;
}
