.sg-gal {
	--sg-red: #de1313;
	background: #090909;
	color: #f3f3f3;
	padding: 28px 0 96px;
}

.sg-gal * {
	box-sizing: border-box;
}

.sg-gal__intro {
	max-width: 720px;
	padding-bottom: 28px;
}

.sg-gal__intro p {
	color: rgba(255, 255, 255, .72);
	font-size: 16px;
	line-height: 1.65;
	margin: 0 0 12px;
}

.sg-gal__intro a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sg-gal__filters {
	background: linear-gradient(#090909 72%, rgba(9, 9, 9, 0));
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0 36px;
	padding: 10px 0 18px;
	position: sticky;
	top: 88px;
	z-index: 40;
}

.sg-gal__chip {
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	line-height: 1;
	padding: 10px 16px;
}

.sg-gal__chip.is-on,
.sg-gal__chip:hover {
	background: var(--sg-red);
	border-color: var(--sg-red);
}

.sg-gal__section {
	margin-bottom: 56px;
}

.sg-gal__section[hidden] {
	display: none !important;
}

.sg-gal__head {
	align-items: end;
	display: grid;
	gap: 16px 32px;
	grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr);
	margin-bottom: 22px;
}

.sg-gal__head h2 {
	font-size: clamp(28px, 4vw, 42px);
	letter-spacing: .02em;
	line-height: 1.05;
	margin: 0;
	text-transform: uppercase;
}

.sg-gal__head p {
	color: rgba(255, 255, 255, .62);
	font-size: 15px;
	line-height: 1.55;
	margin: 0;
}

.sg-gal__grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sg-gal__item {
	background: #111;
	border: 0;
	border-radius: 16px;
	color: inherit;
	cursor: zoom-in;
	display: block;
	overflow: hidden;
	padding: 0;
	position: relative;
}

.sg-gal__item:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

.sg-gal__item img {
	aspect-ratio: 4 / 3;
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform .45s ease;
	width: 100%;
}

.sg-gal__item:first-child img {
	aspect-ratio: 4 / 3;
	min-height: 100%;
}

.sg-gal__item:hover img {
	transform: scale(1.04);
}

.sg-gal__item span {
	background: linear-gradient(transparent, rgba(0, 0, 0, .62));
	bottom: 0;
	color: #fff;
	font-size: 13px;
	left: 0;
	opacity: 0;
	padding: 28px 14px 12px;
	position: absolute;
	right: 0;
	transition: opacity .2s ease;
}

.sg-gal__item:hover span,
.sg-gal__item:focus-visible span {
	opacity: 1;
}

.sg-lb {
	align-items: center;
	background: rgba(0, 0, 0, .92);
	display: none;
	inset: 0;
	justify-content: center;
	padding: 24px;
	position: fixed;
	z-index: 800;
}

.sg-lb.is-open {
	display: flex;
}

.sg-lb img {
	max-height: min(88vh, 920px);
	max-width: min(92vw, 1280px);
	object-fit: contain;
}

.sg-lb__cap {
	bottom: 18px;
	color: #fff;
	font-size: 14px;
	left: 50%;
	position: absolute;
	transform: translateX(-50%);
}

.sg-lb button {
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font-size: 22px;
	height: 48px;
	position: absolute;
	width: 48px;
}

.sg-lb__x {
	right: 18px;
	top: 18px;
}

.sg-lb__prev,
.sg-lb__next {
	top: 50%;
	transform: translateY(-50%);
}

.sg-lb__prev {
	left: 18px;
}

.sg-lb__next {
	right: 18px;
}

body.sg-lb-lock {
	overflow: hidden;
}

@media (max-width: 980px) {
	.sg-gal__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sg-gal__head {
		grid-template-columns: 1fr;
	}

	.sg-gal__filters {
		top: 72px;
	}
}

@media (max-width: 640px) {
	.sg-gal__item:first-child {
		grid-column: span 2;
		grid-row: auto;
	}

	.sg-gal__chip {
		font-size: 13px;
		padding: 9px 12px;
	}

	.sg-lb {
		padding: 12px;
	}

	.sg-lb__prev,
	.sg-lb__next {
		bottom: 56px;
		top: auto;
		transform: none;
	}
}

.sg-home-gal {
	background: #090909;
	color: #fff;
	padding: 56px 0 64px;
}

.sg-home-gal__head {
	align-items: end;
	display: grid;
	gap: 18px 32px;
	grid-template-columns: minmax(0, 1.2fr) auto;
	margin-bottom: 28px;
}

.sg-home-gal__head h2 {
	font-size: clamp(28px, 4vw, 42px);
	letter-spacing: .02em;
	line-height: 1.05;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.sg-home-gal__head p {
	color: rgba(255, 255, 255, .68);
	font-size: 16px;
	line-height: 1.55;
	margin: 0;
	max-width: 560px;
}

.sg-home-gal__row {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sg-home-gal__card {
	border-radius: 16px;
	color: #fff;
	display: block;
	overflow: hidden;
	position: relative;
	text-decoration: none;
}

.sg-home-gal__card img {
	aspect-ratio: 3 / 4;
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform .45s ease;
	width: 100%;
}

.sg-home-gal__card:hover img {
	transform: scale(1.05);
}

.sg-home-gal__card span {
	background: linear-gradient(transparent, rgba(0, 0, 0, .72));
	bottom: 0;
	font-size: 14px;
	left: 0;
	padding: 28px 12px 12px;
	position: absolute;
	right: 0;
}

@media (max-width: 980px) {
	.sg-home-gal__head {
		grid-template-columns: 1fr;
	}

	.sg-home-gal__row {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.sg-home-gal {
		padding: 40px 0 48px;
	}

	.sg-home-gal__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sg-home-gal__card:last-child {
		grid-column: span 2;
	}
}
