:root {
  --bg-color: #f8f8f8;
  --text-color: #333;
  --link-color: #333;
  --link-hover-color: #888;
  --font-family: 'Roboto', sans-serif;
  --menu-width: 250px;
  --menu-offset-left: 50px;
  --image-max-height: 1024px;
}

/* 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(255, 255, 255, 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: nowrap;
  cursor: grab;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

/* 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: calc(var(--menu-width) + var(--menu-offset-left) + 2rem);
  padding-right: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  gap: 1.5rem;
}

.gallery-image {
  max-height: var(--image-max-height);
  height: 90vh;
  width: auto;
  opacity: 1;
  object-fit: contain;
  border: 1px solid #eee;
}

/* Grid gallery (right column replacement) */
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  padding: 2rem;
  padding-left: calc(var(--menu-width) + var(--menu-offset-left) + 2rem); /* aligns with desktop sidebar */
  padding-right: 2rem;
  height: 100%;
  overflow-y: auto;
}

.grid-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.grid-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.grid-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: #f2f2f2;
}

.grid-caption {
  font-size: 0.8rem;
  color: #555;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid #eee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.grid-actions {
  padding: 0.5rem 0.75rem 0.75rem 0.75rem;
  display: flex;
  gap: 0.5rem;
}

.btn {
  appearance: none;
  border: 1px solid #222;
  background: #111;
  color: #fff;
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
}

.btn:hover {
  background: #222;
}

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

/* 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;   /* adjust to match your gallery’s width */
  margin: 0 auto;     /* centers it */
  padding: 20px;      /* optional spacing */
  text-align: left; /* optional if you want the text centered */
}

.scroll-indicator {
  text-align: center;
  font-size: 0.75rem;
  color: #666;
  opacity: 0.7;
  padding-top: 1rem;
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
}

.scroll-indicator span {
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}


/* 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;
}

/* Columns (about/contact) */
.column {
  width: 100%;
}

/* Tablet split columns */
@media (min-width: 600px) {
  .column {
    width: 50%;
  }
}

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

  /* Neutralise sidebar container on mobile (keep nav usable) */
  .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;
    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); }

  /* Push content below header and above footer */
  .content-column,
  .gallery-column {
    margin-top: 60px;
    margin-bottom: 40px; /* footer space */
  }

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

  /* Drawer menu (reuse .main-nav) */
  .main-nav {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;

    /* 50% width drawer on mobile */
    width: 50vw;
    max-width: none;

    /* Ensure the black panel covers behind link text */
    box-sizing: border-box;
    background: #111;

    /* Improve readability on long labels */
    overflow-wrap: anywhere;
    word-break: break-word;

    /* Closed state: fully hidden and non-interactive */
    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; /* above header */
    will-change: transform;
  }

  /* Open state controlled by body class (JS) */
  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);
  }

  /* Mobile: only show nav in drawer (hide other sidebar bits) */
  .menu-content > *:not(.main-nav) {
    display: none !important;
  }

  /* Dim only the right side (not under the drawer) */
  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; /* below drawer (1002) and header button (1003) */
  }

  /* Hamburger */
  .nav-toggle {
    display: block;
    width: 32px; height: 24px;
    cursor: pointer;
    position: relative;
    z-index: 1003; /* above drawer */
    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; }

  /* Vertical gallery */
  .gallery-column {
    position: static;
    overflow-y: auto;
    overflow-x: hidden;
    white-space: normal;
    height: auto;
    width: 100%;
  }
  .image-gallery {
    display: block;
    padding: 0;
    margin: 0 auto;
    max-width: 100%;
  }
  .gallery-image {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    margin-bottom: 1rem;
    border: none;
  }

  /* About + Contact: left-aligned content with small margins on mobile */
@media (max-width: 768px) {
  .content-column {
    margin-left: 0 !important;      /* remove desktop sidebar offset */
    padding: 0 1rem 1.5rem 1rem;     /* small side margins */
    max-width: 100%;                 /* prevent accidental narrow width */
  }

  /* If using the two-column helpers, ensure full width on mobile */
  .column {
    width: 100% !important;
  }

  /* Optional: tighten inner sections */
  .about-row { margin-top: 1rem; }
  .about-text { padding: 0; }
}

  /* Mobile header/footer + hamburger visible only on mobile */
.mobile-header { display: flex !important; }
.mobile-footer { display: flex !important; }
.nav-toggle    { display: block !important; }

  /* Stack about/contact */
  .about-row { flex-direction: column; align-items: flex-start; }
  .about-image img { max-width: 100%; margin-bottom: 1rem; }
}

  .grid-gallery {
    padding: 0.75rem 1rem 1.25rem 1rem; /* small margins left/right */
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .grid-thumb {
    height: 140px;
  }

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