/* Oldgallery responsive styles */
.oldgallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.oldgallery img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

@media (max-width: 700px) {
    .oldgallery {
        flex-direction: column;
        align-items: center;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        padding: 0;
    }
    .oldgallery img {
        width: 100vw !important;
        min-width: 100vw;
        max-width: 100vw;
        height: auto !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-sizing: border-box;
        display: block;
    }
}
/* Sidebar toggle button styles */

.sidebar-toggle {
    display: none !important;
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 1200;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    font-size: 2.2rem;
    padding: 6px 16px 8px 16px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: background 0.2s;
}

.sidebar-toggle:focus {
    outline: 2px solid #333;
}

@media (max-width: 900px) {
    .main-nav {
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding-left: 0.2rem;
    }
    .main-nav.hide-nav {
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 200px;
        box-shadow: 2px 0 12px rgba(0,0,0,0.08);
        background: #fff;
        z-index: 2001;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    .sidebar.visible {
        transform: translateX(0);
    }
    .sidebar-toggle {
        display: block !important;
        position: static;
        margin-left: 0;
        z-index: 2100;
        order: -1;         /* Place hamburger first in flex row */
    }
    /* Remove blur when sidebar is open, since nav will be hidden */
    .sidebar.visible ~ main,
    .sidebar.visible ~ .main-nav {
        filter: none;
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -200px;
        height: 100vh;
        z-index: 1100;
    }
    .sidebar.visible {
        left: 0;
    }
}
.work-gallery {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0;
    box-sizing: border-box;
    display: block;
}

.work-item {
    width: 32%;
    margin-bottom: 16px;
    display: inline-block;
    vertical-align: top;
}

.work-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transition: transform 0.2s;
}
/* Hero header fade-in */
.hero-header {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.23, 1, 0.32, 1), transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}
.hero-header.visible {
    opacity: 1;
    transform: none;
}
/* Fade-in effect for sections */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: opacity, transform;
}

html {
    scroll-behavior: smooth;
}

.fade-in-section.visible {
    opacity: 1;
    transform: none;
}
body {
    font-family: 'Montserrat', 'Montserrat Alternates', Arial, sans-serif;
    margin: 0;
    background: #f8f8f8;
    color: #111;
    font-size: 1.35rem;
}


.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 160px;
    background: #fff;
    padding: 20px 0 20px 0;
    border-right: 1px solid #eee;
    z-index: 200;
    transition: left 0.6s ease; /* smooth animation */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.sidebar.visible {
    left: 0; /* slides into place */
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 80px 0 0 0; /* Push below main nav */
    display: block;
}

.sidebar li a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    border-radius: 6px;
    transition: background-color 0.2s;
    font-family: 'Montserrat Alternates', 'Montserrat', Arial, sans-serif;
    font-weight: 700;
}

.sidebar li a:hover {
    background-color: #f0f0f0;
}



.hero-header {
    position: relative;
    width: 100%;
    height: 95vh;
    background: url('images/heroheader.jpg') center center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(34, 34, 34, 0.199);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hero-header h1 {
    color: #fff;
    font-size: 4.5rem;
    letter-spacing: 4px;
    z-index: 2;
    margin: 0;
    text-shadow: 0 2px 16px rgba(0,0,0,0.28);
}

.main-nav {
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: flex;
    align-items: center; /* Align items vertically */
    flex-direction: row;
    justify-content: flex-start;
    padding: 0 0.5rem;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    align-items: center;
    flex: 1 1 0%;
}

.sidebar-toggle {
    display: none !important;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    font-size: 2.2rem;
    padding: 6px 16px 8px 16px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: background 0.2s;
    margin-right: 1rem;
    margin-left: 0;
    position: relative;
    top: 0;
    left: 0;
}

@media (max-width: 900px) {
    .sidebar-toggle {
        display: block !important;
        order: -1;         /* Place hamburger first in flex row */
        margin-right: 1.2rem;
        margin-left: 0;    /* Remove left margin */
    }
    .main-nav {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding-left: 0.2rem;
    }
    .main-nav ul {
        flex: 1 1 0%;
        justify-content: flex-start;
        margin-left: 0;
    }
    .main-nav {
        padding-left: 0.2rem;
    }
}
body.work-page .main-nav {
    position: fixed;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.main-nav a {
    color: #111;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.2s;
    display: block;
    padding: 1.3rem 1.2rem;
    font-family: 'Montserrat Alternates', 'Montserrat', Arial, sans-serif;
}

.main-nav a:hover {
    color: #6f6f6f;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    letter-spacing: 2px;
    font-family: 'Montserrat Alternates', 'Montserrat', Arial, sans-serif;
}


main {
    max-width: 1100px;
    margin: 0 auto;
    background: none;
    padding: 30px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 900px) {
    main {
        padding-top: 70px;
    }
}


section {
    margin-bottom: 0;
    font-size: 1.35em;
    width: 100%;
    max-width: 900px;
    text-align: center;
    padding: 3rem 0;
    border-bottom: 2px solid #eee;
}

#newgallery {
    width: 100%;
    max-width: 1000px; /* optional, keeps it centered */
    margin: auto;
}

.work-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 100; /* small unit */
    gap: 8px;
}

.work-gallery img {
    width: 30vh;
    height: auto;
    border-radius: 6px;
}

.work-gallery img:hover {
    transform: scale(1.05);
}

.more-work-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1.1rem 2.8rem;
    background: #000000;
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-family: 'Montserrat Alternates', 'Montserrat', Arial, sans-serif;
}

.more-work-btn:hover {
    background: #ffffff;
    color: #000000;
}

footer {
    background: #fff;
    color: #111;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    font-size: 1.4rem;
    border-top: 2px solid #eee;
}

footer a {
    color: #000000;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.2s;
    font-size: 1.4rem;
    font-family: 'Montserrat Alternates', 'Montserrat', Arial, sans-serif;
}

footer a:hover {
    color: #000000;
}

section:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

h2 {
    color: #111;
    border-bottom: 2px solid #000000;
    padding-bottom: 0.7rem;
    margin-bottom: 1.5rem;
    font-size: 2.7rem;
    letter-spacing: 1px;
    font-family: 'Montserrat Alternates', 'Montserrat', Arial, sans-serif;
}
