@media only screen and (min-width: 600px)
{
    #gallery-section > article
    {
        margin: 10%;
    }
}

@media only screen and (max-width: 600px)
{
    #gallery-section > article
    {
        margin-top: 60px;
    }
    
    #gallery-section > article > h6
    {
        margin-top: 90px;
    }
}

@media only screen and (min-width: 425px) and (max-width: 600px)
{
    #gallery-section > article
    {
        margin: 30px;
    }
}

@media only screen and (max-width: 425px)
{
    #gallery-section > article
    {
        margin: 15px;
    }
}

footer
{
    margin-top: 0;
}

#gallery-section > #gallery-lines
{
    position: relative;
}

#gallery-section > #gallery-lines > #orange-single
{
    display: block;
    position: absolute;
    z-index: -1;
    left: 687.5px;
    bottom: 0;
    height: 80px;
}

#gallery-section > #gallery-lines > #grey-bkgrnd
{
    display: block;
    position: absolute;
    top: 90px;
    right: 0;
    height: 1000px;
    pointer-events: none;
}

/* Default font settings */
#gallery-section > article > h1,
#gallery-section > article > h6
{
    padding-left: 15px;
    padding-right: 15px;
}

#gallery-section > article > h1
{
    color: rgb(78, 183, 71);
    margin-top: 0.325em;
    margin-bottom: 0.325em;
    letter-spacing: 0.025em;
}

@media only screen and (max-width: 725px)
{
    #gallery-section > article > h1
    {
        width: 100%;
    }
}

@media only screen and (min-width: 725px)
{
    #gallery-section > article > h1
    {
        width: 50%;
    }
}

/* Gallery container */
#gallery-section > article > #gallery-container
{
    -js-display: flex;
    display: flex;
    display: -webkit-flex;
    display: -ms-flexbox;
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
}

#gallery-section > article > #gallery-container .image-flexbox-wrapper,
#gallery-section > article > #gallery-container .image-flexbox-wrapper-small
{
    -js-display: flex;
    display: flex;
    display: -webkit-flex;
    display: -ms-flexbox;
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
}

/* SECOND ROW */

/* Image itself */
#gallery-section > article > #gallery-container .image-wrapper
{
    display: block;
    background: transparent;
    padding: 0;
    border: none;
    text-decoration: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
}

#gallery-section > article > #gallery-container .image-wrapper:focus
{
    outline: none;
}

#gallery-section > article > #gallery-container .image-wrapper > img
{
    display: block;
    height: 100%;
    width: 100%;
    cursor: pointer;
    object-fit: cover;
    -o-object-fit: cover;
}

#gallery-section > article > #gallery-container .image-wrapper:hover > img
{
    transform: scale(1.125);
    -webkit-transform: scale(1.125);
    -moz-transform: scale(1.125);
    -ms-transform: scale(1.125);
    -o-transform: scale(1.125);
}

#gallery-section > article > #gallery-container .image-wrapper > #image-overlay
{
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#gallery-section > article > #gallery-container .image-wrapper:hover > #image-overlay > #image-hoverbuttons
{
    opacity: 1.0;
    visibility: visible;
}

#gallery-section > article > #gallery-container .image-wrapper > #image-overlay > #image-hoverbuttons
{
    opacity: 0.0;
    visibility: hidden;
    position: absolute;
    bottom: 0;
    right: 0;
    height: 250px;
    width: 250px;
    /*transition: 0.25s opacity, 0.25s visibility;
    -webkit-transition: 0.25s opacity, 0.25s visibility;
    -moz-transition: 0.25s opacity, 0.25s visibility;
    -ms-transition: 0.25s opacity, 0.25s visibility;
    -o-transition: 0.25s opacity, 0.25s visibility;*/
    background: linear-gradient(135deg, transparent, transparent, rgb(78, 183, 71));
    background: -webkit-linear-gradient(-45deg, transparent, transparent, rgb(78, 183, 71));
    background: -moz-linear-gradient(-45deg, transparent, transparent, rgb(78, 183, 71));
    background: -o-linear-gradient(-45deg, transparent, transparent, rgb(78, 183, 71));
    filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1, startColorstr="#004eb747", endColorstr="#ff4eb747");
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=1, startColorstr="#004eb747", endColorstr="#ff4eb747")";
}

#gallery-section > article > #gallery-container .image-wrapper > #image-overlay > #image-hoverbuttons > #inner
{
    position: absolute;
    bottom: 25px;
    right: 25px;
    height: 50px;
    letter-spacing: 0.5em;
}

#gallery-section > article > #gallery-container .image-wrapper > #image-overlay > #image-hoverbuttons > #inner > .hoverbtn
{
    display: inline-block;
    pointer-events: auto;
    border: none;
    cursor: pointer;
    text-align: center;
    background: white;
    padding: 0;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 25px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    /*transition: 0.25s box-shadow;
    -webkit-transition: 0.25s box-shadow, 0.25s -webkit-box-shadow;
    -moz-transition: 0.25s box-shadow, 0.25s -moz-box-shadow;
    -ms-transition: 0.25s box-shadow;
    -o-transition: 0.25s box-shadow;*/
}

