/* Amsan Portfolio – front end */

.amsan-pf {
	--amsan-accent: #F9C80E;
	--amsan-cols: 3;
	--amsan-ink: #17181c;
	--amsan-muted: #6a6f78;
	--amsan-line: #e9e6dc;
	color: var(--amsan-ink);
	width: 100%;
}

.amsan-pf *,
.amsan-pf *::before,
.amsan-pf *::after {
	box-sizing: border-box;
}

.amsan-pf [hidden] {
	display: none !important;
}

.amsan-pf .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Heading */
.amsan-pf .amsan-pf__head {
	max-width: 720px;
	margin: 0 auto 28px;
	text-align: center;
}

.amsan-pf .amsan-pf__heading {
	margin: 0 0 8px;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--amsan-ink);
}

.amsan-pf .amsan-pf__accent {
	color: var(--amsan-accent);
}

.amsan-pf .amsan-pf__sub {
	margin: 0;
	font-size: 17px;
	line-height: 1.5;
	color: var(--amsan-muted);
}

/* Filter pills */
.amsan-pf .amsan-pf__filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0 0 32px;
}

.amsan-pf .amsan-pf__filter {
	appearance: none;
	margin: 0;
	padding: 11px 26px;
	border: 1.5px solid #d8d8dc;
	border-radius: 999px;
	background: #fff;
	color: var(--amsan-ink);
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.amsan-pf .amsan-pf__filter:hover {
	border-color: var(--amsan-ink);
	background: #fff;
	color: var(--amsan-ink);
}

.amsan-pf .amsan-pf__filter[aria-pressed="true"] {
	border-color: var(--amsan-accent);
	background: var(--amsan-accent);
	color: var(--amsan-ink);
	font-weight: 700;
}

/* Grid */
.amsan-pf .amsan-pf__grid {
	display: grid;
	grid-template-columns: repeat(var(--amsan-cols), minmax(0, 1fr));
	gap: 24px;
	transition: opacity 0.15s ease;
}

.amsan-pf.is-loading .amsan-pf__grid {
	opacity: 0.55;
}

.amsan-pf .amsan-pf__empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 40px 0;
	text-align: center;
	color: var(--amsan-muted);
}

/* Card */
.amsan-pf .amsan-pf-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	padding: 10px 10px 16px;
	border: 1px solid var(--amsan-line);
	border-radius: 16px;
	background: #fff;
}

.amsan-pf .amsan-pf-card__frame {
	display: block;
	overflow: hidden;
	border-radius: 10px;
	background: #f3f4f6;
	color: inherit;
	text-decoration: none;
}

.amsan-pf .amsan-pf-card__bar {
	display: flex;
	gap: 5px;
	padding: 8px 10px;
	background: #eceef1;
}

.amsan-pf .amsan-pf-card__bar i {
	display: block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #ff5f57;
}

.amsan-pf .amsan-pf-card__bar i:nth-child(2) {
	background: #febc2e;
}

.amsan-pf .amsan-pf-card__bar i:nth-child(3) {
	background: #28c840;
}

.amsan-pf .amsan-pf-card__shot {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #fff;
}

.amsan-pf .amsan-pf-card__shot img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	object-position: top center;
}

.amsan-pf .amsan-pf-card__ph {
	display: grid;
	place-items: center;
	height: 100%;
	font-size: 44px;
	font-weight: 700;
	color: #b4b8bf;
}

.amsan-pf .amsan-pf-card__meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 0 6px;
}

.amsan-pf .amsan-pf-card__text {
	min-width: 0;
}

.amsan-pf .amsan-pf-card__title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--amsan-ink);
}

.amsan-pf .amsan-pf-card__sub {
	margin: 2px 0 0;
	font-size: 14.5px;
	line-height: 1.4;
	color: var(--amsan-muted);
}

.amsan-pf .amsan-pf-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding-top: 2px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	white-space: nowrap;
	color: var(--amsan-ink);
	text-decoration: none;
}

.amsan-pf .amsan-pf-card__link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Load more */
.amsan-pf .amsan-pf__more {
	margin-top: 36px;
	text-align: center;
}

.amsan-pf .amsan-pf__more-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	appearance: none;
	margin: 0;
	padding: 13px 28px;
	border: 1.5px solid var(--amsan-ink);
	border-radius: 10px;
	background: #fff;
	color: var(--amsan-ink);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.amsan-pf .amsan-pf__more-btn:hover {
	background: var(--amsan-ink);
	color: #fff;
}

.amsan-pf .amsan-pf__more-btn:disabled {
	opacity: 0.6;
	cursor: progress;
}

/* Keyboard focus */
.amsan-pf .amsan-pf__filter:focus-visible,
.amsan-pf .amsan-pf__more-btn:focus-visible,
.amsan-pf .amsan-pf-card__link:focus-visible {
	outline: 3px solid var(--amsan-ink);
	outline-offset: 3px;
}

/* Responsive */
@media (max-width: 960px) {
	.amsan-pf:not(.amsan-pf--cols-1) .amsan-pf__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.amsan-pf .amsan-pf__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.amsan-pf .amsan-pf__filter {
		padding: 10px 20px;
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.amsan-pf * {
		transition: none !important;
	}
}

/* Elementor widget: the column count comes from the --amsan-cols variable at every screen size
   (Elementor's responsive "Columns" control overrides these defaults). */
.amsan-pf.amsan-pf--elementor {
	--amsan-cols: 3;
}

.amsan-pf.amsan-pf--elementor .amsan-pf__grid {
	grid-template-columns: repeat(var(--amsan-cols), minmax(0, 1fr));
}

@media (max-width: 1024px) {
	.amsan-pf.amsan-pf--elementor {
		--amsan-cols: 2;
	}
}

@media (max-width: 767px) {
	.amsan-pf.amsan-pf--elementor {
		--amsan-cols: 1;
	}
}

/* Navigation: pagination and "View all" link */
.amsan-pf .amsan-pf__grid {
	scroll-margin-top: 100px;
}

.amsan-pf a.amsan-pf__more-btn {
	text-decoration: none;
}

.amsan-pf .amsan-pf__pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 36px;
}

.amsan-pf .amsan-pf__page {
	appearance: none;
	min-width: 44px;
	height: 44px;
	margin: 0;
	padding: 0 14px;
	border: 1.5px solid #d8d8dc;
	border-radius: 10px;
	background: #fff;
	color: var(--amsan-ink);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.amsan-pf .amsan-pf__page:hover:not(:disabled):not([aria-current="page"]) {
	border-color: var(--amsan-ink);
	background: #fff;
	color: var(--amsan-ink);
}

.amsan-pf .amsan-pf__page[aria-current="page"] {
	border-color: var(--amsan-accent);
	background: var(--amsan-accent);
	color: var(--amsan-ink);
	cursor: default;
}

.amsan-pf .amsan-pf__page:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.amsan-pf .amsan-pf__gap {
	padding: 0 4px;
	color: var(--amsan-muted);
}

.amsan-pf .amsan-pf__page:focus-visible {
	outline: 3px solid var(--amsan-ink);
	outline-offset: 3px;
}
