| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | /********************************************************************** | 
					
						
							|  |  |  | *  | 
					
						
							|  |  |  | * | 
					
						
							|  |  |  | * | 
					
						
							|  |  |  | **********************************************************************/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /********************************************************* Config ****/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | :root { | 
					
						
							|  |  |  | 	/* dimensions */ | 
					
						
							| 
									
										
										
										
											2023-07-27 13:26:11 +03:00
										 |  |  | 	--gallery-image-margin: 0; | 
					
						
							| 
									
										
										
										
											2023-08-13 00:23:13 +03:00
										 |  |  | 	--gallery-current-image-border: 0.7rem; | 
					
						
							|  |  |  | 	--gallery-padding: 3rem; | 
					
						
							| 
									
										
										
										
											2023-07-23 06:46:14 +03:00
										 |  |  | 	--gallery-padding-horizontal: var(--gallery-padding); | 
					
						
							| 
									
										
										
										
											2023-07-24 21:04:42 +03:00
										 |  |  | 	--gallery-padding-vertical: var(--gallery-current-image-border); | 
					
						
							| 
									
										
										
										
											2023-07-23 06:46:14 +03:00
										 |  |  | 	--gallery-padding-top: var(--gallery-padding-vertical); | 
					
						
							|  |  |  | 	--gallery-padding-bottom: var(--gallery-padding-vertical); | 
					
						
							|  |  |  | 	--gallery-padding-left: var(--gallery-padding-horizontal); | 
					
						
							|  |  |  | 	--gallery-padding-right: var(--gallery-padding-horizontal); | 
					
						
							| 
									
										
										
										
											2023-07-24 21:04:42 +03:00
										 |  |  | 	--gallery-image-scroll-margin: calc(2 * var(--gallery-current-image-border)); | 
					
						
							| 
									
										
										
										
											2023-08-13 00:23:13 +03:00
										 |  |  | 	--gallery-scrollbar-width: 0.5rem; | 
					
						
							|  |  |  | 	--gallery-empty-height: 20rem; | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-24 21:04:42 +03:00
										 |  |  | 	--lightbox-frame: 5vmin; | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | 	--lightbox-image-margin-top: 0.75; | 
					
						
							| 
									
										
										
										
											2023-07-27 13:26:11 +03:00
										 |  |  | 	--lightbox-button-size: 2em; | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	/* theme */ | 
					
						
							|  |  |  | 	--gallery-text-color: black; | 
					
						
							|  |  |  | 	--gallery-secondary-color: silver; | 
					
						
							|  |  |  | 	--gallery-background-color: white; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-17 13:37:10 +03:00
										 |  |  | 	--lightbox-text-color: black; | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | 	--lightbox-background-color: white; | 
					
						
							| 
									
										
										
										
											2023-07-21 03:16:20 +03:00
										 |  |  | 	/*--lightbox-background-color: rgba(0,0,0,0.8);*/ | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-17 13:37:10 +03:00
										 |  |  | .gallery-dark { | 
					
						
							|  |  |  | 	--gallery-text-color: silver; | 
					
						
							|  |  |  | 	--gallery-secondary-color: gray; | 
					
						
							|  |  |  | 	--gallery-background-color: black; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .lightbox-dark { | 
					
						
							|  |  |  | 	--lightbox-text-color: silver; | 
					
						
							|  |  |  | 	--lightbox-background-color: black; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /****************************************************** Scrolling ****/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ::-webkit-scrollbar { | 
					
						
							|  |  |  | 	width: var(--gallery-scrollbar-width); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | ::-webkit-scrollbar-track { | 
					
						
							|  |  |  | 	background-color: transparent; | 
					
						
							|  |  |  | 	border-radius: 100px; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | ::-webkit-scrollbar-thumb { | 
					
						
							|  |  |  | 	background-color: var(--gallery-secondary-color); | 
					
						
							|  |  |  | 	border-radius: 100px; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | body { | 
					
						
							|  |  |  | 	overflow-y: scroll; | 
					
						
							| 
									
										
										
										
											2023-07-23 07:13:07 +03:00
										 |  |  | 	/* XXX these for some reason do not work in FF... */ | 
					
						
							|  |  |  | 	scrollbar-width: thin; | 
					
						
							|  |  |  | 	scrollbar-color: transparent var(--gallery-secondary-color); | 
					
						
							| 
									
										
										
										
											2023-07-17 13:37:10 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	color: var(--gallery-text-color); | 
					
						
							|  |  |  | 	background: var(--gallery-background-color); | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /******************************************************** Gallery ****/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* XXX need to account for scrollbar popping in and out */ | 
					
						
							|  |  |  | .gallery { | 
					
						
							| 
									
										
										
										
											2023-08-01 18:46:58 +03:00
										 |  |  | 	--base-layer: 10; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-23 06:46:14 +03:00
										 |  |  | 	padding-top: var(--gallery-padding-top); | 
					
						
							|  |  |  | 	padding-bottom: var(--gallery-padding-bottom); | 
					
						
							|  |  |  | 	padding-left: calc( | 
					
						
							|  |  |  | 		var(--gallery-scrollbar-width)  | 
					
						
							|  |  |  | 		+ var(--gallery-padding-left) ); | 
					
						
							|  |  |  | 	padding-right: var(--gallery-padding-right); | 
					
						
							| 
									
										
										
										
											2023-07-17 13:37:10 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	color: var(--gallery-text-color); | 
					
						
							|  |  |  | 	background: var(--gallery-background-color); | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-07-20 21:42:17 +03:00
										 |  |  | .gallery .images { | 
					
						
							|  |  |  | 	position: relative; | 
					
						
							|  |  |  | 	display: flex; | 
					
						
							|  |  |  | 	justify-content: flex-start; | 
					
						
							|  |  |  | 	align-content: flex-start; | 
					
						
							|  |  |  | 	flex-flow: row wrap; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-08-13 00:23:13 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | /* empty... */ | 
					
						
							| 
									
										
										
										
											2023-08-12 00:31:21 +03:00
										 |  |  | .gallery .images:empty { | 
					
						
							|  |  |  | 	height: var(--gallery-empty-height); | 
					
						
							|  |  |  | 	border: dashed 1px black; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-08-13 00:23:13 +03:00
										 |  |  | .gallery .images:empty:after, | 
					
						
							|  |  |  | .gallery .images:empty:before { | 
					
						
							| 
									
										
										
										
											2023-08-12 00:31:21 +03:00
										 |  |  | 	position: absolute; | 
					
						
							|  |  |  | 	width: 100%; | 
					
						
							|  |  |  | 	left: 0; | 
					
						
							|  |  |  | 	top: 0; | 
					
						
							| 
									
										
										
										
											2023-08-13 00:23:13 +03:00
										 |  |  | 	line-height: var(--gallery-empty-height); | 
					
						
							| 
									
										
										
										
											2023-08-12 00:31:21 +03:00
										 |  |  | 	text-align: center; | 
					
						
							| 
									
										
										
										
											2023-08-13 00:23:13 +03:00
										 |  |  | 	opacity: 0.6; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .gallery .images:empty:before { | 
					
						
							|  |  |  | 	content: "Empty"; | 
					
						
							| 
									
										
										
										
											2023-08-12 00:31:21 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-08-13 00:23:13 +03:00
										 |  |  | .gallery .images:empty:after { | 
					
						
							|  |  |  | 	content: "(drag new images here)"; | 
					
						
							|  |  |  | 	font-size: small; | 
					
						
							|  |  |  | 	margin-top: 1.1em; | 
					
						
							|  |  |  | 	opacity: 0.4; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* image... */ | 
					
						
							| 
									
										
										
										
											2023-07-20 21:42:17 +03:00
										 |  |  | .gallery .images img { | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | 	height: 300px; | 
					
						
							|  |  |  | 	width: auto; | 
					
						
							| 
									
										
										
										
											2023-07-27 13:26:11 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	border: solid var(--gallery-image-margin) transparent; | 
					
						
							|  |  |  | 	box-sizing: border-box; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-22 15:33:55 +03:00
										 |  |  | 	scroll-margin: var(--gallery-image-scroll-margin); | 
					
						
							| 
									
										
										
										
											2023-07-27 13:26:11 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | 	image-rendering: crisp-edges; | 
					
						
							| 
									
										
										
										
											2023-07-21 03:16:20 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	cursor: pointer; | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-07-21 14:40:30 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-11 17:33:35 +03:00
										 |  |  | /* dragged image... */ | 
					
						
							|  |  |  | .gallery .images img.dragged { | 
					
						
							| 
									
										
										
										
											2023-08-11 13:21:01 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-08-11 17:33:35 +03:00
										 |  |  | .gallery .images:has(.dragged) img:not(.dragged) { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* image dragged over... */ | 
					
						
							|  |  |  | .gallery .images img.dragged-over { | 
					
						
							|  |  |  | 	filter: saturate(0); | 
					
						
							| 
									
										
										
										
											2023-08-11 13:21:01 +03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-12 00:51:18 +03:00
										 |  |  | /* image marked for removal... */ | 
					
						
							|  |  |  | .gallery .images img.to-remove { | 
					
						
							|  |  |  | 	opacity: 0.3; | 
					
						
							|  |  |  | 	filter: saturate(0); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-21 14:40:30 +03:00
										 |  |  | /* selection marker... */ | 
					
						
							| 
									
										
										
										
											2023-07-20 21:42:17 +03:00
										 |  |  | .gallery .images img.current { | 
					
						
							| 
									
										
										
										
											2023-08-01 18:46:58 +03:00
										 |  |  | 	z-index: 10; | 
					
						
							| 
									
										
										
										
											2023-07-22 15:33:55 +03:00
										 |  |  | 	box-shadow:  | 
					
						
							| 
									
										
										
										
											2023-07-24 21:04:42 +03:00
										 |  |  | 		0px 0px 0px var(--gallery-current-image-border) rgba(255,255,255,1), | 
					
						
							| 
									
										
										
										
											2023-07-23 06:46:14 +03:00
										 |  |  | 		0.4em 0.4em 3em 0em rgba(0,0,0,0.8); | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-01 18:46:58 +03:00
										 |  |  | /* hover... */ | 
					
						
							| 
									
										
										
										
											2023-08-02 17:36:20 +03:00
										 |  |  | /* XXX EXPERIMENTAL -- not sure if this is a good idea... | 
					
						
							|  |  |  | .gallery:not(.lightboxed) .images:has(:hover) img:not(:hover) { | 
					
						
							|  |  |  | 	opacity: 0.8; | 
					
						
							|  |  |  | 	filter: saturate(0); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | */ | 
					
						
							| 
									
										
										
										
											2023-08-02 12:48:47 +03:00
										 |  |  | .gallery:not(.lightboxed) .images img:not(.current):hover { | 
					
						
							|  |  |  | 	z-index: calc(var(--base-layer) + 1); | 
					
						
							| 
									
										
										
										
											2023-08-02 17:36:20 +03:00
										 |  |  | 	box-shadow:  | 
					
						
							|  |  |  | 		0px 0px 0px calc(var(--gallery-current-image-border) / 5) rgba(255,255,255,1), | 
					
						
							|  |  |  | 		0.2em 0.2em 1em 0em rgba(0,0,0,0.8); | 
					
						
							| 
									
										
										
										
											2023-08-01 18:46:58 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-08-02 12:48:47 +03:00
										 |  |  | .gallery:not(.lightboxed) .images img.current:hover { | 
					
						
							|  |  |  | 	z-index: calc(var(--base-layer) + 1); | 
					
						
							| 
									
										
										
										
											2023-08-01 18:46:58 +03:00
										 |  |  | 	box-shadow:  | 
					
						
							|  |  |  | 		0px 0px 0px var(--gallery-current-image-border) rgba(255,255,255,1), | 
					
						
							|  |  |  | 		0.6em 0.6em 4em 0em rgba(0,0,0,0.8); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-20 21:42:17 +03:00
										 |  |  | /*************************************************** Image markers ***/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .gallery .images img+.mark { | 
					
						
							| 
									
										
										
										
											2023-08-01 18:46:58 +03:00
										 |  |  | 	z-index: var(--base-layer); | 
					
						
							| 
									
										
										
										
											2023-07-20 21:42:17 +03:00
										 |  |  | 	position: relative; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-08-02 12:48:47 +03:00
										 |  |  | .gallery .images img:hover+.mark { | 
					
						
							|  |  |  | 	z-index: calc(var(--base-layer) + 1); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .gallery.lightboxed .images img:not(.current)+.mark { | 
					
						
							|  |  |  | 	display: none; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-07-23 06:51:18 +03:00
										 |  |  | .gallery.lightboxed .images img.current+.mark { | 
					
						
							| 
									
										
										
										
											2023-08-02 12:48:47 +03:00
										 |  |  | 	z-index: calc(var(--base-layer) + 1); | 
					
						
							| 
									
										
										
										
											2023-07-22 15:33:55 +03:00
										 |  |  | 	position: fixed; | 
					
						
							|  |  |  | 	bottom: 0; | 
					
						
							|  |  |  | 	right: 0; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-07-20 21:42:17 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-28 23:19:39 +03:00
										 |  |  | /* marker: marked */ | 
					
						
							|  |  |  | .gallery .images img+.mark.marked:after { | 
					
						
							| 
									
										
										
										
											2023-07-20 21:42:17 +03:00
										 |  |  | 	content: ""; | 
					
						
							|  |  |  | 	position: absolute; | 
					
						
							|  |  |  | 	display: block; | 
					
						
							|  |  |  | 	width: 1em; | 
					
						
							|  |  |  | 	height: 1em; | 
					
						
							|  |  |  | 	right: 0.5em; | 
					
						
							|  |  |  | 	bottom: 0.5em; | 
					
						
							|  |  |  | 	border-radius: 50%; | 
					
						
							| 
									
										
										
										
											2023-07-20 22:06:51 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-20 21:42:17 +03:00
										 |  |  | 	background: blue; | 
					
						
							| 
									
										
										
										
											2023-07-22 15:33:55 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	box-shadow: 0em 0em 0em 0.05em rgba(255,255,255,1); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	cursor: pointer; | 
					
						
							| 
									
										
										
										
											2023-07-20 21:42:17 +03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-03 14:10:59 +03:00
										 |  |  | /******************************************************* Overlays ****/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .gallery.lightboxed, | 
					
						
							|  |  |  | .gallery.detailed { | 
					
						
							|  |  |  | 	--base-layer: 100; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .gallery.lightboxed .lightbox, | 
					
						
							|  |  |  | .gallery.detailed .details { | 
					
						
							|  |  |  | 	display: block; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-03 14:10:59 +03:00
										 |  |  | .gallery .lightbox, | 
					
						
							|  |  |  | .gallery .details { | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | 	display: none; | 
					
						
							|  |  |  | 	position: fixed; | 
					
						
							|  |  |  | 	width: 100%; | 
					
						
							|  |  |  | 	height: 100%; | 
					
						
							|  |  |  | 	top: 0px; | 
					
						
							|  |  |  | 	left: 0px; | 
					
						
							| 
									
										
										
										
											2023-08-01 18:46:58 +03:00
										 |  |  | 	z-index: var(--base-layer); | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	text-align: center; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-03 16:40:59 +03:00
										 |  |  | 	color: var(--gallery-text-color); | 
					
						
							|  |  |  | 	background: var(--gallery-background-color); | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-08-03 14:10:59 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /*------------------------------------------------------ Lightbox ---*/ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-03 16:40:59 +03:00
										 |  |  | .gallery .lightbox { | 
					
						
							|  |  |  | 	color: var(--lightbox-text-color); | 
					
						
							|  |  |  | 	background: var(--lightbox-background-color); | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-07-21 21:24:40 +03:00
										 |  |  | .gallery .lightbox.show-caption:before { | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | 	content: attr(caption); | 
					
						
							|  |  |  | 	position: absolute; | 
					
						
							|  |  |  | 	bottom: 0.5em; | 
					
						
							|  |  |  | 	left: 0.5em; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .gallery .lightbox.clickable { | 
					
						
							| 
									
										
										
										
											2023-07-21 03:16:20 +03:00
										 |  |  | 	cursor: pointer; | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | } | 
					
						
							|  |  |  | /* XXX add metadata display... */ | 
					
						
							|  |  |  | .gallery .lightbox img { | 
					
						
							|  |  |  | 	object-fit: contain; | 
					
						
							|  |  |  | 	width: calc( | 
					
						
							|  |  |  | 		100vw  | 
					
						
							| 
									
										
										
										
											2023-07-24 21:04:42 +03:00
										 |  |  | 		- var(--lightbox-frame) * 2); | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | 	height: calc( | 
					
						
							|  |  |  | 		100vh  | 
					
						
							| 
									
										
										
										
											2023-07-24 21:04:42 +03:00
										 |  |  | 		- var(--lightbox-frame) * 2); | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | 	margin-top: calc( | 
					
						
							| 
									
										
										
										
											2023-07-24 21:04:42 +03:00
										 |  |  | 		var(--lightbox-frame)  | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | 		* var(--lightbox-image-margin-top));  | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-08-03 14:10:59 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /*------------------------------------------------------- Details ---*/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .gallery .details img { | 
					
						
							| 
									
										
										
										
											2023-08-03 15:20:42 +03:00
										 |  |  | 	width: 20em; | 
					
						
							|  |  |  | 	height: 20em; | 
					
						
							|  |  |  | 	padding: 0.5em; | 
					
						
							|  |  |  | 	object-fit: contain; | 
					
						
							|  |  |  | 	border: solid 1px black; | 
					
						
							| 
									
										
										
										
											2023-08-03 14:10:59 +03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /******************************************************* Controls ****/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .gallery .buttons { | 
					
						
							| 
									
										
										
										
											2023-07-27 13:26:11 +03:00
										 |  |  | 	display: flex; | 
					
						
							|  |  |  | 	position: absolute; | 
					
						
							|  |  |  | 	top: 0; | 
					
						
							|  |  |  | 	right: 0; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-08-03 14:10:59 +03:00
										 |  |  | .gallery .button { | 
					
						
							| 
									
										
										
										
											2023-07-27 13:26:11 +03:00
										 |  |  | 	disbplay: inline-block; | 
					
						
							| 
									
										
										
										
											2023-07-21 03:16:20 +03:00
										 |  |  | 	cursor: pointer; | 
					
						
							| 
									
										
										
										
											2023-07-27 13:26:11 +03:00
										 |  |  | 	width: var(--lightbox-button-size); | 
					
						
							|  |  |  | 	height: var(--lightbox-button-size); | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | 	font-size: var(--lightbox-button-size); | 
					
						
							| 
									
										
										
										
											2023-07-27 13:26:11 +03:00
										 |  |  | 	line-height: var(--lightbox-button-size); | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | 	filter: saturate(0); | 
					
						
							| 
									
										
										
										
											2023-08-03 16:40:59 +03:00
										 |  |  | 	 | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | 	opacity: 0.1; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-08-03 14:10:59 +03:00
										 |  |  | .gallery .button:hover { | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | 	opacity: 1; | 
					
						
							|  |  |  | 	filter: saturate(1); | 
					
						
							| 
									
										
										
										
											2023-08-03 16:40:59 +03:00
										 |  |  | 	color: var(--gallery-text-color); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	/* XXX HACK: might be better to use SVG for this... */ | 
					
						
							|  |  |  | 	text-shadow:  | 
					
						
							|  |  |  | 		0.02em 0.02em 0em var(--gallery-background-color), | 
					
						
							|  |  |  | 		-0.02em -0.02em 0em var(--gallery-background-color), | 
					
						
							|  |  |  | 		-0.02em 0.02em 0em var(--gallery-background-color), | 
					
						
							|  |  |  | 		0.02em -0.02em 0em var(--gallery-background-color); | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | } | 
					
						
							|  |  |  | /* controls: close... */ | 
					
						
							| 
									
										
										
										
											2023-08-03 14:10:59 +03:00
										 |  |  | .gallery .button.close:after { | 
					
						
							| 
									
										
										
										
											2023-07-27 13:26:11 +03:00
										 |  |  | 	content: "✕"; | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | 	color: red; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-08-03 14:10:59 +03:00
										 |  |  | .gallery .button.fullscreen:after { | 
					
						
							| 
									
										
										
										
											2023-07-27 13:26:11 +03:00
										 |  |  | 	content: "⛶"; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-08-03 14:10:59 +03:00
										 |  |  | .gallery .button.info:after { | 
					
						
							|  |  |  | 	content: "i"; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .gallery .button.prev:after { | 
					
						
							|  |  |  | 	content: "<"; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .gallery .button.next:after { | 
					
						
							|  |  |  | 	content: ">"; | 
					
						
							| 
									
										
										
										
											2023-08-02 19:01:34 +03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-17 13:13:09 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-17 13:16:55 +03:00
										 |  |  | /********************************************************************** | 
					
						
							|  |  |  | * vim:set ts=4 sw=4 :                                                */ |