/* Base / Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-main: #000;
  --bg-wrapper: #333;
  --text-main: #fff;
  --accent: #fe661b;
  --font-base: "Garamond", serif;
}

/* Global styles */
body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-base);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Links */
a {
  color: var(--text-main);
  font-weight: bold;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* Layout wrapper */
#outerWrapper {
  max-width: 850px;
  width: 100%;
  margin: 0 auto;
  background-color: var(--bg-wrapper);
}

/* Header */
#header {
  background: #000 url("../image/HomeImagev2.jpg") no-repeat center center;
  background-size: 100% auto;
  width: 100%;
  padding-top: 33.05%;
  font-size: 1.125rem;
  font-weight: bold;
  min-height: 0;
}

/* Top nav */
#topNavigation {
  background-color: #000;
  border-bottom: 1px solid #fff;
  padding: 0.5rem;
  font-size: 1.125rem;
  font-weight: bold;
}

/* Main layout */
#contentWrapper {
  display: flex;
  border-bottom: 1px solid #fff;
}

/* Sidebar */
#leftColumn1 {
  width: 180px;
  min-width: 180px;
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.72),
      rgba(0, 0, 0, 0.72)
    ),
    url("../image/backgroundimage_1.jpg");
  padding: 1rem 0.5rem;
}

/* Navigation list */
.menu {
  list-style: none;
}

/* Individual menu boxes */
.menu li {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  background-color: #1b1b1b;
  padding: 0.75rem;
  min-height: 70px;
  display: flex;
  align-items: center;
  border: 1px solid #333;
}

/* Links fill entire box */
.menu li a {
  display: block;
  width: 100%;
  color: var(--text-main);
  font-weight: bold;
  text-decoration: none;
}

/* Active/current item */
.menu li.h2active {
  background-color: #1b1b1b;
  color: var(--accent);
  font-weight: bold;
}

/* Hover effect */
.menu li:hover {
  background-color: #2b2b2b;
}

/* Main content */
#content {
  flex: 1;
  padding: 0;
  min-width: 0;
}

#contentBackcolor {
  background-color: #000;
}

/* Image block */
#indeximg {
  width: 100%;
  height: 70vh;
  max-height: 700px;
  overflow-y: auto;
  overflow-x: hidden;
}

#indeximg img {
  display: block;
  width: 100%;
  height: auto;
}

/* Caption */
#indexcoment {
  text-align: center;
  padding: 0.75rem;
  font-size: 1.125rem;
  background-color: #000;
}

/* Footer */
#footer {
  background-color: #000;
  padding: 0.75rem;
  text-align: right;
  font-size: 0.75rem;
}

/* Typography helpers */
.h1 { font-size: 1.125rem; font-weight: bold; }
.h2 { font-size: 0.875rem; font-weight: bold; }
.h2-1 { font-size: 0.875rem; }
.h2active { color: var(--accent); font-weight: bold; }
.hh7 { font-size: 0.75rem; text-align: right; }

/* ── TABLET (max 768px) ── */
@media (max-width: 768px) {
  #outerWrapper { margin-top: 0; }

  #contentWrapper { flex-direction: column; }

  #leftColumn1 {
    width: 100%;
    min-width: 100%;
    padding: 0.5rem;
  }

  .menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .menu li {
    flex: 1 1 45%;
    min-height: 50px;
    font-size: 0.8rem;
    padding: 0.5rem;
    margin-bottom: 0;
  }

  #content { width: 100%; }
  #indeximg { height: 60vh; }

  .tab-nav-wrapper { padding: 0 4px 6px 4px; }
  .tab-row { flex-wrap: wrap; gap: 3px; }

  .tab-btn {
    width: auto !important;
    min-width: 44px;
    flex: 1;
    font-size: 10px !important;
    height: auto !important;
    padding: 4px 2px !important;
    line-height: 1.2 !important;
  }

  .tab-row.months .tab-btn { min-width: 36px; }

  .collection-table { font-size: 12px; }

  .col-image {
    width: 120px !important;
    min-width: 120px !important;
    padding: 8px !important;
  }

  .col-image img { width: 100px !important; }

  .col-desc { padding: 8px !important; }
  .col-desc .item-header { font-size: 12px !important; }
  .col-desc .item-body { font-size: 11px !important; max-height: 120px; }
}

