/* Made by exosZoldyck */

.gallery-title{
    padding-top: 20px;
    margin: 0;
    margin-bottom: 20px;
    margin-left: 2%;
    margin-right: 2%;
    text-align: center;
    width: auto;
    height: auto;
    font-size: 2.5rem;
    font-family: 'Determination Sans';
	font-smooth: never;
	-webkit-font-smoothing : none;
}

.gallery-title h1{
    padding-top: 45px;
    margin: 0;
    margin-bottom: 45px;
}

.gallery{
    margin-top: 0;
    margin-left: 1%;
    margin-right: 1%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
}

.gallery-media{
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 20px;
    width: 350px;
    height: 350px;
}

.gallery-media a{
    width: 100%;
    height: 100%;
}

.gallery-media:hover{
    .gallery-media-overlay{
        visibility: visible;
    }
}

.gallery-media-image{
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;

    transition-duration: 0.1s;
}

.gallery-media-image:hover{
    opacity: 0.1;
    transition-duration: 0.1s;
}

.gallery-media-overlay{
    width: 350px;
    height: 350px;
    padding: 0;
    border: 0;
    margin: 0;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;

    visibility: hidden;

    pointer-events: none;
}

.gallery-media-overlay img{
    width: 128px;
    height: 128px;
    
    image-rendering: optimizeSpeed;             /* STOP SMOOTHING, GIVE ME SPEED  */
    image-rendering: -moz-crisp-edges;          /* Firefox                        */
    image-rendering: -o-crisp-edges;            /* Opera                          */
    image-rendering: -webkit-optimize-contrast; /* Chrome (and eventually Safari) */
    image-rendering: pixelated;                 /* Universal support since 2021   */
    image-rendering: optimize-contrast;         /* CSS3 Proposed                  */
    -ms-interpolation-mode: nearest-neighbor;   /* IE8+                           */
}

.gallery-media-overlay span{
    font-size: 1.5rem;
    text-align: center;

    font-family: 'Determination Sans';
	font-smooth: never;
	-webkit-font-smoothing : none;
}

.container-button{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    margin-top: 20px;
    margin-bottom: 50px;
}

.gallery-button{
    width: 10%;
    height: auto;
    max-width: 350px;
    border: 1px solid #006000;
    border-radius: 5px;
    padding-bottom: 5px;

    font-size: 1.875rem;
    font-family: 'Determination Sans';
	font-smooth: never;
	-webkit-font-smoothing : none;
    background-color: #008000;
    color: white;
    border: 1px solid black;

    cursor: pointer;
    transition-duration: 0.1s;
}

.clicked{
    background-color: #2f2f2f;
    border-color: #3f3f3f;
    cursor: default;
    pointer-events: none;
}

.gallery-button:hover{
    background-color: #006000;
}

@media screen and (min-width: 2000px){
    .gallery-title{
        font-size: 3vh;
    }

    .gallery-button{
        width: 18%;
        font-size: 3vh;
    }
}

@media screen and (max-width: 1420px){
    .gallery-button{
        width: 18%;
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 1000px){ 
    .gallery-button{
        width: 25%;
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 755px){ 
    .gallery-media{
        width: 150px;
        height: 150px;
    }

    .gallery-media-overlay{
        width: 150px;
        height: 150px;
    }

    .gallery-media-overlay img{
        width: 64px;
        height: 64px;
    }

    .gallery-media-overlay span{
        font-size: 0.75rem;
    }

    .gallery-button{
        width: 350px;
        font-size: 2.5rem;
    }
}