/**
 * Photography slot placeholders — Mission 016.
 * Layer: foundation (no new layer; slots accept Nathan's archive without restructure).
 *
 * @see components/PHOTOGRAPHY_SLOTS.md
 */

/* Empty frames — no placeholder copy (Content Deployment Gate) */
.tq-photo-slot {
	display: block;
	width: 100%;
	background-color: color-mix(in srgb, var(--tq-paper) 88%, var(--tq-sandstone));
	border: 1px solid var(--tq-border);
	box-sizing: border-box;
	overflow: hidden;
}

.tq-photo-slot:empty {
	min-height: 12rem;
}

.tq-photo-slot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Homepage hero — natural photo aspect on the family rail (no manufactured crop) */
.tq-photo-slot--hero {
	aspect-ratio: auto;
	min-height: 0;
	max-height: none;
	overflow: visible;
}

.tq-photo-slot--hero img {
	width: 100%;
	height: auto;
	object-fit: contain;
	object-position: center center;
}

/* Category / collection archive banner */
.tq-photo-slot--collection {
	aspect-ratio: 3 / 1;
	min-height: 8rem;
	max-height: 16rem;
	margin-bottom: var(--tq-space-md);
}

/* Featured row (homepage or landing) */
.tq-photo-slot--featured {
	aspect-ratio: 4 / 3;
	min-height: 10rem;
}

/* When image is present, frame recedes */
.tq-photo-slot:has(img) {
	border-color: transparent;
	background: transparent;
}

@media (max-width: 768px) {
	.tq-photo-slot--collection {
		aspect-ratio: 16 / 9;
	}
}
