.photofetch-app,
.photofetch-modal-body {
	max-width: 900px;
}

.photofetch-searchbar {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}

.photofetch-search-input {
	flex: 1;
	padding: 6px 8px;
	font-size: 14px;
}

.photofetch-status {
	min-height: 20px;
	color: #646970;
	margin-bottom: 8px;
}

.photofetch-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 160px, 1fr ) );
	gap: 14px;
}

.photofetch-card {
	border: 1px solid #dcdcde;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.photofetch-card img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	display: block;
	background: #f0f0f1;
}

.photofetch-card-actions {
	padding: 6px 8px 8px;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	align-items: center;
	margin-top: auto;
}

.photofetch-card.photofetch-imported {
	border-color: #00a32a;
}

.photofetch-imported-label {
	color: #00a32a;
	font-size: 12px;
	font-weight: 600;
}

.photofetch-load-more {
	display: block;
	margin: 16px auto 0;
}

.photofetch-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.6 );
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.photofetch-modal-box {
	background: #fff;
	width: 90%;
	max-width: 960px;
	max-height: 85vh;
	overflow: auto;
	position: relative;
	border-radius: 4px;
	padding: 24px;
}

.photofetch-modal-close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #646970;
}

.photofetch-modal-close:hover {
	color: #1d2327;
}

/* Inside the native wp.media modal (our custom router tab) */
.photofetch-media-modal-content {
	padding: 16px;
	overflow-y: auto;
	height: 100%;
	box-sizing: border-box;
}

.photofetch-media-modal-content .photofetch-app {
	max-width: none;
}
