* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* Button Styling */
btnsub {
  font-size: 13px;
  line-height: 5px;
  font-weight: 400;
}

.button {
  display: inline-block;
  text-align: center;
}

.button a {
  color: inherit;
}

/* Table Styling */
.tg{
	border:none;
	border-collapse:collapse;
	border-spacing:0;
}
	
.tg .td{
	border-style:solid;
	border-width:0px;
	overflow:hidden;
	padding:10px 5px;
	word-break:normal;
}
.tg .th{
	border-style:solid;
	border-width:0px;
	font-weight:bold;
	overflow:hidden;
	padding:10px 5px;
	word-break:normal;
}
.tg .left{
	text-align:left;
	vertical-align:top;
}
.tg .center{
	text-align:center;
	vertical-align:top;
}
.tg .right{
	text-align:right;
	vertical-align:top;
}
.tg img{
	display:block;
	width:100%;
	height:auto;
}

/* Gallery Styling */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	/* repeatrepeat(auto-fill, minmax(<image_size>px, 1fr))*/
    grid-gap: 0px;
	align-items: stretch;
}

.gallery__item {
	border: 1px solid #000;
}

.gallery__item:hover {
  border: 1px solid #fff;
}

.gallery__img {
	width: auto;
	height: 100%;
	display: block;
	margin-left: auto;
	margin-right: auto;

}

.gallery__desc {
	text-align: center;
}

/* Video Styling */
.video-container {
  position: relative;
  overflow: hidden;
  height: 0;
  padding-bottom: 56.25%; /* creates a 16:9 aspect ratio */
}

.video-container iframe,
.video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
}

/* And set the max-width of the parent element */
.video-wrap {
  width: 100%;
  max-width: 600px;
}

/* Figure styling */
div.figure {
  border-style: solid;
  border-width: 1px;
  border-color: #7F7F7F;
  margin-left: 12px;
  margin-right: 12px;
  padding: 12px;
}

p.figure {
  font-size: 14px;
  font-weight: bold;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #7F7F7F;
  margin-top: 0px;
  margin-bottom: 12px;
}

div.figureimgcontainer {
  text-align: center;
}

div.figuregridcontainer {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 8px;
  justify-content: space-evenly;
}

/* In the event someone wants to style the images

picture.figure {

}

*/

img.figure {
  max-height: 800px;
}

table.figure {
  border-style: none;
}

tr.figure {
  border-style: none;
}

td.figure {
  width: 50%;
  border-style: solid;
  border-color: black;
  border-width: 1px;
  padding: 0px 0px;
}

td.figure:hover {
  border-style: solid;
  border-color: white;
  border-width: 1px;
  padding: 0px 0px;
}

td.figure > p {
  font-size: 14px;
  text-align: center;
  margin-left: 16px;
  margin-right: 16px;
  margin-top: 0px;
  margin-bottom: 0px;
}

samp {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.75rem;
  font-weight: normal;
  padding: 0 .4em;
  background-color: var(--md-code-bg-color);
  border-style: solid;
  border-color: var(--md-default-fg-color);
  border-width: 0.0625rem;
  border-radius: 0.2rem;
}
