:root {
  --rust: #b85e1f;
  --rusth:rgba(184, 95, 31, 0.562);
  --darkr: #773709;
  --cream: #ffe0b0;
  --darkb: #69340e;
}

body {
  font-family: verdana, sans-serif;
  color: var(--darkb);
}

#gallery-container {
  max-width: 800px;
  margin: 0 auto;
}

#header {
  border: 1px solid var(--darkb);
  padding: 5px;
  background-color: var(--rust)
}

#header p {
  margin: 0;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.377);
  display: inline-block;
}



.head-title {
  font-size: 30px;
}

#blurb {
  border: 1px solid var(--darkb);
  margin-top: 10px;
  font-family: "MS UI Gothic", Tahoma;
  font-size: 12px;
  padding: 5px;
  border-radius: 10px;
  padding-left: 20px;
  padding-top: 7px;
  background-color: var(--cream);
  text-align: center;
  
}

#blurb a {
    text-decoration: underline;
  text-decoration-color: var(--rust);
   color: var(--darkr);
}

#blurb a:hover {
  color: var(--rust)
}

#blurb p {
  margin: 0;
}

[name=archive] {
  display: none;
}

[name=gallery] {
  max-width: 100%;
  padding: 1em 1em 0 1em;
  padding: 1em 0 0 0;
  box-sizing: border-box;
}

img,
video,
iframe {
  display: block;
}


/*=========== GRID ===========*/

.grid {
  margin: auto;
  justify-content: space-around;
  justify-items: center;
  align-items: center;
  border: 1px solid;
  padding: 10px;
  background-color: var(--cream);
}

.grid:empty {
  display: none;
}

.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;
  color: var(--darkr);
  
}
.grid .permalink:after {
  content:'';
  position: absolute;
  top:0;
  left:0;
  right:0;
  bottom: 0;
}

.grid img {
  border: 1px solid;
  box-shadow: 2px 2px var(--rusth);
}



.grid .permalink.title {
  display: block;
  margin: .5em 0 0 0;
  color:  var(--rust);
  text-shadow: 1px 1px rgba(170, 103, 15, 0.466);
  font-weight: bold;
  text-decoration: none;
  font-size: 12px;
}
.grid .permalink.title:focus,
.grid .permalink.title:hover {
  text-decoration: underline;
}

.grid .taglist {
    text-align: center;
    font-family: "MS UI Gothic", Tahoma;
    font-size: 11px;
    width: 100%;
}

/* nomasonry */


/*=========== FORM ===========*/

.search-form {
  box-sizing: border-box;
  line-height: 1.5;
  width: fit-content;
  max-width: 100%;
  margin: auto;
  margin-top: -10px;
}
.search-form label{
  display: inline-block;
  margin: .125em;
  font-size: 12px;
}

.search-form input {
  font: inherit;
  border-radius: .25em;
  font-size: 12px;
}

.results {
  margin: 1em;font-size: 12px;
}




/*=========== NAV ===========*/


.navigation,
.pagination {
  text-align: center;
  margin: 1em auto;
  padding: 0 1em;
}

.pagination:not(:first-of-type) {
  margin-top: 3em;
}

.all-tags {
  text-align: left;
}

.pagination label,
.navigation a,
.pagination a {
  color: var(--rust);
  border: .125em solid transparent;
  display: inline-block;
  padding: .5em;
  line-height: 1;
  text-decoration: none;
  border-radius: .25em;
  vertical-align: middle;
  margin: 0 0;
  font-weight: bold;
    margin-top: -10px;
}
.pagination a[aria-current] {
  text-decoration: underline double;
  font-weight: bold;
}
.navigation a:hover,
.navigation a:focus,
.pagination a:focus,
.pagination a:hover {
  border-color: black;
}








/*=========== VIEW ===========*/

.view .card {
  position: relative;
  border-radius: .25em;
  margin: 0 auto;
  padding: 0 1em;
  border: 1px solid;
  font-size: 12px;
  background-color: var(--cream);
  margin-top: -10px;
  
}
.download {
  display: none;
  width: fit-content;
  text-align: right;
  margin-right: 0;
  margin-left: auto;
}
.view img,
.view video,
.view iframe {
  display: block;
  margin: 1em auto;
  max-width: 80%;

}


.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 .card {
   width: 110px;!important
}

.tag {
  display: inline-block;
}

.tag a {
  color: var(--darkr);
  border-radius: .25em;
  margin: 0 .125em;
  padding: .125em;
  line-height: 1;
  text-decoration: underline;
  text-decoration-color: var(--rust);
  transition:
    background-color .25s,
    color .25s;
}
.tag:not(:last-child) a:after {
  content: ','
}

.tag a:focus, 
.tag a:hover {
  text-decoration: underline;
}

.code {
  font-size: 12px;
  font-family: "MS UI Gothic", Tahoma;
}
.code a {
  color: var(--darkr);
  text-decoration-color: var(--rust);
}
.code a:hover {
  text-decoration-color: var(--darkr);
}