/* -------------------------------------- Global styles ------------------------------------------------ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    font-size: 18px; /* Set base font size to 16px (1rem = 16px) */
}

/* Apply Inter font to the body text */
body {
    font-family: 'EB Garamond', serif;
  }
  
  /* Apply EB Garamond to all headings */
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
  }
  
  /* Apply a specific font-weight to Inter on paragraph text */
  p {
    font-family: 'EB Garamond', serif;
    font-weight: 400; /* Regular weight for paragraphs */
    font-size: 1.2em;
  }
  
  /* Optional: Example of specific font-weight for EB Garamond on h1 */
  h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 500; /* Bold weight for headings */
  }


/* -------------------------------------- Home Page CSS ----------------------------------------------- */

.home-page-feature-image {
    max-width: 290px;  /* or any other size you want */
    margin: 0 auto;    /* centers the image container */
}

.home-page-feature-image > img {
    max-width: 100%;
    height: auto;
}

* {
    box-sizing: border-box;
}

.home-page-main-container {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr; /* Three columns: left, center, right */
    grid-template-rows: auto auto auto; /* Three rows for header, title, image, and news */
    grid-gap: 20px; /* Add space between items */
    padding: min(2em, 8%);
}

.home-page-feature-image img {
    grid-column: 1;
    max-width: 100%;
    height: auto;
}

.home-page-title-rent-collective {
    grid-column: 2; /* Place title in the center column */
    justify-self: end;
    text-align: right;
    font-size: clamp(1rem, calc(1vw + 1rem), 2rem);
    padding: min(1em, 8%);
    max-width: 10em;
}

@media screen and (max-width: 768px){
    .home-page-main-container {
        display: flex;
        flex-direction: column;
    }

    .home-page-feature-image {
        order: 2;
    }

    .home-page-feature-image img {
        width: 100%;
        height: auto;
    }

    .home-page-title-rent-collective {
        text-align: center;
        order: 1;
        padding-top: 3em;

    }

    .home-page-news-container {
       max-width: none;
       order: 3;
    }

}

/* -------------------------------------- Header and Navigation Bar Styling ----------------------------------------------- */
:root{
    --primary-color: black;
    --hover-color: lightgrey;
    --accent-color: blue;
    --text-color: black;
}
header {
    grid-column: 3; /* Navigation on the right column */
    position: absolute;
    top: 40px; /* Adjust this value to move it down */
    right: 50px;
    left: auto;
    z-index: 10; /* Optional: To make sure it's above other content */
}
.nav-container {
    display: flex; /* Align items horizontally */
    align-items: flex-start; /* Align the items at the top */
    height: 100vh;
    height: 100dvh; /* Set the height to full viewport height */
    font-family: 'Inter', sans-serif;
    font-size: .9em;
    font-weight: 400;
}
.nav-divider {
    width: 1px; /* Divider thickness */
    background-color: #000; /* Divider color */
    height: 100%; /* Full height of the container */
}
nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding-left: 20px;
    padding-top: 100px;
    margin: 0;
}
nav li{
    display: flex;
}
nav a{
    display: flex;
    text-decoration: none;
    color: var(--text-color);
    padding: 1em 2em;
    transition: background-color 150ms ease;
}
nav a:hover{
    background-color: var(--hover-color);
}
nav a.active-link{
    border-bottom: 2px solid var(--text-color);
}
nav a.accent-link{
    background-color: var(--accent-color);
}
#open-sidebar-button{
    display: none;
    background: none;
    border: none;
    padding: 0.5em;
    cursor: pointer; 
    position: relative;
    margin-right: -1em;
    margin-top: -1em;
}
#close-sidebar-button{
    display: none;
    background: none;
    border: none;
    padding: 0.5em;
    cursor: pointer;
}
#overlay{
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    inset: 0;
    z-index: 900;
    display: none;
}


