/* based on https://www.w3schools.com/howto/howto_js_slideshow_gallery.asp */

/* NOTE: .column, below, needs to be set for correct number of columns */

.imageformat { 						/* my addition */
  max-width: 100%;
  border: 3px solid lime;
  margin: auto;
}

.myImagePos { 						/* my addition */
  background-color: green;
  text-align: center;
}


* {
  box-sizing: border-box;
}

/* Position the image container (needed to position the left and right arrows) */
.container {
  position: relative;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Add a pointer when hovering over the thumbnail images */
.cursor {
  cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 40%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: blue;						/* white; */
  background-color: lime;
  font-weight: bold;
  font-size: 20px;
  border-radius: 0 8px 8px 0;				/* 0 3px 3px 0; */
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "prev button" to the left */
.prev {
  left: 4px;						/* to move it clear of the border */
}

/* Position the "next button" to the right */
.next {
  right: 4px;						/* to move it clear of the border */
  border-radius: 8px 0 0 8px;				/* 3px 0 0 3px; */
}

/* background-color: rgba(0, 0, 0, 0.8);		/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: yellow;
}

/* Number text (1/3 etc) */
.numbertext {
  color: black; 					/* #f2f2f2; */
  background-color: yellow; 				/* added */
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* Container for image text */
.caption-container {
  text-align: center;
  background-color: green; 				/* #222; */
  padding: 2px 16px;
  margin: 36px auto 24px auto;
  color: white;						/* color is not being picked up */
}

#caption {
  color: white;						/* ah! this picks it up. Problem was info pages CSS for <p> */
}


.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Six columns side by side */
.column {
  float: left;
  /*  width: 16.66%; */					/* width seems to be ignored here. Images are shrunk to fit. Why? */
  /* 28-Aug-2025: its probably because the width is forced in immediate code in gallery.js */
}

/* Add a transparency effect for thumnbail images */
.demo {
  opacity: 0.6;
}

.active,
.demo:hover {
  opacity: 1;
  border-bottom: solid black 3px;
}

/* Fading animation  ------  added from https://www.w3schools.com/howto/howto_js_slideshow.asp but havent investigatred how it works */

.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}
}