@import url("photographer.css");

:root {
    --primary-color: #901C1C;
    --secondary-color: #D3573C;
    --light-secondary-color: #DB8876;
    --grey-color: #525252;
    --heavy-grey-color: #312E2E;
    --white-color: #ffffff;
}

body {
    font-family: "DM Sans", sans-serif;
    margin: 0;
    position: relative;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

header nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    margin: 0 6rem;
}

header nav h1 {
    color: var(--primary-color);
}

header nav a .logo {
    height: 50px;
}

main {
    margin: 0 6rem 6rem 6rem;
}

/* SCROLLBAR */
body::-webkit-scrollbar {
    width: 0;
}

body::-webkit-scrollbar {
    width: .75rem;
}

body::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey; 
}

body::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
}

body::-webkit-scrollbar-thumb:hover {
    background-color: var(--secondary-color);
}

.photographer_section {
    display: flex;
    flex-wrap: wrap;
    margin-top: 6rem;
    row-gap: 3rem;
}

.photographer_section article {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 0 33.3333%;
}

.photographer_section article header a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photographer_section article header a h2 {
    color: var(--secondary-color);
    font-size: 36px;
    margin-bottom: 0;
}

.photographer_section article header a div {
    height: 200px;
    width: 200px;
    border-radius: 50%;
    overflow: hidden;
}

.photographer_section article header a div img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transform: scale(1.7) translateY(8%);
    transition: transform .3s ease;
}

.photographer_section article header a div:hover img {
    transform: scale(1.3) translateY(0);
}

.photographer_section article footer h3 {
    color: var(--primary-color);
    margin: 0;
}

.photographer_section article footer section p {
    margin: 0;
}

.photographer_section article footer section p:last-child {
    color: var(--grey-color);
}

@media screen and (max-width: 992px) {
    #main {
        margin: 0 3rem 3rem 3rem;
    }

    header nav {
        margin: 0 3rem;;
    }

    .photographer_section article {
        flex: 0 0 50%;
    }
}

@media screen and (max-width: 768px) {
    header nav {
        display: flex;
        justify-content: center;
    }
    
    #main {
        margin: 0 1rem 1rem 1rem;
    }

    header nav {
        margin: 0 1rem;
        flex-direction: column;
        height: auto;
        padding-top: 1rem;
    }

    .photographer_section {
        margin-top: 2rem;
    }

    .photographer_section article {
        flex: 0 0 100%;
    }
}