html {
  background-color: white;
}

body {
  font-family: "Times New Roman", serif;
  text-align: center;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;

  /* ✨ NEW: this controls vertical spacing between children */
  gap: 8px;
}

main > * {
  /* ✨ NEW: neutralize any default margins & padding */
  margin: 0;
  padding: 0;
}



/* Nav Bar */
.top-ribbon {
    background-color: #333;
    color: white;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.top-ribbon ul,
.top-ribbon ul li {
    list-style: none;  /* remove bullets */
    margin: 0;          /* remove default spacing */
    padding: 0;         /* remove default spacing */
}

.top-ribbon > a {
    display: flex;
    flex-shrink: 1;
    flex-grow: 0;
    min-width: 0;
}

.top-ribbon .logo {
    height: auto;
    max-height: 35px;
    width: auto;
    margin-left: 5px;
    margin-right: 5px;
    display: flex;
    flex-shrink: 1;
    flex-grow: 0;
    align-items: center;
    justify-content: center;
}

/* Navigation Menu */
.top-ribbon .desktop-nav {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
    margin-left: auto; /* pushes desktop nav to the right */
}

.top-ribbon .desktop-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}
.top-ribbon .desktop-nav ul li {
    list-style: none;
}

.top-ribbon .desktop-nav ul li a {
    color: white;
    text-decoration: none;
    font-variant: small-caps;
    padding: 5px 10px;
    white-space: nowrap;
}

.mobile-nav {
    margin-left: 0;    
    flex: 0 0 auto;  /* prevent stretching */

}

.instagram-nav {
    display: flex;
    padding-left: 20px;
    padding-right: 15px;
    flex-shrink: 0;
}

.instagram-icon {
    width: 17px;
    height: auto;
    vertical-align: middle;
    margin-bottom: 0;
}

.hamburger-wrapper {
    display: none;
    position: relative;
}

.hamburger-menu {
    display: none;
    font-size: 1.8em;
    color: white;
    cursor: pointer;
    padding-right: 0;
}

.hamburger-dropdown li {
    display: none;
}

.intro-wrapper {
    position: fixed;
    top: 45px;
    width: 100vw;
    background: white;
    z-index: 999;
    overflow: visible; /* prevent clipping */
    display: flex;
    justify-content: center;
}

.intro-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 5px;
    padding-bottom: 0px;
}




h1 {
    font-size: 2.3em;
    font-variant: small-caps;
    font-weight: bold;
    margin: 0px;
    padding: 0px;
}


h2 {
    font-size: 2em;
    font-variant: small-caps;
    font-weight: bold;
    margin: 0px;
    padding: 0px;
}
.title h1 a {
    text-decoration: none;
    color: inherit;       /* keeps the same color as h1 */
    font-variant: small-caps;
}




.content-wrapper {
    position: absolute;
    top: 130px;
    bottom: 65px;
    left: 275px;
    right: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.blog-wall {
  display: flex;
  width: 95%;
  align-items: flex-start;
  text-align: left;
  border: 1px solid #333;
}

.featured-post {
  flex: 3 1 auto;
  min-width: 0;
  text-align: left;
  padding: 10px;
}

.featured-post h3 {
  font-variant: small-caps;
  margin: 0px;
  font-size: 1.5em;
}

.image-set-1 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 5px;
}

.image-set-1 img {
    height: auto;
    max-width: 100%;       /* forced width */
    max-height: 800px;       /* keeps aspect ratio */;
    display: block;
    flex-shrink: 1;
}

.image-set-2 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 5px;

}
.image-set-2 img {
    width: auto;       /* forced width */
    height: 400px;       /* keeps aspect ratio */;
    display: block;
    flex-shrink: 1;
}


.sidebar-wrapper{
    position: absolute;
    top: 130px;
    bottom: 65px;
    left: 0px;
    width: 250px;
    overflow-y: auto;
    text-align: left;
    display: flex;
    margin-left: 25px;
}