@media screen and (max-width: 1300px){
    #open-sidebar-button, #close-sidebar-button{
        display: block;
    }
    nav{
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;;
        width: min(15em, 100%);
        z-index: 1000;
        border-left: 1px solid var(--hover-color);
        transition: right 300ms ease-out;
        background: rgb(77, 115, 77);
    }
    nav.show{
        right: 0;
        z-index:1100;
    }
    nav.show ~ #overlay{
        display: block;
    }
    nav ul{
        width: 100%;
        flex-direction: column;
    }
    nav a{
        width: 100%;
        padding-left: 2.5em;
        color: white;
    }
    nav a.active-link{
        border-bottom:none;
    }
}
/* -------------------------------------- Home Page News Section ------------------------------------------------ */



.home-page-news-container {
    grid-column: 2; /* Center column */
    font-size: 1rem;
    line-height: 1.5;
    margin-top: 20px;
    max-width: 800px; /* Limit the maximum width of the text */
    margin: 0 auto; /* Center the content horizontally */
    padding: min(2em, 8%); /* Optional: Add some padding inside */
    background-color: white;
}

/* Default font size */
.home-page-news-container {
    font-size: clamp(0.9rem, 1vw, 1rem);
}

/* Default link style */


/* Hover effect on links */
.home-page-news-container p a {
    color: blue; /* Change text color on hover */
}


/* -------------------------------------- About ------------------------------------------------ */

.about-page-main-container {
    display: grid;
    grid-template-columns: 1fr; /* Three columns: left, center, right */
    grid-template-rows: auto auto auto; /* Three rows for header, title, image, and news */
    grid-gap: 20px; /* Add space between items */
    padding: min(3em, 8%);
    max-width: 1650px;
       

}

.about-page-left-column-container {
    grid-column: 1;
    width: 40em;
    height: auto;
    padding: min(2em, 8%);
    font-size: clamp(0.9rem, 1vw, 1rem);

}

.about-page-rent-collective-title {
    text-align: left;
}

.about-page-rent-collective-description {
    line-height: 1.5;
}

.about-page-image-row-headshots-container {
    display: flex;
    justify-content: space-between;
    justify-content: center; /* Aligns items horizontally */
    padding: min(5em, 8%);
    gap: 0.5em;
    padding-right: 10em;
}

.about-page-image-row-headshots-container figure {
    display: flex;
    flex-direction: column;
    max-width: 170px;
    width: 100%;            /* Makes the image responsive */
    height: auto;

}

.about-page-image-row-headshots-container figcaption {
    font-size: 0.75rem;
    padding-top: 10px;
    text-align: left;
}

.about-page-right-column-container {
    font-size: clamp(0.9rem, 1vw, 1rem);
    padding-left: 30em;
    max-width: 70em;

}

.about-page-right-column-container p {
    line-height: 1.5;
}

.artist-name-accent {
    font-style: italic;
    display: inline-block; /* Required for border to work properly */
    border-bottom: 2px dotted blue; /* Thickness and color */
    padding-bottom: 2px; /* Space between text and underline */

}

.headshot-captions img {
    width: 100%;      /* Ensures the image fills the container */
    height: auto;     /* Maintains aspect ratio */
    border-radius: 1px; /* Optional: Adds rounded corners to images */
    object-fit: contain; /* Ensures the entire image is visible within its container */
}

.contact-page-email-and-images {
    padding-right: 10em;

}

@media screen and (max-width: 1500px) {
    .about-page-main-container {
        display: flex; /* Change from grid to flex for stacking */
        flex-direction: column;
        align-items: center;
        padding-top: 3em;
    }

    .about-page-left-column-container,
    .about-page-image-row-headshots-container,
    .about-page-right-column-container {
        width: 100%;
        max-width: 800px; /* Prevent content from getting too wide */
        margin: 0 auto; /* Center elements horizontally */
        position: static; /* Remove absolute positioning */
        padding: 1em;
    }

    .about-page-image-row-headshots-container {
        display: flex;
        flex-wrap: wrap; /* Allow images to wrap */
        justify-content: center;
        flex: 1 1 100%; /* 1 item per row on smaller screens */
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2em;

    }

    .about-page-right-column-container {
        text-align: center;

    }

    .about-page-rent-collective-title {
        padding-bottom: 0.5em;
    }
}


/* -------------------------------------- Spreepark Project Page ------------------------------------------------ */

