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

@media only screen and (max-width: 600px)
{
    #gallery-section > article > h1
    {
        margin-top: 90px !important;
        margin-bottom: 30px !important;
        margin-left: 15px; /* to account for the margin on the gallery tiles themselves */
    }
}

@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;
    }
}

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

#gallery-section > #gallery-lines > #orange-single
{
    display: block;
    position: absolute;
    z-index: -1;
    left: 800px;
    bottom: -95px;
    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 container */
#gallery-section > article > #gallery-container
{
    -js-display: flex;
    display: flex;
    display: -webkit-flex;
    display: -ms-flexbox;
    width: 100%;
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    align-content: stretch;
}

#gallery-section > article > #gallery-container > .image-wrapper
{
    display: block;
    text-decoration: none;
    position: relative;
    z-index: 1;
    height: 275px;
    overflow: hidden;
    margin: 15px;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
}

#gallery-section > article > #gallery-container > .image-wrapper:not(.wide)
{
    flex-basis: 260px;
    flex-grow: 1;
}

#gallery-section > article > #gallery-container > .image-wrapper.wide
{
    flex-basis: 550px;
    flex-grow: 2;
}

#gallery-section > article > #gallery-container > .image-wrapper > img
{
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    object-fit: cover;
    -o-object-fit: cover;
	/*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-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 > #image-overlay > h1
{
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    text-align: center;
    color: white;
    pointer-events: none;
    width: 90%;
    margin: 0px;
    font-family: "DIN Next LT Pro";
    font-weight: normal;
    text-transform: none;
    font-style: normal;
    line-height: 1.5em;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
}

@media only screen and (min-width: 725px)
{
    #gallery-section > article > #gallery-container > .image-wrapper.wide > #image-overlay > h1
    {
        font-size: 2.0em;
        line-height: 1.5em;
    }
    
    #gallery-section > article > #gallery-container > .image-wrapper:not(.wide) > #image-overlay > h1
    {
        font-size: 1.375em;
    }

    #gallery-section > article > #gallery-container > .image-wrapper.wide > #image-overlay
    {
        background-image: url("../../images/gallery_overview_gradient_l.svg");
        background-size: cover;
    }

    #gallery-section > article > #gallery-container > .image-wrapper:not(.wide) > #image-overlay
    {
        background-image: url("../../images/gallery_overview_gradient_s.svg");
        background-size: cover;
    }
}

@media only screen and (max-width: 725px)
{
    #gallery-section > article > #gallery-container > .image-wrapper > #image-overlay > h1
    {
        font-size: 1.375em;
    }
}

@media only screen and (min-width: 525px) and (max-width: 725px)
{
    #gallery-section > article > #gallery-container > .image-wrapper > #image-overlay
    {
        background: linear-gradient(left, transparent, transparent, rgba(50, 50, 50, 0.7));
        background: -webkit-linear-gradient(left, transparent, transparent, rgba(50, 50, 50, 0.7));
        background: -moz-linear-gradient(left, transparent, transparent, rgba(50, 50, 50, 0.7));
        background: -o-linear-gradient(left, transparent, transparent, rgba(50, 50, 50, 0.7));
        -pie-background: linear-gradient(left, transparent, transparent, rgba(50, 50, 50, 0.7));
    }
}

@media only screen and (max-width: 525px) 
{
    #gallery-section > article > #gallery-container > .image-wrapper > #image-overlay
    {
        background: linear-gradient(top, transparent, transparent, rgba(50, 50, 50, 0.6));
        background: -webkit-linear-gradient(top, transparent, transparent, rgba(50, 50, 50, 0.6));
        background: -moz-linear-gradient(top, transparent, transparent, rgba(50, 50, 50, 0.6));
        background: -o-linear-gradient(top, transparent, transparent, rgba(50, 50, 50, 0.6));
        -pie-background: linear-gradient(top, transparent, transparent, rgba(50, 50, 50, 0.6));
    }
}