:root {
    --bg-color-main: rgba(73, 124, 126, 1);
    --text-color-primary: #140000;
    --border-color-1: #ccc;
    --bg-color-menu-item: #ed5b5b;
    --link-color-hover: #007BFF;
    --bg-color-link-hover: rgb(255, 251, 0);
    --border-color-bio: #ed5b5b;
    --bg-color-bio: #00eaff;
    --color-gallery: #eee;
	--color-cod-gray: #111;
    --c-background-button-netscape: silver;
    --fluid-font-size: clamp( .8rem, 1vw + .8rem, 1.25rem);
    --font-family: 'Times New Roman', Times, serif;
    
}

html {

}

@font-face { 
    font-family: "Times New Roman" !important;
    src: local("Times New Roman"),
         url("/fonts/times-new-roman.woff2") format("woff2"),
         url("/fonts/times-new-roman.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

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

.visually-hidden {
    position: absolute; 
    width: 1px; 
    height: 1px; 
    margin: -1px; 
    padding: 0; 
    overflow: hidden; 
    clip: rect(0, 0, 0, 0); 
    white-space: nowrap; 
    border: 0;
}

body {
    font-family: 'Times New Roman', Times, serif !important;
    color: var(--text-color-primary);
    background-color: var(--bg-color-main);
    font-size: var(--fluid-font-size);
    margin: 0rem 0rem 0rem 0rem;
    padding: 0rem .5rem 0rem .5rem;
}

h1 {
    font-size: small;
}

.field-border-disabled {
    background-color: #ffffff00;
    box-shadow: none;
    margin: 0rem;
}

header {
    background-color:;
    padding: 10px;
    display: flex;
    flex-direction: column; /* Stacks the logo and menu vertically on small screens */
    align-items: center;
    border-bottom: 1px;
    width: 100%;
    margin-bottom: .5rem;
}

.logo img {
    max-width: 100%;
    height: auto;
     margin: auto;
}

.menu ul {
    list-style-type: none;
    display: flex;
    flex-direction: row; /* Stacks menu items vertically */
    align-items: left;
    margin-top: -3rem;
    margin-left: -4rem;
}

.menu li {
    width: 90%;
    border: none;
    color: var(--bg-color-menu-item);
    padding: 0rem 0rem 0rem 0rem;
    margin: 2px 0rem 0rem 0rem;
}

.menu a {
        text-decoration: none;
        background-color: var(--bg-color-menu-item);
        color: var(--text-color-primary);
        font-weight: bold;
        transition: all 0.1s ease-in-out; /* Smooth transition for the effect */
        display: block; /* Makes the link fill the list item */
        padding: 10px 8px;
        border-style: solid;
        border-width: 2px;
        border-top-color: #fff;
        border-left-color: #fff;
        border-right-color: #555;
        border-bottom-color: #555;
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Shadow for a raised look */
    }

    .menu a:active {
        color: var(--link-color-hover);
        border-top-color: #555;
        border-left-color: #555;
        border-right-color: #fff;
        border-bottom-color: #fff;
        background-color: #c0c0c0; /* Darker color when pressed */
        box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Smaller shadow to look sunken */
        transform: translate(2px, 2px); /* Moves the button down and right */
    }

.menu img {
    width: 100%;
    height: 100%;
}

.menu a:hover,
.menu a.current {
    background-color: var(--bg-color-link-hover);
}

.vertical-header-decoration {
    /* Revised: Change width to % to fit the header container */
    background-image: url(assets/homepage/ocean.gif);
    width: 76%;
    height: 5px;
    margin: 0rem auto 1rem auto;
}

.vertical-header-decoration-2 {
    rotate:calc(180deg);
    background-image: url("assets/homepage/ocean.gif");
    width: 99%; /* Now spans the full width of its parent */
    height: 5px;
    margin: 1rem 0rem 0rem 0rem;
}

/* Footer CSS */

footer {
    font-size: small;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    border: 2px solid #ccc; /* This is the new continuous border */
}

.footer-top {
    background: #e6e6e6;
    display: flex;
    width: 100%;
    margin: 0;
    text-decoration: none;
    color: var(--text-color-primary);
    font-weight: ;
    transition: color 0.3s ease;
    border-style: solid;
    border-top-color: #555;
    border-left-color: #555;
    border-right-color: #fff;
    border-bottom-color: #fff;
    outline: 2px solid #c0c0c0;
}

.footer-middle {
    width: 100%;
    background-color: #ed5b5b;
    padding: 0rem;
    border-top: 2px solid #ccc;
    display: flex;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    border-style: solid;
    border-top-color: #555;
    border-left-color: #555;
    border-right-color: #fff;
    border-bottom-color: #fff;
    outline: 2px solid #c0c0c0;
}

.footer-middle a {
    text-decoration: none;
    color: var(--text-color-primary);
}

.footer-box {
    width: 100%;
    padding: .3rem;
    text-align: center;
    flex: 1;
    margin: 0rem 0rem 0rem 0rem;
}

.footer-box-imdb {
    width: 100%;
    padding: .3rem;
    text-align: center;
    flex: 1;
    margin: 0 auto;
}

.footer-box:last-child {
    border-right: 0rem; /* No border on the last box in the row */
}

.footer-bottom {
    width: 100%;
    padding: 0.5rem;
    text-align: center;
    margin: 0;
    background: #888;
    border-style: solid;
    border-top-color: #555;
    border-left-color: #555;
    border-right-color: #fff;
    border-bottom-color: #fff;
    background: #e6e6e6;
    outline: 2px solid #c0c0c0;
}

.footer-bottom p {
    margin: 0;
}

.footer-top a {
    text-decoration: none;
    color: var(--text-color-primary);
}

.footer-top a:hover {
    color: var(--link-color-hover);
    background-color: var(--bg-color-link-hover);
}

/* Base button styling to make them look raised */
.footer-top a,
.footer-middle a {
    text-decoration: none;
    color: var(--text-color-primary);
    font-weight: bold;
    display: block; /* Make the link a block element to fill the box */
    padding: .3rem;
    
    /* Raised 3D effect */
    border-style: solid;
    border-width: 2px; /* Adjust border width as needed */
    border-top-color: #fff;
    border-left-color: #fff;
    border-right-color: #555;
    border-bottom-color: #555;
    transition: all 0.1s ease-in-out;
}

/* Hover state */
.footer-top a:hover,
.footer-middle a:hover {
    color: var(--link-color-hover);
    background-color: var(--bg-color-link-hover);
}

/* Active/Clicked state */
.footer-top a:active,
.footer-middle a:active {
    /* Depressed 3D effect */
    border-top-color: #555;
    border-left-color: #555;
    border-right-color: #fff;
    border-bottom-color: #fff;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Smaller, softer shadow */
    transform: translate(2px, 2px); /* Shift the button to the bottom-right */
}

/* Main content can stay the same for now */
main {
    flex-grow: 1;
    padding: 0rem;
    text-align: center;
}

.business-card{
    display: none;
}

.bio-card {
    border-style: solid;
    border-top-color: #555;
    border-left-color: #555;
    border-right-color: #fff;
    border-bottom-color: #fff;
    outline: 2px solid #c0c0c0;
    margin: 0px auto;
    width: 100%;
    max-width: 330px;
    padding: 0rem 0rem 0rem 0rem;
    position: relative;
    min-height: 267px;
    max-height: 267px;
}


.bio-card img {
    width: 12vw;
    height:10vw;
    margin: .5rem .5rem 0rem .5rem;
    object-fit: contain;
}

.jspaint {
    position: relative;
    height: 243px;
    width: 324px;
}

.bio-card-2 {
    border-style: solid;
    border-top-color: #555;
    border-left-color: #555;
    border-right-color: #fff;
    border-bottom-color: #fff;
    outline: 2px solid #c0c0c0;
    margin: 2px auto;
    width: 100%;
    max-width: 440px;
    margin: 1rem 0rem 0rem 0rem;
    min-height: 200px;
}

.bio-card-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 1rem 2rem 0rem 1rem;
}

.card-title {
    background-color: #f0f0f0;
    padding: ;
    border-bottom: 2px solid #ccc;
    margin: ;
    text-align: center;
    font-weight: bold;
}

.bio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative; /* Needed for z-index and stacking */
}

