/* ==========================================================================
   Typography & Presentation Visibility Baseline
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..700;1,400..700&family=Instrument+Serif:ital@0;1&display=swap');

.reveal {
  font-family: 'EB Garamond', 'Instrument Serif', Georgia, serif;
  /* Lifted baseline text size so it remains clear in large presentation halls */
  font-size: 38px;
  color: #2b2b2b;
  background-color: #faf6ee; /* Soft, paper-like warm background */
}

.reveal h1, .reveal h2, .reveal h3 {
  font-family: 'Instrument Serif', 'EB Garamond', serif;
  font-weight: 600;
  color: #1a1a1a;
  text-transform: none;
  word-wrap: break-word;
  padding-top: 0.2rem;
}

/* Slide Titles */
.reveal h2 {
  font-size: 3rem; /* Large, bold screen titles */
  padding-top: 1rem;
  padding-bottom: 0.4rem;
}

.reveal h3 {
  font-size: 2rem; /* Large, bold screen titles */
  padding-bottom: 0.4rem;
}



/* Presentation Main Body Text Defaults */
.reveal p, .reveal li, .reveal div.column {
  font-size: 2rem;
  line-height: 1.5;
}

.reveal a {
  color: #1A433A;
}

.reveal .citation, .reveal .citation * {
  font-size: 1rem;
  line-height: 0.2;
}

/* Target only the title on the title/cover slide */
.reveal .quarto-title-block .title {
  font-size: 7rem !important; /* Increase or decrease this value to your liking */
  line-height: 1.3;
  margin-top: 0.5rem;
}

/* Target only the subtitle on the title/cover slide */
.reveal .quarto-title-block .subtitle {
  font-size: 4rem !important; /* Increase or decrease this value to your liking */
  line-height: 1.3;
  margin-top: 0.5rem;
}

/* ==========================================================================
   Footer & Header Progress Customization
   ========================================================================== */

/* Target the footer container, any paragraphs, or links inside it */
.reveal .footer,
.reveal .footer *,
.reveal .slide-footer,
.reveal .slide-footer * {
  font-family: 'EB Garamond', serif !important;
  font-size: 1.5rem !important; /* Scales down cleanly to ~20px on your HD slide */
  color: #666056 !important;
  opacity: 0.8 !important;
}

.reveal .slide-number {
  font-family: 'EB Garamond', serif;
  font-size: 1.5rem !important;
  color: #666056 !important;
  background-color: transparent !important;
}

.reveal .progress {
  height: 0.2rem !important;
  color: #8c2d19; /* Deep terracotta red */
}

/* ==========================================================================
   Hover Tooltip / Source Reference Popups
   ========================================================================== */

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 0.06rem dashed #1A433A;
  color: #1A433A;
  cursor: help;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 12rem; /* Wider element target bounds for HD layout */
  background-color: #332f29;
  color: #f7f4eb;
  text-align: left;
  border-radius: 0.2rem;
  padding: 0.5rem;
  position: absolute;
  z-index: 100;
  top: 125%;
  left: 50%;
  margin-left: -6rem;
  opacity: 0;
  transition: opacity 0.3s;
  font-family: 'EB Garamond', serif;
  font-size: 3rem;
  line-height: 1.4;
  box-shadow: 0 0.15rem 0.4rem rgba(0,0,0,0.2);
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.tooltip .tooltiptext.tooltip-lg {
  width: 35rem;        /* Greatly increases the container container width */
  margin-left: -17.5rem; /* Keeps it centered (exactly half of the width) */
  background-color: #FFFFFF;
}
/* ==========================================================================
   Images & Responsive Layout Adjustments
   ========================================================================== */

.reveal .presentation-image {
  max-width: 100%;
  padding: 0.4rem 0;
  max-height: 40rem; /* Expanded constraint bounds to prevent image vanishing */
  object-fit: contain;
  border-radius: 0.15rem;
  display: block;
  margin: 0 auto;
}

