@font-face {
      font-family: "MS UI Gothic", Verdana, serif;
      src: url("/fonts/MSGothic.ttf");
      font-smooth: never;
    }
    
@font-face {
      font-family: "Pixel Operator";
      src: url("/fonts/PixelOperator.ttf");
      font-smooth: never;
    }

[name=archive] {
  display: none;
}

[name=gallery] {
  max-width: 100%;
  padding: 2em 0.25em 4em 0.25em;
  box-sizing: border-box;
  color: white;
      font-family: "MS UI Gothic";
      font-smooth: never;
}

img,
video,
iframe {
  display: block;
}


/*=========== GRID ===========*/

  .grid {
    margin: 1em 5em 5em 5em;
    padding: 0 em;
      justify-content: space-around;
      justify-items: center;
      align-items: start;
      background-image: url('/gallery/assets/transpblack.png');
      border: 1px solid #161616;
      border-radius: 15px;
  }

/* Card Grid */
.grid .card {
  position: relative;
  text-align: center;
  padding: 0 0em;
  margin: 1em;
}

/* Image Linking 1 */
.grid .permalink {
  margin: auto;
  max-width: 100%;
  text-align: center;
  position: relative;
}

/* Image Linking 2 */
.grid .permalink:after {
  content:'';
  position: absolute;
  top:0;
  left:0;
  right:0;
  bottom: 0;
}

.grid .permalink.title {
  display: block;
  margin: 1em 0 0 0;
  color:  #d3d3d3;
        text-shadow: 0px 0px 15px #646464;
  font-weight: bold;
  text-decoration: none;
  line-height: 1;
  font-size: .75em;
}

.grid .permalink.title:focus,
.grid .permalink.title:hover {
  text-decoration: underline;
}

.grid .taglist {
    margin: .5em 0 0 0;
    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 .transpclass img {
  background-color: rgb(255, 255, 255);
}

.nomasonry .permalink.title {
  display: inline-block;
  min-height: 0;
}


/* Desktop */
@media (min-width: 961px) {
  .grid {
    margin: 1em 5em 5em 5em;
}
}

/* Mobile Device */
@media (max-width: 960px) {
  [name=gallery] {
    max-width: 100%;
    padding: 1em 0 0 0;
    box-sizing: border-box;
    color: white;
        font-family: "MS UI Gothic";
        font-smooth: never;
  }

  .grid {
    margin: 0 0 2em 0;
    padding: 0 0 5em 0;
      border-radius: 0;    
  }
  
  .grid .taglist {
    display: none;
  }

  .grid.nomasonry img {
    max-height: 20vw;
    max-width: 20vw;
  }

  .nomasonry .card {
    justify-content: center;
    justify-items: center;
    align-items: start;
      max-height: 15vw;
      max-width: 15vw;
    background: none;
  }

  .grid .permalink.title {
    display: none;
  }  
}

/*=========== FORM ===========*/

.search-form {
  box-sizing: border-box;
  line-height: 1.5;
  width: fit-content;
  max-width: 100%;
  margin: auto 1em;
  color: var(--box-text-01);
  text-shadow: 0px 0px 15px var(--box-txtsh-01);
}

.search-form label {
  display: inline-block;
  margin: .125em;
  
}

.search-form input {
  font: inherit;
  border-radius: 0em;
  background-color: var(--contain-bg-01);
  color: var(--fun-02);
  text-shadow: 0px 0px 15px var(--fun-02);
    font-family: Pixel Operator;
}


.search-form curpage {
    font-family: MS UI Gothic;
}
.search-form option {
    font-family: MS UI Gothic;
}

/* Results of [...] displayed at the top. */
.results {
  margin: 1em;
}


.search-mode-lab select {
  appearance: none;
  position: relative;
  font-family: var(--font);
    color: var(--box-color-01);
    text-align: center;
    font-weight: bold;

  border: 1px solid var(--box-color-01);
  background-color: var(--box-text-01);

  cursor: pointer;
  margin-top: 6px;
  margin-bottom: 10px;
}


/*=========== NAV ===========*/


.navigation,
.pagination {
  text-align: center;
  margin: 1em auto;
  padding: 0 1em;
}

.pagination:not(:first-of-type) {
  margin-top: 3em;
}

.all-tags {
  text-align: center;
}

.pagination label,
.navigation a, /* Colors the Prev/Gallery/Next */
.pagination a {
  color: #454646;
  border: .125em solid transparent;
  display: inline-block;
  padding: .5em;
  line-height: 1;
  text-decoration: none;
  border-radius: 0em;
  vertical-align: middle;
  margin: .125em 0;
  font-weight: bold;
}
.pagination a[aria-current] {
  text-decoration: underline double;
  font-weight: bold;
}
.navigation a:hover,
.navigation a:focus,
.pagination a:focus,
.pagination a:hover {
  color: #00ff22;
  text-shadow: 0px 0px 15px #00ff73;  
}








/*=========== VIEW ===========*/

.view .card {
  position: relative;
  border-radius: .25em;
  margin: 1em auto;
  padding: 0 1em;
}

.download {
  display: inline;
  width: fit-content;
  text-align: right;
  margin-right: 0;
  margin-left: auto;
    font-family: "Pixel Operator";
}
.view img, /* VIEW IMAGE */
.view video,


.view iframe {
  display: block;
  margin: 1em auto;
  max-width: 100%;
}

.view iframe {
  width: 100vh;
  height: 75vh;
}

/***/
@media (min-height: calc(100vw - 2em)) {
  .view iframe {
    width: 100%;
    height: 75vw;
  }
}
/***/



/*=========== TAGS ===========*/

.taglist:before { 
  content: '';
}

.taglist {
  display: block;
  list-style-type: none;
  margin: 0;
  padding:0;
  text-align: left;
  font-size: smaller;
  position: relative;
  
}


.tag {
  display: inline-block;
}

.tag a { /* Tag Link */
  color: var(--tag-text);
  background-color: var(--tag-bg);
  border-radius: .25em;
  margin: 0 .125em;
  padding: .125em;
  line-height: 1.45em;
  text-decoration: none;
  transition:
    background-color .25s,
    color .25s;    
}

.tag:not(:last-child) a:after {
  content: '' /* After each individual tag */
}

.tag a:focus,
.tag a:hover {
  text-decoration: underline;
  color: var(--tag-hover);
  text-shadow: 0px 0px 15px var(--tag-shadow);
}


/* DIV Style */
.caption-desc {
  margin: 5em;
}