/* TheWiseChoice.com - Custom Theme CSS */
/* Colors from original twc-theme-2004 */
/* REV: 2026-10-03 16:41 CT */

:root {
  --twc-blue:       #336699;
  --twc-blue-dark:  #1e4d7a;
  --twc-blue-light: #4a7faa;
  --twc-brown:      #6E470F;
  --twc-brown-dark: #4a2e08;
  --twc-gold:       #EBB66C;
  --twc-gold-bright:#FFD335;
  --twc-dark:       #292929;
  --twc-hr:         #74501D;
  --twc-text-light: #f5e8cc;
  --twc-text-muted: #c9a96e;
}

/* ── Body ── */
body {
  background-color: var(--twc-dark);
  color: #d0c8b8;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

/* ── Navbar ── */
.navbar {
  background-color: var(--twc-brown-dark) !important;
  border-bottom: 2px solid var(--twc-hr);
  padding: 0 1rem;
}

.navbar-brand {
  color: var(--twc-text-light) !important;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  padding: 0.6rem 0;
}

.navbar-brand img {
  height: 52px;
  width: auto;
  margin-right: 10px;
  vertical-align: middle;
}

.navbar-nav .nav-link {
  color: var(--twc-gold) !important;
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  padding: 1rem 0.85rem !important;
  transition: color 0.2s;
  text-transform: uppercase;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--twc-gold-bright) !important;
  text-decoration: underline;
}

.navbar-nav .nav-link.active {
  color: var(--twc-gold-bright) !important;
  border-bottom: 2px solid var(--twc-gold-bright);
}

