/* ACS Portfolio — front end */

.acs-portfolio-wrapper {
	margin-bottom: 40px;
	width: 100%;
}

.acs-portfolio-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 20px;
}

.acs-portfolio-filter-btn {
	background: #f5f5f5;
	border: none;
	padding: 8px 16px;
	border-radius: 20px;
	cursor: pointer;
	font-size: 14px;
	color: #333;
	transition: background 0.2s ease, color 0.2s ease;
}

.acs-portfolio-filter-btn:hover,
.acs-portfolio-filter-btn:focus,
.acs-portfolio-filter-btn.is-active {
	background: #333;
	color: #fff;
}

.acs-portfolio-sort {
	text-align: right;
	margin-bottom: 15px;
}

.acs-portfolio-sort-select {
	padding: 5px 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.acs-portfolio-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
	.acs-portfolio-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.acs-portfolio-grid {
		grid-template-columns: 1fr;
	}
}

.acs-portfolio-item {
	position: relative;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease;
}

.acs-portfolio-item:hover {
	transform: translateY(-5px);
}

.acs-portfolio-thumb {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.acs-portfolio-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.acs-portfolio-thumb-empty {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #ececec 0%, #f7f7f7 100%);
}

.acs-portfolio-item:hover .acs-portfolio-thumb img {
	transform: scale(1.1);
}

.acs-portfolio-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s ease;
}

.acs-portfolio-item:hover .acs-portfolio-overlay {
	background: rgba(0, 0, 0, 0.7);
}

.acs-portfolio-actions {
	display: flex;
	gap: 15px;
	align-items: center;
	justify-content: center;
}

.acs-portfolio-icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border: 2px solid #fff;
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.acs-portfolio-icon-btn:hover,
.acs-portfolio-icon-btn:focus {
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	color: #fff;
}

.acs-portfolio-icon-btn .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
}

.acs-portfolio-external-btn {
	background: #3d7a3f;
	border-color: #3d7a3f;
}

.acs-portfolio-external-btn:hover,
.acs-portfolio-external-btn:focus {
	background: #2f5f31;
	border-color: #2f5f31;
}

.acs-portfolio-detail-btn {
	background: #1565c0;
	border-color: #1565c0;
}

.acs-portfolio-detail-btn:hover,
.acs-portfolio-detail-btn:focus {
	background: #0d47a1;
	border-color: #0d47a1;
}

.acs-portfolio-content {
	padding: 15px;
}

.acs-portfolio-title {
	margin: 0 0 6px;
	font-size: 17px;
	line-height: 1.4;
	font-weight: 600;
}

.acs-portfolio-cats {
	font-size: 13px;
	color: #555;
	margin-bottom: 8px;
	font-weight: 500;
}

.acs-portfolio-client {
	font-size: 13px;
	color: #666;
	display: flex;
	align-items: center;
	gap: 4px;
}

.acs-portfolio-client .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #888;
}

.acs-portfolio-empty {
	grid-column: 1 / -1;
	margin: 0;
	color: #666;
}

/* Download library mode */

.acs-portfolio-download {
	margin-top: 12px;
	text-align: left;
}

.acs-portfolio-download--single {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid #e5e5e5;
}

.acs-portfolio-dl-badge {
	display: flex;
	gap: 12px;
	font-size: 13px;
	color: #666;
	margin-bottom: 8px;
}

.acs-portfolio-dl-badge .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
	vertical-align: text-bottom;
}

.acs-portfolio-dl-actions {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}

.acs-portfolio-dl-btn {
	display: inline-block;
	padding: 8px 18px;
	background: #1565c0;
	color: #fff;
	border-radius: 4px;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.4;
	transition: background 0.2s ease;
}

.acs-portfolio-dl-btn:hover,
.acs-portfolio-dl-btn:focus {
	background: #0d47a1;
	color: #fff;
	text-decoration: none;
}

.acs-portfolio-like-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 7px 14px;
	background: #fff;
	color: #666;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.acs-portfolio-like-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.acs-portfolio-like-btn:hover,
.acs-portfolio-like-btn:focus,
.acs-portfolio-like-btn.is-liked {
	border-color: #c2185b;
	color: #c2185b;
}

.acs-portfolio-like-btn[disabled] {
	opacity: 0.6;
	cursor: default;
}

.acs-portfolio-dl-terms {
	margin: 10px 0 0;
	font-size: 12px;
	line-height: 1.7;
	color: #666;
}

@media (max-width: 600px) {
	.acs-portfolio-dl-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.acs-portfolio-dl-btn,
	.acs-portfolio-like-btn {
		text-align: center;
		justify-content: center;
	}
}