.spreepark-project-page-container {
    display: grid;
    grid-template-columns: 3fr 2fr; /* Two columns: left (3fr), right (2fr) */
    grid-template-rows: auto;
    grid-gap: 20px; /* Adds space between items */
    min-height: 100%; /* Ensure full height of the viewport */
    width: 100%; /* Ensures the container takes full available width */
    box-sizing: border-box;
    padding: min(2em, 8%);
}

.project-page-right-column {
    grid-column: 2; /* Places it in the second column */
    max-width: 280px;
    line-height: 1.2;
    margin-top: 80px;
    align-self: start;
    font-size: clamp(0.9rem, 1vw, 1rem);
    padding: min(0.5em, 8%);

}

.project-page-left-column {
    grid-column: 1; /* Places it in the first column */
    position: absolute;
    margin-left: 120px;
    margin-top: 0px;
    line-height: 1.2; 
    align-self: start;
    max-width: 100%;
    padding: min(0.5em, 8%);
    font-size: clamp(0.9rem, 1vw, 1rem);
}

.project-page-left-column h2 {
    padding-bottom: 15px;
    max-width: 280px;
}

.project-page-title {
    text-align: left;
    padding-bottom: 10px;
}

.project-page-divider {
    height: 1px; /* Divider thickness */
    background-color: #000; /* Divider color */
    width: 100%;
    margin-top: 40px;
}

@media screen and (max-width: 1550px){
    .spreepark-project-page-container {
        display: flex;
        flex-direction: column; /* Stack items vertically */
        align-items: stretch; /* Ensures content takes full width */
        padding: min(em, 8%);
        max-width: 100%;
        width: 100%; /* Make sure the container takes full width */
    }

    .project-page-right-column {
      max-width: 40em;
    }

    .project-page-left-column {
        width: 40em; /* Ensure each column takes up full width in mobile view */
        box-sizing: border-box; /* Ensure padding does not overflow */
        margin: 0; /* Remove any default margin */
        position: relative;
    }

    .spreepark-project-page-banner-image img {
        width: 100%; /* Make the image responsive */
        height: auto;
    }


    .project-page-title {
        text-align: center; /* Center the title */
        padding-top: 3em;
    }
}



/* -------------------------------------- Spreepark Project Page Blog Post ------------------------------------------------ */


.spreepark-project-page-blog-post-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    margin: 0 auto; /* Center the content horizontally */
    margin-top: 5em;
    height: 100vh; /* Ensure full height of the viewport */
    height: 100dvh;
    padding: 20px;
    max-width: 1000px;
    padding: min(1em, 8%);
    font-size: clamp(0.9rem, 1vw, 1rem);

}

.spreepark-project-page-blog-post-container h2 {
    padding-bottom: 15px;
    text-align: left;
}

.spreepark-project-page-blog-post-text {
    max-width: 80%;
    margin: 0 auto;
    padding-top: 50px;
    padding-bottom: 90px;
}

.spreepark-project-page-blog-post-author-credit {
    font-style: italic;
    display: inline-block; /* Required for border to work properly */
    border-bottom: 2px dotted blue; /* Thickness and color */
    padding-bottom: 2px; /* Space between text and underline */
}

.spreepark-project-page-blog-post-divider-double-lines-container {
    margin-top: 40px;
    margin-bottom: 80px;
}

.spreepark-project-page-blog-post-divider-double-lines {
    height: 1px; /* Divider thickness */
    background-color: #000; /* Divider color */
    width: 100%;
    margin-bottom: 5px;
}

.spreepark-project-page-blog-post-gallery-item {
    flex: 1 1 calc(50% - 20px); /* Makes each item take up 1/3 of the container width, minus the gap */
    box-sizing: border-box; /* Ensures padding/margins don't affect width */
    display: flex; /* Flexbox for centering */
    justify-content: center; /* Horizontally centers the image */
    align-items: center; /* Vertically centers the image */
}

.spreepark-project-page-blog-post-gallery-item img {
    width: 100%;      /* Ensures the image fills the container */
    height: auto;     /* Maintains aspect ratio */
    border-radius: 1px; /* Optional: Adds rounded corners to images */
    object-fit: contain; /* Ensures the entire image is visible within its container */
}




