.studio6-team-gallery {
	max-width: 100%;
	position: relative;
}

.studio6-team-gallery__viewport {
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	cursor: grab;
	user-select: none;
}

.studio6-team-gallery br,
.studio6-team-gallery__viewport br {
	display: none;
}

.studio6-team-gallery__viewport:active {
	cursor: grabbing;
}

.studio6-team-gallery__viewport:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent, #a4964d);
	outline-offset: -2px;
}

.studio6-team-gallery__track {
	align-items: center;
	display: flex;
	touch-action: pan-y pinch-zoom;
}

.studio6-team-gallery.is-centered .studio6-team-gallery__track {
	justify-content: center;
}

.studio6-team-gallery__item {
	background: #0c0c0c;
	align-items: center;
	display: flex;
	flex: 0 0 calc(var(--studio6-image-ratio, 1) * clamp(340px, 54vh, 640px));
	height: clamp(340px, 54vh, 640px);
	justify-content: center;
	margin: 0;
	position: relative;
	overflow: hidden;
	cursor: grab;
	min-width: 0;
}

.studio6-team-gallery__viewport:active .studio6-team-gallery__item {
	cursor: grabbing;
}

.studio6-team-gallery__image {
	align-items: center;
	display: block;
	height: 100%;
	justify-content: center;
	max-height: 100%;
	max-width: 100%;
	width: 100%;
}

picture.studio6-team-gallery__image {
	display: flex;
}

.studio6-team-gallery__image img,
img.studio6-team-gallery__image {
	display: block;
	height: auto;
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	pointer-events: none;
	transition: filter 180ms ease;
}

.studio6-team-gallery__item:hover .studio6-team-gallery__image,
.studio6-team-gallery__item:focus-within .studio6-team-gallery__image {
	filter: brightness(1.06);
}

.studio6-team-gallery__open {
	appearance: none;
	align-items: center;
	background: rgba(12, 12, 12, 0.58);
	border: 0;
	border-radius: 0;
	bottom: 0;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	height: 96px;
	justify-content: center;
	opacity: 0;
	padding: 0;
	position: absolute;
	right: 0;
	text-decoration: none;
	transform: none;
	transition: background 160ms ease, opacity 160ms ease, transform 160ms ease;
	width: 96px;
	z-index: 2;
}

.studio6-team-gallery__item:hover .studio6-team-gallery__open,
.studio6-team-gallery__item:focus-within .studio6-team-gallery__open {
	opacity: 1;
	transform: none;
}

.studio6-team-gallery__open:hover,
.studio6-team-gallery__open:focus-visible {
	background: rgba(12, 12, 12, 0.78);
	outline: 2px solid var(--wp--preset--color--accent, #a4964d);
	outline-offset: -2px;
	transform: scale(1.04);
}

.studio6-team-gallery__open-icon {
	display: block;
	height: 44px;
	width: 44px;
}

@media (max-width: 599px) {
	.studio6-team-gallery__item {
		flex-basis: calc(var(--studio6-image-ratio, 1) * clamp(300px, 58vh, 480px));
		height: clamp(300px, 58vh, 480px);
	}

	.studio6-team-gallery__open {
		bottom: 0;
		height: 92px;
		opacity: 1;
		right: 0;
		transform: none;
		width: 92px;
	}

	.studio6-team-gallery__open:hover,
	.studio6-team-gallery__open:focus-visible {
		transform: scale(1.04);
	}
}
