input[type="radio"] {display: none;}

label {cursor: pointer;}

#gallery-wrapper {height: 100%;
	width: 100%}

#gallery-head {display: block;
	width: 100%;
	height: 30px;
	top: 0;
	left: 0;
	position: fixed;
	text-align: center;
	color: var(--h3-text-color);
	background-color: var(--head-bg-color);
	font-size: 16px;
	line-height: 30px;
	font-weight: 800;}

#gallery-thumb {position: fixed;
	bottom: 0;
	left: 0;
	top: unset;
	height: 110px;
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	background-color: var(--head-bg-color);
	width: 100%;
	/* overflow-x: hidden; */
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: thin;}
	
#gallery-thumb[data-width="overflow"] {justify-content: space-between;}

/* #gallery-thumb:hover, #gallery-thumb:focus {overflow-x: auto;} */

#gallery-comment {display: none;}

#gallery-toggle-close {color: var(--head-text-color);
	position: absolute;
	top: -9px;
	right: 5px;
	font-size: 35px;
	line-height: 35px;
	font-weight: bold;}

#thumb-toggle-0 + #gallery {display: block;
	position: fixed;
	height: calc(100% - 140px);
	width: 100%;
	top: 30px;
	left: 0;
	z-index: auto;
	background-color: var(--head-bg-color);}

#thumb-toggle-0:checked + #gallery {display: none;}

#thumb-toggle-0:checked + #gallery + #gallery-thumb {flex-wrap: wrap;
	position: fixed;
	top: 30px;
	height: calc(100% - 30px);
	justify-content: center;
	align-content: start;
	background-color: var(--content-bg-color);
	overflow-x: unset;
	overflow-y: auto;}

#thumb-toggle-0:checked + #gallery + #gallery-thumb[data-width="overflow"] {justify-content: space-evenly;}

#thumb-toggle-0:checked + #gallery + #gallery-thumb #gallery-comment {display: block;
	width: 100%;
	padding: 5px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;}

#thumb-toggle-0:checked + #gallery + #gallery-thumb #gallery-comment:empty {display: none;}

.thumb-toggle:checked + label img {outline: 3px solid orange;}

.thumb-toggle-label {align-self: center;}

.thumb-toggle-label img {margin: 3px;
	transition: 0.3s;}

.thumb-toggle-label img:hover {box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);}

#slide-viewer {position: fixed;
	height: calc(100% - 140px);
	width: calc(100% - 100px);
	top: 30px;
	left: 50px;
	overflow: visible;
	z-index: 2;}

#slide-number {position: fixed;
	top: 30px;
	left: 5px;
	color: orange;
	font-weight: bold;
	z-index: 10;}
	
#full-view {position: fixed;
	cursor: pointer;
	top: 30px;
	right: 55px;
	color: orange;
	font-size: 35px;
	line-height: 35px;
	font-weight: bold;
	z-index: 10;
	transform: rotate(45deg);}
	
#slide-image {position: relative;
	display: block;
	height: 100%;
	width: 100%;
	object-fit: contain;}

#prev-slide, #next-slide {cursor: pointer;
	  position: absolute;
	  top: 50%;
	  width: auto;
	  padding: 16px;
	  margin-top: -50px;
	  color: var(--head-text-color);
	  font-weight: bold;
	  font-size: 20px;
	  transition: 0.6s ease;
	  border-radius: 0 3px 3px 0;
	  user-select: none;
	  -webkit-user-select: none;}

#next-slide {right: 0;
	border-radius: 3px 0 0 3px;}
	
#prev-slide:hover, #next-slide:hover {background-color: rgba(0, 0, 0, 0.8);}