

@media (max-width: 800px) {
.container{
  display: flex;
  flex-direction: column;
  position: relative;

  }
.navchild {
  margin: auto 1em;
  display:flex;
  flex-direction: row;
  gap:10px;
   flex-wrap:wrap;
}

.navtag {
  display:flex;
  flex-direction: row;
  align-items:center;
  gap:10px;
}

.navtag a:hover{
  color:#8391ED;
}}

@media (min-width: 801px) {
.container, .contianer2{
  display: flex;
  flex-direction: row;
  position: relative;
}
.gallerysidebar{
  max-width:300px;
}

.navchild {
  margin: auto 1em;
  display:flex;
  flex-direction: column;
 
  gap:10px;
}

.navtag {
  display:flex;
  flex-direction: row;
  align-items:center;
  gap:10px;
}

.navtag a:hover{
  color:#8391ED;
}}


[name=archive] {
  display: none;
}

[name=gallery] {
  max-width: 800px;
  padding: 1em 1em 0 1em;
  padding: 1em 0 0 0;
  box-sizing: border-box;
  position: inherit;
}


img,
video,
iframe {
  display: block;
}


/*=========== GRID ===========*/

.grid {
  margin: 5px;
  padding: 5px;
  justify-content: space-around;
  justify-items: center;
  align-items: center;
}

.grid .card {
  position: relative;
  text-align: center;
  padding: 0 0em;
  margin: 0 1em;
}

.grid .permalink {
  margin: auto;
  max-width: 100%;
  text-align: center;
  position: relative;
}
.grid .permalink:after {
  content:'';
  position: absolute;
  top:0;
  left:0;
  right:0;
  bottom: 0;
}



.grid .permalink.title {
  display: block;
  margin: .5em 0 0 0;
  color:  #294FDB;
  font-weight: bold;
  text-decoration: none;
}
.grid .permalink.title:focus,
.grid .permalink.title:hover {
  text-decoration: underline;
}

.grid .taglist {
  text-align: center;
}

/* nomasonry */

.grid.nomasonry {
  justify-content: space-around;
}

.grid.nomasonry img,
.grid.nomasonry video,
.grid.nomasonry iframe {
  max-width: 100%;
}

.nomasonry .card {
  justify-content: center;
  justify-items: center;
  align-items: start;
}

.nomasonry .permalink.title {
  display: inline-block;
  min-height: 0;
}



/*=========== FORM ===========*/

.search-form {
  box-sizing: border-box;
  line-height: 1.5;
  width: fit-content;

  margin: auto 1em;
  position: relative;
}
.search-form label{
  display: inline-block;
  margin: .125em;
}

.search-form input {
  font: inherit;
}

.results {
  margin: 1em;
}


/*=========== NAV ===========*/


.navigation,
.pagination {
  text-align: center;
  margin: 1em auto;
  padding: 0 1em;
  position: relative;

}

.pagination:not(:first-of-type) {
  margin-top: 3em;
}

.all-tags {
  text-align: left;
}

.pagination label,
.navigation a,
.pagination a {
  color: #294FDB;
  display:block;
  line-height: 1;
  text-decoration: none;
  border-radius: .25em;
  margin: auto;
  font-weight: bold;
}
.navigation a:hover,
.navigation a:focus,
.pagination a:focus,
.pagination a:hover {
  color:#8391ED;
}








/*=========== VIEW ===========*/

.view .card {
  position: relative;
  border-radius: .25em;
  margin: 1em auto;
  padding: 0 1em;
}
.download {
  display: block;
  width: fit-content;
  text-align: right;
  margin-right: 0;
  margin-left: auto;
}
.view img,
.view video,
.view iframe {
  display: block;
  margin: 1em auto;
  width:100%;
  background-size: contain;
}

.view iframe {
  width: 100vh;
  height: 75vh;
}

@media (min-height: calc(100vw - 2em)) {
  .view iframe {
    width: 100%;
    height: 75vw;
  }
}






/*=========== TAGS ===========*/

.taglist {
  display: block;
  list-style-type: none;
  margin: 0;
  padding:0;
  text-align: left;
  font-size: smaller;
  position: relative;
}
.taglist:before {
  content: 'in ';
}
.tag {
  display: inline-block;
}

.tag a {
  color: #8391ED;
  border-radius: .25em;
  margin: 0 .125em;
  padding: .125em;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color .25s,
    color .25s;
}
.tag:not(:last-child) a:after {
  content: ','
}

.tag a:focus, 
.tag a:hover {
  text-decoration: underline;
}


.pageicon{
  height:100px;
  width:200px;
  background-image: url("/dogallery/img/pixellogo_v3.png");
  background-size: contain;
  margin: 1em auto;
  background-repeat: no-repeat;
}

.pageicon:hover{
  background-image: url("/dogallery/img/pixellogo_v3.gif");
}







#previewgallery img{
height:300px;
width:300px;
object-fit: cover;
}

.secrethiddencontainer{
  height:300px;
  width:300px;
  overflow: hidden;
  scroll-behavior: none;
}

.gallery-containertwo{
    border-image: url('/img/9 slice-3.png') 14 14 10 14 fill / 14px 14px 10px 14px;
    padding: 14px 14px 10px 14px;
   
}