/* General Body and Layout */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    font-size: 1.3em; /* Global text size adjustment */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Header */
header {
    background-color: #333;
    color: #fff;
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 5px solid #8B4513; /* SaddleBrown for wood theme */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70px;
    width: 100%;
    box-sizing: border-box;
}

header .container {
    display: flex;              /* Make this INNER container a flex container */
    justify-content: space-between; /* <-- NEW: Space out the h1 and nav horizontally */
    align-items: center;        /* Vertically align the h1 and nav */
    width: 100%;                /* Take 100% of the parent header's available space */
    max-width: 1200px;          /* But don't exceed 1200px (like your main content) */
    padding: 0 20px;            /* Add horizontal padding *inside* the header's content area */
    box-sizing: border-box;     /* Include padding in its width */
}

.hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.hero {
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-image {
    max-width: 85%;
    /* width: 100%; */
    margin: 0 auto 20px;
    display: block;
}

.intro-text .container {
/*    max-width: none;
    width: 100%;
    padding: 0 20px;*/
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}




header h1 {
    font-size: 2.4rem;
    font-weight: bold;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}

header h1 a {
    color: #fff;
    text-decoration: none;
}

/* Navigation */
nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li {
    display: inline;
    margin-left: 10px;
}





nav ul li a {
    color: #fff;
    white-space: nowrap; /* PREVENTS TEXT WRAPPING for the link text */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    /* You can adjust 20px to 22px or 24px if you want it even bigger. */
    text-transform: uppercase;
    padding: 8px 12px;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Main Content Styling */
main {
    padding: 20px 0;
}

.page-intro {
    background-color: #fff;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-intro h2 {
    color: #8B4513; /* SaddleBrown */
    font-size: 2.2em; /* Global text size adjustment */
    margin-top: 0;
}

/* Hat and Team Gallery Styles (reused for consistency) */
.hat-gallery, .team-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.hat-item, .team-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.hat-item h3, .team-item h3 {
    color: #8B4513; /* SaddleBrown */
    font-size: 1.6em; /* Global text size adjustment */
    margin-top: 0;
}

.hat-content, .team-content {
    display: flex;
    flex-direction: column; /* Stack image and description on small screens */
    align-items: center;
}

.hat-images, .team-images {
    margin-bottom: 15px; /* Space between image and description when stacked */
}

.hat-images img, .team-images img {
    max-width: 100%;
    height: auto; /* Ensure images are responsive */
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.hat-description, .team-description {
    text-align: left; /* Align text within description for readability */
}

/* Paragraph text size adjustment */
p {
    font-size: 1em; /* Scales with body font-size */
    line-height: 1.6; /* Improves readability */
}

/* Video Embeds */
.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-top: 15px;
    margin-bottom: 10px;
}

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

.video-link-text {
    font-size: 0.9em;
    color: #555;
    margin-top: 5px;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 5px solid #8B4513; /* SaddleBrown */
}

footer ul {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

footer ul li {
    display: inline;
    margin: 0 10px;
}

footer ul li a {
    color: #fff;
    text-decoration: none;
}

footer ul li a:hover {
    text-decoration: underline;
}

/* Basic Responsiveness */
@media (min-width: 768px) {
    .hat-content, .team-content {
        flex-direction: row; /* Arrange image and description side-by-side on larger screens */
        gap: 20px;
        align-items: flex-start; /* Align content to the top */
    }

    .hat-images, .team-images {
        flex: 1; /* Allow images to take available space */
        max-width: 50%; /* Limit image width to half of the container */
        margin-bottom: 0;
    }

    .hat-description, .team-description {
        flex: 1; /* Allow description to take available space */
        max-width: 50%; /* Limit description width to half of the container */
    }
}

/* Additional smaller adjustments for very small screens if needed */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.6rem;
    }
    nav ul li {
        margin-left: 10px;
    }
    .page-intro h2 {
        font-size: 1.8em;
    }
    .hat-item h3, .team-item h3 {
        font-size: 1.4em;
    }
}

/* Other Woodwork Page Specific Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjust minmax as needed */
    gap: 20px; /* Space between items */
    padding: 20px 0;
    justify-content: center; /* Center grid items */
}

.gallery-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 8px;
    display: flex; /* For centering content vertically */
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Ensure consistent height for items in a row */
}

.gallery-item img {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
    border-radius: 4px;
    margin-bottom: 10px;
    object-fit: contain; /* Ensures entire image is visible within its box */
    max-height: 200px; /* Limit height of thumbnails */
}

.gallery-item video {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.gallery-item p {
    font-size: 0.9em;
    color: #555;
    margin-top: auto; /* Pushes caption to the bottom */
}

/* Specific styling for side-by-side pairs */
.side-by-side-pair {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 10px; /* Space between the two items in the pair */
    justify-content: center; /* Center the pair */
    margin-bottom: 20px; /* Space below the pair */
    align-items: flex-start; /* Align tops of items */
}

.side-by-side-pair .gallery-item {
    flex: 1; /* Allow items to grow/shrink */
    min-width: 45%; /* Ensure they don't get too small */
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .side-by-side-pair {
        flex-direction: column; /* Stack on small screens */
        align-items: center;
    }
    .side-by-side-pair .gallery-item {
        min-width: 90%; /* Take more width when stacked */
    }
}


/* Adjust styles for screens smaller than 480px (typical smartphone portrait) */
@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    header .container {
        padding: 0 10px;
    }
}

}