/* -------------------------------------- Clovis Essay Desire Lines ------------------------------------------------ */
.spreepark-project-page-blog-post-clovis-essay-desire-lines-gallery {
    display: flex;
    flex-wrap: wrap;        /* Allows items to wrap to the next line */
    justify-content: space-between; /* Evenly spaces the items */
    margin: 0 auto;
    max-width: 100%;      /* Optional: Restrict gallery max width */
    gap: min(1em, 1%);

}

.spreepark-project-page-blog-post-gallery-item-three-image-spread {
    flex: 1 1 calc(33.333% - 20px); /* Makes each item take up 1/3 of the container width, minus the gap */
    box-sizing: border-box; /* Ensures padding/margins don't affect width */
    display: flex; /* Flexbox for centering */
    justify-content: center; /* Horizontally centers the image */
    align-items: center; /* Vertically centers the image */
    gap: min(1em, 1%);
}

.spreepark-project-page-blog-post-gallery-item-three-image-spread img {
    width: 100%;      /* Ensures the image fills the container */
    height: auto;     /* Maintains aspect ratio */
    border-radius: 1px; /* Optional: Adds rounded corners to images */
    object-fit: contain; /* Ensures the entire image is visible within its container */
}

.spreepark-project-page-blog-post-gallery-item-two-image-spread {
    flex: 1 1 calc(50% - 0.5em); /* Makes each item take up 1/3 of the container width, minus the gap */
    box-sizing: border-box; /* Ensures padding/margins don't affect width */
    display: flex; /* Flexbox for centering */
    justify-content: center; /* Horizontally centers the image */
    align-items: center; /* Vertically centers the image */
    gap: min(1em, 1%);
}

.spreepark-project-page-blog-post-gallery-item-two-image-spread img {
    width: 100%;      /* Ensures the image fills the container */
    height: auto;     /* Maintains aspect ratio */
    border-radius: 1px; /* Optional: Adds rounded corners to images */
    object-fit: contain; /* Ensures the entire image is visible within its container */
}

.spreepark-project-page-blog-post-gallery-item-one-image-spread {
    flex: 1 1 calc(100% - 20px);
    box-sizing: border-box; /* Ensures padding/margins don't affect width */
    display: flex; /* Flexbox for centering */
    justify-content: center; /* Horizontally centers the image */
    align-items: center; /* Vertically centers the image */
    gap: min(1em, 1%);
}

.spreepark-project-page-blog-post-gallery-item-one-image-spread img {
    width: 100%;      /* Ensures the image fills the container */
    height: auto;     /* Maintains aspect ratio */
    border-radius: 1px; /* Optional: Adds rounded corners to images */
    object-fit: contain; /* Ensures the entire image is visible within its container */
}



/* -------------------------------------- Joe's Essay 1 ------------------------------------------------ */

.spreepark-project-page-blog-post-joe-essay-1-gallery {
    display: flex;
    flex-wrap: wrap;        /* Allows items to wrap to the next line */
    justify-content: space-between; /* Evenly spaces the items */
    gap: min(1em, 1%);
    margin: 0 auto;
    margin-top: 0px;
    margin-bottom: 10px;
    max-width: 1000px;      /* Optional: Restrict gallery max width */
}

.spreepark-project-page-blog-post-joe-essay-1-gallery-item {
    flex: 1 1 calc(50% - 20px); /* Makes each item take up 1/3 of the container width, minus the gap */
    box-sizing: border-box; /* Ensures padding/margins don't affect width */
    display: flex; /* Flexbox for centering */
    justify-content: center; /* Horizontally centers the image */
    align-items: center; /* Vertically centers the image */
}

.spreepark-project-page-blog-post-joe-essay-1-gallery-item img {
    width: 100%;      /* Ensures the image fills the container */
    height: auto;     /* Maintains aspect ratio */
    border-radius: 1px; /* Optional: Adds rounded corners to images */
    object-fit: contain; /* Ensures the entire image is visible within its container */
}

.spreepark-project-page-blog-post-joe-essay-1-gallery-item-two-columns img {
    width: 100%;      /* Ensures the image fills the container */
    height: auto;     /* Maintains aspect ratio */
    border-radius: 1px; /* Optional: Adds rounded corners to images */
    object-fit: contain; /* Ensures the entire image is visible within its container */
    gap: min(1em, 1%);
}

