:root {
  --scrollbarBG: rgb(220,220,220);
  --thumbBG: rgb(160,160,160);
  --gallery-item-border-radius: 7px;
}

/*******************
 Thumbnail list
*******************/

.gallery-list {
	margin: 0 -15px 0 -15px;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
	align-content: flex-start;
}

/* .gallery-list::after {
	content: "";
	flex: 0 0 250px;
	width: 250px;
	margin: 15px;
} */

.gallery-item  {
	overflow: hidden;
	display: inline-block;
	position: relative;
	flex: 0 0 250px;
	width: 250px;
	height: 250px;
	margin: 15px;
	border-radius: var(--gallery-item-border-radius);
	transition: box-shadow 600ms ease-in-out 100ms;
	cursor: pointer;
}

.gallery-item:hover {
	box-shadow: 20px 20px 20px -2px rgba(80,96,128,0.5);
}

.gallery-item  img {
	width: auto;
	height: 250px;
	text-align: center;
	border-radius: var(--gallery-item-border-radius);
}

/*******************
 Thumbnail caption
*******************/

.gallery-caption {
	position: absolute;
	left: 0px;
	right: 0px;
	top: 0px;
	bottom: 0px;
	padding: 20px;
    background-color: rgba(255,255,255,0.9);
	opacity: 0;
	border-radius: var(--gallery-item-border-radius);
	transition: opacity 350ms ease-in-out;
}

.gallery-caption:hover {
	opacity: 1;
}

.gallery-caption-content {
	box-sizing: border-box;
	overflow: auto;
	width: 100%;
	height: 100%;
	padding: 0px 8px 0px 0px;
	color: black;
	font-size: 0.85rem;
	text-align: left;
}

.gallery-caption-content p {
	line-height: 1.4rem;
}

.gallery-caption-content label {
	font-weight: bold;
}

.gallery-caption-content label::after {
	white-space: pre;
	content: "\000A";
}

/*******************
 Large image
*******************/

.gallery-item-large img {
	margin: 40px auto 15px auto;
	display: block;
	max-width: 100%;
	border-radius: var(--gallery-item-border-radius);
}

.gallery-item-info label {
	font-weight: bold;
}

/**************************
 Large image (old version)
**************************/

.gallery-item-2-large img {
	margin: 20px 0px 15px 0px;
	display: block;
	max-width: 730px;
	border-radius: var(--gallery-item-border-radius);
}

.gallery-item-2-large label {
	font-weight: bold;
}

.gallery-side-nav {
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;
	align-content: center;
}

.gallery-side-nav > * {
	lline-height: 150px;
	padding: 0;
	margin: 0;
	height: 150px;
}

.gallery-side-nav > p {
	box-sizing: border-box;
	flex: 1 1 30%;
	text-align: center;
	line-height: 150px;
}

.gallery-side-nav img {
	width: auto;
	height: 150px;
	border-radius: var(--gallery-item-border-radius);
	transition: box-shadow 350ms ease-in-out;
}

.gallery-side-nav a:hover img,
.gallery-side-nav img:hover {
	box-shadow: 10px 10px 10px -2px rgba(80,96,128,0.6);
}

/*******************
 Scrollbars
*******************/

.gallery-caption-content {
  scrollbar-width: thin;
  scrollbar-color: var(--thumbBG) var(--scrollbarBG);
}

.gallery-caption:hover  .gallery-caption-content {
	opacity: 1;
}

.gallery-caption-content::-webkit-scrollbar {
  width: 12px;
}

.gallery-caption-content::-webkit-scrollbar-track {
  background: var(--scrollbarBG);
}

.gallery-caption-content::-webkit-scrollbar-thumb {
  background-color: var(--thumbBG) ;
  /* border-radius: 6px; */
  border: 3px solid var(--scrollbarBG);
}
