/**
 * CTM Photo Proofing — Gallery Shortcode Styles
 *
 * Styles for the [ctm_child_gallery] shortcode output.
 * Responsive 4-col → 2-col → 1-col grid layout.
 *
 * @package CTM_Photo_Proofing
 * @since   0.1.0
 */

/* ------------------------------------------------------------------ */
/* Grid container                                                       */
/* ------------------------------------------------------------------ */
.ctm-pp-gallery {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	gap: 1.5rem;
	margin: 1.5rem 0;
}

@media ( max-width: 1024px ) {
	.ctm-pp-gallery {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( max-width: 600px ) {
	.ctm-pp-gallery {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------------ */
/* Individual product card                                              */
/* ------------------------------------------------------------------ */
.ctm-pp-item {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 0.75rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transition: box-shadow 0.2s ease;
}

.ctm-pp-item:hover {
	box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.12 );
}

/* ------------------------------------------------------------------ */
/* Preview image                                                        */
/* ------------------------------------------------------------------ */
.ctm-pp-preview {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 2px;
	margin-bottom: 0.5rem;
}

/* ------------------------------------------------------------------ */
/* Text elements                                                        */
/* ------------------------------------------------------------------ */
.ctm-pp-title {
	font-weight: 700;
	font-size: 0.85rem;
	margin: 0.25rem 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 100%;
}

.ctm-pp-price {
	color: #2d6a4f;
	font-size: 0.95rem;
	margin: 0.25rem 0 0.5rem;
}

/* ------------------------------------------------------------------ */
/* Pagination                                                           */
/* ------------------------------------------------------------------ */
.ctm-pp-pagination {
	text-align: center;
	margin-top: 2rem;
}

.ctm-pp-pagination .page-numbers {
	display: inline-block;
	padding: 0.3rem 0.65rem;
	margin: 0 2px;
	border: 1px solid #ddd;
	border-radius: 3px;
	text-decoration: none;
	color: #333;
}

.ctm-pp-pagination .page-numbers.current {
	background: #2d6a4f;
	color: #fff;
	border-color: #2d6a4f;
}

/* ------------------------------------------------------------------ */
/* Status messages                                                      */
/* ------------------------------------------------------------------ */
.ctm-pp-error {
	color: #c0392b;
	font-weight: 600;
}

.ctm-pp-empty {
	color: #777;
	font-style: italic;
}

