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

/* Global font & size (user requested myriad pro size 10) */
html, body {
  height: 100%;
  font-family: "Myriad Pro", "Times New Roman", serif;
  font-size: 10pt; /* requested size */
  color: #000;
  background: #fff;
}

/* Grid layout: 6 columns on desktop */
.grid-root {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr 1fr; /* 1/6 : 3/6 : 1/6 : 1/6 proportionally */
  grid-template-rows: 1fr; /* ensure single row */
  gap: 12px;
  height: 100vh;
  padding: 12px;
  align-items: stretch;
}

/* Interview pages: 3 columns (no video) */
.grid-root.interview-layout {
  grid-template-columns: 1fr 3fr 1fr 1fr; /* menu (1fr), interview (3fr), read-more (1fr), blank space (1fr) */
  position: relative;
}

/* Header row for interview pages with toggle button */
.interview-header {
  position: fixed;
  top: 22px; /* Match homepage: grid padding (12px) + menu-col padding (10px) */
  left: 22px; /* Match homepage: grid padding (12px) + menu-col padding (10px) */
  right: 12px; /* Keep right edge at grid padding for toggle button */
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1100; /* Higher than read-more overlay (1000) so button stays visible */
  pointer-events: none; /* Allow clicks to pass through to elements below */
}

.interview-header .site-title {
  pointer-events: auto;
  margin: 0;
  flex-shrink: 0;
  width: auto;
}

.read-more-toggle {
  pointer-events: auto;
  background: white;
  border: 1px solid #000;
  padding: 6px 12px;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 0.9em;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.read-more-toggle:hover {
  background: #f5f5f5;
}

.read-more-col.hidden {
  display: none;
}

/* On desktop, read-more is visible by default but still toggleable */
@media (min-width: 801px) {
  .grid-root.interview-layout .read-more-col {
    display: flex;
  }
  
  .grid-root.interview-layout .read-more-col.hidden {
    display: none !important;
  }
  
  /* Hide toggle button on desktop */
  .read-more-toggle {
    display: none !important;
  }
}

/* Remove borders from menu and read-more columns on interview pages */
.grid-root.interview-layout .menu-col,
.grid-root.interview-layout .read-more-col {
  border: none;
}

/* columns */
.menu-col {
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 160px;
  max-width: 320px;
}

.main-col {
  border: 1px solid #000;
  padding: 6px 10px 10px 10px; /* slightly closer to top */
  overflow-y: auto; /* Allow vertical scrolling */
  position: relative;
}

.read-more-col {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0; /* allow shrinking */
  width: 100%; /* take full allocated space */
  height: calc(100vh - 24px); /* Same height as other columns (accounting for grid padding) */
  max-height: calc(100vh - 24px); /* Ensure it doesn't exceed the natural column height */
  overflow-y: auto; /* Enable vertical scrolling within the column */
}

.video-col {
  border: 1px solid #000;
  padding: 0;
  overflow: hidden;
  min-width: 0; /* allow shrinking */
  width: 100%; /* take full allocated space */
}

/* Read More column styling */
.read-more-col h2 {
  font-family: Arial, sans-serif;
  font-size: 1.4em; /* Match interview title font size */
  font-weight: normal;
  margin: 0 -10px 0 -10px; /* negative margin to extend beyond padding, no bottom margin */
  text-align: center;
  border-bottom: 1px solid #000;
  padding: 12px 10px 12px 10px; /* equal top and bottom padding */
}

.read-more-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.read-more-link {
  display: block;
  padding: 8px 0;
  text-decoration: none;
  color: #000;
  transition: background-color 0.2s ease;
  width: 100%;
}

.read-more-link:hover {
  background: #f5f5f5;
}


.read-more-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.read-more-text {
  font-family: Arial, sans-serif;
  font-size: 0.9em;
  line-height: 1.2;
  text-align: center;
  order: 1;
}

.read-more-thumbnail {
  width: 100%;
  order: 0;
}

.read-more-thumbnail img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid #ddd;
}