.navbar-toggler {
  border-color: var(--twc-gold);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23EBB66C' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Page Header / Hero ── */
.twc-hero {
  background-color: var(--twc-brown);
  border-bottom: 2px solid var(--twc-hr);
  padding: 2.5rem 1rem 2rem;
  text-align: center;
}

.twc-hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--twc-text-light);
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.twc-hero p.tagline {
  color: var(--twc-gold);
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.twc-hero hr {
  border-color: var(--twc-hr);
  border-width: 1px;
  opacity: 1;
  width: 60%;
  margin: 0 auto 1.5rem;
}

/* ── Main content area ── */
.twc-main {
  background-color: var(--twc-blue-dark);
  padding: 2rem 1rem;
  min-height: 60vh;
}

.twc-main h2 {
  color: var(--twc-gold);
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--twc-hr);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

.twc-main h3 {
  color: var(--twc-gold-bright);
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: 1.15rem;
  margin-top: 1.5rem;
}

.twc-main p {
  color: #d0c8b8;
}

.twc-main a {
  color: var(--twc-gold);
  text-decoration: none;
}
.twc-main a:hover {
  color: var(--twc-gold-bright);
  text-decoration: underline;
}

/* ── Section card blocks ── */
.twc-card {
  background-color: rgba(51, 102, 153, 0.25);
  border: 1px solid var(--twc-blue);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ── Sub-nav strip (used on Paintings, People) ── */
.twc-subnav {
  background-color: var(--twc-blue);
  padding: 0.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 1px solid var(--twc-hr);
}

.twc-subnav a {
  color: var(--twc-text-light);
  font-size: 0.82rem;
  text-decoration: none;
  padding: 0.3rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.twc-subnav a:hover {
  background-color: var(--twc-brown);
  color: var(--twc-gold-bright);
  border-color: var(--twc-hr);
}

/* ── Hero image ── */
.twc-hero-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 2px solid var(--twc-gold);
  border-radius: 3px;
}

/* Caps the hero image (index.htm) at its natural display size on
   larger screens, while still shrinking freely on narrow phones.
   Use this class instead of an inline style="max-width:...px" —
   an inline style overrides the class above and can overflow. */
.twc-hero-img-sized {
  width: 100%;
  max-width: 420px;
}

/* ── Painting pages: fit the whole painting in the window ──
   Wrap <body>'s content in .twc-page, and the picture in
   .twc-painting-frame, so the painting (portrait or landscape)
   scales to fill whatever vertical room is left after the
   nav/hero/text — no scrolling needed to see the whole piece. */
.twc-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.twc-page > .twc-main {
  flex: 1 1 auto;
  min-height: 0;       /* lets this area shrink below its content size */
  display: flex;
  flex-direction: column;
}

.twc-page > .twc-main > .container-fluid {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.twc-page .twc-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.twc-painting-frame {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
}

.twc-painting-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 2px solid var(--twc-gold);
  border-radius: 3px;
}

/* ── Minimal nav (carousel-style gallery pages) ──
   A slim bar: logo/name only, everything else tucked behind the
   hamburger. Leaves the rest of the screen to the artwork. */
.twc-nav-min {
  min-height: 46px;
  padding: 0.3rem 0.75rem;
}
.twc-nav-min .navbar-brand {
  font-size: 1rem;
  padding: 0.2rem 0;
}
.twc-nav-min .navbar-brand img {
  height: 30px;
  margin-right: 8px;
}
.twc-nav-min .navbar-toggler {
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
}
.twc-nav-min .navbar-collapse {
  background-color: var(--twc-brown-dark);
  margin-top: 0.4rem;
  border-radius: 4px;
  padding: 0.4rem 0.75rem;
}
.twc-nav-min .nav-link {
  padding: 0.55rem 0.75rem !important;
}
.twc-nav-min .nav-divider {
  border-top: 1px solid var(--twc-hr);
  margin: 0.3rem 0;
}
.twc-nav-min .nav-label {
  color: var(--twc-text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem 0.1rem;
}

/* ── Fullscreen painting carousel ──
   html/body given .twc-no-scroll so the whole viewport is the
   gallery — nothing to scroll, the carousel IS the page.

   body.twc-no-scroll is also a flex column: the nav sizes itself
   naturally (whatever its real rendered height is), and
   .twc-carousel-wrap takes exactly whatever space is left
   (flex: 1 1 auto). Earlier this used a fixed
   "height: calc(100vh - 46px)", which assumed the nav is always
   exactly 46px tall — when it rendered slightly taller than that
   for any reason, the carousel overflowed by the difference and
   cut off the bottom of tall (portrait) paintings. Flexbox removes
   the guess entirely. */
html.twc-no-scroll,
body.twc-no-scroll {
  height: 100%;
  overflow: hidden;
}

body.twc-no-scroll {
  display: flex;
  flex-direction: column;
}

.twc-carousel-wrap {
  flex: 1 1 auto;
  min-height: 0;   /* lets this area actually shrink to its share instead of overflowing */
  background-color: var(--twc-dark);
  position: relative;
}

.twc-carousel-wrap .carousel,
.twc-carousel-wrap .carousel-inner,
.twc-carousel-wrap .carousel-item {
  height: 100%;
}

/* Only the active slide is ever laid out with flex centering —
   every other .carousel-item keeps Bootstrap's own "display: none"
   from bootstrap.min.css, or every painting renders stacked on top
   of each other at once.

   Sliding is also turned off (transition: none) so a slide change
   is an instant swap rather than an animated transition. Bootstrap
   normally shows outgoing AND incoming slides at once mid-animation
   and slides one off-screen via transform — but our flex-centering
   makes both sit centered on top of each other instead of sliding
   away, which looks like a "stuck" image sitting in front of the
   one changing behind it. An instant swap sidesteps that entirely
   and is simpler for a photo gallery anyway. */
.twc-carousel-wrap .carousel-item {
  transition: none !important;
}

/* flex-direction: column so a slide WITH a caption stacks image
   then caption; a slide with no caption (most of them) just has
   one child, which centers the same way either direction. */
.twc-carousel-wrap .carousel-item.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* object-fit: contain is the key rule — it scales each painting,
   portrait or landscape, to the largest size that fits inside the
   available space with nothing cropped and nothing overflowing.

   margin-bottom gives the painting a deliberate gap from the very
   bottom edge (same dark background behind it, so it just reads as
   breathing room, not a visible bar). max-height uses calc() to
   SUBTRACT the margin from the percentage, rather than just
   trimming the percentage a bit and hoping there's room: a tall
   (portrait) painting can use nearly the full available height on
   its own, and a plain "90%" left the margin with nowhere to go —
   .carousel-inner clips anything that overflows its box, so the
   margin was being cut off silently on exactly the tall paintings
   where it mattered most. calc(90% - 1.25rem) guarantees the image
   plus its margin can never together exceed 90% of the available
   height, so the gap always has room to actually show. The
   ":has()" variant leaves further room still, for a slide that
   also has a caption below it. */
.twc-carousel-wrap .carousel-item img {
  flex: 0 1 auto;
  min-height: 0;
  max-width: 96%;
  max-height: calc(90% - 1.25rem);
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 0 2px var(--twc-gold);
  border-radius: 2px;
}
.twc-carousel-wrap .carousel-item:has(.carousel-caption) img {
  max-height: calc(80% - 1.25rem);
}

/* OPT-IN caption, real and on-page (not the browser's alt-text
   hover tooltip). To add one to any painting: in that slide's
   <div class="carousel-item">, right after the </img> tag, add:

     <div class="carousel-caption">
       <p><strong>Painting Title</strong> &mdash; medium/size note</p>
     </div>

   Leave it out and the slide shows just the painting, full size. */
.twc-carousel-wrap .carousel-caption {
  position: relative;  /* override Bootstrap's position: absolute */
  left: auto;
  right: auto;
  bottom: auto;
  flex: 0 0 auto;
  max-width: 80%;
  margin-top: 0.6rem;
  background: rgba(41, 41, 41, 0.6);
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
}
.twc-carousel-wrap .carousel-caption p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--twc-text-light);
}

.twc-carousel-wrap .carousel-control-prev,
.twc-carousel-wrap .carousel-control-next {
  width: 10%;
  opacity: 0.6;
}
.twc-carousel-wrap .carousel-control-prev:hover,
.twc-carousel-wrap .carousel-control-next:hover {
  opacity: 1;
}

.twc-carousel-wrap .carousel-indicators {
  margin-bottom: 0.4rem;
}
.twc-carousel-wrap .carousel-indicators [data-bs-target] {
  background-color: var(--twc-gold);
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

@media (max-width: 576px) {
  .twc-carousel-wrap .carousel-item img { max-width: 97%; max-height: calc(90% - 0.75rem); margin-bottom: 0.75rem; }
}

/* ── Quick-links strip on home page ── */
.twc-quicklinks {
  background-color: #1a3a55;
  border-top: 1px solid var(--twc-hr);
  border-bottom: 1px solid var(--twc-hr);
  padding: 1.25rem 1rem;
}

.twc-quicklinks .ql-item {
  text-align: center;
  padding: 0.75rem;
  border-right: 1px solid rgba(235,182,108,0.25);
}
.twc-quicklinks .ql-item:last-child { border-right: none; }

.twc-quicklinks .ql-title {
  display: block;
  color: var(--twc-gold);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 0.2rem;
}
.twc-quicklinks .ql-title:hover { color: var(--twc-gold-bright); }

.twc-quicklinks .ql-sub {
  font-size: 0.75rem;
  color: #a09080;
}

/* ── Footer ── */
.twc-footer {
  background-color: var(--twc-brown-dark);
  border-top: 2px solid var(--twc-hr);
  padding: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #a07840;
}

.twc-footer a {
  color: var(--twc-gold);
  text-decoration: none;
}
.twc-footer a:hover {
  color: var(--twc-gold-bright);
  text-decoration: underline;
}

/* ── Responsive tweaks ── */
/* Matches Bootstrap's col-md-4 stacking point (768px), so the
   right-border divider disappears exactly when items go
   full-width — not at a separate, narrower breakpoint. */
@media (max-width: 767.98px) {
  .twc-quicklinks .ql-item {
    border-right: none;
    border-bottom: 1px solid rgba(235,182,108,0.2);
  }
  .twc-quicklinks .ql-item:last-child { border-bottom: none; }
}

@media (max-width: 576px) {
  .twc-hero h1 { font-size: 1.5rem; }
  .twc-hero { padding: 1.75rem 1rem 1.5rem; }
}
