/* overrides.css — layered AFTER the original Artisteer theme CSS.
   Holds the small set of fixes that replace the stripped-out JavaScript
   (responsive menu) plus the modern gallery/lightbox styles. The original
   template.css / template.responsive.css are left untouched. */

/* ---- Responsive hamburger menu --------------------------------------- */
/* The original toggled the menu via script.responsive.js; we drive it with
   the small inline shim in Base.astro instead. */
.art-menu-btn { display: none; }

.responsive .art-menu-btn {
  display: block;
  width: 48px;
  margin: 0 auto 4px;
  padding: 9px 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.responsive .art-menu-btn span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 4px auto;
  background: #fff;
  border-radius: 2px;
}

/* Hide the menu on mobile until the hamburger reveals it. */
.responsive .art-hmenu { display: none !important; }
.responsive .art-hmenu.visible { display: block !important; }

/* On mobile, show every submenu expanded inline so all pages are directly
   tappable (the original hid them behind JS hover/tap that doesn't translate
   well to touch). */
.responsive .responsive-nav ul.art-hmenu ul { display: block !important; }
.responsive .responsive-nav ul.art-hmenu ul a { font-size: 0.92em; opacity: 0.95; }

/* ---- Gallery grid ---------------------------------------------------- */
ul.wc-gallery {
  list-style: none;
  margin: 16px 0 0 !important;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
ul.wc-gallery > li {
  margin: 0;
  padding: 0 !important;
  background: none !important;
  /* The theme gives list items overflow-x:auto; keep it visible so the
     bordered thumbnail doesn't trigger a stray horizontal scrollbar. */
  overflow: visible !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 272px;
  max-width: 100%;
}
ul.wc-gallery > li:before { content: none !important; display: none !important; }

/* Image title shown below the thumbnail, as on the original gallery pages. */
.wc-caption {
  display: block;
  margin-top: 6px;
  max-width: 100%;
  color: #444;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  word-break: break-word;
}

/* Item description (price / sold status), shown under the title with a thin
   dotted separator, mirroring the original RSMediaGallery layout. */
.wc-subcaption {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px dotted #bbb;
  color: #777;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  word-break: break-word;
}

.wc-thumb {
  display: block;
  padding: 10px;
  line-height: 0;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: border-color 0.15s;
}
.wc-thumb:hover { border-color: #850a0a; }
/* The theme forces a 7px margin on .art-article images; zero it so the
   thumbnail sits evenly inside the anchor's padding. */
.wc-thumb img { display: block; width: 250px; max-width: 100%; height: auto; margin: 0 !important; }

/* ---- Lightbox -------------------------------------------------------- */
.wc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
}
.wc-lightbox[hidden] { display: none; }

.wc-lb-figure {
  margin: 0;
  max-width: 92%;
  max-height: 92%;
  text-align: center;
}
.wc-lb-img {
  max-width: 100%;
  max-height: 80vh;
  background: #fff;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}
.wc-lb-caption {
  margin-top: 12px;
  color: #eee;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}
.wc-lb-btn {
  position: absolute;
  padding: 4px 16px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: 0;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}
.wc-lb-btn:hover { background: rgba(0, 0, 0, 0.7); }
.wc-lb-close { top: 12px; right: 16px; font-size: 34px; }
.wc-lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.wc-lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---- Logo on mobile -------------------------------------------------- */
/* Artisteer's responsive export dropped the absolutely-positioned logo
   (object211623058.png) on small screens, leaving only the blank header.png
   background. Render the logo as a real image and show it when responsive. */
.wc-logo { display: none; }
.responsive .wc-logo {
  display: block;
  padding: 12px 4% 4px;
  text-align: center;
}
.responsive .wc-logo img {
  width: 250px;
  max-width: 100%;
  height: auto;
}
/* With the logo restored, tighten the phone-number headline beneath it. */
.responsive .art-header .art-headline a { font-size: 18px; }

/* ---- Contact page ---------------------------------------------------- */
.wc-contact { line-height: 1.7; }
.wc-contact h2 { margin-bottom: 0.3em; }
.wc-contact .label { font-weight: bold; }