.blog-sidebar {
    border: 1px solid #333;
    padding: 5px;
    width: 95%;
}

.blog-sidebar h3,
.blog-sidebar h4,
.blog-sidebar h5,
.blog-sidebar ul,
.blog-sidebar a {
  font-variant: small-caps;
  margin: 0px;
}



.blog-sidebar h4 {
    padding-bottom: 5px;
    font-size: 1.3em;
}

.sidebar-topics {
    padding-left: 10px;
}


.blog-sidebar h5 {
    font-size: 1.1em;
}


/*gallery */
.gallery-wrap {
position: relative;
left: 0;
right: 0;
overflow-y: auto;
overflow-x: hidden;
}

.image-gallery {
  position: relative;
  column-count: 3;
  column-gap: 10px;
  padding: 10px;
  max-width: 1200px;
  overflow-y: auto;
  margin: 0 auto;
}

.image-gallery img {
  width: 100%;
  height: auto;
  display: block;
  break-inside: avoid;
  margin-bottom: 10px;
}

.thumb {
  cursor: pointer;
}

.thumb:hover {
  opacity: 0.9;
}

/* LIGHTBOX OVERLAY */
.lightbox {
    display: none;          /* hidden until opened */
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 30px;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

/* Caption */
.caption {
    margin-top: 15px;
    color: white;
    font-size: 1rem;
    text-align: center;
    max-width: 90%;
}

.lightbox-nav-container {
    display: flex;
    gap: 10px;              /* spacing between ← and → */
    justify-content: center;
}

/* Arrow buttons */
.lightbox-prev,
.lightbox-next {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;        /* nice size */
    cursor: pointer;
    user-select: none;
    padding: 5px 10px;
    transition: color 0.2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #ccc;
}

/* Close button */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
}

.close:hover {
    color: #ccc;
}



/* Footer */
.footer-wrapper {
    display: flex;
    flex-direction: column;     
    align-items: center;
    justify-content: center;
    text-align: center;
    width: auto;
    box-sizing: border-box;
}

.footer-wrapper ul {
    display: block;          
    width: 100%;         
    margin: 0;
    white-space: nowrap;   
    text-align: center;
}

.footer {
  background-color: #333;
  color: white;
  padding: 8px 0;
  font-size: 0.9em;
  font-variant: small-caps;
  text-align: center;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  box-sizing: border-box;
}

.tagline {
    font-size: 1.2em;
    font-style: italic;
    font-variant: small-caps;
}