.bio-text {
    font-size: var(--fluid-font-size);
    padding: 0rem 2rem 0rem 2rem; /* Adjust padding to separate text from images */
    text-align: center ; /* Justifies the text */
    line-height: 1.5;
    z-index: 1; /* Ensures the text stays above the images if they overlap */
}

.corner-image {
    position: absolute;
    width: 18vw; /* Adjust to suit your design */
    height: 10vw; /* Adjust to suit your design */
    object-fit: contain;
    z-index: 0; /* Ensures images are behind the text */
}

.top-left {
    top: 0;
    left: 0;
}

.top-right {
    top: 0;
    right: 0;
}

.bottom-left {
    bottom: 0;
    left: 0;
}

.bottom-right {
    bottom: 0;
    right: 0;
}


.contact-title {
    margin-bottom: 0rem;
    margin-top: 0rem;
    display: block;
    text-align: center;
    }

    .contact-title picture img {
        width: 65% !important;
        max-height: 55px;
        max-width: none !important;
        display: block;
        text-align: center;
        margin: auto;
    }

    .work-sample-card {
        background: #1cace4;
        margin: 2px auto;
        width: 100%;
        max-width: 82vw;
        margin: 1rem auto 0rem auto;
        border-style: solid;
        border-top-color: #555;
        border-left-color: #555;
        border-right-color: #fff;
        border-bottom-color: #fff;
        outline: 2px solid #c0c0c0;
    }
    
    .portfolio-bins-container {
        display: grid;
        grid-template-columns: repeat(1, 1fr); /* Creates a 3-column grid */
        height: fit-content;
        gap: .6rem;
        max-width: 100%;
        padding: .75rem .75rem .75rem .75rem;
        margin: 0rem 0rem 0rem 0rem;
        align-items: center;
    }
    
    /* Individual Portfolio Bin and Image Styling */
    .portfolio-bin {
        position: relative;
        margin: 0 0 0 0;
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }
    

    
    .portfolio-bin a {
        display: block;
        text-decoration: none;
        color: inherit;
        border-style: solid;
        border-width: 4px 4px 4px 4px;
        border-top-color: #f0f0f0;
        border-left-color: #f0f0f0;
        border-right-color: #888;
        border-bottom-color: #888;
        background-color: #ccc;
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
        transition: transform 0.1s ease, box-shadow 0.1s ease;
        padding: 2px 2px 2px 2px;
    }
    
    .portfolio-bin a img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Ensures the image covers the entire area without distortion */
    }
    
    /* Hover effect */
    .portfolio-bin a:hover {
        background-color: #e0e0e0;
        box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    }
    
    /* The "depressed" effect on click */
    .portfolio-bin a:active {
        border-top-color: #888;
        border-left-color: #888;
        border-right-color: #f0f0f0;
        border-bottom-color: #f0f0f0;
        transform: translate(2px, 2px);
        box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    }
    
    /* The single, unified overlay for text */
    .bin-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center; /* Pushes the text to the bottom */
        align-items: center;
    }
    
    /* Text inside the overlay */
    .bin-text {
        font-size: larger;
        text-align: center;
        padding: .5rem;
        border-top-color: #888;
        border-left-color: #888;
        border-right-color: #f0f0f0;
        border-bottom-color: #f0f0f0;
        transform: translate(2px, 2px);
        box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    }
    
    /* Hover effect */
    .portfolio-bin:hover .bin-overlay {
        opacity: 1;
    }
    
    /* Text animation on hover */
    .portfolio-bin:hover .bin-text {
        transform: translateY(0);
    }

    /* this is the css styling for the contact page */

form {
    padding-top: .5rem;
    max-width: 500px;
    margin:1rem auto;
    background-color:#e6e6e6 ;
    border-style: solid;
    border-top-color: #555;
    border-left-color: #555;
    border-right-color: #fff;
    border-bottom-color: #fff;
    background: #e6e6e6;
    outline: 2px solid #c0c0c0;
  }

legend {
    font-family: var(--font-family);
    font-size: var(--fluid-font-size);
    font-weight: bold;
    color: #000000;
    padding: 0 0.5rem;    
}

/* Spacing for each form field block */
div {
    margin-bottom: 0rem;
}

/* Label styling */
label {

}

/* Input field styling (text, email, textarea) */
input[type="text"],
input[type="email"],
textarea {
    font-family: var(--font-family);
    width: 100%;
    padding: 1rem;
    border: 1px solid #555;
    font-size: 1rem;
    box-sizing: border-box; /* Makes padding part of the element's width */
    transition: border-color 0.3s ease;
}

/* Focus state for a visual highlight */
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #007bff;
    outline: none;
}

/* Textarea specific styling */
textarea {
    border-style: solid;
    border-color: #555;
}

/* Button styling */
button {
    text-decoration: none;
    color: var(--text-color-primary);
    font-weight: bold;
    display: block; /* Make the link a block element to fill the box */
    padding: .3rem;
    
    /* Raised 3D effect */
    border-style: solid;
    border-width: 2px; /* Adjust border width as needed */
    border-top-color: #fff;
    border-left-color: #fff;
    border-right-color: #555;
    border-bottom-color: #555;
    transition: all 0.1s ease-in-out;
}

/* Hover effect for the button */
button:hover {
        color: var(--link-color-hover);
    background-color: var(--bg-color-link-hover);
}
  
  fieldset {
    padding: 20px;
  }
  
  input,
  textarea,
  button {
    width: 100%;
    
  }


/*concept zone*/
.gallery-grid-container {
    /* * Essential for swiping: Defines the area visible to the user 
     * We'll use aspect-ratio to keep the container square (2 columns wide, 2 rows high).
     * Adjust max-width/height as needed for your design.
     */
    width: 90%;
    max-width: 400px; /* Example size */
    aspect-ratio: 1 / 1; 
    
    /* * Enable horizontal scrolling and hide the default scrollbar 
     */
    overflow-x: scroll;
    overflow-y: hidden; 
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%; /* Each page (group of items) takes 100% width */
    grid-template-rows: repeat(2, 1fr); /* Force only 2 rows total */
    scroll-snap-type: x mandatory;
    padding-left: 10rem;
    margin: auto;
    margin-top: .5rem;
    gap: .5rem;

}

/* Hide scrollbar in WebKit browsers (Chrome, Safari) */
.gallery-grid-container::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    /* Each item snaps to a 1/2 height and 1/2 width within the viewport */
    scroll-snap-align: start; /* Snap the start edge of the item */
    
    /* If you used the fixed 2-row method in B: */
    width: calc(100% / 1); 
    height: 93%; /* It takes up 100% of its assigned grid row (1/2 the container height) */
    
    /* Visual feedback */
    border: 1px solid #c0c0c0; 
}
/* This is the CSS Styling for the Gallery Section */