#gallery-section > article > #gallery-container .image-wrapper > #image-overlay > #image-hoverbuttons > #inner > .hoverbtn:hover
{
    box-shadow: 0 0 20px 0 rgba(11, 24, 39, 0.2);
    -webkit-box-shadow: 0 0 20px 0 rgba(11, 24, 39, 0.2);
    -moz-box-shadow: 0 0 20px 0 rgba(11, 24, 39, 0.2);
}

#gallery-section > article > #gallery-container .image-wrapper > #image-overlay > #image-hoverbuttons > #inner > .hoverbtn:focus
{
    outline: none;
}

#gallery-section > article > #gallery-container .image-wrapper > #image-overlay > #image-hoverbuttons > #inner > .hoverbtn > img
{
    display: inline-block;
    height: 50px;
    padding: 15px;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

#gallery-section > article > #gallery-container > .image-flexbox-wrapper-small > .image-wrapper
{
    height: calc(50% - 15px);
    height: -webkit-calc(50% - 15px);
    height: -moz-calc(50% - 15px);
    height: expression(50% - 15px);
    flex-basis: 100%;
    -webkit-flex-basis: 100%;
}

#gallery-section > article > #gallery-container > .image-flexbox-wrapper-small > .image-wrapper:nth-of-type(1)
{
    margin-bottom: 15px;
}

#gallery-section > article > #gallery-container > .image-flexbox-wrapper-small > .image-wrapper:nth-of-type(2)
{
    margin-top: 15px;
}

@keyframes image-fadein
{
    from 
    { 
        opacity: 0.0; 
        filter: alpha(opacity=0);
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    }

    to 
    { 
        opacity: 1.0; 
        filter: alpha(opacity=100);
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    }
}

@-webkit-keyframes image-fadein
{
    from 
    { 
        opacity: 0.0; 
        filter: alpha(opacity=0);
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    }

    to 
    { 
        opacity: 1.0; 
        filter: alpha(opacity=100);
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    }
}

@-moz-keyframes image-fadein
{
    from 
    { 
        opacity: 0.0; 
        filter: alpha(opacity=0);
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    }

    to 
    { 
        opacity: 1.0; 
        filter: alpha(opacity=100);
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    }
}

@-o-keyframes image-fadein
{
    from 
    { 
        opacity: 0.0; 
        filter: alpha(opacity=0);
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    }

    to 
    { 
        opacity: 1.0; 
        filter: alpha(opacity=100);
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    }
}

/*
    CODE FOR THE SLIDER ITSELF
*/
#gallery-slider
{
    position: fixed;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.375);
    height: 100vh;
    width: 100vw;
    left: 0;
    top: 0;
    opacity: 0.0;
    filter: alpha(opacity=0);
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    visibility: hidden;
    /*transition: 0.5s opacity, 0.5s visibility;
	-webkit-transition: 0.5s opacity, 0.5s visibility;
	-moz-transition: 0.5s opacity, 0.5s visibility;
	-ms-transition: 0.5s opacity, 0.5s visibility;
	-o-transition: 0.5s opacity, 0.5s visibility;*/
}

#gallery-slider > #gallery-slider-inner
{
    position: absolute;
    top: 12.5%;
    height: 75%;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    letter-spacing: -1em;
    transform: scale(0);
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
	/*transition: 0.5s transform;
	-webkit-transition: 0.5s transform, 0.5s -webkit-transform;
	-moz-transition: 0.5s transform, 0.5s -moz-transform;
	-ms-transition: 0.5s transform, 0.5s -ms-transform;
	-o-transition: 0.5s transform, 0.5s -webkit-transform, 0.5s -o-transform;*/
}

#gallery-slider > #gallery-slider-inner > .slider-btn
{
    width: 12.5%;
    text-align: center;
}

#gallery-slider > #gallery-slider-inner > .slider-btn > #left,
#gallery-slider > #gallery-slider-inner > .slider-btn > #right
{
    position: relative;
    display: inline-block;
    background: transparent;
    padding: 0;
    color: white;
    border: none;
    cursor: pointer;
}

#gallery-slider > #gallery-slider-inner > .slider-btn > #left:focus,
#gallery-slider > #gallery-slider-inner > .slider-btn > #right:focus
{
    outline: none;
}

@media only screen and (min-width: 500px) 
{
    #gallery-slider > #gallery-slider-inner
    {
        left: 12.5%;
        width: 75%;
    }
}

@media only screen and (max-width: 500px) 
{
    #gallery-slider > #gallery-slider-inner
    {
        left: 10%;
        width: 80%;
    }
}

