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

li {
    list-style: none;
}

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

hr {
    border: none;
}

button {
    border: none;
    background: none;
}

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




/* ================ Global ================ */
h1, h2, h3 {
    font-family: system-ui;
}

li, a, p {
    font-family: system-ui;
    font-weight: 500;
}

img {
    max-width: 100%;
    /* background: rgb(200, 200, 200); */
    background: linear-gradient(45deg, hsl(0, 0%, 82%), white);
}

button {
    cursor: pointer;
}




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

body {
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(45deg, rgb(245,245,245), white);
}




/* ======================================== */
/* ================ Header ================ */
/* ======================================== */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 75px;
    /* background: lightskyblue; */
    background: linear-gradient(lightskyblue, rgb(108, 168, 206));
}

header h1 {
    margin-top: -5px;
    color: white;
    text-shadow: rgba(0,0,0, 0.20)  0 0 15px;
}



/* ================ Navbar ================ */
nav {
    position: sticky;
    top: 0;
    z-index: 2;
    background: black;
    box-shadow: rgba(0,0,0, 0.12) 0 6px 6px;
}

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

nav a {
    white-space: nowrap;
    color: white;
    margin-right: 13px;
}

nav a:hover {
    color: lightskyblue;
}



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

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

    color: white;
    background-color: rgb(121, 178, 197);
    box-shadow: rgba(0,0,0, 0.12) 0 0 12px;
}

.carrousel:hover {
    background-color: rgb(60, 167, 202);
}

.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 {
    border-radius: 5px;
    background: linear-gradient(45deg, rgba(135, 206, 250, 0.25), rgba(135, 206, 250, 0.08));
    box-shadow: rgba(0, 0, 0, 0.05) 0 0 15px;
}

section h2, section h3 {
    text-align: center;
    padding-top:    8px;
    padding-bottom: 5px;
    text-shadow: rgb(0, 0, 0, 0.10) 0 0 15px;
}



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



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

/* ================ Description ================ */
#description li {
    white-space: nowrap;
    /* margin-bottom: 1px; */
}

#description a {
    color: hsl(43, 72%, 42%);
}

#description a:hover {
    color: rgb(226, 175, 45);
}



#description button {
    font-family: inherit;
    font-weight: inherit;
    font-size:   inherit;
    
    border-radius:  3px;
    padding-left:   4px;
    padding-right:  4px;
    padding-bottom: 1px;
    margin-right:   2px;

    color:      white;
    /* background:  hsl(210, 80%, 60%); */
    background: linear-gradient(hsl(210, 80%, 60%), hsl(210, 80%, 50%));
}

#description button:hover {
    background: linear-gradient(hsl(210, 80%, 65%), hsl(210, 80%, 55%));
}




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

#pictures ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 3px;
}


#pictures ul a {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
}

#pictures ul a:hover img {
    filter: brightness(1.08);
    box-shadow: rgba(0,0,0, 0.12) 0 0 13px;
}


#pictures ul p {
    position:  absolute;
    color:      white;
    background: black;
    z-index:          1;
    opacity:       0.70;
    padding-left:   3px;
    padding-right:  5px;
    padding-bottom: 1px;
}

#pictures ul img {
    object-fit:  cover;
    height:       100%;
    transition:   75ms;
}



#pictures hr {
    height:          3px;
    margin-top:      8px;
    margin-left:    12px;
    margin-right:   12px;
    margin-bottom:  15px;
    background: hsl(0, 0%, 45%);
}



#pictures div {
    /* column-count: 2; */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    padding-left:   8px;
    padding-right:  8px;
    column-gap:    10px;
    row-gap:       10px;
}


#pictures div img {
    object-fit: cover;
    border-radius: 3px;
    width:      100%;
    height:     100%;
}




/* ================ Pages ================ */
#pages {
    margin-top:     30px;
    margin-bottom:  60px;

    display: flex;
    justify-content: center;
    column-gap: 8px;
}

#pages button {
    border-radius: 5px;    
    width:        45px;
    height:       45px;

    color:      white;
    background: linear-gradient(hsl(210, 80%, 60%), hsl(210, 80%, 50%));
    box-shadow: hsl(0, 0%, 0%, 12%) 0 0 10px;
}

#pages button:hover {
    background: linear-gradient(hsl(210, 80%, 65%), hsl(210, 80%, 55%));
}





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

#posts div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap:    10px; 
    column-gap: 10px; 
}

#posts a {
    position: relative; 
    overflow: hidden;
    border-radius: 5px;
    transition: 100ms;
}

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

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

#posts p {
    white-space: nowrap;
    position: absolute;
    z-index: 1;
    border-top-left-radius: 5px;
    opacity: 0.80;
    color: white;
    padding-left:   5px;
    padding-right:  8px;
    padding-bottom: 2px;
    background: black;
}

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





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

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

    border-radius: 15px;
    width:  30px;
    height: 30px;
    background-color: rgb(121, 178, 197);
    box-shadow: rgba(0,0,0, 0.25) 0 0 12px;
}

#gohead:hover {
    background-color: rgb(60, 167, 202);
}

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



/* ================ Footer ================ */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    
    min-height: 90px;
    /* background: lightskyblue; */
    /* background: linear-gradient(lightskyblue, rgb(85, 148, 187)); */
    /* background: linear-gradient(lightskyblue, rgb(108, 168, 206)); */
    background: linear-gradient(lightskyblue, rgb(83, 136, 168));
    box-shadow: rgba(0,0,0, 0.25) 0 0 15px;
}

footer h1 {
    color: white;
    text-shadow: rgba(0,0,0, 0.20)  0 0 15px;
}