/*wrapper,title,sidebar and main-wrapper copied from the ever-so-talented vulpecula.neocities.org*/

:root {
    font-size: 12px;
    color-scheme: dark;
    accent-color: red;
}

html {
    overscroll-behavior: none;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.25;
}

nav {
    display: flex;
    justify-content: center;
    margin: auto;
    a {
        font-weight: bold;
        text-transform: uppercase;
        color: white;
        margin: 2pc 2pc 1pc;
    }
    a:hover {
        text-decoration: none;
    }
}

hr {
    color: white;
}

main {
    max-width: 1000px;
    margin: 0 auto;
}

.albumInfo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem auto;
    max-width: 600px;
    h1 {margin: 1rem;}
}

.box {
  border: 1px solid white;
  margin: 1rem 0;
  padding: 1rem 1rem;
  box-shadow: 0 2px 3px black;
  background: black;
}

.gallery {
  /*background-image: url('images/gallery-background.png');*/
  background-size: 1000px;
  background-repeat: no-repeat;
  background-color: black;
  background-position: center 0;
}

/* vvv modified 'interactive photo pile' CSS code from RIBOSE vvv*/
/* 'https://ribo.zone/free/snippets/' */

.photopile { 
  display: flex; 
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.photopile figure { 
  display: inline-block;
  background: white;
  box-shadow: 1px 4px 5px rgba(0,0,0,0.55);
  transform: rotate(2deg);
  margin: 0;
}
.photopile figure img {
  max-width: 300px;
  margin: 1rem 1rem 1rem 1rem;
  border: 2px rgb(0,0,0,0.55) inset;
}
.photopile figcaption, .popovers figcaption {
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  margin: 0.5rem 1rem 1rem 1rem;
  font-size: 1rem;
  color: black;
}
.photopile button { 
  background: none; 
  border: none;
  max-width: 40%;
}
.photopile button:hover, .photopile button:focus { 
  z-index: 3;
  cursor:pointer;
}
.photopile button:nth-child(2n) { 
  transform: rotate(-10deg);
}
.photopile button:nth-child(3n) {
  transform: rotate(5deg);
}
.photopile button:nth-child(4n) { 
  transform: rotate(4deg);
}
.photopile button:nth-child(5n) { 
  transform: rotate(-2deg);
}
.photopile button:nth-child(6n) {
  transform: rotate(-7deg);
}
:popover-open {
  border: none;
  box-shadow: 1px 4px 5px rgba(0,0,0,0.55);
  position: fixed;
  top: 50vh;
  left: 50vw;
  transform: translate(-50%,-50%);
}
.popovers figure:popover-open {
  display: block;
  background: white;
  max-width: 88vmin;
  max-height: 88vmin;
  overflow-y: hidden;
}
.popovers figure:popover-open figcaption {
  margin: 2.5vmin 1rem 4vmin 1rem;
  font-size: 175%;
  color: black;
}
.popovers figure:popover-open img {
  margin: 4vmin 4vmin 0 4vmin;
  max-width: 80vmin;
  max-height: 75vmin;
  border: 4px rgb(0,0,0,0.55) inset;
}

/* ^^^ modified 'interactive photo pile' CSS code from RIBOSE ^^^*/
/* 'https://ribo.zone/free/snippets/' */