/*Classes an stuff*/
.gallery-container {
  padding: 0 1em;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.gallery-item-wrapper {
  margin: 0.8em 1em 0.3em;
  display: flex;
  flex-direction: column;
  filter: drop-shadow(0.2em 0.2em 0.1em rgb(30 54 38 / 40%));
  transition:  0.2s;
}

.gallery-item-wrapper:hover img {
  filter: brightness(110%);
}

.gallery-item-wrapper:hover h2 {
  color: #61E8D7;
}

.gallery-image-wrapper {
  position:relative;
  width:fit-content;
  margin:auto;
}

.gallery-image-count {
  position: absolute;
  bottom:20px;
  left:14px;
  padding: 0.2em 0.4em;
  border: 0.1em solid transparent;
  border-radius: 0.3em;
  background: #15112b55;
  color: white;
}

.gallery-image {
  border: 10px solid transparent;
  border-image: url(ui/art-frame.png) 45 round;
  
  max-height:14em;
  max-width:100%;
  
  object-fit: contain;
}

.gallery-string {
  z-index: -1;
  margin:-3px auto;
  max-width: 200px;
}

.gallery-title {
  padding: 0px;
  margin:0px 30px;
  text-align: center;
  
  font-size:24px;
  max-height: 1.1em;
  background: radial-gradient(circle,rgba(64, 52, 89, 0.6) 50%, rgba(0, 0, 0, 0) 100%);
}

.gallery-title a {
  color: #ff7476;
  text-decoration: underline solid transparent;
  transition: text-decoration 0.3s ease;
}
.gallery-title a:visited, a:active {
  color: #ff7476;
}
.gallery-title a:hover {
  color: #fa9c93;
  text-decoration: underline solid Currentcolor;
}

.filter-button-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding:10px 15px;
}

.filter-button {
  --hover-drop-shadow: drop-shadow(0 0 0.3em #3654ff) drop-shadow(0 0.2em 0 #23335c);
  --drop-shadow: drop-shadow(0 0.2em 0 #08052e); 
  
  text-align: center;
  padding: 3px 10px;
  margin: 0.3em 0.5em;
  font-size: 16px;
  max-height: 2em;
  border-radius: 3.5em;
  border-width: 0.2em;
  border-style: solid;
  border-color: #121647;
  background-color: #474659;
  text-decoration-color: #474659;
  font-weight: bold;
  color: #121647;
  filter: var(--drop-shadow); 
  transition: background-color .2s, color .2s, border-color .2s, filter .2s, margin .2s;
}

.filter-button:hover {
  filter: var(--hover-drop-shadow);
}

.nsfw-filter-button {
  --hover-drop-shadow: drop-shadow(0 0 0.2em #cf2971) drop-shadow(0 0.2em 0 #871b4a);
  --drop-shadow: drop-shadow(0 0.2em 0 #5e0f1e); 
  
  text-align: center;
  padding: 3px 10px;
  margin: 0.3em 0.5em;
  font-size: 16px;
  max-height: 2em;
  border-radius: 3.5em;
  border-width: 0.2em;
  border-style: solid;
  border-color: #85042b;
  background-color: #691121;
  font-weight: bold;
  color: #330e23;
  filter: var(--drop-shadow); 
  transition: background-color .2s, color .2s, border-color .2s, margin .2s;
}

.nsfw-filter-button:hover {
  filter: var(--hover-drop-shadow);
}

.gallery-modal {
  margin:0em auto;
  max-width:80%;
  min-height:100%;
  background-color:transparent;
  border:none;
}

.gallery-modal::backdrop {
  width:100%;
  height:100%;
  backdrop-filter: blur(10px); 
}

.gallery-modal:focus {
  outline:none;
}

.gallery-modal-content {
  margin:1em;
  padding:1em 2em;
  background: #4d4d87;
  background: linear-gradient(180deg,rgba(77, 77, 135, 1) 0%, rgba(54, 41, 117, 1) 36%, rgba(39, 20, 82, 1) 100%);
  border-radius: 2em;
  border: 0.2em solid #160461;
}

.gallery-modal-tags {
  margin:0 1em 1em;
  font-size: 24px;
  color: #5a757d;
  font-style: italic;
}

.gallery-modal-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-modal-images img {
  display:block;
  
  margin:1em;
  max-width:60%;
  height:auto;
  object-fit: contain;
}

.gallery-modal h2 {
  color: #61E8D7;
  font-size: 52px;
}

.gallery-modal-description {
  margin: 1em 0;
  color: #61E8D7;
  font-size: 32px;
}

/*OVERWRITING STUFF!!*/
body {
  /*I like grid :)*/
  display: grid;
  grid-template-columns: auto;
  grid-gap: 50px;
  color: #ff9985;
  font-size: 24px;
  background-color: #7B7F68;
  background-image: url(ui/vines.png);
  background-repeat: repeat;
  background-size: 5em;
  font-weight: 400;
}

header {
  display: flex;
  flex-direction: row;
  border: 10px solid transparent;
  background-color: #624543;
  border-image: url(ui/art-frame.png) 45 round;
  
}

a {
  color: #ff7476;
  text-decoration: underline solid transparent;
  transition: text-decoration 0.3s ease;
}
a:visited, a:active {
  color: #b33951;
}
a:hover {
  color: #fa9c93;
  text-decoration: underline solid Currentcolor;
}

strong {
  color: #ff7476;
  font-weight: bold;
}

h1 {
  color: #ff7476;
  font-weight: bolder;
  font-size: 48px;
  text-transform: uppercase;
  padding: 20px 0px;
}

h2 {
  color: #61E8D7;
  font-weight: bolder;
  font-size: 36px;
  text-transform: uppercase;
  padding: 20px 0px;
  text-decoration: underline solid transparent;
}

p {
  padding: 10px 20px;
}