.year-fix {
    font-size: 0.8em;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.footer-list li {
  line-height: 1;
}

.footer-list a {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-list a:hover {
  opacity: 0.8;
}



@media (max-width: 825px) {

        /* Top Ribbon flex setup */
    .top-ribbon {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 4px 8px;
    }

    /* Logo container flex */
    .top-ribbon > a {
        display: flex;
        flex-shrink: 1;      
        flex-grow: 1;        
        min-width: 0;
        margin-right: 10px;  
    }

    .top-ribbon .logo {
        max-width: 85%;
        max-height: 35px;    
        width: auto;
        height: auto;
    }

    /* Nav container (hamburger + Instagram) */
    .top-ribbon nav {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hamburger icon */
    .hamburger-menu {
        display: flex;             /* make container a flexbox */
        align-items: center;       /* vertically center the img */
        justify-content: center;   /* horizontally center if needed */
        cursor: pointer;
        padding: 0;
        line-height: 0;            /* removes any inline-gap issues */
        }

    /* Hamburger image */
    .hamburger-menu img {
        display: block;
        height: 17px;              /* match Instagram icon */
        width: auto;
    }

  /* Instagram icon */
    .instagram-icon {
        display: block;
        width: 17px;
        margin-bottom: 0;
    }

    /* Hamburger dropdown - hidden by default */
    .hamburger-dropdown {
        display: none;
        flex-direction: column;       /* vertical stacking */
        position: absolute;
        top: calc(100% + 4px);
        right: 0px;
        background-color: #333;
        list-style: none;
        padding: 0;
        margin: 0;
        min-width: 140px;
        z-index: 2000;                /* above ribbon */
    }

    .hamburger-dropdown li {
    display: block;
    }

    .hamburger-dropdown li a {
        display: block;
        padding: 12px;
        color: white;
        text-decoration: none;
        font-variant: small-caps;
        white-space: nowrap;
    }

    .hamburger-dropdown li a:hover {
        background-color: rgba(236, 233, 233, 0.2);
    }

    /* Hamburger wrapper */
    .hamburger-wrapper {
        display: block;
        position: relative;
    }

    /* Hide desktop nav in mobile */
    .top-ribbon .desktop-nav {
        display: none;
    }

    /* Show dropdown only when active */
    .hamburger-wrapper.active .hamburger-dropdown {
        display: flex;
    }



    .sidebar-wrapper {
        position: static;
        width: 0;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    /* Sidebar becomes off-canvas overlay */
    .blog-sidebar {
        position: fixed;
        top: 130px; /* matches content-wrapper */
        bottom: 65px;
        left: -260px;
        width: 260px;
        background: white;
        z-index: 2000;
        transition: left 0.25s ease;
        overflow-y: auto;
        padding: 0px;
    }

    .blog-sidebar.open {
        left: 0;
    }

    /* Content goes full width */
    .content-wrapper {
        left: 0;
        width: 100%;
    }

    /* Toggle handle */
    .sidebar-toggle {
        position: fixed;
        top: 115px;
        left: 0;
        transform: translateY(-50%);
        width: 25px;
        height: 25px;
        background: #333;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        cursor: pointer;
        z-index: 2001;
        border-radius: 0 4px 4px 0;
    }

    .sidebar-toggle.open {
        left: 260px;
    }

    /* Mobile image sanity */
    .image-set-1 img,
    .image-set-2 img {
        height: auto;
        max-width: 100%;
    }

    /* Gallery columns scale down */
    .image-gallery {
        column-count: 1;
    }
}






@media (max-width: 685px) {


.intro-wrapper {
        display: inline-flex;
        top: 30px;
        transform: scale(0.80);
        transform-origin: top center;
        width: 100vh;
    }

    .intro-wrapper h1, .intro-wrapper h2 {
        display: block;    
        white-space: nowrap;
        margin-top: 5px;

    }


.blog-wall {
        margin-left: 15px;
        margin-right: 15px;
    }

    .sidebar-wrapper {
        position: static;
        width: 0;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    /* Sidebar becomes off-canvas overlay */
    .blog-sidebar {
        position: fixed;
        top: 130px; /* matches content-wrapper */
        bottom: 65px;
        left: -260px;
        width: 260px;
        background: white;
        z-index: 2000;
        transition: left 0.25s ease;
        overflow-y: auto;
        padding: 0px;
    }

    .blog-sidebar.open {
        left: 0;
    }

    /* Content goes full width */
    .content-wrapper {
        left: 0;
        width: 100%;
    }

    /* Toggle handle */
    .sidebar-toggle {
        position: fixed;
        top: 115px;
        left: 0;
        transform: translateY(-50%);
        width: 25px;
        height: 25px;
        background: #333;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        cursor: pointer;
        z-index: 2001;
        border-radius: 0 4px 4px 0;
    }

    .sidebar-toggle.open {
        left: 260px;
    }

    /* Mobile image sanity */
    .image-set-1 img,
    .image-set-2 img {
        height: auto;
        max-width: 100%;
    }

    /* Gallery columns scale down */
    .image-gallery {
        column-count: 1;
    }
    
    .footer {
      padding-top: 8px;
      padding-bottom: 0px;

    }
    
    .footer-wrapper ul {
        display: inline-flex;
        transform: scale(0.80);
        transform-origin: top center;
    }
}