.facility-gallery-wrap {
	position: relative;
	margin: 0 auto;
}
.facility-gallery {
	display: grid;
	gap: 8px;
}
.facility-gallery .fg-item {
	position: relative;
	overflow: hidden;
	cursor: pointer;
	display: block;
	border-radius: 12px;
}
.facility-gallery .fg-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.facility-gallery .fg-item:hover img {
	transform: scale(1.03);
}
.pswp__button > svg {
	width: clamp(24px, 3vw, 32px);
	height: clamp(24px, 3vw, 32px);
}
.pswp__button--arrow > svg {
	width: clamp(32px, 4vw, 44px);
	height: clamp(32px, 4vw, 44px);
}
.fg-view-all {
	position: absolute;
	bottom: 16px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: white;
	color: #111 !important;
	padding: 10px 18px;
	border-radius: 9999px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	z-index: 2;
	transition: background 0.2s ease, color 0.2s ease;
}
.fg-view-all svg {
	width: 18px;
	height: 18px;
}
.fg-view-all:is(:hover, :focus) {
	background: #F9F9F9;
}
.fg-counter {
	display: none;
}
.pswp__container {
	transition: transform 500ms cubic-bezier(0.25, 1, 0.5, 1) !important;
}
.pswp__button--arrow {
	transition: opacity 0.25s ease, transform 0.25s ease !important;
}
.pswp__button--arrow:hover {
	transform: scale(1.1);
}
@media (min-width: 1025px) {
	.facility-gallery {
		grid-template-columns: 66% 1fr;
		grid-template-rows: 1fr 1fr;
		height: 574px;
	}
	.facility-gallery .fg-item {
		border-radius: 0;
	}
	.facility-gallery .fg-item-1 {
		grid-row: 1 / 3;
		border-top-left-radius: 12px;
		border-bottom-left-radius: 12px;
	}
	.facility-gallery .fg-item-2 {
		border-top-right-radius: 12px;
	}
	.facility-gallery .fg-item-3 {
		border-bottom-right-radius: 12px;
	}
	.facility-gallery .fg-item:nth-child(n+4) {
		display: none;
	}
}
@media (max-width: 1024px) {
	.facility-gallery-wrap {
		border-radius: 10px;
		overflow: hidden;
	}
	.facility-gallery {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		gap: 0;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		height: 394px;
	}
	.facility-gallery::-webkit-scrollbar {
		display: none;
	}
	.facility-gallery .fg-item {
		flex: 0 0 100%;
		height: 100%;
		scroll-snap-align: start;
		scroll-snap-stop: always;
		border-radius: 0;
	}
	.fg-view-all {
		display: none;
	}
	.fg-counter {
		display: block;
		position: absolute;
		bottom: 20px;
		right: 20px;
		background: rgba(0, 0, 0, 0.8);
		color: white;
		padding: 8px 30px;
		border-radius: 4px;
		font-size: 20px;
        line-height: 26px;
		font-weight: 600;
		text-transform: uppercase;
		z-index: 2;
		pointer-events: none;
		backdrop-filter: blur(6px);
		-webkit-backdrop-filter: blur(6px);
	}
}
@media (max-width: 480px) {
	.facility-gallery {
		height: 231px;
	}
	.facility-gallery-wrap {
		border-radius: 8px;
	}
	.fg-counter {
		bottom: 8px;
		right: 8px;
		padding: 4px 15px;
		border-radius: 2px;
		font-size: 16px;
        line-height: 16px;
	}
}


/* Reduced motion (a11y) */
@media (prefers-reduced-motion: reduce) {
	.facility-gallery .fg-item img,
	.fg-view-all,
	.pswp__button--arrow {
		transition: none !important;
	}
	.facility-gallery .fg-item:hover img {
		transform: none;
	}
	.pswp__container {
		transition: none !important;
	}
	.facility-gallery {
		scroll-behavior: auto;
	}
}
