/* ================ Reset ================ */
* {
    margin:  0;
    padding: 0;
    gap:     0;
    box-sizing: border-box;
    user-select: none;
}

hr {
    border: none;
}

li {
    list-style: none;
}

a {
    /* color: black; */
    text-decoration: none;
}

button {
    border: none;
    background: none;
}

img, video {
    -webkit-user-drag: none;
}

iframe {
    border: none;
}




/* ================ Global ================ */
h1, h2, h3 {
    color: hsl(0, 0%, 5%);
    font-family: system-ui;
}

li, p, a {
    color: hsl(0, 0%, 5%);
    font-family: system-ui;
    font-weight: 500;
}

h1 a {
    color:       inherit;
    font-weight: inherit;
}

button {
    cursor: pointer;
}

img, video {
    max-width: 100%;
}




/* ============================================ */
/* ================ Background ================ */
/* ============================================ */
html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(45deg, hsl(0, 0%, 90%), hsl(0, 0%, 97%));
}




/* ======================================== */
/* ================ Header ================ */
/* ======================================== */
header div {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(hsl(120, 100%, 30%), hsl(120, 100%, 20%));
    height: 70px;
}

header h1 {
    /* overflow: hidden; */
    /* white-space: nowrap; */

    /* display: flex; */
    /* flex-direction: column; */
    /* align-items: center; */
    color: white;
    margin-top: -5px;
    text-shadow: hsl(0, 0%, 0%, 10%) 0 0 12px;
}

header hr {
    /* height: 1px; */
    /* background: white; */
}



/* ================ Navbar ================ */
nav {
    position: sticky;
    top: 0;
    z-index: 2;
    /* background: hsl(0, 0%, 98%); */
    background: linear-gradient(to right, hsl(0, 0%, 98%), hsl(0, 0%, 100%));
    box-shadow: hsl(0, 0%, 0%, 4%) 0 5px 5px;
}

nav ul {
    overflow: hidden;
    display: flex;
    align-items: center;
    margin: auto;
    max-width: 1080px;
    height: 25px;
    padding-left: 12px;
}

nav a {
    white-space: nowrap;
    /* color: white; */
    margin-right: 13px;
    /* font-weight: 500; */
}

nav a:hover {
    color: darkgreen;
}



/* ================ Carrousel ================ */
.carrousel {
    position: fixed;
    z-index: 2;
    top: 50%;

    font-weight: bolder;
    border-radius: 15px;
    width:  30px;
    height: 30px;

    color: white;
    background: rgb(32, 121, 32);
    box-shadow: rgba(0,0,0, 25%) 0 0 8px;
}

.carrousel:hover {
    background: rgb(32, 150, 32);
}

.carrousel#prev { left:  10px; }
.carrousel#next { right: 10px; }




/* ====================================== */
/* ================ Main ================ */
/* ====================================== */
main {
    margin: auto;
    max-width: 1080px;
    min-height: 100vh;
    padding-top:    30px;
    padding-left:   10px;
    padding-right:  10px;
    padding-bottom: 50px;
}




/* ================ Sections ================ */
section {
    overflow: hidden;
    border-radius: 8px;
    background: white;
    /* background: hsl(0, 0%, 95%); */
    /* background: linear-gradient(45deg, hsl(0, 0%, 98%), hsl(0, 0%, 100%)); */
    /* box-shadow: rgb(0,0,0, 5%) 0 0 13px; */
}

section h2, section h3 {
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
    /* text-align: center; */
    padding-top:    10px;
    padding-left:   12px;
    /* padding-bottom: 12px; */
    /* height: 35px; */
    /* text-shadow: hsl(0, 0%, 0%, 6%) 0 0 10px; */
}




/* ================ Containers ================ */
section div, section ul {
    padding-top:    10px;
    padding-left:   10px;
    padding-right:  10px;
    padding-bottom: 15px;
}



/* ========================================= */
/* ================ Customs ================ */
/* ========================================= */


/* ================ description ================ */
#description li {
    white-space: nowrap;
}


#description li a {
    color: rgb(0, 105, 0);
}

#description li a:hover {
    color: rgb(0, 180, 0);
}


/* #description hr {
    background: hsl(0, 0%, 75%);
    height:          2px;
    margin-top:      5px;
    margin-left:    12px;
    margin-right:   12px;
    margin-bottom:  10px;
} */


#description iframe {
    width: 100%;
    height: 250px;
}



/* ================ photos ================ */
#photos {
    margin-top: 35px;
}

#photos div {    
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    column-gap:      8px;
    row-gap:        10px;
    padding-bottom: 20px;
}

#photos div a:hover img {
    filter: brightness(1.10);
}

#photos div img {
    object-fit: cover;
    height: 100%;
    transition: 80ms;
}



/* ================ posts ================ */
#posts {
    margin-top: 45px;
}


#posts div {
    margin-top:      5px;
    padding-bottom: 20px;

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    column-gap: 12px;
    row-gap:    18px;
}



#posts a {
    overflow: hidden;
    border-radius: 6px;
}

#posts a:hover {
    box-shadow: hsl(0, 0%, 0%, 15%) 0 0 12px;
}

#posts a:hover img {
    filter: brightness(1.08);
}

#posts a:hover p {
    background: linear-gradient(45deg, hsl(0, 0%, 91%), hsl(0, 0%, 95%));
}



#posts img {
    object-fit: cover;
    aspect-ratio: 3/2;
    width: 100%;
    transition: 80ms;
}

#posts p {
    white-space: nowrap;
    font-weight: 500;
    margin-top: -4px;
    padding-top:     4px;
    padding-left:   10px;
    padding-bottom:  8px;
    /* background: hsl(0, 0%, 90%); */
    background: linear-gradient(45deg, hsl(0, 0%, 88%), hsl(0, 0%, 95%));
    transition: 80ms;
}





/* ======================================== */
/* ================ Footer ================ */
/* ======================================== */

/* ================ Navigation ================ */
#gohead {
    position: fixed;
    bottom: 25px;
    right:  25px;

    border-radius: 15px;
    width:  30px;
    height: 30px;

    background: rgb(32, 121, 32);
    box-shadow: rgba(0,0,0, 25%) 0 0 8px;
}

#gohead:hover {
    background: rgb(32, 150, 32);
}

#gohead p {
    color: white;
    font-size: 15px;
    margin-top: -5px;
}





/* ================ Footer ================ */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(hsl(120, 100%, 30%), hsl(120, 100%, 20%));
    height: 90px;
    box-shadow: hsl(0, 0%, 0%, 50%) 0 0 15px;
}

footer h1 {
    color: white;
    text-shadow: hsl(0, 0%, 0%, 50%) 0 0 12px;
    margin-top: -5px;
}