/* ==========================================================================
   Title Slide Author & Affiliation Grid
   ========================================================================== */

.quarto-title-authors {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: flex-start !important;
  max-width: 100% !important;
  gap: 1.2rem;
  margin: 0.5rem auto 0 auto !important;
}

.reveal .quarto-title-authors .author {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 22%;
  max-width: 24%;
  margin-bottom: 0.6rem;
}

.reveal .quarto-title-authors .author span {
  font-family: 'Instrument Serif', 'EB Garamond', serif;
  font-weight: 600;
  font-size: 1.6rem !important; /* Fixed hierarchy for names */
  color: #1a1a1a;
  margin-bottom: 0.1rem;
}

.reveal .quarto-title-affiliation {
  font-family: 'EB Garamond', serif;
  font-weight: 400;
  font-size: 1rem !important; /* Balanced university scale text size */
  color: #555555 !important;
  line-height: 1.3;
  margin-top: 0.05rem;
}

.reveal .quarto-title-author-name {
  font-family: 'EB Garamond', serif;
  font-weight: 400;
  font-size: 1.2rem !important; /* Balanced university scale text size */
  color: #555555 !important;
  line-height: 1.3;
  margin-top: 0.05rem;
}

/* ==========================================================================
   Gallery Plaque Card Layout
   ========================================================================== */

.gallery-plaque {
  background-color: #ffffff;
  color: #1a1a1a;
  padding: 0.5rem;
  border-radius: 0.08rem;
  font-family: 'EB Garamond', 'Instrument Serif', serif;
  max-width: 100%; /* Spans naturally under image asset columns */
  margin: 0.4rem auto;
  border-left: 0.02rem solid #eaeaea;
  border-top: 0.02rem solid #eaeaea;
  box-sizing: border-box;

  box-shadow:
    0 0.05rem 0.15rem rgba(0, 0, 0, 0.05),
    0 0.3rem 0.75rem rgba(0, 0, 0, 0.08),
    0 0.1rem 0.2rem rgba(0, 0, 0, 0.05);
}

.gallery-plaque .artist * {
  font-weight: 600;
  font-size: 0.75rem;
  margin-bottom: 0.15rem;
}

