

img.launcher {
  opacity: 0.9;
  border-radius: 5px;
}
.launcher:hover {
  outline: 3px ridge #AFAFAF;
  cursor:pointer;
  border-radius: 5px;
  opacity: 1;
}

.gallerywrapper { /* Gallery page */
  position: relative;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  padding: 180px 60px 60px 60px;
  min-height: 900px;
}

@media only screen and (min-device-width: 768px){
.gallerywrapper {
  width: 80%;
  height: auto;
  padding: 100px 60px 60px 60px;
}}

.fetch-container {
  position: relative;
  height: auto;
}

.fetch-html {
  position: absolute;
  top: 0;
  opacity: 1;
  transition: 0.5s ease-out;
}

.fade-out {
  opacity: 0;
  transition: 0.5s ease-in;
}

.gallery-row {  /* Gallery content page tiles area */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.gallery-col {
  padding: 0px;
}
.gallery-col p {
  text-align:  center;
}

.gallery-col img {
  width: 380px;
  margin-bottom: 20px;
}

@media only screen and (min-device-width: 1200px){
.gallery-row {
  width: 95%;
  margin: auto;
}

.gallery-col img {
  height: 133px;
  width: auto;
  margin-bottom: 15px;
}}

@media only screen and (max-device-width: 1200px) and (orientation: landscape){
.gallery-col img {
  height: 133px;
  width: auto;
  margin-bottom: 15px;
}}

.thumbs-list {  /* thumbs sub-page */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap:20px;
}

.thumbs-item {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 285px;
  max-height: 253px;
  opacity: 0.9;
  border-radius: 5px;
  margin-bottom: 15px;
  overflow: hidden;  /* allow thumbs round corners */
}

.thumbs-item:hover {
  outline: 3px ridge #AFAFAF;
  cursor: pointer;
  border-radius: 5px;
  opacity: 1;
}

@media only screen and (max-device-width: 1200px) and (orientation: portrait){ /* resize thumbs for mobile only */
.thumbs-item img {
  object-fit: contain;
  width: auto;
  height: 85px;
}}

@media only screen and (min-device-width: 1200px){
.thumbs-list {
  width: 100%;
  margin: auto;
  gap:10px;
}

.thumbs-item {
  max-width: 110px;
  max-height: 100px;
}}

@media only screen and (max-device-width: 1200px) and (orientation: landscape){
.thumbs-item {
  max-width: 150px;
  max-height: 133px;
}}

.page-select {
  display: inline-block;
  font-size: 2rem;
}


.gallerybutton {
  width: 170px;
  border: solid 1px #A4A4A4;
  border-radius: 4px;
  padding: 3px;
  cursor: pointer;
  font-size: 2rem;
  text-align: center;
}

.gallerybutton:hover, .gallerybutton:focus {
  background: rgba(44,73,171,0.9);
}

#previous-button, #next-button, #back-button, #toggle-button{
  display: inline-block;
}

#next-button {
  float: right;
}

@media only screen and (min-device-width: 768px){
.gallerybutton {
  width: 90px;
  padding: 3px;
  font-size: 1rem;
}
#previous-button, #next-button {
  width: 120px;
}}


@media only screen and (max-device-width: 1200px) and (orientation: landscape){
#previous-button, #next-button {
  width: 120px;
}}