.spreepark-project-page-blog-post-joe-essay-1-gallery-item-two-columns {
    flex: 1 1 calc(100% - 20px); /* Make it take up the full width minus the gap */
    box-sizing: border-box; /* Ensures padding/margins don't affect width */
    display: flex; /* Flexbox for centering */
    justify-content: center; /* Horizontally centers the image */
    align-items: center; /* Vertically centers the image */
}

/* Responsive Design: On smaller screens, items take up more width */
@media (max-width: 768px) {
    .spreepark-project-page-blog-post-joe-essay-1-gallery,
    .spreepark-project-page-blog-post-joe-essay-1-gallery-item,
    .spreepark-project-page-blog-post-gallery-item-one-image-spread,
    .spreepark-project-page-blog-post-gallery-item-two-image-spread,
    .spreepark-project-page-blog-post-gallery-item-three-image-spread {
        flex: 1 1 calc(100% - 20px); /* 2 items per row on medium screens */
    }
}

@media screen and (max-width: 480px) {
    .spreepark-project-page-blog-post-joe-essay-1-gallery-item,
    .spreepark-project-page-blog-post-gallery-item-one-image-spread,
    .spreepark-project-page-blog-post-gallery-item-two-image-spread,
    .spreepark-project-page-blog-post-gallery-item-three-image-spread {
        flex-wrap: wrap;
        flex: 1 1 100%; /* 1 item per row on smaller screens */

    }
}


/* -------------------------------------- Gallery ------------------------------------------------ */

/* Gallery Container */
.gallery {
    display: flex;
    flex-wrap: wrap;        /* Allows items to wrap to the next line */
    justify-content: space-between; /* Evenly spaces the items */
    gap: 20px;              /* Adds spacing between items */
    margin: 0 auto;
    margin-top: 0px;
    margin-bottom: 10px;
    max-width: 1000px;      /* Optional: Restrict gallery max width */
  }
  
  /* Gallery Items */
  .gallery-item {
    flex: 1 1 calc(33.333% - 20px); /* Makes each item take up 1/3 of the container width, minus the gap */
    box-sizing: border-box; /* Ensures padding/margins don't affect width */
    display: flex; /* Flexbox for centering */
    justify-content: center; /* Horizontally centers the image */
    align-items: center; /* Vertically centers the image */
}

  
  .gallery-item img {
    width: 100%;      /* Ensures the image fills the container */
    height: auto;     /* Maintains aspect ratio */
    border-radius: 1px; /* Optional: Adds rounded corners to images */
    object-fit: contain; /* Ensures the entire image is visible within its container */
}

  
  /* Responsive Design: On smaller screens, items take up more width */
  @media (max-width: 768px) {
    .gallery {
        gap: 0.1em;
    }
    .gallery-item {
      flex: 1 1 calc(50% - 20px); /* 2 items per row on medium screens */
    }
  }
  
  @media (max-width: 480px) {
    .gallery-item {
      flex: 1 1 100%; /* 1 item per row on smaller screens */
    }
  }
  

/* -------------------------------------- Contact ------------------------------------------------ */

  .contact-page-container {
    display: flex;                  /* Enable flexbox */
    justify-content: center;        /* Horizontally center */
    align-items: center;
    height: 100vh;                  /* Make sure the container takes full viewport height */
    padding: min(2em, 8%);
    flex-direction: column;
    text-align: center;
       
}

.contact-page-email-and-images {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em;
    width: 100%;
    
}

.contact-page-image-row-headshots-container {
    display: flex;
    justify-content: center; /* Aligns items horizontally */
    gap: 5px;              /* Space between items */
    padding: min(1.5em, 8%);

}

.contact-page-image-row-headshots-container figure {
    display: flex;
    flex-direction: column;
    max-width: 170px;
    width: 100%;            /* Makes the image responsive */
    height: auto;

}

.contact-page-image-row-headshots-container figcaption {
    font-size: 0.75rem;
    padding-top: 1em;
    text-align: left;
}

