
.gallery-link { /* Gallery links page */
  position: relative;
  width: 96%;
}

.gallery-link img {
  float: left;
  margin-right: 70px; 
  width: 340px;
}
.gallery-title{
  padding-top: 60px;
}
.gallery-brief{
  margin-top: 100px;
}

@media only screen and (min-device-width: 768px){
.gallery-link {
  width: 86%;
}
.gallery-link img {
  width: 250px;
}
.gallery-title{
  padding-top: 10px;
}
.gallery-brief{
  margin-top: 10px;
}}

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: 285px;
}}

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

.thumbs-item {
  max-width: 150px;
  max-height: 133px;
}}

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

details > summary {
  width: 270px;
  border: solid 1px #CFCCCC;
  border-radius: 4px;
  box-shadow: 1px 1px 2px #bbbbbb;
  padding: 3px;
  cursor: pointer;
  font-size: 2rem;
}
details > summary:hover {
  background: rgba(31,99,7,0.9);
}
details > p {
  padding: 4px;
  margin: 0;
}

@media only screen and (min-device-width: 768px){
details > summary {
  width: 160px;
  font-size: 1rem;
}

details {
  display: block;
  }
details[open] {
  float: right; clear: both;
  }
}

.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(31,99,7,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;
}}

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

.page-select a {
  color: #76B6FF; 
  text-decoration: none;
}

@media only screen and (min-device-width: 768px){
.page-select {
  font-size: 1rem;
}
.mouse-reset { /* empty div behind index button to reset the flag clicked in js! */
  width: 100px;
  height: 30px;
}}

.gallery-index {
  position: fixed;
  top: 380px;
  left: 5px;
  z-index: 99;
}


.index-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  position: absolute;
  left: -5px;
  top: -20px;
  background-color: #222222;
  border-radius: 9px;
  width: 100vw;
  height: 75vh;
  overflow-y: auto;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,1.2);
  z-index: 99;
  opacity: 0.9;
  transform: translateX(-100%);
  transition: 0.3s ease-in;
  transition-delay: 0s;
}

.index-content.visible {  
  transform: translateX(0%);
  transition: 0.5s ease-out;
  /* css scroll to top on transition??? */
}

.index-col {
  background-color: #303030;
  border: solid 1px #A4A4A4;
  border-radius: 5px;
  height: 340px;
  width: 97vw;
  padding: 25px 120px 25px 120px;
  align: top;
}

.index-header {
  margin-bottom: 15px;
  font-style: italic;
  font-size: 2.5rem;
  font-weight: 500;
}

.index-line {
  display: flex;
  font-size: 2.4rem;
  justify-content: space-between;
}

.index-fetch {
  display: inline-block;
  margin-right: 0px;
  padding: 0px;
  width: 210px;
  font-size: 2.4rem;
}

.activeIndex {
  background: rgba(126,7,9,0.9);
}
.activeLine {
  background: rgba(55,0,0,0.9);
}

@media only screen and (min-device-width: 768px){
.gallery-index, .mouse-reset {
  position: fixed;
  top: 260px;
  left: 5px;
  z-index: 99;
}

.index-content {
  height: 65vh;
}
.index-col {
  height: 200px;
  width: 250px;
  padding: 15px;
}
.index-header {
  margin-bottom: 8px;
  font-size: 1.3rem;
}
.index-line {
  font-size: 1rem;
}
.index-fetch {
  width: 70px;
  font-size: 1rem;
}}


@media only screen and (max-device-width: 1200px) and (orientation: landscape){
.index-content {
  top: -120px;
}}

.close-index {
  color: #AFAFAF;
  cursor:pointer;
  position: absolute;
  top: 50px;
  left: 10px;
  font-size: 45px;
  font-weight: bold;
}