.read-more-separator {
  border: none;
  border-top: 1px solid #000;
  margin: 4px 0;
}

/* iframe sizing */
.video-col iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: none;
}

/* Title styling: Arial Black at full width */
.site-title {
  font-family: "Arial Black", "Arial Black", Gadget, sans-serif;
  text-align: left;
  letter-spacing: 0.02em;
  width: 100%;
  text-transform: uppercase;
  line-height: 1em;
  white-space: nowrap;
  font-size: 1.4em;
}

/* Menu top section */
.menu-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Control panel styling */
.control-panel {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid #000;
  width: 100%;
  margin-top: auto;
}

.ctrl-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #000;
  background: white;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ctrl-btn:active { transform: translateY(1px); }

.speed-display {
  margin-left: auto;
  border-left: 1px solid #000;
  padding-left: 6px;
  min-width: 36px;
  text-align: center;
}

/* Category panel */
.category-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-btn {
  display: block;
  text-align: center;
  padding: 8px 6px;
  border: 1px solid #000;
  background: white;
  cursor: pointer;
  width: 100%;
}

/* active state */
.cat-btn.active {
  background: #e6e6e6;
}

/* Content blocks */
.content-block {
  position: absolute;
  top: 4px; /* closer to top */
  left: 0;
  right: 0;
  bottom: 0;
}

/* Ensure each block stacks; higher z-index later sections on top */
#shop { z-index: 1; }
#about { z-index: 2; }
#stockists { z-index: 3; }
#interviews { z-index: 4; }

/* hidden */
.hidden { display: none; }

/* Shop images */
.shop-area {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
/* Ensure anchors are absolutely positioned so transforms move within shop-area walls */
.shop-area a {
  position: absolute;
  display: block;
}

/* bouncing items (images) */
.shop-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 2px solid hotpink; /* thin pink stroke */
  background: white; /* white background */
  cursor: pointer;
}

/* About area */
.about-area {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start; /* closer to top */
  justify-content: flex-start; /* closer to left */
  padding: 8px 12px;
}

.about-area p {
  max-width: 38em;
  line-height: 1.4;
  font-size: 1.5em;
  transition: filter 0.1s linear;
}

.about-word {
  display: inline-block;
  transition: color 0.3s ease;
}

/* Stockists layout: boxes */
.stockists-area {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-start; /* closer to top */
  justify-content: flex-start; /* closer to left */
  overflow: hidden;
  padding: 8px 12px;
}

.stockist-box {
  width: 120px;
  height: 70px;
  background: beige;
  border: 1px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  position: absolute;
  transition: transform 0.8s ease;
}

/* Interviews (falling names) */
.interviews-area {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  padding: 6px;
}

.interview-name {
  position: absolute;
  white-space: nowrap;
  text-decoration: underline;
  cursor: pointer;
  user-select: none;
}

/* Interview content pages */
.interview-area {
  width: 100%;
  height: 100%;
  padding: 10px 20px 20px 20px; /* reduced top padding from 20px to 10px */
  overflow-y: auto;
}

.interview-area h2 {
  font-family: Arial, sans-serif;
  font-size: 3em;
  font-weight: normal;
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 1px solid #000;
  padding-bottom: 10px;
}

