/* Resetting default styles */
* {
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}


body {
    font-family: "Montserrat", sans-serif;
    font-style: normal;
    background: white;
    height:100%;
    letter-spacing:0.025em;
}

#site-header {
    background: white;
    color: black;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    padding: 0px 30px;
}

.navbar > * {
    padding: 0px 25px;
}

.logo {
    font-size: 1.25em;
    font-weight: 500;
}

.logo a {
    color: black;
    text-decoration: none;
}

.spacer {
    flex-grow: 1;
}

.nav-link {
    color: black;
    text-decoration: none;
    font-size: 1.25em;
}

.nav-link:hover {
    color: #575757;
}

@media (max-width: 768px) { 
    .navbar {
        padding: 0px 10px;
    }
    .navbar > * {
        font-size: .9em; /* Adjust to a more readable size */
        /* padding: 0px 10px; */
    }
}

.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    position: relative;
    overflow: hidden; /* Prevent overflow */
}

video {
    width: 100%; /* Fill the width of the container */
    height: 100%; /* Fill the height of the container */
    object-fit: cover; /* Cover the container while maintaining aspect ratio */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-container {
        height: 100vh; /* Full viewport height on smaller screens */
        padding: 0px; /* Remove padding for full-screen effect */
    }
}

.image-grid-container {
    display: flex;
    justify-content: center;
    align-items: center;
    /* background-color: white; */
    overflow: hidden; /* Ensure no overflow */
    padding: 10px; 
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 20px; /* Space between grid items */
    width: 100%;
    padding: 12%;
    margin: 0 auto; /* Center the grid horizontally */
}

.image-grid a {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 100%; 
    overflow: hidden;
    /* border-radius: 2px;  */
}

.image-grid img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    /* border-radius: 2px;  */
}

.image-grid a:hover img {
    opacity: 0.9; /* Slightly grey out */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0; /* Position the overlay to the top-left corner */
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align items to the top */
    align-items: flex-start; /* Align items to the left */
    color: rgb(226, 226, 226);
    padding: 20px; /* Add some padding */
    box-sizing: border-box;
    transition: opacity 0.3s ease;
}

.title {
    font-size: 1em; /* Adjust font size as needed */
}

.description {
    font-size: 1em; /* Adjust font size as needed */
    display: none; /* Hide by default */
}

.image-grid a:hover .title {
    display: none; /* Hide title on hover */
}

.image-grid a:hover .description {
    display: block; /* Show description on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) { /* Adjust as needed for tablet size */
    .image-grid {
        grid-template-columns: repeat(1, 1fr); /* Single column layout */
        gap: 20px; /* Smaller gap between items on smaller screens */
        padding: 20px; /* Reduced padding for smaller screens */
    }
}

.pdf-container {
    margin: 0px auto;
    padding: 10%;

}

@media (max-width: 768px) { /* Adjust as needed for tablet size */
    .pdf-container {
        padding: 0px;
    }
}

.pdf-container iframe,
.pdf-container embed {
    width: 100%;
    height: 100vh; /* Adjust height as needed */
}


footer {
    text-align: center;
    padding: 10px 0;
    margin-top: auto; /* Ensures footer stays at the bottom */
}

#site-footer {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically (if needed) */
    height: 60px; /* Adjust the height as needed */
    background-color: white; /* Example background color */
    padding: 10px; /* Add some padding around the footer content */
}

#footer-copyright {
    font-size: .75em; /* Adjust font size as needed */
    color: #333;
}

/* VIMEO */

.vimeo-container {
    position: relative;
    width: 100%;
    padding-top: calc(56.25% - 60px); /* 16:9 aspect ratio */
    overflow: hidden;
}

.vimeo-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* YouTube container styling */
.youtube-container {
    position: relative;
    width: 100%;
    padding-top: calc(56.25% - 60px); /* 16:9 aspect ratio */
    overflow: hidden;
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.text-description {
    max-width: 800px; /* Adjust width as needed */
    margin: 20px auto; /* Center horizontally and add vertical spacing */
    padding: 60px; /* Add padding around the text */
    font-size: 1em; /* Slightly larger text for readability */
    line-height: 1.6; /* Improve line spacing for readability */
    color: #333; /* Darker text color for better contrast */
}

.text-description p {
    margin-bottom: 1em; /* Space between paragraphs */
}

@media (max-width: 768px) { /* Adjust as needed for tablet size */
    .text-description{
        font-size: 1em; /* Slightly larger text for readability */
        padding: 10%; /* Add padding around the text */
    }

    .vimeo-container{
        padding-top: 56.25%;
    }

    .youtube-container{
        padding-top: 56.25%;
    }

}

#dancing-puppets-sketch-container {
    display: flex;            /* Enables flexbox layout */
    justify-content: center;  /* Centers items horizontally */
    align-items: center;      /* Centers items vertically */
    width: 100%;              /* Full width of the parent container or viewport */
    height: calc(100vh - 60px);            /* Full viewport height */
    position: relative;       /* Allows absolute positioning of child elements, like the canvas */
    overflow: hidden;         /* Ensures that any overflowing content (like the canvas) is hidden */
}

#landscape-sound-sketch-container {
    display: flex;            /* Enables flexbox layout */
    justify-content: center;  /* Centers items horizontally */
    align-items: center;      /* Centers items vertically */
    width: 100%;              /* Full width of the parent container or viewport */
    height: 100vh;            /* Full viewport height */
    position: relative;       /* Allows absolute positioning of child elements, like the canvas */
    overflow: hidden;         
}

.content-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.about-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 5% 10%;
    flex-wrap: wrap; /* Ensures responsiveness */
}

.about-image {
    flex: 1;
    padding: 20px;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.about-text {
    flex: 2;
    padding: 20px;
}

.about-text h2, .about-text h3 {
    margin-top: 0;
    padding-bottom: 10px; /* Padding below headers */
    font-weight: 500;
}

.about-text p {
    line-height: 1.6;
    margin-top: 10px; /* Padding between header and text */
}

.about-text hr {
    border: 0;
    height: 1px;
    background: #ccc;
    margin: 20px 0;
}

/* Added margin-top for contact header */
.about-text h3 {
    margin-top: 40px; /* Increased space between About Me text and Contact Information header */
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        align-items: center;
    }

    .about-image, .about-text {
        flex: none;
        width: 100%;
        padding: 10px;
    }
}