/* */
/* styles for werewolf-girlfriend's (https://werewolf-girlfriend.neocities.org) gallery template! */
/*  */


/*  */
/* colors */
/*  */

:root {
    --bg: rgb(221, 221, 221);
    --txt: rgb(19, 19, 19);
    --accent: rgb(32, 105, 41);
}


/*  */
/* general styles for the gallery view */
/*  */

body {
background-color: white ;
background-image: linear-gradient(#f2f2f2  2px, transparent 2px),
linear-gradient(90deg, #f2f2f2 2px, transparent 2px),
linear-gradient(#f2f2f2  1px, transparent 1px),
linear-gradient(90deg, #f2f2f2  1px, transparent 1px);
background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
background-position:-2px -2px, -2px -2px, -1px -1px, -1px -1px;
  font-size: 14px;
  font-family: "IBM Plex Mono", monospace;
  margin: 0;
}

p {
  line-height: 1.6em; /*I find the default HTML line-height tends to be a bit claustrophobic for main text*/
  page-break-before: avoid;
  
}

hr {
  border: solid #F2F2F2;
  border-width: 2px 0 0 0;
}

img {
  max-width: 100%;
  height: auto;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
.right {
  float: right;
  margin-left: 1em;
}
.left {
  float: left;
  margin-right: 1em;
}
.center {
  display: block;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}
@media only screen and (min-width: 600px) {
  .small {
    max-width: 60%;
    height: auto;
  }
}
.caption {
  margin-top: 0;
  font-size: 1em;
  font-style: italic;
}

.date {
  margin-top: 0;
  font-size: 1em;
  font-style: italic;
  color: #A6A6A6 ;
  border: solid #F2F2F2;
  border-width: 0 0px 2px 0;
}

#linkboxtext {
  margin-top: 20;
  font-size: 0.9em;
  font-style: italic;
  border-color: #F2F2F2;
  border-style: solid;
  border-width: 2px;
  border-radius: 6px;
  padding: 4px ;
  background:  #ffffff;
  color: #A6A6A6 ;
  border: solid #F2F2F2;
}


.smallicon {
  float: right;
  object-position: top;
  opacity: 0.3;
  transform: translateY(-10px)
}

#highlighSubheading {
  background: #F2F2F2;
  color: #A6A6A6;
  font-weight: bold;
  margin-bottom: 4px ;
  padding: 3px ;
  border-radius: 0px 20px 20px 0px;
  font-style: italic;
   width:165px;
  overflow:hidden;
  transform: translateX(-11px)

}

#Linkbox {
  padding: 10px;
  border-radius: 6px;
  margin: 15px;
  mask: 
    linear-gradient(0,#0000 26px,#000 0) 0 13px,
    radial-gradient(13px,#000 calc(100% - 1px),#0000) 50%/24.05px 26px repeat space ;
background-color: #f6f6f6;
opacity: 1;
background-size: 9px 9px;
background-image: repeating-linear-gradient(45deg, #ffffff 0, #ffffff 0.9px, #F2F2F2 0, #F2F2F2 50%);
  page-break-before: always;
  vertical-align: super;
  
}
  


h1, h2, h3, h4, h5 {
  font-family: "Archivo Black", sans-serif;
  color: #A6A6A6 ;
}

#container {
  margin: 3em auto;
  width: 90%;
	max-width: 800px;
	background-color: #FFFFFF;
  color: #151515; 
  outline-color: #F2F2F2;
  outline-style: solid;
  outline-width: 3px;
  outline-offset: 0;
    box-shadow: 4px 5px 7px 0px rgba(0, 0, 0, 0.1);
  border-radius: 25px;
  
}

#mainbody {
  padding: 10px;
  border-color: #F2F2F2;
  border-style: solid;
  border-width: 2px;
  border-radius: 6px;
  margin: 15px;
  grid-row: 1 / span 2

}

/*HEADER STYLE*/
#header {
  /*background-image: url("/800-1009x290-blur_3.jpg") ; */
  background-repeat: no-repeat;
  background-position: right;
  background-color: #f2f2f2;
  background-size: 100%;
  padding: 2%;
  border-radius: 25px 25px 0px 0px;  
  mask:
    linear-gradient(0,#0000 30px,#000 0),
    radial-gradient(30px,#000 calc(100% - 1px),#0000) bottom/55.5px 60px

}



#header ul {
  list-style-type: none;
  padding: 0px 0px 0px 0px;
  margin: 0;
  
}
#header li {
  font-size: 1.2em;
  display: inline-block;
  margin: 160px 10px 10px 10px;
  padding: 0px 15px 0px 0px ;
  border-right: 3px solid;
  border-color: #a9a9a9;
  border-collapse: separate;
  border-spacing: 50px ;
  
}
#header li a {
  color: #a9a9a9;
  text-decoration: none;
  background-color: inherit;
  vertical-align: baseline ;
}
#header li a:hover {
  color: black ;
  font-style: italic;
  font-weight: bold;
  
  
}

/*FOOTER STYLE*/
#footer {
  font-size: 0.8em;
  background-color: #F0F0F0;
  padding: 0 5% 10px 5%;
  border-radius: 0px 0px 25px 25px;
}


#item-counter {
  background-color: #F0F0F0;
  color:#A6A6A6;
  padding: 4px;
  font-size: 1.2em;
  border-radius: 4px;
}



/* tag button styles */
#tag-buttons {
    margin-top: 1em;
}

.tag, #reset {
    border: 1px solid #F2F2F2;

    margin-bottom: 0.5em;
    padding: 3px ;
    border-radius: 3px;
    background-color: #FFFFFF;
    color: var(--accent);
}

