/* minimal reset*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* remove default spacing */
/* force styling of type through styling, rather than elements */

* {
    margin: 0;
    padding: 0;
    font: inherit;
}

/* dark mode user-agent-styles */

html {
    color-scheme: dark light;
}

/* min body height */

body {
    min-height: 100vh;
}

/* responsive images/videos */
img,
picture,
svg,
video {
    display: block;
    max-width: 100%;
}

/* end minimal reset */

@font-face {
    font-family: 'Inter';
    font-weight: 400;
    src: url('fonts/inter-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Jost';
    font-weight: 400;
    src: url('fonts/jost-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Jost';
    font-weight: 600;
    src: url('fonts/jost-semi-bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Jost';
    font-weight: 700;
    src: url('fonts/jost-bold.woff2') format('woff2');
}

:root {
    --black: #1F1D1D;
    --white: #FFFFFF;
    --gray: #969696;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 5em;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

p {
    font-size: 1rem;
    margin-bottom: 1em;
}

.small {
    font-size: 0.84rem;
}

a {
    color: var(--white);
}

.container {
    width: 90%;
    max-width: 1680px;
    margin: 0 auto;
    text-align: center;
}

h1 {
    font-family: 'Jost';
    font-weight: 600;
    font-size: clamp(2.49rem, 4vw, 2.99rem);
    text-transform: uppercase;
}

h2 {
    font-family: 'Jost';
    font-size: clamp(1.42rem, 2vw, 1.80rem);
    text-transform: uppercase;
}

h3 {
    font-family: 'Inter';
    /* font-size: clamp(1.2rem, 1.25vw, 1.44rem); */
    /* text-transform: uppercase; */
    font-size: clamp(1.44rem, 2vw, 1.728rem);
}

.bold {
    font-weight: 600;
}

header {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1100px) {
    header {
    min-height: 100svh;
}
    }    

.logo {
    font-size: 1.25rem;
    letter-spacing: -0.2rem;
    text-transform: uppercase;
    margin-top: 1em;
}

.site-info {
    margin: 3em auto 5em auto;
}

.subtitle {
    color: rgba(255, 255, 255, 0.50);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.25rem;
}

.avatar {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.avatar-image {
    height: 180px;
    width: 180px;
    background-image: url(img/avatar-zww.png);
    background-repeat: no-repeat;
    cursor: pointer;
    border-radius: 50%;
    filter: drop-shadow(0px 10px 4px rgba(41, 39, 39, 0.50));
}

.timeline {
    margin-top: -1.5em;
    margin-bottom: 6.125em;
}

.timeline-items {
    display: flex;
    flex-wrap: wrap;
}

.category-title {
    font-size: clamp(1.73rem, 2.5vw, 2.07rem);
    text-transform: none;
    margin-bottom: 0.20em;
}

.category-title a {
    text-decoration: none;
}

.category-description {
    font-size: 1rem;
}

/* Style timeline with hover effect.  */

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

.timeline-item {
    position: relative;
    overflow: hidden;
}

.timeline-item figcaption {
    position: absolute;
    top: 100%;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 1em;
    background-color: rgba(31, 29, 29, 0.8);
    text-align: left;
    display: flex;
    flex-direction: column;
}

figure:hover figcaption,
figure:focus figcaption {
    top: 0;
    justify-content: flex-end;
}

@media (hover: hover) {
    .timeline-item figcaption {
        position: absolute;
        top: 100%;
        bottom: 0;
        right: 0;
        left: 0;
        padding: 1em;
        background-color: rgba(31, 29, 29, 0.8);
        text-align: left;
        display: flex;
        flex-direction: column;
    }

    figure:hover figcaption,
    figure:focus figcaption {
        top: 0;
        justify-content: flex-end;
    }
}

.category-link {
    color: var(--white);
    text-decoration: none;
    border-bottom: 2px solid var(--white);
    align-self: start;
}

.category-link::after {
    content: url(./img/arrow-white.svg);
    display: inline-block;
    height: .8em;
    width: .8em;
    margin-left: .5em;
}

@media screen and (max-width: 1181px) {
    .avatar-image {
        background-image: url(img/avatar-color.png);
    }

    .timeline {
        margin-top: -1.75em;
        margin-bottom: 5em;
    }

    .timeline-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-item.featured {
        grid-column: 1 / span 2;
        grid-row: 1 / span 2;
    }

    .featured .category-title {
        font-size: 2.99rem;
    }
}

/* Timeline on tablet */

@media (min-width: 768px) and (max-width: 1181px)  {
        .timeline-items {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

    .timeline-item.featured {
        grid-column: 1 / span 2;
        grid-row: 1 / span 2;
    }
}

/* end style timeline */

@media (min-width: 768px) and (max-width: 1181px) {
    .portfolio {
        width: 75%;
        margin: 0 auto;
    }
}

.collapsible {
    height: 120px;
    width: 120px;
    background-image: url(img/dubbele-punt.png);
    background-repeat: no-repeat;
    background-size: cover;
    margin: 2em auto;
    cursor: pointer;
}

/* .collapsible:hover {
    background-image: url(img/dubbele-punt-hover-zwart.png);
} */


/* Style the collapsible content. Note: hidden by default */

.content,
.colofon {
    max-width: 900px;
    padding: 0 20px;
    margin: auto;
    display: none;
    overflow: hidden;
}

.content {
    text-align: left;
}

.portfolio-category {
    margin: 5em 0 0 0;
}

.italic {
    font-style: italic;
}

.portfolio-items {
    max-width: 900px;
    margin: 4em auto 1em auto;

}

.pswp-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 1em;
}

.pswp__custom-caption {
    background: rgba(31, 29, 29, 0.5);
    font-size: 0.8rem;
    text-align: center;
    color: #fff;
    width: calc(100% - 32px);
    max-width: 400px;
    padding: 2px 8px;
    border-radius: 4px;
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
}

.hidden-caption-content {
    display: none;
}

.portfolio-item-title {
    display: none;
}

/* werkomschrijving */

.intro {
    max-width: 900px;
    margin: 4em auto;
    padding: 1em;
}

.intro p {
    text-align: left;
}

.intro-title {
    margin-bottom: 2.5em;
}

.question {
    height: 120px;
    width: 120px;
    margin: 0 auto 5em auto;
    position: relative;
}

/* Tooltip voor dubbele punt en vraagteken */

@media screen and (min-width: 1181px){

    .question:hover::before,
    .collapsible:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    padding: .25rem;
    background: var(--white);
    color: var(--black);
    width: max-content;
    font-size: 0.8rem;
    transform: translateX(-50%) translateY(-100%);
    }
    .collapsible:hover::before {
     transform: translateX(-50%) translateY(-50%);   
    }
}

footer {
    margin-bottom: 2em;
}

/* .copyright p {
    font-size: 0.9rem;
    margin-bottom: 1.5em;
    cursor: pointer;
} */

.colofon {
    padding: 2em;
}

.colofon p {
    font-size: 0.9rem;
}

.colofon h3 {
    font-size: 0.8rem;
}

#popover-button {
    background-color: #1F1D1D;
    font-size: 0.95rem;
    color: #fff;
    border: none;
    cursor: pointer;
}

:popover-open {
    background-color: var(--white);
    border: 0;
    color: var(--black);
}

#colofon::backdrop {
    background: rgba(31, 29, 29, 0.5);
}

#colofon {
    padding: 2em;
    margin: auto;
    width: 30ch;
}

#colofon p {
    font-size: 0.9rem;
}

#colofon h2 {
    margin-bottom: 1em;
}

#colofon h3 {
    font-family: "Inter";
    font-size: 0.8rem;
    margin-bottom: 0.2em;
    font-weight: 600;
}