/* Photo Vault Core: neutral styles used when the active theme does not draw its own. Colours follow --pv-* variables when a theme sets them. */

.pvc-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pvc-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 16px 64px;
}

.pvc-filters {
	margin: 0 0 24px;
	padding: 16px;
	border: 1px solid var(--pv-border, #d9dbe0);
	border-radius: var(--pv-radius, 4px);
	background: var(--pv-surface, #f5f5f2);
}

.pvc-filters__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px 16px;
}

.pvc-field--wide {
	grid-column: 1 / -1;
}

.pvc-field label,
.pvc-colours legend {
	display: block;
	margin-bottom: 4px;
	font-size: 0.875rem;
	font-weight: 600;
}

.pvc-field input,
.pvc-field select {
	width: 100%;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--pv-border, #8a8f98);
	border-radius: var(--pv-radius, 4px);
	background: var(--pv-bg, #fff);
	color: var(--pv-text, #16181d);
	font: inherit;
}

.pvc-colours {
	margin: 16px 0 0;
	padding: 0;
	border: 0;
}

.pvc-colours__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pvc-swatch-opt {
	position: relative;
	display: inline-flex;
	cursor: pointer;
}

.pvc-swatch-opt input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

.pvc-swatch {
	display: inline-block;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid var(--pv-border, #8a8f98);
	box-shadow: 0 0 0 2px transparent;
}

.pvc-swatch--small {
	width: 16px;
	height: 16px;
	vertical-align: -3px;
	margin-inline-end: 6px;
}

.pvc-swatch-opt input:checked + .pvc-swatch {
	box-shadow: 0 0 0 2px var(--pv-bg, #fff), 0 0 0 4px var(--pv-text, #16181d);
}

.pvc-swatch-opt input:focus-visible + .pvc-swatch {
	outline: 3px solid var(--pv-accent, #0b6b6b);
	outline-offset: 3px;
}

.pvc-swatch--any { background: conic-gradient(#d93a3a, #f4d03f, #3f9d4f, #2f6fd6, #7b4bc4, #d93a3a); }
.pvc-swatch--red { background: #d93a3a; }
.pvc-swatch--orange { background: #f08a24; }
.pvc-swatch--yellow { background: #f4d03f; }
.pvc-swatch--green { background: #3f9d4f; }
.pvc-swatch--teal { background: #1f9d9d; }
.pvc-swatch--blue { background: #2f6fd6; }
.pvc-swatch--purple { background: #7b4bc4; }
.pvc-swatch--pink { background: #e86fa4; }
.pvc-swatch--brown { background: #7b5233; }
.pvc-swatch--grey { background: #8a8f98; }
.pvc-swatch--black { background: #17181c; }
.pvc-swatch--white { background: #f6f6f4; }

.pvc-filters__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 16px;
}

.pvc-btn {
	min-height: 44px;
	padding: 0 20px;
	border: 2px solid var(--pv-accent, #0b6b6b);
	border-radius: var(--pv-radius, 4px);
	background: var(--pv-accent, #0b6b6b);
	color: var(--pv-on-accent, #fff);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.pvc-active {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.pvc-active a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid var(--pv-border, #8a8f98);
	border-radius: 999px;
	color: inherit;
	text-decoration: none;
}

.pvc-count {
	margin: 0 0 16px;
	color: var(--pv-muted, #4b5160);
}

.pvc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pvc-card {
	position: relative;
}

.pvc-card__img {
	display: block;
	width: 100%;
	height: auto;
}

.pvc-card__title {
	display: block;
	padding: 8px 0;
	font-weight: 600;
}

.pvc-card__link {
	color: inherit;
	text-decoration: none;
}

.pvc-fav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(17, 19, 24, 0.7);
	color: #fff;
	cursor: pointer;
}

.pvc-card > .pvc-fav {
	position: absolute;
	top: 8px;
	inset-inline-start: 8px;
}

.pvc-fav[aria-pressed="true"] .pvc-icon path {
	fill: currentColor;
}

.pvc-fav:focus-visible {
	outline: 3px solid var(--pv-accent, #0b6b6b);
	outline-offset: 2px;
}

.pvc-details__list div {
	display: grid;
	grid-template-columns: 8rem 1fr;
	gap: 8px;
	padding: 6px 0;
	border-bottom: 1px solid var(--pv-border, #d9dbe0);
}

.pvc-details__list dt {
	font-weight: 600;
}

.pvc-details__list dd {
	margin: 0;
}

.pvc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pvc-single__img {
	max-width: 100%;
	height: auto;
}
