/* ============================================================
   Gallery Editor — Collection Frontend
   ============================================================ */

.gc-collection-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}

.gc-collection-header {
	margin-bottom: 32px;
}

.gc-collection-title {
	margin: 0;
}

/* ---- Grid — JS builds flex columns inside here ---- */
.gc-grid {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	width: 100%;
	min-width: 0;
}

/* ---- Each masonry column ---- */
.gc-col {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

/* ---- Item card ---- */
.gc-item {
	display: block;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0,0,0,.1);
	transition: box-shadow 0.2s, transform 0.2s;
}

a.gc-item:hover {
	box-shadow: 0 6px 20px rgba(0,0,0,.18);
	transform: translateY( -2px );
}

/* ---- Thumbnail ---- */
/* aspect-ratio is set inline by PHP from stored image dimensions */
.gc-item-thumb {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #e8e8e8;
}

.gc-item-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

a.gc-item:hover .gc-item-thumb img {
	transform: scale( 1.03 );
}

/* ---- Info ---- */
.gc-item-info {
	padding: 16px 18px 18px;
}

.gc-item-title {
	margin: 0 0 6px;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
	color: #1d2327;
}

.gc-item-text {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.55;
	color: #646970;
}

/* ---- Empty state ---- */
.gc-empty {
	color: #646970;
	font-style: italic;
	padding: 40px 0;
	text-align: center;
}