.gallery-plaque .artwork-title * {
  font-style: italic;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.gallery-plaque .meta * {
  font-size: 0.75rem;
  color: #666666;
  line-height: 1.4;
}

/* ==========================================================================
   Split Slide - Reusable Background Image Column (Right 40%)
   ========================================================================== */

.reveal .column-image-bg {
  position: absolute;
  /*right: -8rem !important;*/
  top: 1rem  !important;
  height: 78vh !important;  /* Added !important to bypass RevealJS */
  max-height: 95%;
  width: 30vw !important;   /* Added !important to bypass RevealJS */
  background-size: contain !important;
  background-position: right bottom;
  background-repeat: no-repeat;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
}

/* ==========================================================================
   Left Column Positioning Anchor
   ========================================================================== */

.reveal .left-column-container {
  position: relative !important;
  height: 100%; /* Fills the vertical workspace height */
  box-sizing: border-box;
}

/* Absolute positioning for the plaque to sit at the bottom-right of the left column */
.reveal .left-column-container .gallery-plaque {
  position: absolute;
  bottom: 6.5rem; /* Anchored elegantly above the footer */
  right: 1.5rem;  /* Pushed cleanly to the right edge of the 60% block */
  margin: 0;

  /* Restrict the width so it looks like a clean, compact gallery card */
  max-width: 35rem;
  background-color: #ffffff;
  border: 0.02rem solid #eaeaea;
}

/* Cleanup the background image padding on the right column */
.reveal .column-image-bg {
  position: absolute;
  top: -2rem;
  right: -8rem;
  bottom: -2rem;
  height: calc(100% + 4rem);
  width: calc(40% + 2rem);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 0 !important; /* No padding needed anymore since the plaque moved! */
}


/* Container to keep image and caption stacked and aligned */
.slide-media-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

/* The responsive image class that watches view height */
.responsive-slide-img {
  width: auto;
  max-width: 100%;
  /* Caps the image height relative to the screen height */
  /* leaving roughly 25% of the screen height for the caption and footers */
  height: 55vh;
  object-fit: contain;
  margin-bottom: 0.5rem;
}


/* ==========================================================================
   Hat tip ribbon
   ========================================================================== */

.ribbon-vintage {
 /* position: absolute; */
  left: -5rem;
  top: 0%;
  width: 40vw;
  background: #f4edd8;
  border: 2px dashed #8c6239;
  color: #4a3b32;
  padding: 1rem;
  box-sizing: border-box;
  z-index: 0;

  /* Keeps the hat and the text block side-by-side */
  display: flex !important;
  flex-direction: row;
  align-items: center;      /* Keeps the hat vertically centered relative to the text block */
  gap: 1rem;
}

.ribbon-vintage img {
  display: block;
  width: 60px;
  height: auto;
  flex-shrink: 0;
  transform: rotate(-5deg);
  margin: 0;
}

/* This targets the container holding your stacked text items */
.ribbon-text-block {
  display: flex;
  flex-direction: column;   /* Stacks the links/text vertically */
  gap: 0.1rem;             /* Spacing between each stacked line */
}

.ribbon-text-block p,
.ribbon-text-block li,
.ribbon-text-block a {
  font-size: 0.75em;
  margin: 0 !important;     /* Removes the default paragraph spacing pushing them apart */
  padding: 0 !important;
  line-height: 0.9 !important; /* Compresses the vertical text spacing tightly */
}

.ribbon-vintage a {
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  color: #1A433A;
  text-decoration: none;
}

.ribbon-vintage a:hover {
  color: #00a86b;
  text-decoration: underline;
}

/* This media query activates only on mobile screens/portrait mode */
@media screen and (max-width: 600px) {

  /* 1. Reset the background image box so it acts like a normal element */
  .reveal .column-image-bg {
    position: relative !important;
    right: 0 !important;
    top: 0 !important;
    width: 100% !important;
    /*height: 30vh !important; /* Limits image height on phone screens */
    margin: 1.5rem 0 !important;
    background-position: center center !important;
  }

  /* 2. Reset the vintage ribbon so it stacks nicely rather than floating */
  .ribbon-vintage {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    border-left: 2px dashed #8c6239 !important; /* Restore the full border box */
    margin-top: 1rem !important;
  }

  /* 3. Handle the columns layout so it breaks into a single vertical stack */
  .reveal .columns {
    display: flex !important;
    flex-direction: column !important;
  }

  .reveal .column {
    width: 100% !important;
    margin-bottom: 1rem !important;
  }

  /* 4. Shrink the massive footer text so it doesn't swallow the whole screen */
  .reveal .footer *,
  .reveal .slide-number {
    font-size: 0.35em !important;
    line-height: 1.2 !important;
    padding-bottom: 5px !important;
  }

  /* Reset the gallery plaque for mobile portrait views */
  .reveal .left-column-container .gallery-plaque {
    position: relative !important;
    bottom: 0 !important;   /* Clears desktop bottom anchoring */
    right: 0 !important;    /* Clears desktop right anchoring */
    margin: 1.5rem 0 0 0 !important; /* Pushes it down slightly below the text block */
    max-width: 100% !important; /* Lets it span the full width of the phone screen */
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Optional: Ensure its parent container lets it behave natively */
  .reveal .left-column-container {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
  }

  .gallery-plaque .artist * {
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 0.15rem;
}

.gallery-plaque .artwork-title * {
  font-style: italic;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.gallery-plaque .meta * {
  font-size: 1.5rem;
  color: #666666;
  line-height: 1.4;
}
}

/* ==========================================================================
   Print Overrides (Forces Mobile Layout on Print/PDF Export)
   ========================================================================== */
@media print {
  /* 1. Tricking Reveal.js structure into shrinking to trigger mobile mechanics */
  .reveal {
    width: 100% !important;
    max-width: 600px !important;
  }

  .reveal .slides {
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
  }

  /* 2. Re-triggering the column layout stack rules written above */
  .reveal .columns {
    display: flex !important;
    flex-direction: column !important;
  }

  .reveal .column {
    width: 100% !important;
    margin-bottom: 1rem !important;
  }

  /* 3. Re-triggering elements structural handling to stack cleanly */
  .reveal .column-image-bg {
    position: relative !important;
    right: 0 !important;
    top: 0 !important;
    width: 100% !important;
    /*height: 30vh !important; /* Limits image height on phone screens */
    margin: 1.5rem 0 !important;
  }

  .ribbon-vintage {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    border-left: 2px dashed #8c6239 !important;
    margin-top: 1rem !important;
  }

  .reveal .left-column-container {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
  }

  .reveal .left-column-container .gallery-plaque {
    position: relative !important;
    bottom: 0 !important;
    right: 0 !important;
    margin: 1.5rem 0 0 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* 4. Ensuring typography and elements match the larger mobile look */
  .gallery-plaque .artist *,
  .gallery-plaque .artwork-title *,
  .gallery-plaque .meta * {
    font-size: 1.5rem !important;
  }

  .reveal .footer *,
  .reveal .slide-number {
    font-size: 0.35em !important;
    line-height: 1.2 !important;
  }
}

.reveal .small-text * {
  font-size: 0.9rem; /* Or 12px, 80%, etc. */
  line-height: 1.3;
}


/* ==========================================================================
   Quarto Native Tabset & Tabby Customization
   ========================================================================== */

/* 1. Main Container Wrapper */
.panel-tabset {
  border: 1px solid #d8d2c4; /* Soft warm-gray border matching the plaque */
  border-radius: 2px; /* Sharper edges to match the plaque card look */
  margin-bottom: 1em;
  box-shadow: 0 0.05rem 0.15rem rgba(0, 0, 0, 0.03);
  background-color: #ffffff;
}

/* 2. Navigation Header Bar & Inner Tab List Wrapper */
.panel-tabset .panel-tabset-tabby,
.panel-tabset ul.nav-tabs {
  background-color: #f4edd8 !important; /* Warm, vintage-cream ribbon background */
  border-bottom: 2px solid #8c6239 !important; /* Vintage brown divider line */
  padding-left: 10px;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 0;
  list-style: none;
}

/* 3. Individual Tab Links (Inactive Base State) */
.panel-tabset .panel-tabset-tabby a,
.panel-tabset ul.nav-tabs li a.nav-link {
  color: #666056 !important; /* Muted charcoal/brown text */
  border: none !important;
  font-family: 'EB Garamond', serif !important;
  font-size: 1.8rem !important; /* Clear serif scale typography for headers */
  font-weight: 600 !important;
  padding: 0.5rem 1.2rem !important;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease-in-out;
}

/* 4. Hover State over Inactive Tabs */
.panel-tabset .panel-tabset-tabby a:hover,
.panel-tabset ul.nav-tabs li a.nav-link:hover {
  color: #8c2d19 !important; /* Deep terracotta red accent on hover */
  background-color: #eae4d3 !important; /* Slightly darker warm beige ribbon segment */
  border-radius: 2px 2px 0 0 !important;
  text-decoration: none;
}

/* 5. Active Tab State (The Selected View Window) */
.panel-tabset .panel-tabset-tabby a.active,
.panel-tabset ul.nav-tabs li a.nav-link.active {
  color: #faf6ee !important; /* Soft paper-cream text */
  background-color: #1A433A !important; /* Deep forest green active accent */
  border-radius: 2px 2px 0 0 !important;
  border: none !important;
}


