/* this is qdgal default CSS styling, please do not change it.
 * if you'd like to customize things, create a new style sheet file named
 * 'qdgal-custom.css' and put your changes there.
 *
 * Copyright (C) 2016-2026 Mateusz Viste
 * SPDX-License-Identifier: MIT
 */

/* font definition */
@import url('https://fonts.googleapis.com/css?family=Itim&subset=latin-ext');

html {
  padding: 0;
  margin: 0;
}

body {
  font-size: 1.35em;
  font-family: 'Itim', cursive;
  color: #000;
  background-color: #eee;
  height: 100%;
  margin: 0;
}

p.albumtitle {
  text-align: center;
  font-size: 2em;
  margin: 1.5em auto;
}

p.emptygal {
  text-align: center;
  font-size: 1.1em;
  color: #900;
}

p.galbar {
  text-align: left;
  font-size: 0.8em;
  margin: 0.5em;
  color: #777;
}

p.galbar a {
  text-decoration: none;
  color: #44f;
}

div.thumbgrid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

div.thumb {
  font-size: 1em;
  width: 13em;
  height: 13em;
  margin: 0.5em;
  padding: 0;
  text-align: center;
}

div.thumb a {
  text-decoration: none;
}

video.vidthumb {
  width: 13em;
  height: auto;
  max-height: 13em;
  object-position: center top;
  border: 1px #444 solid;
  border-radius: 0.2em;
}

p.thumblabel {
  position: relative;
  bottom: 2em;
  display: inline-block;
  margin: 0;
  width: 100%;
}

p.thumblabel span {
  font-size: 0.9em;
  text-decoration: none;
  color: #000;
  background-color: rgba(255,255,255,0.7);
  margin: 0;
  padding: 0 0.4em;
  border-radius: 0.2em;
}

/* used as a 'thumbnail image' for empty subgalleries */
p.fakethumb {
  background: #333;
  font-size: 0.9em;
  color: #eee;
  height: 70%;
  margin: 0;
  border-radius: 0.2em;
}

img {
  background-color: #eee;
  border-radius: 0.2em;
}

img.thumb {
  max-width: 100%;
  max-height: 100%;
  border: 1px #444 solid;
  margin: 0;
}

.big {
  max-width: 70%;
  max-height: 98vh; /* limit height of image to 98% of the viewport height */
  border: 1px #222 solid;
  float: right;
  margin: 0.5em 0.5em 0 0;
  padding: 0;
}

div.left {
  margin: 0;
  padding: 2em 0 0 2em;
  max-width: 28%;
}

/* adaptations for small (mobile) screens */
@media (max-width: 800px) {
  .big {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  div.left {
    max-width: 100%;
    padding: 0;
  }
  div.thumb {
    width: 97%;
    height: auto;
    min-height: 12em;
    margin: 0.5em 0;
  }
  video.vidthumb {
    width: 100%;
  }
  p.thumblabel span {
    font-size: 1em;
  }
}

p.actions {
  margin: 1em 0;
}

p.actionsinact {
  margin: 1em 0;
  color: #000;
  opacity: 0.2;
}

p.descr {
  background-color: #fff;
  border: 1px #ddd solid;
  margin: 4em 2em 0 0;
  padding: 0.5em;
  white-space: pre-line;
  border-radius: 0.5em;
}

p.poweredby {
  font-size: 0.8em;
  clear: both;
  margin: 0.5em 1em 0.2em auto;
  color: #aaa;
  text-align: right;
}

p.poweredby a {
  text-decoration: none;
  color: #aaa;
}

p.auth {
  text-align: center;
}

div.auth {
  text-align: center;
}

div.auth input {
  font-size: 0.8em;
}
