/*Reset page*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

/*Page layouts*/
body {
    display: flex;
    flex-direction: column;
    font-family: Manrope, Arial, sans-serif;
    background-color: #f1f7ed;
}

body.home {
    height: 100vh;
    overflow: hidden;
}

body.contact {
    height: 100vh;
    overflow: hidden;
}

body.home .hero {
    background-image: url("images/wiki-sinaloa-PRkXhb4OWjM-unsplash_web.jpg");
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #f1f7ed;
}

body.contact .hero {
    background-image: url("images/the-cleveland-museum-of-art-PXgaUq7byX0-unsplash_web.jpg");
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #f1f7ed;
}

.site-header,
.site-footer {
    background-color: #f1f7ed;
    text-align: center;
    padding: 1rem;
}

.site-main {
    flex: 1;
}

/*Hero sections*/
.hero {
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5rem;
    padding-bottom: 1rem;
}

.hero-content-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;

    max-width: 320px;
    padding: 1.5rem;
    text-align: center;
    background: #f1f7edeb;
    border-radius: 16px;
    color: #171614;
}

/*Navigation*/
.ul-nav {
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color: #00A693;
    display: flex;
    justify-content: center;
}

ul li a {
    display: block;
    color: #171614;
    padding: 14px 16px;
    text-decoration: none;
}

ul li a:hover {
    background-color: #f1f7ed;
}

ul li {
    text-align: left;
}

/*Text Box*/
.textbox {
    max-width: 320px;
    padding: 1.5rem;
    text-align: center;
    background: #f1f7edb1;
    border-radius: 16px;
    color: #171614;
}

/*Button*/
.button {
    background-color: #cba328;
    border: none;
    color: #171614;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 16px;
    cursor: pointer;
}

.button:hover {
    opacity: 0.9;
    color: #171614;
}

/*Gallery images*/
.photo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.photo-grid img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.photo-grid img {
    flex: 0 0 calc(33.333% - 16px);
}

/*Image overlay texts*/
.container {
    position: relative;
}

.image {
    display: block;
    width: 100%;
    height: auto;
}

.overlay {
    position: absolute;
    bottom: 0;
    background: #171614;
    background: #1716149c;
    /* Black see-through */
    color: #f1f7ed;
    width: 100%;
    transition: .5s ease;
    opacity: 0;
    color: #f1f7ed;
    font-size: 20px;
    padding: 20px;
    text-align: center;
}

.container:hover .overlay {
    opacity: 1;
}

/*Medias*/
@media (max-width: 1024px) {
    .photo-grid img {
        flex: 0 0 calc(50% - 16px);
    }
}

@media (max-width: 600px) {
    .photo-grid img {
        flex: 0 0 100%;
    }
}

@media (max-width: 768px) {
    body.home .hero {
        background-size: cover;
    }

    body.contact .hero {
        background-size: cover;
    }
}

/*Tables*/
table,
th,
td {
    border: 1px solid black;
}

/*Typography*/
h1,
h2 {
    font-family: Montserrat, Geneva, Verdana, sans-serif;
    color: #171614;
}

/*Links*/
a {
    color: #57579a;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #cba328;
}

.button-typo {
    color: #171614;
}