/* iiif-viewer.css — styles for the IIIF direct-image viewer (see iiif-viewer.js),
 * shown inside the shared #gn-lightbox dialog (see lightbox.css). */

/* Soft-launch gate: grid.php always renders the a.iiifPhotoLink icon when a
 * manifest resolves, but it only becomes visible once iiif-viewer.js adds
 * gn-iiif-enabled to <html> (page URL has a `premium` param). Without it,
 * the cell shows just the plain page number, matching pre-feature behavior. */
a.iiifPhotoLink {
	display: none;
}

html.gn-iiif-enabled a.iiifPhotoLink {
	display: inline-block;
	vertical-align: text-bottom;
}

#gn-lightbox .gn-iiif {
	width: 80vw;
	max-width: 900px;
}

#gn-lightbox .gn-iiif-status {
	padding: 2em;
	text-align: center;
	color: #666;
}

#gn-lightbox .gn-iiif-canvas {
	width: 100%;
	height: 65vh;
	background: #f4f4f2;
	border-radius: 4px;
}

#gn-lightbox .gn-iiif-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 10px;
}

#gn-lightbox .gn-iiif-nav button {
	padding: 6px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	font-size: 13px;
}

#gn-lightbox .gn-iiif-nav button:hover:not(:disabled) {
	background: #f0f0f0;
}

#gn-lightbox .gn-iiif-nav button:disabled {
	opacity: 0.5;
	cursor: default;
}

#gn-lightbox .gn-iiif-pageinfo {
	font-size: 13px;
	color: #666;
	min-width: 8em;
	text-align: center;
}

#gn-lightbox .gn-iiif-attribution {
	margin: 10px 0 0;
	font-size: 12px;
	color: #888;
	text-align: center;
}
