/* Frontend CSS for Alpesoft Project Manager */

/* Archive Filters */
.apm-filters {
	margin-top: 40px !important;
	margin-bottom: 50px !important;
	text-align: center !important;
	width: 100% !important;
}

.apm-filter-list {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 auto !important;
	display: inline-flex !important;
	flex-wrap: wrap !important;
	gap: 15px !important;
	justify-content: center !important;
}

.apm-filter-list li {
	margin: 0;
}

.apm-filter-list label {
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 8px 16px;
	background: #f1f1f1;
	border-radius: 20px;
	transition: all 0.3s ease;
	user-select: none;
}

.apm-filter-list label:hover {
	background: #e1e1e1;
}

.apm-filter-list input[type="checkbox"] {
	margin: 0;
}

/* Selected state via JS */
.apm-filter-list label.active {
	background: #3498db;
	color: #fff;
}

/* Archive Grid */
.apm-projects-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

@media (max-width: 600px) {
	.apm-projects-grid {
		gap: 10px;
	}
	.apm-project-title {
		font-size: 0.8rem;
	}
}

.apm-project-item {
	transition: opacity 0.3s ease;
}

.apm-project-item.hidden {
	display: none;
}

.apm-project-item a {
	text-decoration: none;
	color: inherit;
	display: block;
}

.apm-project-item a:hover .apm-project-thumbnail img {
	transform: scale(1.05);
}

.apm-project-thumbnail {
	overflow: hidden;
	border-radius: 8px;
	margin-bottom: 15px;
	aspect-ratio: 4/3;
	background: #f1f1f1;
}

.apm-project-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
	display: block;
}

.apm-project-title {
	font-size: 1.25rem;
	margin: 0;
	text-align: center;
}

/* Single Masonry Gallery */
.apm-masonry-gallery {
	margin-top: 40px;
}

.apm-masonry-sizer,
.apm-masonry-item {
	width: calc(33.333% - 20px);
	margin-bottom: 30px;
}

@media (max-width: 992px) {
	.apm-masonry-sizer,
	.apm-masonry-item {
		width: calc(50% - 15px);
	}
}

@media (max-width: 576px) {
	.apm-masonry-sizer,
	.apm-masonry-item {
		width: 100%;
	}
}

.apm-masonry-item img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
	transition: opacity 0.3s ease;
}

.apm-masonry-item a:hover img {
	opacity: 0.8;
}
