/* Image Showcase Gellary - image-only premium masonry styles */
.isg-gallery-wrapper,
.isg-gallery-wrapper * {
	box-sizing: border-box;
}

.isg-gallery-wrapper {
	--isg-accent: #d41515;
	--isg-card-bg: #070707;
	--isg-text: #ffffff;
	--isg-muted: #b9b9b9;
	--isg-zoom: 1.05;
	position: relative;
	isolation: isolate;
	width: 100%;
	padding: 70px 40px;
	color: var(--isg-text);
	background:
		radial-gradient(circle at 7% 2%, color-mix(in srgb, var(--isg-accent) 28%, transparent), transparent 34%),
		radial-gradient(circle at 94% 96%, color-mix(in srgb, var(--isg-accent) 22%, transparent), transparent 30%),
		linear-gradient(135deg, #050505 0%, #151515 46%, #070707 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 28px;
	overflow: hidden;
}

.isg-gallery-wrapper::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 52px 52px;
	mask-image: radial-gradient(circle at center, black 0%, transparent 82%);
	pointer-events: none;
}

.isg-gallery-wrapper::after {
	content: "";
	position: absolute;
	inset: 1px;
	z-index: -1;
	border-radius: inherit;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0));
	pointer-events: none;
}

.isg-bg-glow {
	position: absolute;
	z-index: -1;
	width: 340px;
	height: 340px;
	border-radius: 999px;
	filter: blur(58px);
	opacity: 0.42;
	pointer-events: none;
}

.isg-bg-glow-one {
	top: -125px;
	left: -90px;
	background: var(--isg-accent);
}

.isg-bg-glow-two {
	right: -110px;
	bottom: -135px;
	background: color-mix(in srgb, var(--isg-accent) 70%, #ffffff 30%);
	opacity: 0.26;
}

.isg-gallery-header {
	position: relative;
	z-index: 1;
	max-width: 860px;
	margin: 0 auto 36px;
	text-align: center;
}

.isg-kicker {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 12px;
	color: var(--isg-accent);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.18em;
	line-height: 1.2;
	text-transform: uppercase;
}

.isg-kicker::before,
.isg-kicker::after {
	content: "";
	width: 24px;
	height: 2px;
	background: currentColor;
	box-shadow: 0 0 16px currentColor;
}

.isg-heading {
	margin: 0;
	color: var(--isg-text);
	font-size: clamp(34px, 5vw, 72px);
	font-weight: 950;
	letter-spacing: -0.055em;
	line-height: 0.92;
	text-transform: uppercase;
	text-wrap: balance;
	text-shadow: 5px 5px 0 rgba(212, 21, 21, 0.28), 0 18px 40px rgba(0, 0, 0, 0.45);
}

.isg-intro {
	max-width: 720px;
	margin: 18px auto 0;
	color: var(--isg-muted);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.72;
}

.isg-gallery-grid {
	position: relative;
	z-index: 1;
}

.isg-layout-masonry .isg-gallery-grid {
	column-count: 2;
	column-gap: 24px;
}

.isg-layout-grid .isg-gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.isg-gallery-item {
	position: relative;
	display: block;
	width: 100%;
	margin: 0 0 24px;
	padding: 0;
	background: var(--isg-card-bg);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 22px;
	overflow: hidden;
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	text-decoration: none !important;
	box-shadow: 0 26px 70px rgba(0, 0, 0, 0.44);
	transform: translateY(0) translateZ(0);
	transition: transform 360ms ease, border-color 360ms ease, box-shadow 360ms ease;
	cursor: pointer;
	outline: none;
}

.isg-layout-grid .isg-gallery-item {
	margin-bottom: 0;
}

.isg-gallery-item:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--isg-accent) 75%, white 25%);
	outline-offset: 4px;
}

.isg-gallery-item::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 28%),
		radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--isg-accent) 24%, transparent), transparent 30%);
	opacity: 0;
	transition: opacity 360ms ease;
	pointer-events: none;
}

.isg-gallery-item::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--isg-accent) 55%, transparent), inset 0 -24px 50px rgba(0, 0, 0, 0.10);
	opacity: 0;
	transition: opacity 360ms ease;
	pointer-events: none;
}

