.ibag-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.ibag-card {
	--ibag-position: 50%;
	--ibag-image-fit: cover;
	--ibag-image-x: 50%;
	--ibag-image-y: 50%;
	--ibag-handle-y: 50%;
	aspect-ratio: 3 / 4;
	position: relative;
	isolation: isolate;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	overflow: hidden;
	background: #e8e8e8;
	-webkit-tap-highlight-color: transparent;
}

.ibag-layer,
.ibag-shade,
.ibag-content,
.ibag-range {
	position: absolute;
	inset: 0;
}

.ibag-layer {
	z-index: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	pointer-events: none;
}

.ibag-layer--before {
	z-index: 1;
	clip-path: inset(0 calc(100% - var(--ibag-position)) 0 0);
	-webkit-clip-path: inset(0 calc(100% - var(--ibag-position)) 0 0);
}

.ibag-card > .ibag-layer > .ibag-image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0;
	object-fit: var(--ibag-image-fit, cover) !important;
	object-position: var(--ibag-image-x, 50%) var(--ibag-image-y, 50%) !important;
	user-select: none;
	-webkit-user-drag: none;
	transition: transform 500ms ease;
}

.ibag-hover-zoom-yes .ibag-card:hover .ibag-image {
	transform: scale(1.025);
}

.ibag-shade {
	z-index: 2;
	background-color: rgba(0, 0, 0, 0.08);
	pointer-events: none;
}

.ibag-divider {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--ibag-position);
	z-index: 3;
	display: block;
	width: 0;
	pointer-events: none;
}

.ibag-divider-line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	background-color: #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
	transform: translateX(-50%);
}

.ibag-handle {
	position: absolute;
	top: var(--ibag-handle-y);
	left: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 58px;
	height: 58px;
	border: 1px solid rgba(17, 17, 17, 0.18);
	border-radius: 50%;
	background-color: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	color: #111;
	font-size: 24px;
	line-height: 1;
	transform: translate(-50%, -50%) translateZ(0);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.ibag-handle i,
.ibag-handle svg {
	display: block;
	width: 1em;
	height: 1em;
	line-height: 1;
}

.ibag-range {
	z-index: 4;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	opacity: 0;
	cursor: ew-resize;
	appearance: none;
	-webkit-appearance: none;
	touch-action: pan-y;
}

.ibag-range::-webkit-slider-runnable-track {
	width: 100%;
	height: 100%;
	background: transparent;
}

.ibag-range::-webkit-slider-thumb {
	width: 1px;
	height: 100%;
	margin: 0;
	border: 0;
	background: transparent;
	appearance: none;
	-webkit-appearance: none;
}

.ibag-range::-moz-range-track {
	width: 100%;
	height: 100%;
	border: 0;
	background: transparent;
}

.ibag-range::-moz-range-thumb {
	width: 1px;
	height: 100%;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.ibag-card:focus-within .ibag-handle {
	outline: 3px solid rgba(255, 255, 255, 0.9);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px rgba(17, 17, 17, 0.35);
	transform: translate(-50%, -50%) scale(1.05);
}

.ibag-label {
	position: absolute;
	top: 16px;
	z-index: 5;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.08em;
	pointer-events: none;
}

.ibag-label--before {
	left: 16px;
}

.ibag-label--after {
	right: 16px;
}

.ibag-content {
	z-index: 6;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 28px;
	text-align: center;
	pointer-events: none;
}

.ibag-title {
	max-width: 100%;
	margin: 0 0 14px;
	color: #fff;
	font-size: clamp(24px, 3vw, 40px);
	font-weight: 700;
	line-height: 1.1;
	overflow-wrap: anywhere;
	pointer-events: none;
}

.ibag-title-shadow-yes .ibag-title {
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.ibag-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	padding: 9px 30px;
	border: 1px solid #fff;
	border-style: solid;
	background-color: transparent;
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	overflow-wrap: anywhere;
	pointer-events: auto;
	transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.ibag-button:hover,
.ibag-button:focus-visible {
	background-color: #fff;
	color: #111;
	text-decoration: none;
	transform: translateY(-1px);
}

.ibag-button:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.85);
	outline-offset: 3px;
}

.ibag-button--disabled {
	pointer-events: none;
}

.ibag-expand {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 8;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 50%;
	background: rgba(17, 17, 17, 0.58);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
	color: #fff;
	cursor: pointer;
	pointer-events: auto;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: background-color 180ms ease, transform 180ms ease;
}

.ibag-expand:hover,
.ibag-expand:focus-visible {
	background: rgba(17, 17, 17, 0.82);
	transform: scale(1.06);
}

.ibag-expand:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.9);
	outline-offset: 3px;
}

.ibag-expand svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

body.ibag-lightbox-open {
	overflow: hidden;
}

.ibag-lightbox[hidden] {
	display: none;
}

.ibag-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 4vh 4vw;
	background: rgba(4, 4, 6, 0.9);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.ibag-lightbox.is-open {
	display: flex;
}

.ibag-lightbox-dialog {
	position: relative;
	width: 92vw;
	max-width: 1600px;
	height: 88vh;
	max-height: 1100px;
}

.ibag-lightbox-content {
	width: 100%;
	height: 100%;
}

.ibag-card--lightbox {
	width: 100%;
	height: 100% !important;
	aspect-ratio: auto !important;
	border-radius: 12px;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.ibag-lightbox-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 12;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.65);
	border-radius: 50%;
	background: rgba(17, 17, 17, 0.7);
	color: #fff;
	font: 400 32px/1 Arial, sans-serif;
	cursor: pointer;
}

.ibag-lightbox-close:hover,
.ibag-lightbox-close:focus-visible {
	background: #fff;
	color: #111;
}

.ibag-lightbox-close:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.9);
	outline-offset: 3px;
}

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

@media (max-width: 767px) {
	.ibag-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ibag-handle {
		width: 50px;
		height: 50px;
	}

	.ibag-lightbox {
		padding: 16px;
	}

	.ibag-lightbox-dialog {
		width: calc(100vw - 32px);
		height: calc(100vh - 32px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ibag-image,
	.ibag-handle,
	.ibag-button,
	.ibag-expand {
		transition: none;
	}
}
