* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    min-width: 400px;
}

body {
    /* background-color: rgb(229, 226, 226); */
    background-color: #f4f4f3;
}

body>header {
    width: 100%;
    background-color: #074e22;
    padding: 15px;
    text-align: center;
}

body>header h1 {
    color: #ffffff;
}

main {
    margin: 10px auto;
    max-width: 1280px;
    width: 100%;
    text-align: center;
    text-align-last: center;
}

.gallery-main {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.gallery-element {
    display: inline-flex;
    margin: 10px auto;
    -webkit-box-shadow: 8px 9px 12px -1px rgba(15, 25, 29, 0.6);
    -moz-box-shadow: 8px 9px 12px -1px rgba(15, 25, 29, 0.6);
    box-shadow: 8px 9px 12px -1px rgba(15, 25, 29, 0.6);
}

.gallery-element a {
    text-decoration: none;
    color: #000000;
}

.gallery-element img {
    width: 350px;
    height: 250px;
}

.gallery-element figcaption {
    padding: 5px;
}

body>footer {
    border-top: 1px solid #000;
    opacity: 0.4;
    margin: 0 auto;
    padding: 10px;
    text-align: center;
}

body>footer a {
    text-decoration: none;
}


/* Transisoes e animacoes */

body>footer:hover {
    color: #000000;
    opacity: 1;
}

.gallery-element:hover img {
    transform: scale(1.1);
    -webkit-box-shadow: 8px 9px 12px -1px rgba(15, 25, 29, 0.6);
    -moz-box-shadow: 8px 9px 12px -1px rgba(15, 25, 29, 0.6);
    box-shadow: 8px 9px 12px -1px rgba(15, 25, 29, 0.6);
    transition: 1s;
}

@media screen and (max-width: 360px) {
    .gallery-element:hover img {
        transform: scale(1);
    }
}