* {
    box-sizing: border-box;
}

body {
    color: rgba(255, 255, 255, 0.6);
    background-color: #121212;
    font-family: 'Times New Roman', Times, serif;
    font-style: normal;
    font-weight: normal;
    font-variant-numeric: oldstyle-nums stacked-fractions;
    font-feature-settings: "onum" 1;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.5px;

    padding: 0;
    border: 0;
    margin: 0;
    height: 100%;
}

/* Flex container */
.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Full viewport height. 
    Ensures the footer always sits at the bottom of the window. */
}

/*HEADER-----------------------------------------------------*/
/* Full-width bar */
.navbar {
    width: 100%;
    background-color: #000;
}

/* Constrained content */
.navbar-content {
    width: min(94%, 1080px);
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Home button left */
.nav-home {
    font-size: 16px;
    line-height: 48px;
    font-weight: lighter;
    letter-spacing: 1px;
    font-variant: small-caps;

    margin: 0;
    padding: 0;
}

/* Right-aligned links */
.nav-links {
    display: flex;
    gap: 8px;
}

.inactive-link {
    color: rgb(255, 255, 255, 0.87);
    pointer-events: none;
    /* Makes the link unclickable */
    cursor: default;
}

/* Main menu */
a:link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

a:visited {
    color: rgba(255, 255, 255, 0.6);
}

a:hover {
    color: rgba(255, 255, 255, 0.87);
    text-decoration: none;
}

a:active {
    color: rgba(255, 255, 255, 0.87);
}

/*CONTENT------------------------------------------------------*/
/* Main content takes all remaining space */
main {
    flex: 1;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    width: min(94%, 1080px);
    box-sizing: border-box;
    /* flex-direction: row; */
    align-items: flex-start;
}

/* .content-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
} */
/*TEXT------------------------------------------------------*/
/* .text-content-container {
    width: 30%;
    /*min-width: 300px;*/
    /* box-sizing: border-box; */
    /* overflow: hidden;
}  */

.text-wrapper {
    display: grid;
    /* grid-template-columns: repeat(3, 1fr); */
    margin-bottom: 24px;
    align-items: stretch;
    /*gap: 1rem;
    padding: 1rem;*/
    /* align-items: start; */
    /* max-height: auto; */
}
/*
.text-container {
    display: flex;
    flex-wrap: wrap;
    /* justify-content: space-between; */
    /* flex: 1 1 calc(30%); */
    /* max-width: calc(30%);  */ /*
    width: 100%;
    min-width: 300px;
    box-sizing: border-box;
    overflow: hidden;
} */

h1 {
    font-size: 24px;
    line-height: 24px;
    font-weight: lighter;
    letter-spacing: 0.05em;
    padding: 0;
    margin: 0;
    clear: both;
}

h2 {   
    font-size: 16px;
    line-height: 24px;
    font-weight: lighter;
    letter-spacing: 1px;
    font-variant: small-caps;   
    margin: 0;
    padding: 0;   
    }

h3 {   
    font-size: 20px;
    line-height: 24px;
    font-weight: lighter;
    letter-spacing: 1px;
    /* font-variant: small-caps;    */
    margin: 0;
    padding: 0;   
    }



.text {
    background-color: none;

    text-align: left;
    padding: 8px;
    margin: 8px 0.5%;
}

/* .text-container a article:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
} */

a .text:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
}
/*IMAGES----------------------------------------------------*/
.image-container {
    width: 100%;
    margin: 0.5rem 0;
}

.image-container img {
    display: block;
    width: 100%;
    height: auto;
}

.image-container figcaption {
    margin-top: 0.5rem;
    font-style: italic;
    text-align: center;
}

/* .image-container {
    /* width: 100%; */ /*
    text-align: center;
    /* margin: 8px; */
    /* width: 50%; */
    /* max-width: 50%; */
    /* min-width: 300px;
    box-sizing: border-box; */
    /* height: auto; */
    /* object-fit: cover;
    overflow: hidden; */
    display: flex; /*
    flex-direction: row;
    pointer-events: none;
} */

