/* The Subjects, Styles and By Province panels on the art market's dark navbar (canvas-prints-header.php).
   Contents come from $_CONFIG['art_menus'] via nav_art_menu_lib.php, the same
   menus as the main site's nav. Opening and closing is canvasP.css's
   existing .dropdown-content behaviour: hover on desktop, tap on mobile. */

@media (min-width: 769px) {
  /* Full width under the bar rather than under the word "Subjects". */
  .navbar { position: relative; }
  .nav-item.nav-item-mega { position: static; }

  .dropdown-content.subjects-mega {
    left: 0;
    right: 0;
    min-width: 0;
    z-index: 1000;
    background-color: #111111;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  }
}

.subjects-mega .subjects-cols {
  display: grid;
  grid-template-columns: 1.1fr repeat(var(--cols, 4), 1fr); /* --cols: set by nav_art_panel() */
  gap: 28px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 26px 34px 18px;
  box-sizing: border-box;
}

.subjects-mega .subjects-heading {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: left;
}

/* canvasP.css styles every .dropdown-content a as a black, padded block. */
.subjects-mega a,
.subjects-mega .subjects-col a {
  color: #e6e6e6;
  padding: 0;
  text-align: left;
}

.subjects-mega .subjects-col a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 0;
  font-size: 16px;
}

.subjects-mega .subjects-col a:hover span:last-child,
.subjects-mega .subjects-feature a:hover .subjects-feature-name {
  color: #ffffff;
  text-decoration: underline;
}

.subjects-mega .subjects-thumb {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #2a2a2a;
  color: #9fd3ea;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subjects-mega .subjects-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The provinces: a plain list, thirteen names. */
.subjects-mega .subjects-col-plain a {
  padding: 4px 0;
  font-size: 15px;
}

.subjects-mega .subjects-feature a { display: block; }

.subjects-mega .subjects-feature img {
  display: block;
  width: 100%;
  max-width: 290px;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 18px;
}

.subjects-mega .subjects-feature-name {
  display: block;
  color: #d9d9d9;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}

.subjects-mega .subjects-shop {
  color: #d9d9d9;
  font-style: italic;
  text-decoration: underline;
  font-size: 15px;
}

.subjects-mega a.subjects-all {
  display: block;
  text-align: center;
  color: #e6e6e6;
  padding: 16px;
  border-top: 1px solid #8a6d3b;
  font-size: 17px;
}

.subjects-mega a.subjects-all:hover { color: #ffffff; text-decoration: underline; }

/* Narrower desktops: no feature, four columns. */
@media (min-width: 769px) and (max-width: 1150px) {
  .subjects-mega .subjects-cols { grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 18px; padding: 20px 22px 14px; }
  .subjects-mega .subjects-feature { display: none; }
}

/* Mobile: the panel opens in place inside the burger menu, one column. */
@media (max-width: 768px) {
  .dropdown-content.subjects-mega { background-color: #1b1b1b; }
  .subjects-mega .subjects-cols { grid-template-columns: 1fr; gap: 18px; padding: 16px 20px; }
  .subjects-mega .subjects-feature { display: none; }
  .subjects-mega .subjects-thumb { flex-basis: 36px; width: 36px; height: 36px; }
}