@media only screen and (max-width: 750px)
{
    #gallery-section > article > #gallery-container > .image-flexbox-wrapper > .image-wrapper
    {
        height: calc(25% - 22.5px);
        height: -webkit-calc(25% - 22.5px);
        height: -moz-calc(25% - 22.5px);
        height: expression(25% - 22.5px);
        width: 100%;
        flex-basis: 100%;
        -webkit-flex-basis: 100%;
    }

    #gallery-section > article > #gallery-container > .image-flexbox-wrapper > .image-wrapper:not(:first-of-type)
    {
        margin-top: 30px;
    }

    #gallery-slider > #gallery-slider-inner > #gallery-slider-image
    {
        width: 100%;
    }

    #gallery-slider > #gallery-slider-inner > .slider-btn > #left,
    #gallery-slider > #gallery-slider-inner > .slider-btn > #right
    {
        position: absolute;
        top: 50%;
        border-radius: 50%;
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        background: white;
        padding: 0;
        width: 60px;
        height: 60px;
        font-size: 30px;
        line-height: 60px;
        transform: translate(0, -50%);
        -webkit-transform: translate(0, -50%);
        -moz-transform: translate(0, -50%);
        -ms-transform: translate(0, -50%);
        -o-transform: translate(0, -50%);
        color: rgb(78, 183, 71);
    }

    #gallery-slider > #gallery-slider-inner > .slider-btn > #left
    {
        left: 25px;
    }

    #gallery-slider > #gallery-slider-inner > .slider-btn > #right
    {
        right: 25px;
    }

    #gallery-slider > #gallery-slider-inner > .slider-btn > #left:hover
    {
        left: 20px;
    }

    #gallery-slider > #gallery-slider-inner > .slider-btn > #right:hover
    {
        right: 20px;
    }
}

@media only screen and (min-width: 750px)
{
    #gallery-section > article > #gallery-container > .image-flexbox-wrapper > .image-wrapper
    {
        height: calc(50% - 15px);
        height: -webkit-calc(50% - 15px);
        height: -moz-calc(50% - 15px);
        height: expression(50% - 15px);
        flex-basis: calc(50% - 15px);
        flex-basis: -webkit-calc(50% - 15px);
        flex-basis: -moz-calc(50% - 15px);
        flex-basis: expression(50% - 15px);
        -webkit-flex-basis: calc(50% - 15px);
        -webkit-flex-basis: -webkit-calc(50% - 15px);
    }
    
    #gallery-section > article > #gallery-container > .image-flexbox-wrapper > .image-wrapper:nth-of-type(1)
    {
        margin-bottom: 15px;
        margin-right: 15px;
    }
    
    #gallery-section > article > #gallery-container > .image-flexbox-wrapper > .image-wrapper:nth-of-type(2)
    {
        margin-left: 15px;
        margin-bottom: 15px;
    }
    
    #gallery-section > article > #gallery-container > .image-flexbox-wrapper > .image-wrapper:nth-of-type(3)
    {
        margin-top: 15px;
        margin-right: 15px;
    }
    
    #gallery-section > article > #gallery-container > .image-flexbox-wrapper > .image-wrapper:nth-of-type(4)
    {
        margin-top: 15px;
        margin-left: 15px;
    }

    #gallery-slider > #gallery-slider-inner > #gallery-slider-image
    {
        width: 75%;
    }

    #gallery-slider > #gallery-slider-inner > .slider-btn,
    #gallery-slider > #gallery-slider-inner > #gallery-slider-image
    {
        display: inline-block;
        vertical-align: middle;
        letter-spacing: normal;
    }

    #gallery-slider > #gallery-slider-inner > .slider-btn > #left,
    #gallery-slider > #gallery-slider-inner > .slider-btn > #right
    {
        font-size: 60px;
    }

    #gallery-slider > #gallery-slider-inner > .slider-btn > #left
    {
        left: 0;
    }
    
    #gallery-slider > #gallery-slider-inner > .slider-btn > #right
    {
        right: 0;
    }
    
    #gallery-slider > #gallery-slider-inner > .slider-btn > #left:hover
    {
        left: -5px;
    }
    
    #gallery-slider > #gallery-slider-inner > .slider-btn > #right:hover
    {
        right: -5px;
    }
}

#gallery-slider > #gallery-slider-inner > #gallery-slider-image
{
    height: 100%;
}

#gallery-slider > #gallery-slider-inner > #gallery-slider-image > img
{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -o-object-fit: cover;
    border-radius: 2.5px;
    -webkit-border-radius: 2.5px;
    -moz-border-radius: 2.5px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
	-webkit-box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}

@media only screen and (min-width: 500px) and (max-width: 550px)
{
    #gallery-error
    {
        margin-left: 30px;
        margin-right: 30px;
    }
}

@media only screen and (min-width: 550px) and (max-width: 600px)
{
    #gallery-error
    {
        margin-left: 60px;
        margin-right: 60px;
    }
}

@media only screen and (min-width: 600px)
{
    #gallery-error
    {
        margin-left: 15%;
        margin-right: 15%;
    }
}

#gallery-error > h1
{
    padding: 0;
}