.gallery-section {
    margin: auto;
    background-color: rgba(179, 105, 116, 0.931);
    border: 4px solid #ccc;
    z-index: 10;
    border-style: solid;
    border-left-color: #555;
    border-right-color: #fff;
    border-bottom-color: #fff;
    outline: 2px solid #c0c0c0;
    padding: 0rem 0rem 0rem 0rem;
    margin: auto 1rem auto 1rem;
    }
   
    .gallery-section.minimized {
        height: 30px; 
        overflow: hidden; 
    }

.gallery-section h2 {
    font-size: 2rem;
    position: sticky;
    top: 0;
    padding: .5rem .2rem .5rem 1rem;
    margin: 0rem 0rem 0rem 0rem;
    z-index: 100;
    width: auto;

    }

/* Gallery Container: Default to a single column */
.gallery-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* One column for mobile */
    gap: 10px; /* Spacing between images */
    max-width: 100%; /* Ensures the gallery takes up the full width */
    margin: auto;
    padding: .75rem 1rem .75rem 1rem;

}

/* Individual Gallery Item and Image Styling */
.gallery-item {
    position: relative;
    overflow: hidden;
    background: #c0c0c07b;
    padding: 2px;
    box-shadow: inset
    -1px -1px #ffffff,
     1px 1px #808080,
     -2px -2px #dfdfdf,
     2px 2px #0a0a0a;
}

.gallery-item img {
    width: 100%;
    height: 100%; /* Maintains the image's aspect ratio */
    object-fit: cover;
    display: block;
}


/* 1. Full-Screen Overlay (The Dimmer) */
/* 1. Full-Screen Overlay (The Dimmer) - Keep this for dimming and centering */
#lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Creates the dimming effect */
    background-color: rgba(0, 0, 0, 0.9); 
    
    /* Ensure it's above all page content */
    z-index: 1000;
    
    /* Center the content */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Start in a hidden state */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 2. Active State */
#lightbox-modal.is-open {
    opacity: 1;
    visibility: visible;
}

/* 3. Modal Content (The 98.css Window) */
.modal-content.window {
    /* Override 98.css max-width/height if necessary for responsiveness */
    max-width: 75vw;
    max-height: 75vh;
    
    /* Ensure the window content scales relative to the window element */
    display: flex;
    flex-direction: column; 
}

/* 4. Window Body (Image Container) */
.modal-content .window-body {
    /* Set padding/overflow specific to image view */
    padding: 10px;
    overflow-y: auto; /* Allows scrolling if the content is too tall */
    flex-grow: 1; /* Allows it to expand within the modal */
    
    /* Set min-height so the window isn't tiny when the image hasn't loaded */
    min-height: 50px; 
    
    /* Apply 98.css field-set or other decorative classes here if you want an inner border */
}

/* 5. The Image */
#lightbox-image {
    display: block;
    max-width: 60vw;
    max-height: 62vh; /* Image fills its container */
    object-fit: contain; 
    margin: 0 auto;
}

/* 6. Caption/Text */
#lightbox-caption {
    text-align: center;
    /* Optional: Style caption using 98.css text styles */
}

/* 7. Close Button Adjustments (Using 98.css button structure) */
/* The buttons are styled by 98.css, but we target the ID for focus consistency */
#close-modal:focus {
    /* Ensure a clear focus indicator despite 98.css styling */
    outline: 2px solid blue; 
}

.field-border {
    width: fit-content;
    height: fit-content;
}

/* The single, unified overlay for text */
/* Container for the overlay to ensure relative positioning */

/*
.overlay {
    position: absolute;
    top: 65%;
    left: 25%;
    bottom: 5%;
    right: 25%;
    width: 50%;
    height: 15%; 
    display: flex;
    flex-direction: column;
    justify-content: center; /* Changed to 'center' */
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    font-family: 'Press Start 2P', monospace;
    font-family: 'Lucida Console', 'Courier New', monospace;
    padding: 10px;
    box-sizing: border-box;
}/*

.overlay-text {
    color: var(--text-color-primary);
    text-align: center;
    padding: 0.5rem;
    font-size: var(--fluid-font-size);
    text-shadow: 1px 1px 0 #ccc;
    margin-bottom: 5px;
}

.overlay-text h2 {
    font-size: var(--fluid-font-size); /* Larger heading */
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 #000; /* Stronger shadow for heading */
}

/* Hover effect for the container */
/*
.portfolio-bin:hover .overlay {
    opacity: 1; /* Makes the overlay visible on hover */
    background-color: rgb(192, 192, 192); /* Slightly less transparent on hover */
}
/*
.portfolio-bin:hover .overlay-text {
    color: #000000; /* Darker text on hover */
    text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff; /* Enhanced text shadow on hover */
}

/* Hover effect */

/*
.gallery-item:hover .overlay {
    opacity: 1; /* Makes the overlay visible on hover */
}

/* Text animation on hover */
/*
.gallery-item:hover .overlay-text {
    transform: translateY(0); /* Moves the text into position */
}

/* This is the CSS Styling for the Portfolio sections */
        h1.title {
        margin-bottom: .5rem;
        margin-top: .25rem;
        text-align: center;
        display: block;
        }

        h1.title picture img {
            width: 85% !important;
            max-height: 65px;
            max-width: none !important;
            text-align: center;
            margin: auto;
            display: block;
        }
          
       .title-bar {
        margin: 0rem 0rem 0rem 0rem;
        z-index: 1000;
        width: 100%;
        position: sticky;
        top: 0;
       }

       .contact-title {
        text-align: center;
       }


        .film-section {
            background-color: #ffe502;
            margin: auto;
            border: 4px solid #ccc;
            z-index: 10;
            border-style: solid;
            border-left-color: #555;
            border-right-color: #fff;
            border-bottom-color: #fff;
            outline: 2px solid #c0c0c0;
            z-index: -100;
            margin: auto 1rem auto 1rem;
        }

        .film-section.minimized .film-content,
        .print-section.minimized .print-content,
        .SFX-section.minimized .sfx-content {
            display: none;
        }
        
        .film-section.maximized,
        .print-section.maximized, 
        .SFX-section.maximized {
            /* You can add special maximized styles here if needed */
        }

.film-section .sentinel {
  height: 1px;
  background: transparent;
}

      .film-section h2 {
    font-size: 3rem;
    padding: 0rem 0rem 0rem 0rem;
    margin: 0rem 0rem 0rem 0rem;
    z-index: 1;
    text-align: center;
    display: flex-center; /* This will help with letter spacing and alignment */
    opacity: 1;
    background-color: rgba(230, 237, 237, 0.557);
    border-bottom: solid 2px rgb(82,126,127);
      }

.film-section h2.visible,
.print-section h2.visible,
.SFX-section h2.visible {
  opacity: .7; /* Becomes fully opaque */
}

      .film-section h2 span {
    display: inline-block;
    padding: 0 5px; /* Adjust spacing as needed */
}

.film-letter-F {
    transform: rotate(-10deg);
}

.film-letter-I {
    transform: rotate(-8deg);
}

.film-letter-L {
    transform: rotate(2deg);
}

.film-letter-M {
    transform: rotate(-8deg);
}

