:root {
  --bg-color: #333333;
  --text-color: #fff;
  --link-color: #fff;
  --link-hover-color: #FF6410;;
  --font-family: 'Roboto', sans-serif;
  --menu-width: 250px;
  --menu-offset-left: 50px;
}

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

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  display: flex;
}

/* Safety: hide legacy nav checkbox/label everywhere */
#nav-check,
label[for="nav-check"],
.menu-content input[type="checkbox"],
.menu-content label[for="nav-check"] {
  display: none !important;
}

/* Default: mobile chrome hidden on desktop */
.mobile-header,
.mobile-footer,
.nav-toggle {
  display: none !important;
}

/* Container */
.container {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
}

/* Left Menu Column (desktop) */
.menu-column {
  position: fixed;
  top: 0;
  left: var(--menu-offset-left);
  width: var(--menu-width);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: rgba(74, 74, 74, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.menu-content {
  height: 600px;
  width: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.site-title {
  font-weight: 900;
  letter-spacing: 0.25px;
  font-size: 1rem;
}

/* Nav (shared) */
.main-nav > ul {
  list-style: none;
  padding-top: 5rem;
  flex-grow: 1;
}

.main-nav li {
  margin-bottom: 0;
  position: relative;
}

.main-nav a {
  text-decoration: none;
  color: var(--link-color);
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  display: block;
  padding-bottom: 0.5rem;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--link-hover-color);
}

/* Submenu */
.submenu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  padding-inline-start: 1rem;
}

.submenu.is-open {
  display: block;
  margin: 0;
}

.submenu li {
  margin-bottom: 0.5rem;
}

.submenu a {
  white-space: nowrap;
  padding-bottom: 0;
}

/* Footer bits */
.copyright-notice {
  font-size: 0.7rem;
  color: var(--text-color);
  opacity: 0.7;
  padding-bottom: 0.5rem;
  width: 100%;
}

.social-links {
  display: flex;
  gap: 0.1rem;
  padding-bottom: 2rem;
}

.social-links a {
  text-decoration: none;
  color: var(--link-color);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--link-hover-color);
}

/* Right Gallery Column */
.gallery-column {
  flex-grow: 1;
  margin-left: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  white-space: wrap;
  cursor: grab;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
}

/* Scrollbar styling */
.gallery-column::-webkit-scrollbar {
  height: 8px;
  background-color: #e0e0e0;
}

.gallery-column::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

.gallery-column::-webkit-scrollbar-thumb:hover {
  background-color: #a0a0a0;
}

/* Image gallery row */
.image-gallery {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* Image container - shrink-wraps to image */
.image-container {
  display: inline-block;
  position: relative;
  vertical-align: middle;
  margin-right: .5rem;
  /* Remove any width that isn't auto or based on the image! */
  width: auto;
}

.image-container img {
  display: block;
  max-height: 100vh;
  height: auto;
  width: auto;
}

.gallery-image {
  display: block;
  width: auto;
  height: auto;
  max-height: 100vh;
  object-fit: contain;
}

.gallery-image:hover {
  opacity: 1;
}

/* Metadata container as overlay at bottom of image */
.image-metadata {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 70%;
  font-size: 9pt;
  color: #333;
  text-align: left;
  overflow: hidden;
  background: rgba(74, 74, 74, 0.7);
  padding: 1rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  box-sizing: border-box;
}

/* Show overlay on hover */
.image-container:hover .image-metadata {
  opacity: 1;
  transform: translateY(0);
}

.metadata-headline {
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #fff;
}

.metadata-description {
  font-weight: 400;
  color: #fff;
}

/* Content column (about/contact pages) */
.content-column {
  flex-grow: 1;
  margin-left: calc(var(--menu-width) + var(--menu-offset-left));
  padding: 2rem;
  overflow-y: auto;
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  text-align: left;
}

/* About/Contact Layout */
.about-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: left;
}

.about-image img {
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  display: block;
}

.about-text {
  flex: 1;
  min-width: 250px;
}

.about-text h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-divider {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid #ccc;
}