/* ── MOBILE (max 480px) ── */
@media (max-width: 480px) {
  #outerWrapper { margin-top: 0; }

  .menu {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }

  .menu li {
    width: 100%;
    min-height: 44px;
    font-size: 0.85rem;
    padding: 0.6rem;
    margin-bottom: 0;
  }

  #leftColumn1 { padding: 0.4rem; }

  .tab-row { flex-wrap: wrap; gap: 2px; }

  .tab-btn {
    width: auto !important;
    min-width: 38px !important;
    flex: 1;
    font-size: 9px !important;
    height: auto !important;
    padding: 3px 1px !important;
    line-height: 1.2 !important;
    border-radius: 4px !important;
  }

  .collection-table tr {
    display: block;
    margin-bottom: 12px;
    border-bottom: 2px solid #333 !important;
  }

  .collection-table td {
    display: block;
    width: 100% !important;
    min-width: 100% !important;
    border: none !important;
  }

  .col-image {
    text-align: center;
    padding: 10px !important;
  }

  .col-image img {
    width: 180px !important;
    margin: 0 auto !important;
  }

  .col-desc { padding: 10px !important; }
  .col-desc .item-header { font-size: 13px !important; margin-bottom: 8px; }
  .col-desc .item-body {
    font-size: 12px !important;
    max-height: none !important;
    overflow-y: visible !important;
  }

  .home-inner { margin: 0 10px 20px 10px !important; }
  .collage-grid { flex-wrap: wrap !important; }
  .collage-item { flex: 1 1 45% !important; }
  .collection-grid { grid-template-columns: 1fr !important; }
  .tab-nav-title span { font-size: 11px !important; padding: 3px 8px !important; }
}

/* ── VERY SMALL MOBILE (max 380px) ── */
@media (max-width: 380px) {
  .tab-btn { min-width: 30px !important; font-size: 8px !important; }
  .col-image img { width: 140px !important; }
  .collage-item { flex: 1 1 100% !important; }
}

/* ── MOBILE HAMBURGER MENU ── */
.mobile-menu-toggle {
  display: none;
  width: 100%;
  background: #000;
  color: #fff;
  border: none;
  padding: 12px 16px;
  font-family: Garamond, serif;
  font-size: 16px;
  font-weight: bold;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid #333;
}

.mobile-menu-toggle::before {
  content: "☰ ";
  font-size: 18px;
}

.mobile-menu-toggle.open::before {
  content: "✕ ";
}

@media (max-width: 768px) {
  /* Show hamburger button */
  .mobile-menu-toggle {
    display: block;
  }

  /* Hide sidebar by default on mobile */
  #leftColumn1 {
    display: none;
    width: 100%;
    min-width: 100%;
    padding: 0.4rem;
  }

  /* Show when menu is open */
  #leftColumn1.menu-open {
    display: block;
  }

  /* Full width vertical menu on mobile */
  .menu {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }

  .menu li {
    flex: 1 1 100%;
    min-height: 44px;
    font-size: 0.9rem;
    padding: 0.6rem;
    margin-bottom: 0;
  }

  /* Psychedelic border taller on mobile */
  .psychedelic-border {
    height: 60px !important;
  }

  /* Collage 3 across on mobile */
  .collage-item {
    flex: 1 1 30% !important;
    min-width: 30% !important;
  }

  /* Home inner full width */
  .home-inner {
    margin: 0 8px 20px 8px !important;
  }
}

@media (max-width: 480px) {
  /* Collage 3 across on small mobile */
  .collage-item {
    flex: 1 1 30% !important;
    min-width: 30% !important;
  }

  .collage-item-caption {
    font-size: 8px !important;
  }

  /* Psychedelic border taller */
  .psychedelic-border {
    height: 50px !important;
  }

  /* Home inner tighter */
  .home-inner {
    margin: 0 5px 15px 5px !important;
  }
}

/* ── MOBILE PICTURE FRAME BORDER FIX ── */
@media (max-width: 768px) {
  #homeContent {
    background-size: 100% 100% !important;
    min-height: 200px;
  }
  .home-inner {
    margin: 20px 30px 20px 30px !important;
    padding: 4px 0 !important;
  }
}

@media (max-width: 480px) {
  .home-inner {
    margin: 15px 20px 15px 20px !important;
  }
}

@media (max-width: 380px) {
  .home-inner {
    margin: 12px 15px 12px 15px !important;
  }
}