.print-section {
            margin: auto;
    background-color: rgb(6, 254, 101);
            border: 4px solid #ccc;
            z-index: 10;
            border-style: solid;
            border-left-color: #555;
            border-right-color: #fff;
            border-bottom-color: #fff;
            outline: 2px solid #c0c0c0;
            z-index: -100;
            margin: auto 1rem auto 1rem;
        }

        .print-section h2 {
            font-size: 3rem;
            padding: 0rem .2rem 0rem 0rem;
            margin: 0rem 0rem -.5rem 0rem;
            z-index: 1;
            text-align: center;
            display: flex-center; /* This will help with letter spacing and alignment */
            opacity: 1;
            background-color: rgba(230, 237, 237, 0.557);
            border-bottom: solid 2px rgb(82,126,127);
        }

        .print-section h2 span {
            display: inline-block;
            padding: 0 5px; /* Adjust spacing as needed */
        }
        
        .print-letter-P {
            transform: rotate(10deg);
        }
        
        .print-letter-R {
            transform: rotate(-8deg);
        }
        
        .print-letter-I {
            transform: rotate(4deg);
        }
        
        .print-letter-N {
            transform: rotate(-8deg);
        }

        .print-letter-T {
            transform: rotate(-8deg);
        }

        .SFX-section {
            margin: auto;
            background-color: rgb(255, 99, 42);
            border: 4px solid #ccc;
            z-index: 10;
            border-style: solid;
            border-left-color: #555;
            border-right-color: #fff;
            border-bottom-color: #fff;
            outline: 2px solid #c0c0c0;
            z-index: -100;
            margin: auto 1rem auto 1rem;

        }

        .SFX-section h2 {
            font-size: 3rem;
            padding: 0rem .2rem 0rem 0rem;
            margin: 0rem 0rem -.5rem 0rem;
            z-index: 1;
            text-align: center;
            display: flex-center; /* This will help with letter spacing and alignment */
            opacity: 1;
            background-color: rgba(230, 237, 237, 0.557);
            border-bottom: solid 2px rgb(82,126,127);
        }

        .SFX-section h2 span {
            display: inline-block;
            padding: 0 5px; /* Adjust spacing as needed */
        }
        
        .SFX-letter-S {
            transform: rotate(-10deg);
        }
        
        .SFX-letter-F {
            transform: rotate(8deg);
        }
        
        .SFX-letter-X {
            transform: rotate(-6deg);
        }

        
        /* Carousel Container */
        .carousel-wrapper {
            margin-top: 0rem;
            padding-top: 1.5rem;

        }

        .carousel-container {
            position: relative;
            overflow-x: auto;
            width: 77vw; /* Use the same max-width as the carousel */
            margin: 0 auto; /* Corrects horizontal margin and centers the carousel */
            padding: 1rem 1rem .25rem 1rem; /* Adjusts padding for consistent spacing */
            flex: 10;
            background: #888;
            border-style: solid;
            border-top-color: #555;
            border-left-color: #555;
            border-right-color: #fff;
            border-bottom-color: #fff;
            background: #e6e6e6;
            outline: 2px solid #c0c0c0;
        }
          
          /* Added missing base scrollbar definitions required for buttons to appear */
          .carousel-container::-webkit-scrollbar {
            height: 17px; /* Height for horizontal scrollbar */
            background-color: #c0c0c0;
          }
          
          .carousel-container::-webkit-scrollbar-track {
            background-color: #c0c0c0;
            border: 1px solid #888;
          }
          
          .carousel-container::-webkit-scrollbar-thumb {
            background-color: #c0c0c0;
            border: 1px outset #c0c0c0;
            border-top-color: #fff;
            border-left-color: #fff;
            border-right-color: #888;
            border-bottom-color: #888;
          }
          
          .carousel-container::-webkit-scrollbar-thumb:hover {
            background-color: #d4d4d4;
          }
          
          .carousel-container::-webkit-scrollbar-button {
            width: 17px; /* Made width match scrollbar height */
            height: 17px;
            background-color: #c0c0c0;
            border: 1px outset #c0c0c0;
            border-top-color: #fff;
            border-left-color: #fff;
            border-right-color: #888;
            border-bottom-color: #888;
            display: block; /* Explicitly show buttons */
          }
          
          /* Added hover state for buttons */
          .carousel-container::-webkit-scrollbar-button:hover {
            background-color: #d4d4d4;
          }
          
          /* Added active/pressed state for buttons */
          .carousel-container::-webkit-scrollbar-button:active {
            border: 1px inset #c0c0c0;
            border-top-color: #888;
            border-left-color: #888;
            border-right-color: #fff;
            border-bottom-color: #fff;
          }
          
          /* Hide unwanted button directions to prevent duplicates */
          /* Hide increment (right arrow) button on the left side */
          .carousel-container::-webkit-scrollbar-button:start:increment:horizontal {
            display: none;
          }
          
          /* Hide decrement (left arrow) button on the right side */
          .carousel-container::-webkit-scrollbar-button:end:decrement:horizontal {
            display: none;
          }
          
          /* Horizontal scrollbar arrows */
          .carousel-container::-webkit-scrollbar-button:start:decrement:horizontal {
            background-image: url("data:image/svg+xml,%3Csvg transform='rotate(180)' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6.86 6.86'%3E%3Cpath fill='%231d1d1b' d='M4.41 2.94v-.98h-.98V.98h-.98V0h-.98V6.86h.98v-.98h.98V4.9h.98v-.98h.98v-.98h-.98z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: center;
            background-size: 8px; /* Slightly larger arrow for better visibility */
          }
          
          .carousel-container::-webkit-scrollbar-button:end:increment:horizontal {
            background-image: url("data:image/svg+xml,%3Csvg transform='rotate(0)' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6.86 6.86'%3E%3Cpath fill='%231d1d1b' d='M4.41 2.94v-.98h-.98V.98h-.98V0h-.98V6.86h.98v-.98h.98V4.9h.98v-.98h.98v-.98h-.98z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: center;
            background-size: 8px; /* Slightly larger arrow for better visibility */
          }
          
          /* Hide vertical arrows, as the carousel is horizontal */
          .carousel-container::-webkit-scrollbar-button:vertical {
            display: none;
          }
          

        .carousel-track {
            display: inline-flex;
            transition: transform 0.5s ease-in-out;
            gap: 0rem;
            padding-right: 0rem;
            min-width: 100%;
            
        }
        
        .carousel-track.dragging {
            cursor: grabbing;
            transition: none;
        }

        .carousel-item {
            flex-shrink: 0;
            display: flex;
            flex-direction: column; /* Adjusted: Use column layout */
            align-items: center;
            padding: 0rem;
            white-space: normal; /* Allow text to wrap inside item */
        }
        
        .carousel-item img {
            max-width: 756px;
            min-height: 400px;
            max-height: 400px; /* New: Set a max height for vertical images */
            width: auto;
            height: auto;
            display: block;
            border: 2px solid #000000;
            object-fit: cover; 
        }

        .carousel-item img.is-portrait {
        object-fit: cover;
         aspect-ratio: 67/100;
         border-color: 2px black;
        }
        
        .carousel-item p {
            margin: 0;
            font-size: 0.9rem;
        }
        
        .carousel-buttons {
            display:flex;
            justify-content: center;
            margin: auto auto;
            gap: 0rem;
            width: 77vw; /* Use the same max-width as the carousel */
            margin: auto; /* New: Centers the buttons */        }

        .carousel-nav {
            font-size: medium;
            align-items: center;
            justify-content: center;
            background: var(--c-background-button-netscape);
            border-color: var(--color-gallery) var(--color-cod-gray) var(--color-cod-gray) var(--color-gallery);
            border-radius: 0;
            border-width: 0px;
            cursor: pointer;
            display: flex;
            font-family: "Times New Roman";
            font-weight: 700;
            min-height: 0px;
            min-width: 0px;
            padding: 2px 0px 2px 0px;
            position: relative;
            white-space: nowrap;
          
          /* Zoom */
            :hover,
            :focus {
                outline: 1px dotted var(--c-link);
            }
        
            &:active {
                border-color: var(--color-cod-gray) transparent transparent var(--color-cod-gray);
            padding: 4px 2px 0px 4px;
            }
        

        }

        .visually-hidden {
            position: absolute !important;
            width: 1px !important;
            height: 1px !important;
            padding: 0 !important;
            margin: -1px !important; /* Move it off-screen */
            overflow: hidden !important;
            clip: rect(1px, 1px, 1px, 1px) !important; /* Clip the content to 1x1 pixel */
            white-space: nowrap !important; /* Prevent text wrapping */
            border: 0 !important;
        }

        .project-details {
            width: 77vw; /* Use the same max-width as the carousel */
            margin: 0 auto 1rem; /* Corrects horizontal margin and centers the details */
            text-align: center;
            line-height: 1.5;
            background: #888;
            border-style: solid;
            border-top-color: #555;
            border-left-color: #555;
            border-right-color: #fff;
            border-bottom-color: #fff;
            background: #e6e6e6;
            outline: 2px solid #c0c0c0;
        }

        .project-title {
            background-color: var(--border-color-bio);
            color: var(--text-color-primary);
            text-decoration: none;
            font-weight: bold;
            display: block;
            padding-bottom: .2rem;
            transition: all 0.1s ease-in-out;
            border-style: solid;
            border-width: 2px;
            border-top-color: #fff;
            border-left-color: #fff;
            border-right-color: #555;
            border-bottom-color: #555;
            box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.)
        }

        .project-title.no-link {
            cursor: default; /* Change cursor from a hand pointer */
            text-decoration: none; /* In case the <a> had an underline */
            /* Add the text you need */
            border: none;
        }

        .project-credit {
            margin: .1rem 0rem .1rem 0rem;

        }

        .project-role {
            border-top: 2px dotted #000;
            font-style: italic;
        }

            .contact-field-border-disabled {
      display: hidden;
      margin-top: -1.2rem;
    }
/*
  Media Queries for larger screens (e.g., Tablets and Desktops)
  The styles inside these blocks will only apply when the screen is wide enough.
*/

/* Styles for screens wider than 768px (common for tablets) */
@media screen and (min-width: 768px) {
   
    html {
        background-color: rgba(85, 123, 125, 0.649);
        z-index: 100000000;
    }

    body {
        max-width: 1000px; /* Constrains the max width of the body for very large screens */
        margin: auto;
        border: 2px dashed #c0c0c0;
        position: relative;
        min-height: fit-content;
        min-width: 500px;
        padding: 2rem;
    }
    .corner-triangle {
        position: absolute;
        width: var(--triangle-size); /* Now a square, not 0 width */
        height: var(--triangle-size); /* Now a square, not 0 height */
        z-index: 10;
        --triangle-size: 50px; /* Keep the size variable */
        
        /* ADD THE STRIPED BACKGROUND */
        background-image: repeating-linear-gradient(
            135deg,           /* Angle of the stripes */
            #525634,         /* First color (light pink) */
            #e5caca 5px,     /* First color stops at 5px */
            #d1b8b8 5px,     /* Second color (darker pink) starts at 5px */
            #d1b8b8 10px     /* Second color stops at 10px (Total stripe width is 10px) */
        );
    }

    .corner-triangle-top-left {
        top: 0;
        left: 0;
        /* Use clip-path to cut the square into a top-left triangle */
        clip-path: polygon(0 0, 100% 0, 0 100%);
    }
    .corner-triangle-top-right {
        top: 0;
        right: 0;
        /* Use clip-path to cut the square into a top-right triangle */
        clip-path: polygon(100% 0, 100% 100%, 0 0);
    }
    
    /* --- Bottom-Left Triangle --- */
    .corner-triangle-bottom-left {
        bottom: 0;
        left: 0;
        /* Use clip-path to cut the square into a bottom-left triangle */
        clip-path: polygon(0 100%, 100% 100%, 0 0);
    }
    
    /* --- Bottom-Right Triangle --- */
    .corner-triangle-bottom-right {
        bottom: 0;
        right: 0;
        /* Use clip-path to cut the square into a bottom-right triangle */
        clip-path: polygon(100% 100%, 0 100%, 100% 0);
    }

    header {
        display: flex; /* Aligns header items horizontally */
        margin: 0rem auto 2rem auto;
        width: 75%;
        align-items: center;
        background-color: #51534f5b;
        z-index: -1000;
        border: 1px solid;
        border-top: none;
        box-shadow: inset
        -1px -1px #ffffff,
         1px 1px #808080,
         -2px -2px #dfdfdf,
         2px 2px #0a0a0a;
    }

    .field-border-disabled {
        background: #c0c0c07b;
        padding: 25px;
        box-shadow: inset
        -1px -1px #ffffff,
         1px 1px #808080,
         -2px -2px #dfdfdf,
         2px 2px #0a0a0a;
        width: 70cqw;
        max-width: 900px;
    }

    .contact-field-border-disabled {
        background: #c0c0c07b;
        padding: 2px;
        margin: 1rem 4rem auto 4rem;
        box-shadow: inset
        -1px -1px #ffffff,
         1px 1px #808080,
         -2px -2px #dfdfdf,
         2px 2px #0a0a0a;
         min-width: 600px;
    }
    
    .logo img {
        margin-bottom: -0; /* Removes bottom margin */
        max-width: 500px; /* Increases logo size for desktop */
        height: auto;
        width: auto;
        margin-bottom:;
        z-index: 100;
    }

    .menu ul {
        flex-direction: row; /* Changes menu items back to horizontal */
    }

    .menu li {
        margin: -1.5rem .25rem 0rem 0rem ; /* Adjusts margin for horizontal spacing */
    }

    .menu a {
        padding: .75rem 1.25rem .75rem 1.5rem;
        z-index: -100;
    }

    .vertical-header-decoration {
        /* Revised: Change width to % to fit the header container */
        background-image: url("assets/homepage/ocean.gif");
        width: 70cqw;
        max-width: 900px;
        height: 5px;
        /* Move it below the header using a top margin */
        margin: 0rem 0rem 1rem 0rem;
    }
    .vertical-header-decoration-2 {
        rotate:calc(180deg);
        background-image: url("assets/homepage/ocean.gif");
        width: 70cqw;
        max-width: 900px;
        height: 5px;
        margin: 1rem 0rem 0rem 0rem;
    }

    footer {
        width: 80%;
        font-size: medium;
    }

    .title picture img {
        width: 60% !important;
        max-height: 75px;
        max-width: none !important;
    }

        .contact-title {
        margin-bottom: .5rem;
        margin-top: .25rem;
        text-align: center;
        }
    
        .contact-title picture img {
            width: 85% !important;
            max-height: 55px;
            max-width: none !important;
        }

    img.corner-image {
        position: absolute;
        width: 6vw; /* Adjust to suit your design */
        height: 6vw; /* Adjust to suit your design */
        object-fit: contain;
        z-index: 0; /* Ensures images are behind the text */
    }

    main {
        max-width: 1200px;
        margin: auto; /* Centers the main content */
        display: flex; /* Enables flexbox for the main container */
        flex-direction: column; /* Stacks the top row and bottom box vertically */
        align-items: center; /* Centers everything horizontally within the main container */
    }

    .top-row {
        display: flex; /* Makes the top row a flex container */
        justify-content: ; /* Centers the two bio cards */
        gap: 0rem; /* Adds space between the two bio cards */
        margin-bottom: 0rem; /* Adds space between the top and bottom sections */
        margin-top: 0rem;
        align-items: center;
        width: max-content;
    }
    
    .business-card{
        display: block;
        width: 40vw;
        height:14vw;
        object-fit: contain;
        margin: 0rem 0rem 0rem 0rem;
        filter: grayscale(70%);
    }

    .bio-card {
        width: auto /* Each card takes up almost half the space */
        padding: 0rem;
        margin: auto;
        align-self: flex-start;
        position: relative;
        min-width: 250px;
        max-width: 600px;
    }

    .jspaint {
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 240px;

    }
    
 

    .bio-text {
    padding: 0rem 2.5rem 0rem 2.5rem; /* Adjust padding to separate text from images */
    text-align: center ; /* Justifies the text */
    line-height: 1.25;
    z-index: 1; /* Ensures the text stays above the images if they overlap */
    }

    .bio-card-2 {
        width: 45vw;
        height: 10vw;
        margin: 0rem 0rem 0rem 3rem;
        scale: 
    }   

.portfolio-bins-container {
    padding: 2rem;
    width: 100%;
    grid-template-columns: repeat(1, 1fr); /* Creates a 2-column grid */
    gap: 1rem; /* Increases space between bins */
}


    .bin-text {
        font-size: xx-large;
        padding: 1rem;
    }

.gallery-section {
    width: 83vw;
    max-width: 83vw;
    padding: 0rem 0rem 0rem 0rem;
    margin: auto;
    border: 6px solid #ccc;
    border-style: solid;
    border-top-color: #555;
    border-left-color: #555;
    border-right-color: #fff;
    border-bottom-color: #fff;
    outline: 2px solid #c0c0c0;
}

.gallery-section h2 {
    font-size: 2rem;
    border-bottom: 6px solid #ccc;
    background-color: #9515152e;
    position: sticky;
    top: 0;
    margin: 0rem 0rem 0rem 0rem;
    z-index: 100;
    width: auto;
    }

.gallery-container {
    grid-template-columns: repeat(2, 1fr); /* Creates a 3-column grid */
    max-width: 700px; /* Increases max width */
    padding: 1rem 1rem 1rem 1rem;
}

.gallery-item {
    object-fit: fill;
    margin: .5rem;
    }

.gallery-item img {
    object-fit: fill;
}



/* This is the CSS Styling for the Portfolio sections */

.title-bar {
    font-size: medium;
    padding: .3rem;
    margin: 0rem 0rem 0rem 0rem;
    z-index: 1000;
    width: 100.2%;
    position: sticky;
    top: 0;
   }

.film-section, .print-section, .SFX-section {
    padding: 0rem 0rem 0rem 0rem;
    border: 6px solid #ccc;
    border-style: solid;
    border-top-color: #555;
    border-left-color: #555;
    border-right-color: #fff;
    border-bottom-color: #fff;
    outline: 2px solid #c0c0c0;
    margin: auto;
    max-width: 83vw;
}
    .film-section h2 {

    }
    .print-section {
        margin: auto;
        width: 83vw;
    }
   .print-section h2 {

   }
    .SFX-section {
        margin: auto;
        width: 83vw;
    }

   .SFX-section h2 {

     }
  
     .carousel-container {
        max-width: 550px; /* Expands the carousel container */
        margin: 0 auto; /* Centers the carousel */
        padding: 1rem 1rem .5rem 1rem;
    }

    .carousel-nav {
        margin: auto;
     }

     .carousel-buttons {
        width: 552px;
        margin: auto;
        }

    .project-details {
    max-width: 550PX;
      }
    }

/* Media query for screens wider than 1200px (desktops) */
@media screen and (min-width: 1200px) {

    html {
        background-color: rgba(85, 123, 125, 0.649);
        z-index: 100000000;
        margin: 0;
        padding: 0;

    }

    h4 {
        font-size: ;
    }

    /* Body and General Layout */
    
    body {
        max-width: 1400px; 
        margin: auto auto;
        border: 2px dashed #c0c0c0;
        position: relative;
        min-width: 1000px;
        max-height: fit-content;
        min-height: fit-content;
    }

    .corner-triangle {
        position: absolute;
        width: var(--triangle-size); /* Now a square, not 0 width */
        height: var(--triangle-size); /* Now a square, not 0 height */
        z-index: 10;
        --triangle-size: 90px; /* Keep the size variable */
        
        /* ADD THE STRIPED BACKGROUND */
        background-image: repeating-linear-gradient(
            135deg,           /* Angle of the stripes */
            #525634,         /* First color (light pink) */
            #e5caca 5px,     /* First color stops at 5px */
            #d1b8b8 5px,     /* Second color (darker pink) starts at 5px */
            #d1b8b8 10px     /* Second color stops at 10px (Total stripe width is 10px) */
        );
    }

    .corner-triangle-top-left {
        top: 0;
        left: 0;
        /* Use clip-path to cut the square into a top-left triangle */
        clip-path: polygon(0 0, 100% 0, 0 100%);
    }
    .corner-triangle-top-right {
        top: 0;
        right: 0;
        /* Use clip-path to cut the square into a top-right triangle */
        clip-path: polygon(100% 0, 100% 100%, 0 0);
    }
    
    /* --- Bottom-Left Triangle --- */
    .corner-triangle-bottom-left {
        bottom: 0;
        left: 0;
        /* Use clip-path to cut the square into a bottom-left triangle */
        clip-path: polygon(0 100%, 100% 100%, 0 0);
    }
    
    /* --- Bottom-Right Triangle --- */
    .corner-triangle-bottom-right {
        bottom: 0;
        right: 0;
        /* Use clip-path to cut the square into a bottom-right triangle */
        clip-path: polygon(100% 100%, 0 100%, 100% 0);
    }
    
    .field-border-disabled {
        background: #c0c0c07b;
        padding: 40px;
        box-shadow: inset
        -1px -1px #ffffff,
         1px 1px #808080,
         -2px -2px #dfdfdf,
         2px 2px #0a0a0a;
         max-width: 1095px;   
         min-height: 40vh;
    }

    .contact-field-border-disabled {
        background: #c0c0c07b;
        padding: 2px;
        padding-top: 0px;
        margin: 0rem auto 0rem auto;
        box-shadow: inset
        -1px -1px #ffffff,
         1px 1px #808080,
         -2px -2px #dfdfdf,
         2px 2px #0a0a0a;
         max-width: 650px;
    }

    /* Header */

    header {
        width: 45%; 
        display: center; 
        align-items: center; 
        padding-left: 3rem;
        margin: 1rem auto;
        height: auto; 
        border: none;
        background-color: ;
        border: 1px solid;
        border-top: none;
        box-shadow: inset
        -1px -1px #ffffff,
         1px 1px #808080,
         -2px -2px #dfdfdf,
         2px 2px #0a0a0a;
    }
    
    .logo {
        background-color: none;
        flex-grow: 1; 
    }

    .logo img {
        max-width: 400px; /* Increases logo size for desktop */
    }

    .menu {
        /* Revised: Ensure menu only takes up the space it needs */
        width: auto;
    }

    .menu ul {
        /* Revised: Remove all fixed/negative margins and background color */
        display: flex; /* Makes the ul a horizontal flex container */
        flex-direction: row; 
        margin: -3.5rem 6rem -2rem 0rem;
        padding: 0;
        background-color: transparent; /* Changed from #51534f5b */
    }

    .menu li {
        /* No change needed for li spacing */
        margin: 0 0.1rem 0 0.1rem; /* Added small horizontal spacing */
        width: auto; 
        padding: 0;
    }

    .menu a {
        /* Keep padding for link click area */
        padding: 0.5rem .9rem; /* Reduced vertical padding slightly */
    }

    /* Vertical Header Decoration - Adjusted to fit the new layout */
    .vertical-header-decoration {
        /* Revised: Change width to % to fit the header container */
        background-image: url("assets/homepage/ocean.gif");
        max-width: 650px;
        min-width: 55vw;
        max-width: 1050px;
        height: 5px;
        /* Move it below the header using a top margin */
        margin: 0rem 0rem 1rem 0rem;
    }

    .vertical-header-decoration-2 {
        /* Revised: Change width to % to fit the header container */
        background-image: url("assets/homepage/ocean.gif");
        max-width: 650px;
        min-width: 55vw;
        max-width: 1050px;
        height: 5px;
        /* Move it below the header using a top margin */
        margin: 1rem 0rem 0rem 0rem;
    }


    /* Title section (if still needed, ensure it's outside the header or positioned correctly) */
    h1.title {
        margin-bottom: 0.5rem;
        margin-top: 0.5rem;
        text-align: center;
    }
        h1.title picture img {
            width: 55% !important;
            max-height: 75px;
            max-width: none !important;
        }

    .contact-title {
        margin-bottom: .5rem;
        margin-top: .25rem;
        text-align: center;
        }
    
        .contact-title picture img {
            width: 105% !important;
            max-height: 55px;
            max-width: none !important;
        }

    /* Main Content and Bio */
    main {
        max-width: 1000px;
        max-height: 1000px;
        margin: 0 auto; /* Centers the main content */
        display: flex; /* Enables flexbox for the main container */
        flex-direction: column; /* Stacks the top row and bottom box vertically */
        align-items: center; /* Centers everything horizontally within the main container */
    }
    
    .business-card{
        display: block;
        width: 10vw;
        height:14vw;
        object-fit: contain;
        margin: 0rem 0rem 0rem 0rem;
        filter: grayscale(70%);
    }

    .top-row {
        display: flex; /* Makes the top row a flex container */
        justify-content: ; /* Centers the two bio cards */
        gap: 0rem; /* Adds space between the two bio cards */
        margin-bottom: 0rem; /* Adds space between the top and bottom sections */
        margin-top: 0rem;
        align-items: center;
        width: max-content;
    }

    .corner-image {
    position: absolute;
    width: 1vw; /* Adjust to suit your design */
    height: 11vw; /* Adjust to suit your design */
    object-fit: contain;
    z-index: 0; /* Ensures images are behind the text */
}
    
.bio-card {
    padding: 0rem;
    margin: auto;
    align-self: flex-start;
    min-width: 35vw;
    height: 28vh;
}

.jspaint {
    position: relative;
    height: 100%;
    width: 100%;
    max-height: 22vh;
    }
    
    .bio-card-2 {
        width: 35vw;
        height: 10vw;
        margin: 0rem 3rem 0rem 0rem;
        scale: ;
    }

    .bio-card img {
        width: 4vw;
        height:3vw;
        object-fit: contain;
        margin: 0rem 0rem 0rem 0rem;
    }

    
    .bio-content {
        margin: .5rem 1rem .5rem 1rem;
    }
    
    .bio-text {
       margin: 0rem 1rem 0rem 1rem;
    }
    
    .corner-image {

    }

    .work-sample-card {
        width:95%; /* Let the work sample card be wider to fill the space */
        padding: 0rem;
        margin: 2rem auto 1rem auto;
    }

    .bin-text {
        text-align: center;
        padding: 1rem;
    }

    /* Footer */
    footer {
        flex-direction:column; /* Aligns footer sections horizontally */
        justify-content: space-around; /* Distributes space evenly */
        width: 50%; /* Ensures the footer spans the full width of the body container */
    }
    
    .footer-top, .footer-middle, .footer-bottom {
        width: 100%; /* Gives each footer section a third of the space */
    }

    /* Carousel */

.film-section {
    max-width: 50vw;
}

    .film-section, .print-section, .SFX-section {
        padding: 0rem 0rem 0rem 0rem;
        border: 6px solid #ccc;
        border-style: solid;
        border-top-color: #555;
        border-left-color: #555;
        border-right-color: #fff;
        border-bottom-color: #fff;
        outline: 2px solid #c0c0c0;
        margin: auto;
        max-width: 50vw;
    }

    .film-section h2, .print-section h2, .SFX-section h2{
        font-size: 3rem;
        z-index: 1;
        margin: auto;
    }
    .carousel-wrapper{
        margin-top: .5rem;
        border: none;
    }

    .carousel-container {
        max-height: 500px;
        max-width: 45vw; /* Expands the carousel container */
        margin: 0 auto; /* Centers the carousel */
        padding: 1rem 1rem .5rem 1rem;
    }
    
    .carousel-item img {
        max-width: 1000px; /* Increases max image width */
        min-height: 400px;
        max-height: 400px; /* Adjusts image height for desktop */
    }

    .carousel-buttons {
        min-width: 45vw; /* Use the same max-width as the carousel */
        max-width: 45vw; /* New: Matches the other elements */
        margin: 0 auto; /* New: Centers the buttons */
        height: 20px;
        padding: 0;
        gap: rem; /* Note: 'rem' needs a value, e.g., '1rem' */
    }

    .carousel-nav {
      margin: auto;

      /* Zoom */
        :hover,
        :focus {
            outline: 1px dotted var(--c-link);
        }
    
        &:active {
            border-color: var(--color-cod-gray) transparent transparent var(--color-cod-gray);
        padding: 4px 2px 0px 4px;
        }
    

    }

     .project-details {
        max-width: 45vw; /* Use the same max-width as the carousel */
        margin: 0rem auto 1rem auto; /* Center the project details */
        text-align: center;
        line-height: 1.5;
        border: 2px solid;
        background-color: var();
    }

    /* Gallery */
    .gallery-section {
        margin: auto;
        padding: 0rem 0rem 0rem 0rem;
        max-width: 950px;
    }

    .gallery-section h2 {
        font-size: 2rem;
        border-bottom: 6px solid #ccc;
        background-color: #9515152e;
        position: sticky;
        top: 0;
        margin: 0rem 0rem 0rem 0rem;
        z-index: 100;
        width: auto;
        }

    .gallery-container {
        grid-template-columns: repeat(2, 1fr); /* Creates a 3-column grid */
        max-width: 850px; /* Increases max width */
        padding: 2rem 2rem 2rem 2rem;
        background-color: ;
    }
    
    .gallery-item {
        object-fit: fill;
        margin: .5rem;
        }

    .gallery-item img {
        object-fit: fill;
    }

    /* Portfolio Bins */
    .portfolio-bins-container {
        padding: 2rem 2rem 2rem 2rem;
        width: 100%;
        grid-template-columns: repeat(1, 1fr); /* Creates a 2-column grid */
        gap: 1rem; /* Increases space between bins */
    }
}

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


.bio-card {
    padding: 0rem;
    margin: auto;
    align-self: flex-start;
    min-width: 35vw;
    height: 26vh;
}

.jspaint {
    position: relative;
    height: 100%;
    width: 100%;
    max-height: 22vh !important;
}

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

    html {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

  /* Body and General Layout */
  body {
    max-width: 1800px; /* New max width */
    margin: auto auto; 
    border: 4px dashed #c0c0c0; /* Increased border size */
}

/* Main Content */
main {
    /* Set main to full body width for better use of space */
    max-width: 100%; 
    /* Removed max-height/min properties to allow content to flow */
    margin: 0 auto; 
    padding: 0rem 0; /* Add padding for internal vertical spacing */
}

header {
    width: 33%; 
     padding-left: 1rem;
    margin: 1rem auto;
    }

    .logo {
        background-color: none;
        flex-grow: 1; 
    }

    .logo img {
        max-width: 450px; /* Increases logo size for desktop */
    }

    .menu {
        /* Revised: Ensure menu only takes up the space it needs */
        width: auto;
    }

    .menu ul {
        /* Revised: Remove all fixed/negative margins and background color */
        display: flex; /* Makes the ul a horizontal flex container */
        flex-direction: row; 
        margin: -3.5rem 6rem -2rem 0rem;
        padding: 0;
        background-color: transparent; /* Changed from #51534f5b */
    }

    .menu li {
        /* No change needed for li spacing */
        margin: 0 0.1rem 0 0.1rem; /* Added small horizontal spacing */
        width: auto; 
        padding: 0;
    }

    .menu a {
        font-size: larger;
        /* Keep padding for link click area */
        padding: 0.5rem .9rem; /* Reduced vertical padding slightly */
    }

.vertical-header-decoration {
    /* Revised: Change width to % to fit the header container */
    background-image: url("assets/homepage/ocean.gif");
    min-width: 49vw;
    max-width: 1050px;    height: 5px;
    /* Move it below the header using a top margin */
    margin: 0rem 0rem 1rem 0rem;
}
.vertical-header-decoration-2 {
    rotate:calc(180deg);
    background-image: url("assets/homepage/ocean.gif");
    min-width: 49vw;
    max-width: 1050px;
    height: 5px;
    margin: 1rem 0rem 0rem 0rem;
}

/* Titles */
.title,
h1.contact-title {
    margin-bottom: 1rem;
    margin-top: 1rem;
    text-align: center;
    display: block;
    }

    h1.title picture img {
        width: 45% !important; /* Slightly smaller title image */
        max-height: 80px; /* Slightly taller */
        max-width: none !important;
    }

.contact-title picture img {
    width: 60% !important; /* Smaller contact title image */
    max-height: 80px;
    max-width: none !important;
    display: block;
    margin: auto;
}

.field-border-disabled {
    min-width: 49vw;
     max-width: 1050px;
     min-height: 40vh;
     margin: auto;
     padding-top: 40px;
     padding-bottom: 40px;
}

.bio-card {
    padding: 0rem;
    margin: auto;
    align-self: flex-start;
    min-width: 35vw;
    max-height: 24vh;
}

.jspaint {
    position: relative;
    height: 100%;
    width: 100%;
    max-height: 26vh;
}

/* Top Bio Row */
.top-row {
    justify-content: center;
    gap: 0rem; /* Increased gap for visual space */
    margin: AUTO;
    margin-bottom: 2.5rem; 
    margin-top: 2.5rem;
    width: 100%;
    max-width: 1300px; 
}

/* Bio Card */
.bio-card {
        /* Adjusted height for more content space */
        width: 100%; 
        height: 28vh;
        min-width: 30vw;
    }

.bio-card-2 {
   min-width: 22vw;
    min-height: 15vw;
}

.bio-text {
    font-size: 1.6rem; /* Use a fixed size for better readability */
    line-height: 1.5;
    margin: -1.9rem;
}

.bio-content {
    margin: 5.5rem 1rem 1rem 1rem;
    padding: auto;
}

/* Corner Image (Within Bio Cards) */
img.corner-image {
    position: absolute;
    width: 3vw; /* Slightly smaller image */
    height: 3vw; 
    object-fit: contain;
    z-index: 0; 
    margin: -5.5rem -.5rem -7rem -.5rem;
}


/* Work Sample Card (Carousel Wrapper) */
.work-sample-card {
    margin: 2rem auto 0rem auto; 
    width: 80%; /* Increased width to fill the space */
    max-width: 1600px; /* Allows it to be very wide */
}

.portfolio-bins-container {
    padding: 2.5rem 2.5rem 2.5rem 2.5rem;
    width: 100%;
    grid-template-columns: repeat(1, 1fr); /* Creates a 2-column grid */
    gap: 1rem; /* Increases space between bins */
}


    .bin-text {
        font-size: xxx-large;
        padding: 2.5rem;
}

.card-title {
    font-size: larger;
}

/* Footer */
footer {
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Set width to align with constrained main content or adjust */
    width: 50%; 
    max-width: 1000px;
    margin: 2rem auto; /* Clean, centered margins */
    text-align: center;
    border: 2px solid #ccc; 
}

    .portfolio-bins-container {
        padding: 2rem 2rem 2rem 2rem;
        width: 100%;
        grid-template-columns: repeat(1, 1fr); /* Creates a 2-column grid */
        gap: 1rem; /* Increases space between bins */
    }
}
/* SCROLLBAR STYLING */

  
 
  /* Styles for the scrollbar track (the background behind the thumb) */
  ::-webkit-scrollbar-track {
    background-blend-mode: normal, difference, normal;
    background-size: 2px 2px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)), linear-gradient(to right, black 50%, white 50%), linear-gradient(to bottom, black 50%, white 50%);
  }
  
  /* Styles for the scrollbar buttons */
  ::-webkit-scrollbar-button {
    background-color: #c0c0c0;
    border-width: 1px;
    border-style: solid;
    border-color: #373737;
    border-top-color: #c0c0c0;
    border-left-color: #c0c0c0;
    box-shadow: inset 1px 1px #fff, inset -1px -1px #888;
  }
  
  /* Styles for the scrollbar buttons' active and direction states */
  ::-webkit-scrollbar-button:start:decrement,
  ::-webkit-scrollbar-button:end:increment {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 6px;

  }
  
  ::-webkit-scrollbar-button:start:decrement:active,
  ::-webkit-scrollbar-button:end:increment:active {
    border: 1px solid #888;
    box-shadow: none;
    background-position: 3.2px 3.2px;
  }
  
  /* Horizontal scrollbar arrows */
  ::-webkit-scrollbar-button:start:decrement:horizontal:decrement {
    background-image: url("data:image/svg+xml,%3Csvg transform='rotate(180)' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6.86 6.86'%3E%3Cpath fill='%231d1d1b' d='M4.41 2.94v-.98h-.98V.98h-.98V0h-.98V6.86h.98v-.98h.98V4.9h.98v-.98h.98v-.98h-.98z'/%3E%3C/svg%3E");
  }
  
  ::-webkit-scrollbar-button:end:increment:horizontal:increment {
    background-image: url("data:image/svg+xml,%3Csvg transform='rotate(0)' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6.86 6.86'%3E%3Cpath fill='%231d1d1b' d='M4.41 2.94v-.98h-.98V.98h-.98V0h-.98V6.86h.98v-.98h.98V4.9h.98v-.98h.98v-.98h-.98z'/%3E%3C/svg%3E");
  }
  
  /* Vertical scrollbar arrows */
  ::-webkit-scrollbar-button:start:decrement:vertical:decrement {
    background-image: url("data:image/svg+xml,%3Csvg transform='rotate(270)' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6.86 6.86'%3E%3Cpath fill='%231d1d1b' d='M4.41 2.94v-.98h-.98V.98h-.98V0h-.98V6.86h.98v-.98h.98V4.9h.98v-.98h.98v-.98h-.98z'/%3E%3C/svg%3E");
  }
  
  ::-webkit-scrollbar-button:end:increment:vertical:increment {
    background-image: url("data:image/svg+xml,%3Csvg transform='rotate(90)' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6.86 6.86'%3E%3Cpath fill='%231d1d1b' d='M4.41 2.94v-.98h-.98V.98h-.98V0h-.98V6.86h.98v-.98h.98V4.9h.98v-.98h.98v-.98h-.98z'/%3E%3C/svg%3E");
  }