.portfolio-item {
	display: flex;
	flex-direction: column;
	margin-bottom: 2rem;
}

.portfolio-item button:focus {
	outline: none;
}

.portfolio-container {
	aspect-ratio: 1 / 1;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 2rem;
	position: relative;
	overflow: hidden;
	will-change: transform;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.portfolio-video-frame {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.portfolio-video-frame video {
	max-width: 100%;
	max-height: 100%;
	border-radius: 4px;
	box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
	.portfolio-video-frame video {
		border-radius: 0.375rem; /* rounded-md */
	}
}

@media (min-width: 1024px) {
	.portfolio-video-frame video {
		border-radius: 0.5rem; /* rounded-lg */
	}
}

.portfolio-images {
	overflow: hidden;
	box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2);
	border-radius: 4px;
}

@media (min-width: 768px) {
	.portfolio-images {
		border-radius: 0.375rem; /* rounded-md */
	}
}

@media (min-width: 1024px) {
	.portfolio-images {
		border-radius: 0.5rem; /* rounded-lg */
	}
}

.portfolio-images-roll {
	left: 0%;
	transition: left 300ms ease-in-out;
	position: relative;
	display: flex;
	align-items: center;
}

.portfolio-images-roll img {
	width: 100%;
	flex-shrink: 0;
}

.portfolio-bullets {
	visibility: hidden;
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	opacity: 0.6;
}

.portfolio-bullet {
	padding: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: color-mix(in srgb, currentColor 20%, transparent);
	border: none;
	cursor: pointer;
}

.portfolio-bullet.active {
	background-color: color-mix(in srgb, currentColor 50%, transparent);
}

@media (hover: hover) {
	.portfolio-bullet:hover {
		background-color: color-mix(in srgb, currentColor 50%, transparent);
	}
}

.portfolio-arrow {
	visibility: hidden;
	position: absolute;
	transform: translateY(-50%);
	top: 50%;
	border-radius: 50%;
	background-color: white;
	filter: drop-shadow(0 1px 2px #0000001a) drop-shadow(0 1px 1px #0000000f);
	width: 2.25rem;
	height: 2.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #282725;
	border: none;
	cursor: pointer;
}

.portfolio-arrow svg {
	width: 1.5rem;
	height: 1.5rem;
	scale: 0.9;
	transition: scale 75ms ease-in-out;
}

@media (hover: hover) {
	.portfolio-arrow:hover svg {
		scale: 1;
	}
}

.portfolio-arrow.left {
	left: 1rem;
}

.portfolio-arrow.right {
	right: 1rem;
}

.portfolio-video-progress {
	visibility: hidden;
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	width: 50px;
	height: 50px;
	opacity: 0.6;
}

.portfolio-video-progress .ring {
	transform: rotate(-90deg);
	border: none;
	outline: none;
	display: block;
	overflow: visible;
	box-shadow: none;
}

.portfolio-video-progress .bg {
	fill: none;
	stroke: rgba(0, 0, 0, 0.1);
	stroke-width: 4;
}

.portfolio-video-progress .progress {
	fill: none;
	stroke: black;
	stroke-width: 4;
	stroke-dasharray: 126;
	stroke-dashoffset: 126;
	transition: stroke-dashoffset 0.1s linear;
}

.portfolio-video-progress .play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: none;
	border: none;
	outline: none;
	cursor: pointer;
}

.portfolio-video-progress .play svg {
	display: block;
	border: none;
	outline: none;
}

@media (hover: hover) {
	.group:hover .portfolio-video-progress,
	.group:hover .portfolio-bullets,
	.group:hover .portfolio-arrow {
		visibility: visible;
	}
}

@media (hover: none) {
	.portfolio-video-progress,
	.portfolio-bullets {
		visibility: visible !important;
	}

	.portfolio-bullets {
		top: auto;
		bottom: 1.5rem;
		right: auto;
	}
}

.portfolio-card {
	display: flex;
	gap: 1rem;
	margin-top: 1.5rem;
}

.portfolio-logo {
	width: 2.75rem;
	height: 2.75rem;
	border: 0.5px solid rgba(229, 231, 235, 0.95);
	background-size: contain;
	background-position: center center;
	background-repeat: no-repeat;
}

.portfolio-text {
	cursor: default;
	display: flex;
	flex-direction: column;
}

.portfolio-text .title {
	font-weight: 600;
}

.portfolio-text .description {
	font-weight: 300;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: #6e6a5e;
}
