/*/ DESIGN: COlOR THEME /*/

:root {
    --color-background: #b9a9a5;
    --color-transparent-background: rgba(185, 169, 165, 0.7);
    --color-link: #5c2f2f;
    --color-link-hover: #6b4a4a;
    --color-filter-hover: #432222;
    --color-text: #222222;
    --nav-width: 250px;
}

html, body {
    background: var(--color-background);
    font-family: "Inter Tight", sans-serif;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
    padding: 0;
}

.dropdown-content, .navbackground {
    background: var(--color-transparent-background);
}

p, i, span {
    color: var(--color-text);
}

a, .dropdown-btn span, h2 {
    color: var(--color-link);
}

a:hover, .dropdown-btn span:hover {
    color: var(--color-link-hover);
}

.photo-credit a {
    color: inherit;
}

.filters a, ::selection {
    color: var(--color-background);
    background-color: var(--color-link);
}

.filters a:hover, .filters a#active {
    background-color: var(--color-filter-hover); 
}

.filters a, img, iframe {
    box-shadow: 10px 10px 12px rgba(0,0,0,0.20);
    border-radius: 20px;
}

    /*/ DESIGN: TEXT /*/

h1 a, h2 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
}

nav a, .contact a, .photo-credit a {
    text-decoration: none;
}

nav a:hover, .contact a:hover, .photo-credit a:hover {
    text-decoration: underline;
}

header h1 {
    line-height: 80px;
    font-size: 1.4em;
    margin: 0;
}

.text-layout h2 {
    font-size: 1.8em;
}

main p {
    text-align: justify;
}

.photo-credit {
    display: inline-block;
    position: absolute;
    bottom: 16px;
    right: 12px;
    padding: 4px 8px;
    font-size: 0.6em;
    border-radius: 20px;
    color: var(--color-background);
    background-color: var(--color-link);
}

.filters a {
    cursor: pointer;
    text-decoration: none;
    padding: 5px 15px;
}

ul {
    list-style: none;
    padding: 0;
}

hr {
    border: 0;
    border-top: 1px dashed #222222;
    margin: 12px 0
}

/*/ NAVBAR /*/

nav {
    width: var(--nav-width);
    position: fixed;
    overflow: auto;
    height: 100%;
}

header h1, nav ul {
    padding-left: 20px;
}

nav ul {
    margin: 0;
}

.dropdown {
    display: none;
}

/*/ MAIN /*/

main {
    margin-left: var(--nav-width);
    padding: 80px 50px 40px 0;
    max-width: 560px;
}

img {
    width: 100%;
}

.img-wrap {
    position: relative;
    display: inline-block;
}

.portrait {
    max-width: 400px;
}

section {
    margin-bottom: 60px;
}

section.ru h2::after {
    content: " — ru";
    font-size: 0.5em;
    font-family: "Inter Tight", sans-serif;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.65;
    vertical-align: middle;
}

.text-layout img, .filter-group, .text-layout h2 {
    margin-bottom: 24px;
}

.text-layout ul li {
    margin: 15px 0;
}

.project-layout h2 {
    margin: 0;
}

.project-layout p {
    margin: 6px 0;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 4px;
}

/*/ MEDIA QUERIES /*/

@media only screen and (max-width: 768px) {
    
    /*/ NAVBAR /*/
    
    nav {
        height: 68px;
        width: 100%;
        z-index: 2;
        overflow: visible;
    }
    
    header {
        display: inline-block;
    }
    
    header h1 {
        line-height: 68px;
    }
    
    .regular {
        display: none;
    }
    
    .dropdown {
        display: inline-block;
        position: absolute;
        right: 0;
        width: 68px;
        height: 68px;
    }
    
    .dropdown-btn {
        width: 100%;
        height: 100%;
        background-color: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
    }
    
    .dropdown-content {
        display: none;
        position: fixed;
        width: 100%;
        height: 100%;
        left: 0;
        text-align: center;
        padding-left: 0;
    }
    
    .dropdown-content a {
        font-size: 2.4em;
        padding: 10px;
        display: block;
    }
    
    .no-scroll {
        overflow: hidden;
        height: 100vh;
}
    
    /*/ MAIN /*/
    
    main {
        margin: 0 auto;
        padding: 68px 20px 40px;
    }
    
    .credit {
        margin: 0 auto;
        margin-top: 4px;
    }
    
    main img {
        display: block;
        margin: auto;
    }
    
    #centre {
        text-align: center;
    }
}