.interview-credits {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.credit-box {
  display: inline-block;
  text-align: center;
  padding: 8px 6px;
  border: 1px solid #000;
  background: white;
  font-family: Arial, sans-serif;
  font-size: 0.9em;
  line-height: 1.4;
}

.interview-content {
  font-family: Arial, sans-serif;
  line-height: 1.4;
  max-width: none;
  margin: 0;
  display: block;
}

.interview-content p {
  margin-bottom: 16px;
}

.interview-pair {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-start;
}

.interview-speaker {
  font-weight: bold;
  text-align: right;
  padding-right: 15px;
  flex: 0 0 200px; /* Fixed width of 200px, don't grow or shrink */
}

.interview-response {
  text-align: left;
  padding-left: 20px;
  flex: 1; /* Take remaining space */
}

/* Ensure desktop layout is preserved */
@media (min-width: 1101px) {
  .interview-pair {
    display: flex !important;
  }
}

/* Single column layout for screens below 1100px */
@media (max-width: 1100px) {
  .interview-pair {
    display: block;
  }
  
  .interview-speaker {
    text-align: left;
    padding-right: 0;
    border-right: none;
    padding-bottom: 5px;
    margin-bottom: 10px;
    width: 100%;
  }
  
  .interview-response {
    padding-left: 0;
    width: 100%;
  }
}

/* Interview intro styling - single column, larger font */
.interview-intro {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #000;
}

.interview-intro p {
  font-size: 1em; /* Same size as interview body text */
  line-height: 1.4;
  margin: 0;
  max-width: none; /* Allow full width */
}

/* Interview narrative sections - single column with smaller max width */
.interview-narrative {
  margin: 20px auto;
  padding: 15px 20px;
  font-style: italic;
  max-width: 60%;
  text-align: center;
  border: 1px solid #000;
}

.interview-narrative p {
  font-size: 1em;
  line-height: 1.4;
  margin: 0;
}

/* Interview images */
.interview-image {
  margin: 20px auto;
  max-width: 100%;
  text-align: center;
}

.interview-image img {
  max-width: 100%;
  max-height: 70vh;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Image carousel */
.image-carousel {
  margin: 20px auto;
  max-width: 100%;
  position: relative;
  text-align: center;
  width: 100%;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-slides {
  display: flex;
  transition: transform 0.3s ease;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  max-width: 100%;
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.carousel-slide img {
  max-width: 100%;
  width: 100%;
  max-height: 70vh;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 1px solid #000;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.2em;
  z-index: 10;
  transition: background-color 0.2s ease;
}

.carousel-button:hover {
  background: #f5f5f5;
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

.carousel-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mobile styles for interview narrative */
@media (max-width: 768px) {
  .interview-narrative {
    max-width: 100%;
    margin: 20px 0;
    padding: 15px 10px;
  }
  
  /* Mobile carousel fixes */
  .image-carousel {
    width: 100%;
    margin: 20px 0;
  }
  
  .carousel-container {
    width: 100%;
    overflow: hidden;
  }
  
  .carousel-slides {
    width: 100%;
  }
  
  .carousel-slide {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    flex-basis: 100%;
  }
  
  .carousel-slide img {
    width: 100%;
    max-width: 100%;
  }
  
  .carousel-button {
    padding: 6px 10px;
    font-size: 1em;
  }
  
  .carousel-button.prev {
    left: 5px;
  }
  
  .carousel-button.next {
    right: 5px;
  }
}
.main-col {
  border: 1px solid #000;
  padding: 10px;
  overflow-y: auto; /* Allow vertical scrolling */
  position: relative;
  min-height: 80vh; /* ✅ ensures visible height even with empty sections */
}
.content-block {
  min-height: 0;
}


/* Responsive */
@media (max-width: 800px) {
  /* allow page scroll for natural height */
  html, body { height: auto; overflow: visible; }

  /* collapse to single column: hide video only */
  .grid-root {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    height: auto; /* allow natural height */
    padding: 12px; /* Keep padding for homepage */
  }
  .video-col { display: none; }
  
  /* Ensure homepage columns are visible on mobile */
  .grid-root:not(.interview-layout) .menu-col {
    display: flex !important;
    visibility: visible;
    order: 1;
    padding: 0; /* Remove padding to match interview page title position */
  }
  
  /* Add padding to menu-top to maintain spacing for buttons */
  .grid-root:not(.interview-layout) .menu-top {
    padding: 0 0 12px 0; /* Add bottom padding for spacing */
  }
  
  .grid-root:not(.interview-layout) .main-col {
    display: block !important;
    visibility: visible;
    order: 2;
  }
  
  /* Show read-more column on homepage mobile, below menu and main */
  .grid-root:not(.interview-layout) .read-more-col {
    display: flex !important;
    visibility: visible;
    order: 3;
    width: 100%;
    flex-direction: column;
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
    overflow: visible !important;
  }
  .grid-root.interview-layout .read-more-col { 
    display: none !important; /* hidden by default on mobile */
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto;
    background: white;
    z-index: 1000;
    padding: 20px;
    padding-top: 50px; /* Add extra top padding to clear the header */
    box-sizing: border-box;
  }
  
  .grid-root.interview-layout .read-more-col:not(.hidden) {
    display: flex !important; /* show when not hidden */
    flex-direction: column;
  }
  
  /* Hide the "Read More" header on mobile */
  .grid-root.interview-layout .read-more-col h2 {
    display: none;
  }
  
  /* Show toggle button on mobile */
  .read-more-toggle {
    display: block;
  }
  .menu-col { order: 1; width: 100%; max-width: none; }
  /* Main body with proper height */
  .main-col { order: 2; width: 100%; height: auto; min-height: 70vh; }

  /* Fixed bottom right control panel on mobile - vertical stack */
  .control-panel {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 1000;
    border: 1px solid #000;
    background: #fff;
    padding: 8px;
    height: auto;
    width: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
  }

  /* Category buttons as 2x2 grid on mobile */
  .category-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  /* Stockists: keep JS positioning but adjust for mobile layout */
  .stockists-area {
    padding: 8px;
  }

  /* Interview pages mobile layout */
  .grid-root.interview-layout {
    grid-template-columns: 1fr;
    height: 100vh;
    padding: 0;
  }
  
  /* Adjust interview header position on mobile to match homepage title */
  .interview-header {
    top: 12px;
    left: 12px;
  }

  .grid-root.interview-layout .menu-col {
    order: 1;
    width: 100%;
    max-width: none;
    border: none;
    border-bottom: 1px solid #000;
    padding: 12px;
    height: auto;
  }

  .grid-root.interview-layout .main-col {
    order: 2;
    width: 100%;
    height: calc(100vh - 60px); /* account for header height */
    min-height: calc(100vh - 60px);
    border: none;
    padding: 0;
    overflow-y: auto; /* make interview content scrollable */
  }

  /* Hide control panel and category buttons on interview pages */
  .grid-root.interview-layout .control-panel,
  .grid-root.interview-layout .category-panel {
    display: none;
  }
}

/* Hide control panel and category buttons on interview pages for all screen sizes */
.grid-root.interview-layout .control-panel,
.grid-root.interview-layout .category-panel {
  display: none;
}

/* Hide site-title in menu-col on interview pages since it's in the header */
.grid-root.interview-layout .menu-col .site-title {
  display: none;
}

/* Make site title clickable and link to home */
.grid-root.interview-layout .site-title {
  cursor: pointer;
  text-decoration: none;
  color: #000;
}

.grid-root.interview-layout .site-title:hover {
  text-decoration: underline;
}

/* Align interview title with Read More header */
.grid-root.interview-layout .interview-area h2 {
  margin-top: 0;
  padding-top: 8px; /* reduced spacing */
}

  /* Interview content styling for mobile */
  .grid-root.interview-layout .interview-area {
    padding: 10px 20px 20px 20px; /* reduced top padding from 20px to 10px */
    height: auto;
    min-height: 100%;
  }

  .grid-root.interview-layout .interview-content {
    max-width: none;
    margin: 0;
    display: block;
  }
  
  .interview-pair {
    display: block;
  }
  
  .interview-speaker {
    text-align: left;
    padding-right: 0;
    border-right: none;
    padding-bottom: 5px;
    margin-bottom: 10px;
    width: 100%;
  }
  
  .interview-response {
    padding-left: 0;
    width: 100%;
  }

/* tiny polish */
button:focus { outline: 2px dashed #333; outline-offset: 2px; }
