@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root{
    --text-dark: #171717;
    --text-light: #525252;
    --extra-light: #a3a3a3;
    --white: #ffffff;
    --max-width: 2200px;
    --header-font: "Merriweather", serif;

}

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

body {
    position: relative;
    font-family: "Montserrat", sans-serif;
    min-height: 100vh;
    background-position: center 35%;
    background-repeat: no-repeat;
    background-size:cover;
}

body .frontpage {
    background-image: radial-gradient(rgba(255,255,255,0), rgba(0,0,0,.15)),
    url("../pics/bg3.jpg");
}

.container {
    width: 100vw;
}

.container-frontpage {
    width: 100vw;
    margin: 0 auto;
    position: absolute;
    top:30%;
}

.container-about {
    width: 100vw;
    margin: 0 auto;
    position: absolute;
    top:30%;
}

.frontpage-content img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
}

.about-content img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
}

.about-content h2 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 35px;
    color: var(--white);
}

.about-content h3 {
    font-size: 30px;
    text-align: center;
    margin: 35px auto;
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
}

.about-img {
    background: #fff;
    width: 210px;
    height: 210px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.frontpage-content h2 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 35px;
    color: var(--white);
}

.frontpage-content h3 {
    font-size: 30px;
    text-align: center;
    margin: 35px auto;
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
}

.socials {
    width: 350px;
    margin: 40px auto 0 auto;
    padding-bottom: 30px;
}
.socials ul a{
    color: var(--white);
    font-size: 30px;
    display: block;
    width: 50px;
    height: 50px;
    border: 1px solid #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
    text-decoration: none;
}
.socials ul{
    display: flex;
    justify-content: space-around;
}
.socials ul a:hover{
    background: var(--text-light);
    border-color: var(--text-light);
}

.footer-front {
    position: fixed;
    bottom: 20px;
    left: 0px;
    width:100%;
    color: #fff;
    text-align: center;
}

.section__container {
    max-width: var(--max-width);
    margin: auto;
    padding-top:200px;
    padding: 2rem 1rem;
}

.section__container h1 {
    font-size:5rem;
    text-align: center;
}

.section__container h4 {
    font-size: 1.3rem;
    font-style: italic;
    font-weight: lighter;
    text-align: center;
}

.section__header {
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 400;
    font-family: var(--header-font);
    color: var(--text-dark);
    text-align: center;
}

.section__description {
    color: var(--text-light);
    line-height: 1.75rem;
    text-align: center;
}

.btn {
    padding: .5rem 1.5rem;
    outline: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    background-color: var(--text-dark);
    border-radius: 5px;
    transition: 0.3s;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--text-light);
}

.contact-link {
    text-decoration: none;
    transition: 0.3s;
    color: #525252;
    font-size: 25px;
}

.header-portfolio {
    min-height: 10vh;
}

.about__container .section__description {
    max-width: 900px;
    margin-inline: auto;
    margin-bottom: 2rem;
}

.about__container img {
    max-width: 170px;
    margin-inline: auto;
}

.portfolio__grid, .portfolio__grid__cat {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.portfolio__card, .portfolio__card__cat {
    position: relative;
    isolation: isolate;
}

.portfolio__card::after, .portfolio__card__cat::after {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    font-family: var(--header-font);
    color: var(--white);
}

.portfolio__card:nth-child(1)::after {
    content: "SPORT";
}

.portfolio__card:nth-child(2)::after {
    content: "TRAVEL & URBAN";
}

.portfolio__card:nth-child(3)::after {
    content: "PEOPLE";
}

.portfolio__card:nth-child(4)::after {
    content: "NATURE";
}

.portfolio__card:nth-child(5)::after {
    content: "EVENTS";
}

.portfolio__content, .portfolio__content__cat {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    transition: 0.3s;
    z-index: 1;
}

.portfolio__card:hover .portfolio__content, .portfolio__card__cat:hover .portfolio__content__cat {
    opacity: 1;
}

.gallery__grid {
    margin-block:2rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
    place-items: center;
}

.gallery__grid:hover img:not(:hover) {
    opacity: 0.5;
}

@media( width > 540px){
    .portfolio__grid, .portfolio__grid__cat {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (width > 1024px) {
    .header {
        min-height: 100vh;
    }

    .portfolio__grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .gallery__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .portfolio__grid__cat {
        grid-template-columns: repeat(8, 1fr);
    }
}