.isg-gallery-item:hover {
	transform: translateY(-8px) translateZ(0);
	border-color: color-mix(in srgb, var(--isg-accent) 70%, transparent);
	box-shadow: 0 34px 85px rgba(0, 0, 0, 0.55), 0 0 0 1px color-mix(in srgb, var(--isg-accent) 28%, transparent), 0 0 38px color-mix(in srgb, var(--isg-accent) 22%, transparent);
}

.isg-gallery-item:hover::before,
.isg-gallery-item:hover::after {
	opacity: 1;
}

.isg-gallery-image {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	max-width: 100% !important;
	object-fit: contain !important;
	object-position: center center !important;
	border: 0;
	transform: scale(1) translateZ(0);
	transform-origin: center center;
	transition: transform 520ms cubic-bezier(0.2, 0.75, 0.2, 1), opacity 320ms ease, filter 360ms ease;
	will-change: transform;
}

.isg-gallery-item:hover .isg-gallery-image {
	transform: scale(var(--isg-zoom)) translateZ(0);
	filter: saturate(1.05) contrast(1.04);
}

.isg-no-hover-zoom .isg-gallery-item:hover .isg-gallery-image {
	transform: scale(1) translateZ(0);
}

.isg-gallery-shine {
	position: absolute;
	inset: -65% auto auto -70%;
	z-index: 4;
	width: 58%;
	height: 220%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
	transform: rotate(18deg) translateX(-120%);
	transition: transform 780ms ease;
	pointer-events: none;
}

.isg-gallery-item:hover .isg-gallery-shine {
	transform: rotate(18deg) translateX(420%);
}

.isg-animate-on .isg-gallery-item {
	animation: isgFadeUp 720ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
	animation-delay: var(--isg-delay, 0ms);
}

@keyframes isgFadeUp {
	from {
		opacity: 0;
		transform: translateY(26px) scale(0.985);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Safety: never show image overlay texts from older saved widget versions. */
.isg-gallery-wrapper .isg-card-content,
.isg-gallery-wrapper .isg-gallery-overlay,
.isg-gallery-wrapper .isg-badge,
.isg-gallery-wrapper .isg-counter,
.isg-gallery-wrapper .isg-card-title,
.isg-gallery-wrapper .isg-card-description,
.isg-gallery-wrapper .isg-card-button {
	display: none !important;
	visibility: hidden !important;
}

.isg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px;
	background: rgba(0, 0, 0, 0.88);
	backdrop-filter: blur(14px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 260ms ease, visibility 260ms ease;
}

.isg-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.isg-lightbox__panel {
	position: relative;
	max-width: min(1180px, 94vw);
	max-height: 88vh;
	padding: 14px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 24px;
	box-shadow: 0 30px 110px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(212, 21, 21, 0.25);
}

.isg-lightbox__image {
	display: block;
	width: auto;
	height: auto;
	max-width: calc(94vw - 28px);
	max-height: calc(88vh - 28px);
	object-fit: contain;
	border-radius: 16px;
	background: #050505;
}

.isg-lightbox__close {
	position: absolute;
	top: -18px;
	right: -18px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	color: #fff;
	font-size: 28px;
	font-weight: 600;
	line-height: 1;
	background: var(--isg-accent, #d41515);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
	cursor: pointer;
}

body.isg-lightbox-lock {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.isg-gallery-wrapper {
		padding: 56px 24px;
	}

	.isg-layout-masonry .isg-gallery-grid {
		column-count: 2;
	}
}

@media (max-width: 767px) {
	.isg-gallery-wrapper {
		padding: 46px 16px;
		border-radius: 20px;
	}

	.isg-heading {
		font-size: clamp(30px, 12vw, 50px);
		letter-spacing: -0.045em;
	}

	.isg-layout-masonry .isg-gallery-grid {
		column-count: 1;
	}

	.isg-layout-grid .isg-gallery-grid {
		grid-template-columns: 1fr;
	}

	.isg-gallery-item {
		border-radius: 18px;
	}

	.isg-lightbox {
		padding: 16px;
	}

	.isg-lightbox__close {
		top: 8px;
		right: 8px;
	}
}
