/*
=Homepage
============================================= */
* {
    box-sizing: border-box;
    margin:0;
}

a {
    text-decoration: none;
}

body {
    margin: 0;
    --grid-size: 30px;
    --grid-strength: 1px;
    --grid-dash: 10px;
    --grid-gap: 5px;
    --grid-color: #f1f497;
    --paper-color: #fff;
    background-color: var(--paper-color);
    background-size: var(--grid-dash) var(--grid-dash), var(--grid-size) var(--grid-size);
    background-image:
      linear-gradient(to bottom, transparent var(--grid-gap), var(--paper-color) var(--grid-gap)), 
      linear-gradient(to right, var(--grid-color) var(--grid-strength), transparent var(--grid-strength)),
      linear-gradient(to right, transparent var(--grid-gap), var(--paper-color) var(--grid-gap)),
      linear-gradient(to bottom, var(--grid-color) var(--grid-strength), transparent var(--grid-strength));
}


header {
    position: fixed; /* remove the header element from the page flow to position it */
    top: 0; left: 0; /* align the header element with the top and left edges of the viewport */
    width: 100%; /* ensure the header element spans the entire width of the viewport */
    z-index: 10;
}

header .ins-wrapper {
    margin: 0 auto; /* use auto margins on the left + right to center the inside wrapper within the header element */
    padding-top: 30px; /* add some space between the heading + viewport's top edge */
    padding-right: 30px;
    top: 0; right: 0;
    position: absolute;
    /* display: flex;
    justify-content: space-between;
    align-items: center; */
}

.heading {
    margin: 15px 20px 0px 20px;
}

h1 {
    font: normal 400 50px/1.5 "IBM Plex Mono", monospace;
}

.smalltext {
    font: normal 400 15px/1.2 "IBM Plex Mono", monospace;
    color: rgb(154, 154, 166);
    padding: 0 25px;
}

.gallery-wrapper {
    display: flow-root; 
    max-width: 1600px; 
    min-height: 100vh; 
    margin: 0 auto;
    padding: 0 100px;
    background-image: url(../assets/images/table.png);
    background-size: 100% 100%;
}

.container {
    display: flex;
    flex-wrap: wrap;
    margin: 6% 0 0 30%;
    width: 60%;
}

/* TARGETS FIGURE */
.container figure {
    padding: 20px;
    /* width: 30%; */
    background-image: url(../assets/images/plate.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* TARGETS INDIVIDUAL IMG */
.image-wrapper img {
    width: 100%;
    display: block;
    transform-origin: center;
}

.image-wrapper {
    margin: 0;
    padding:5px;
    position: relative;
    background-image: none;
    transition: .15s ease-in-out;
}

/* TARGETS IMAGE CAPTIONS */

.image-wrapper figcaption {
    color: transparent;
    font: normal 400 13px/1.2 "courier prime", serif;
    background-color: none;
    /* background-image: none; */

    position: absolute;
    top: 5px; right: 5px; bottom: 5px; left: 5px;

    display: flex;
    justify-content: top;
    align-items: center;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-color: transparent;
    scrollbar-width: none;

    transition: 0.25 ease-in-out;
    padding: 50px;
}

.image-wrapper:hover figcaption {
    color: rgb(251, 132, 152);
    background-color: rgba(254, 248, 220, 0.875);
    cursor: url(../assets/images/forkcursor.png), auto;
    border-radius: 80%;
}

.image-wrapper figcaption a {
    text-decoration: none;
    display: none;
}

.image-wrapper:hover figcaption a {
    display: contents;  
    color: rgb(249, 31, 162); 
    letter-spacing: 1px;
    transition: .2s ease;
}

.image-wrapper:hover figcaption a:hover {
    display: contents;  
    color: rgb(176, 225, 55); 
    letter-spacing: 3px;
}

.image-wrapper figcaption img {
    display: none;
}

.image-wrapper:hover figcaption img {
    display: block;
    width: 60%;
    align-self: flex-start;
}

/* MEDIA QUERIES */
/* small */
@media ( max-width: 576px ) {
    .container figure { flex: 0 1 100%; width: 45%;}
}
/* medium */
@media ( min-width: 768px ) {
    .container figure { flex: 0 1 50%; width: 40%; }
}
/* large */
@media ( min-width: 992px ) {
    .container figure { flex: 0 1 33.3333%; width: 35%; }
}

/* x-large */
@media ( min-width: 1200px ) {
    .container figure { flex: 0 1 33.3333%; width: 28%; }
}
/* xx-large */
@media ( min-width: 1400px ) {
    .container figure { flex: 0 33.3333%; width: 25%; }
}