.logos-section {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.logos-section img {
  max-height: 60px;
  object-fit: contain;
  display: block;
}

/* Scroll Navigation Arrows */
.scroll-nav-right,
.scroll-nav-left {
  position: fixed;
  top: calc(50% - 20px);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: background 0.3s ease;
  opacity: 0.8;
  pointer-events: none;
}

.scroll-nav-right {
  position: fixed;
  top: calc(50% - 20px);
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: background 0.3s ease;
  opacity: 0.8;
  pointer-events: none;
  background: #4a4a4a;
}

.scroll-nav-left {
  left: 0;
  background: #4a4a4a;
}

.scroll-nav-right.visible,
.scroll-nav-left.visible {
  opacity: 0.8;
  pointer-events: auto;
}

.scroll-nav-right:hover {
  background: #4a4a4a;
}

.scroll-nav-left:hover {
  background: #4a4a4a;
}

.scroll-nav-right i,
.scroll-nav-left i {
  font-size: 2rem;
  color: #FF6410;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.about-section {
padding-left: calc(var(--menu-width) + var(--menu-offset-left) + 2rem);
}

.scroll-nav-right:hover i {
  transform: translateX(5px);
}

.scroll-nav-left:hover i {
  transform: translateX(-5px);
}

/* === Mobile Styles === */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
        display: block;
    }

    /* Hide scroll nav on mobile */
    .scroll-nav-left,
    .scroll-nav-right {
        display: none;
    }

    /* Neutralise sidebar container on mobile */
    .menu-column {
        position: static;
        width: 0;
        height: 0;
        border: 0;
        overflow: visible;
    }

    /* Mobile header */
    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: #111;
        color: #fff;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 0 1rem;
        z-index: 1001;
    }

    .mobile-header .site-title {
        font-size: 1rem;
        font-weight: 900;
        color: #fff;
        margin: 0;
    }

    .mobile-header .instagram-link {
        font-size: 1.4rem;
        color: #fff;
        text-decoration: none;
    }

    .mobile-header .instagram-link:hover {
        color: var(--link-hover-color);
    }

    /* Fix gallery column for mobile - CRITICAL CHANGES */
    .gallery-column {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        margin-left: 0 !important;
        margin-top: 60px !important;
        margin-bottom: 40px !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        padding: 0 !important;
    }

    /* Change gallery to vertical stack */
    .image-gallery {
        display: block !important;
        height: auto !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Make image containers stack vertically */
    .image-container {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 0 1rem 0 !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    /* Force images to fit mobile width */
    .image-container img,
    .gallery-image {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        margin: 0 !important;
    }

    /* Mobile footer */
    .mobile-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 40px;
        background: #111;
        color: #fff;
        font-size: 0.75rem;
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 1001;
    }

    /* Drawer menu */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 50vw;
        max-width: none;
        box-sizing: border-box;
        background: #111;
        overflow-wrap: anywhere;
        word-break: break-word;
        transform: translateX(-100%);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.2s ease, visibility 0s linear 0.3s;
        padding: 2rem 1rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        z-index: 1002;
        will-change: transform;
    }

    /* Open state */
    body.mobile-nav-open .main-nav {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transition: transform 0.3s ease, opacity 0.2s ease, visibility 0s;
    }

    .main-nav a {
        color: #fff;
        text-decoration: none;
        font-size: 1.1rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Hide other sidebar content on mobile */
    .menu-content > *:not(.main-nav) {
        display: none !important;
    }

    /* Dim right side when drawer is open */
    body.mobile-nav-open::before {
        content: "";
        position: fixed;
        top: 0;
        bottom: 0;
        right: 0;
        left: 50vw;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1000;
    }

    /* Hamburger icon */
    .nav-toggle {
        display: block !important;
        width: 32px;
        height: 24px;
        cursor: pointer;
        position: relative;
        z-index: 1003;
        background: none;
        border: 0;
    }

    .nav-toggle span,
    .nav-toggle span::before,
    .nav-toggle span::after {
        content: "";
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        height: 3px;
        width: 100%;
        background: #fff;
        border-radius: 2px;
        transition: 0.3s ease;
    }

    .nav-toggle span {
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-toggle span::before {
        top: -8px;
    }

    .nav-toggle span::after {
        top: 8px;
    }

    /* Animate to X when open */
    body.mobile-nav-open .nav-toggle span {
        background: transparent;
    }

    body.mobile-nav-open .nav-toggle span::before {
        transform: rotate(45deg);
        top: 0;
    }

    body.mobile-nav-open .nav-toggle span::after {
        transform: rotate(-45deg);
        top: 0;
    }

    /* Prevent background scroll when menu is open */
    body.mobile-nav-open {
        overflow: hidden;
    }

    /* Metadata overlay adjustments */
    .image-metadata {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100% !important;
        font-size: 9pt;
        color: #333;
        background: rgba(255,255,255,0.85);
        padding: 0.75rem 1rem;
        line-height: 1.4;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.25s ease, transform 0.25s ease;
        pointer-events: none;
        box-sizing: border-box;
    }

    .metadata-headline {
        color: var(--text-color);
    }

    .metadata-description {
        color: #555;
    }

    /* Content column adjustments */
    .content-column {
        margin-left: 0 !important;
        margin-top: 60px;
        margin-bottom: 40px;
        padding: 0 1rem 1.5rem 1rem;
        max-width: 100%;
    }

    /* About/Contact mobile adjustments */
.about-row {
  margin-top: 1rem;
  flex-direction: column;
  align-items: flex-start;
}

.about-image img {
  max-width: 100%;
  margin-bottom: 1rem;
}

.about-text {
  padding: 0;
}

.about-section {
  padding-left: 0 !important;
  padding-right: 0;
}

.about-container {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* Desktop: hide mobile chrome */
@media (min-width: 769px) {
    .nav-toggle,
    .mobile-header,
    .mobile-footer {
        display: none !important;
    }
}