.tag::before {
    content: "#";
}

/* change accent color for different tag categories */
.color-coded {--accent: cornflowerblue ;}

/* styles for when a tag is selected */
.active {
    background-color: var(--accent);
    color: var(--bg);
}

#gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1em;
}

.item {
    width: calc(20vw - 1.5em);
    height: calc(20vw - 1.5em);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid  #F2F2F2;
    border-radius: 3px;
}
.item:hover {
   opacity: 0.5;
   
}

.hidden, .item-info {
    display: none;
}

#to-top-btn {
    display: none;
    position: fixed;
    padding: 15px;
    bottom: 20px;
    right: 255px;
    z-index: 1;
  border: 3px solid  #F2F2F2;
    border-radius: 6px;
    background-color: white;
    color: grey;
}
#to-top-btn:hover {

    background-color: #F2F2F2;
    color: white;
}

footer {
    margin-top: 3em;
}


/*  */
/* styles for controlling how the gallery thumbnails look */
/*  */

/* defaults */
.item img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
}

.zoom img {object-fit: none;}

.crop img {object-fit: cover;}

.top-left img       {object-position: top left;}
.top-center img     {object-position: top center;}
.top-right img      {object-position: top right;}

.center-left img    {object-position: center left;}
.center-center img  {object-position: center;}
.center-right img   {object-position: center right;}

.bottom-left img    {object-position: bottom left;}
.bottom-center img  {object-position: bottom center;}
.bottom-right img   {object-position: bottom right;}


/*  */
/* Lightbox styles */
/*  */

#lightbox {
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: rgba(10, 10, 10, 0.90);
    color: white;

    display: none;

    overflow-y: auto;
}

#close-btn {
    z-index: 2;
    position: absolute;
    top: 1em;
    right: 1em;

    font-size: 24px;
    color: white;
    cursor: pointer;
}

#lightbox .flex {
    display: flex;
    gap: 2em;
    justify-content: space-between;

    height: 100vh;
    padding: 0 1em;
}

/* the main image in the lightbox */
#lightbox-img {
    margin: 1em 0;
    width: 60%;
}

#lightbox-img img {
    /* make it centered and as big as possible in the containing div */
    object-fit: scale-down;
    object-position: center;

    width: 100%;
    height: 100%;
    margin: 0 auto;
}

/* the info section of the lightbox */
#lightbox-info {
    display: flex;
    flex-direction: column;
    margin: auto 0 1em 0;
    width: 35%;
    
}

#lightbox-title, #lightbox-date, #lightbox-desc, #lightbox-tags {
    word-break: break-word;
    overflow-y: auto;
    scrollbar-width: thin;
    margin-bottom: 0.5em;
}

#lightbox-date, #lightbox-tags {
    text-align: right;
    font-family: 'Courier New', Courier, monospace;
}

#lightbox-desc {
    max-height: 30em;
    margin-bottom: 1.5em;
    
}
#lightbox-desc img {max-width: 45%;}
#lightbox-desc video, #lightbox-desc iframe {max-width: 90%;}

#lightbox-tags {
    margin-top: 0;
    padding-left: 3px;
    list-style-type: none;
    border-radius: 3px;
}

#lightbox-tags li {
    background-color: white;
    color: black;
    border: 1px solid white;
    display: inline-block;
    border-radius: 3px;
    margin-left: 0.5em;
    margin-bottom: 0.5em;
}
#lightbox-tags li::before {content: ' #';}
#lightbox-tags li:nth-child(even) {
    background-color: lightgray; 
    border: 1px solid lightgray;
}

/* styles for navigation buttons & progress tally */
#lightbox-nav {
    display: flex;
    justify-content: space-between;
    
    margin-top: 2em;
}

#prev-btn, #next-btn {
    padding: 0.5em 4em;
    cursor: pointer;
    border-radius: 5px;

    min-width: 10em;

    border: 1px solid white;
    background-color: rgba(0, 0, 0, 0);
    color: white;
}

#prev-btn:hover, #next-btn:hover {
    background: white;
    color: grey;
}

#progress {
    padding: 0.5em;
}


/*  */
/* responsive section */
/*  */

/* dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: rgb(19, 19, 19);
        --txt: rgb(221, 221, 221);
        --accent: rgb(63, 151, 73);
    }
    .color-coded {--accent: rgb(236, 115, 115);}
}

/* scaling */
@media screen and (max-width: 1200px) {
    .item {
        width: calc(25vw - 2em);
        height: calc(25vw - 2em);
    }
}

@media screen and (max-width: 1000px) {
    .item {
        width: calc(33vw - 2em);
        height: calc(33vw - 2em);
    }
}


/* mobile view */
@media screen and (max-width: 800px) {
    /* gallery */
    .item {
        width: calc(50vw - 2em);
        height: calc(50vw - 2em);
    }

    /* lightbox */
    #lightbox {
        overflow-y: scroll;
    }

    #lightbox .flex {
        margin-top: 0;
        flex-direction: column;
        height: auto;
        gap: 1em;
    }

    #close-btn {
        position: static;
        display: block;
        text-align: right;
        padding-top: 0.5em;
        padding-right: 0.5em;
    }

    #lightbox-img {
        width: 100%;
        height: 65vh;
    }
    
    #lightbox-img img {
        height: 100%;
    }

    #lightbox-info {
        margin-top: 0;
        width: 100%;
        gap: 0.5em;
    }

    #lightbox-title, #lightbox-date, #lightbox-desc, #lightbox-tags {
        margin-bottom: 0;
        max-height: none;
    }

    #lightbox-nav {
        order: -1;
        margin-top: 0;
    }
}