/*/ DESIGN: COLOUR 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;
}

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

a, h2 {
    color: var(--color-link);
}

a:hover {
    color: var(--color-link-hover);
}

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

.filters a:hover, .filters a#active, #menu-btn:hover, #back-to-top:hover, a.photo-credit:hover {
    background-color: var(--color-filter-hover); 
}

#nav-menu {
    background: var(--color-transparent-background);
}

.filters a, img, iframe, a.photo-credit, #menu-btn, #back-to-top {
    box-shadow: 10px 10px 12px rgba(0,0,0,0.20);
    border-radius: 20px;
}

    /*/ DESIGN: TEXT /*/

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

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

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

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

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

main p {
    text-align: justify;
}

a.photo-credit {
    display: inline-block;
    position: absolute;
    bottom: 16px;
    right: 12px;
    padding: 4px 8px;
    font-size: 0.6em;
}

.filters a {
    cursor: pointer;
    padding: 5px 15px;
}

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

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

/*/ NAVBAR, MENU & BUTTONS/*/

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

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

nav ul {
    margin: 0;
}

button {
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

#menu-btn {
    position: absolute;
    top: 12px;
    display: none;
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    display: flex;
    opacity: 0;
    transition: opacity 0.2s;
}

#nav-menu {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#nav-menu:popover-open {
    display: flex;
}

#nav-menu ul li a {
    font-size: 2.4em;
    padding: 10px;
    display: block;
    text-align: center;
}

.no-scroll {
    overflow: hidden;
    height: 100vh;
}

/*/ MAIN /*/

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

img {
    width: 100%;
}

iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

.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;
}

.text-layout ul li i {
    font-size: 0.85em;
    opacity: 0.9;
}

.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 h1 {
        line-height: 68px;
    }

    nav > ul {
        display: none;
    }

    #menu-btn {
        display: flex;
    }
    
    /*/ MAIN /*/

    main {
        margin: 0 auto;
        padding: 68px 20px 40px;
    }

    main img {
        display: block;
        margin: auto;
    }

    #centre {
        text-align: center;
    }
}