.responsive-image {
  width: 100%;        /* Let it shrink down responsively */
  max-width: 50%;     /* But never exceed 50% of screen on desktop */
  height: auto;       /* Maintain aspect ratio */
}

/*VIDEOS-----------------------------------------------------*/
.video-container {
    /* position: relative; */
    width: 100%;
    min-width: 300px;
    margin-top: 8px;
    margin-bottom: 30px;
    /* aspect-ratio: 16 / 9; */
    box-sizing: border-box;
}

.video-container iframe,
.video-container object,
.video-container embed {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-container iframe{
    aspect-ratio: 16 / 9;
}

.video-container figcaption {
    margin: 10px;
    line-height: 1.5;
}

/*THUMBNAILS---------------------------------------------------*/
.thumbnail-container {

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* border: 2px solid red; */
    /* display: flex;
    flex-wrap: wrap; */
    /* justify-content: space-between; */
    gap: 10px;
    /* padding: 0; */
    /* margin: 0 10px; */
    /* border-radius: 24px; */
    /* width: 100%;
    box-sizing: border-box; */
    margin-top: 10px;
}

/* Thumbnail card */
.thumbnail {
    /* color: rgba(255, 255, 255, 0.6); */
    /* background-color: #121212; */
    /* background-color: none; */
    /* border-radius: 24px;  */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); */
    /* margin: 10px 10px 0 10px; */
    /* flex: 0 0 calc((100% - 25px) / 3); */
    /* max-width: calc(33.333%); */
    text-align: left;
    padding: 10px 10px 0 10px;

    /* align-items: flex-start;   /* Don't stretch thumbnails vertically */
    /*align-content: flex-start; /* Don't stretch rows vertically */

    box-sizing: border-box; 
}

/* Thumbnail image */
.thumbnail img {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Ensures square */
    object-fit: cover;
    /* border-radius: 24px; */
    
}

/* Text description */
.thumbnail p {
    margin-top: 10px;
    /* font-size: 1rem; */
    padding: 0;
    /*color: #333; */
}

/*FOOTER-------------------------------------------------------*/
.footer {
    background-color: #000;
    /* display: flex; */
    margin: 10px 0 0 0;
    width: 100%;
    margin-top: auto;
    /* padding: 0 3.5%; */
    /* color: #fff; */
}

/* Constrained content */
.footer-content {
    width: min(94%, 1080px);
    margin: 0 auto;
    text-align: center;
    /* justify-content: space-between; */
    /* padding: 1rem 0; */
}

/* ALTERNATIVE SCREENS ------------------------------------------*/

/* Tablet breakpoint */
@media (max-width: 991px) {
    .thumbnail-container {
        grid-template-columns: repeat(2, 1fr);
        /* max-width: calc(50% - 16px); */
    }
    /*
    .text-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    */
    /* .text-container {
        width: 100%;
    }

    .text-content-container {
        width: 40%;
    } */

    .responsive-image {
        max-width: 70%;
    }

    /* .video-container {
        width: 60%;
    } */
}

/* Mobile breakpoint */
@media (max-width: 600px) {
    .navbar-content {
        flex-direction: column;
        align-items: center;
    }

    .nav-home {
        text-align: center;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 5px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    h1, h3, p {text-align: center;}

    /* .content-container {
        flex-direction: column;
    }

    .text-content-container {
        width: 100%;
    } */

    .text-wrapper {
    grid-template-columns: 1fr;
    margin-bottom: 0px;
    }

    .thumbnail-container {
        /* flex: 1 1 100%;
        max-width: 100%; */
        grid-template-columns: repeat(1, 1fr);
    }

    /* .text-container {
        width: 100%;
        height: 100%;
    } */

    .text,
    .video-container {
        width: 100%;
        height: 100%;
        /* max-height: 100vh; */
    }

    .responsive-image {
        max-width: 90%;
    }

    /* .text {
        margin: 0;
    }

    .video-container {
        padding: 50%;
    } */

    .footer {
        margin-top: 10px;
    } 
}