/* gallery.CSS style sheet for public new picture gallery */



div.textpanel.gallery
{
  display: block;
  margin: 20px auto;
  width: 90%;
  max-width: 1500px;
  background: #eee;
}

@media (max-width: 500px)
{
  div.textpanel.gallery
  {
    width: auto;
  }
}

div.gallerylist
{
  margin: 40px 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 20px;
  height: auto;
}


div.gallerylink a
{
  display: block;
  padding: 3px;
  margin: 5px 0;
  font-family: 'sans serif';
  text-decoration: none; 
  color: #00c;
}

@media (max-width: 1000px)
{
  div.gallerylist
  {
    grid-template-columns: 1fr 1fr;
    font-size: 95%;
  }
  div.gallerylink a { margin: 2px 0 }
}

@media (max-width: 600px)
{
  div.gallerylist
  {
    display:block;
  }
}

  
div.gallerylink a:hover { background: #bbf; color: black; }

form.addgalbutton, form.addphotobutton { margin: 10px 0 }
form.addgalbutton input[type=submit], form.addphotobutton input[type=submit]
{
  background: linear-gradient(white, lightgreen)
}

form.delbutton { margin: 10px 0 }

form input.title { max-width: 200px; }

div.galdetails
{
  background: white;
  color: #333;
  padding: 10px;
  margin: 10px 0;
}

div.gal_container
{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

div.gal_container div.thumb
{
  height: auto;
  background: white;
  border: thin solid #999;
  border-radius: 5px;
  padding: 3px;
  text-align: center;
} 

div.gal_container div.thumb img 
{ 
  display: block; 
  margin: auto;
  height: 133px;
}

div.photoframe
{
  width: auto;
  max-width: 700px;
  background: white;
  padding: 10px;
  text-align: center;
  margin: auto;
}

@media (max-width: 500px)
{
  div.photoframe { padding: 10px 0 }
  div.gal_container { font-size: 90%; gap: 2px }
  div.gal_container div.thumb { max-width: 140px }
  div.gal_container div.thumb img { height: 100px }
}



img.photo
{
  max-width: 100%;
  margin: auto;
}

div.photo_info
{
  display: grid;
  grid-template-columns: 70px 1fr;
  text-align: left;
  background: white;
  max-width: 700px;
  font-weight: normal;
  font-size: 100%;
  margin: 10px 0;
}

/*
@media (max-width: 500px)
{
  div.photo_info { display: block; }
}
  */

div.galnav
{
  margin: auto;
  display: grid;
  grid-template-columns: 50px 200px 50px;
  justify-content: center;
  justify-self: center;
}

form.returnbutton 
{ 
  margin-bottom: 5px;
}
form.returnbutton input[type=submit]
{
  background: linear-gradient(white, #ccc);
}

div.photoframe form.editbutton { margin-bottom: 10px }