  /* ==========================================================================
   Âé¶¹´«Ã½Ó³»­ Art Gallery â€” section-wide styles
   Scoped under .gallery-page so nothing leaks into the rest of the site.
   Builds on the global Âé¶¹´«Ã½Ó³»­ brand tokens (--blue, --gold, --gray, etc.).
   Gantari is the college primary typeface (see brand/toolkit/fonts.pcf).
   ========================================================================== */

/* Base: follow Bootstrap body/heading/secondary/muted for theme-aware contrast (light + dark) */

#main {
  color: var(--bs-body-color);
  --g-accent: var(--gold);
  --g-accent-2: var(--bs-primary, var(--bs-primary-rgb));
  --g-rule: var(--bs-border-color, var(--bs-primary-border-subtle));
  --gallery-font-heading: 'Gantari', 'Helvetica Neue', Arial, sans-serif;
  font-family: var(--gallery-font-heading);
}

/* Page title (hero) + in-content headings â€” Gantari (this sheet only loads under /gallery/) */
main > .hero:not(.gallery-hero) h1 {
  color: var(--white);
}

.gallery-page {
  padding-top: 8px;
}
/* Section / component headings follow theme (exceptions: image & mailing strips below) */
.gallery-page h2,
.gallery-page h3 {
  color: var(
    --bs-heading-color,
    var(--bs-emphasis-color, var(--bs-body-color))
  );
}

/* ----- Editorial primitives ----- */

.gallery-page .gallery-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bs-primary);
  margin: 0;
}
.gallery-page .gallery-eyebrow::before {
  content: '';
  display: inline-block;
  width: 2.25rem;
  height: 2px;
  background: var(--g-accent);
}

.gallery-page .gallery-display {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(
    --bs-heading-color,
    var(--bs-emphasis-color, var(--bs-body-color))
  );
}

.gallery-page .gallery-lede {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--bs-body-color);
}

/* Vertical rhythm: bottom spacing only; no top border between sections. First block sits flush to main column top. */
.gallery-page .gallery-section {
  margin: 0;
  padding: 0 0 2.75rem;
}
.gallery-page > .gallery-section:first-child {
  padding-top: 0;
}

.gallery-page .gallery-marker {
  font-family: ui-monospace, 'Âé¶¹´«Ã½Ó³»­Mono-Regular', Menlo, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--bs-primary);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.gallery-page .gallery-meta {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bs-body-color);
  margin-bottom: 0.75rem;
}

/* ----- Homepage 2x2 menu cards (image + overlay) ----- */

.gallery-page .gallery-menu {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .gallery-page .gallery-menu {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.gallery-page .gallery-menu-card {
  --gallery-cta-inset: 1.5rem;
  --gallery-cta-size: 2.5rem;
  /* final width/height so BR of CTA matches card BR while TL of small button stays fixed */
  --gallery-cta-spread: calc(
    var(--gallery-cta-inset) + var(--gallery-cta-size)
  );
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--blue-dark);
  color: var(--white);
  text-decoration: none;
  isolation: isolate;
}

.gallery-page .gallery-menu-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: brightness(0.62);
  transition:
    transform 0.6s ease,
    filter 0.4s ease;
}
.gallery-page .gallery-menu-card:hover .gallery-menu-card-img,
.gallery-page .gallery-menu-card:focus-visible .gallery-menu-card-img {
  transform: scale(1.04);
  filter: brightness(0.5);
}

/* Full-width read layer (behind the expanding CTA) */
.gallery-page .gallery-menu-card-sheen {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  min-height: 5.5rem;
  background: linear-gradient(
    to top,
    rgba(var(--blue-dark-rgb), 0.9) 0%,
    rgba(var(--blue-dark-rgb), 0) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Titles: stay above the gold panel */
.gallery-page .gallery-menu-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.5rem 1.5rem;
  padding-right: calc(var(--gallery-cta-spread) + 0.75rem);
  z-index: 3;
}

.gallery-page .gallery-menu-card-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--g-accent);
  display: block;
  margin-bottom: 0.25rem;
}

.gallery-page .gallery-menu-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.15;
  color: var(--white);
}

/*
 * CTA inset by default. Hover: only the bottom-right of the control travels to the
 * cardâ€™s bottom-right; top-left of the 2.5rem button stays put (w/h become spread).
 * Arrow remains flex-centered in the growing box.
 */
.gallery-page .gallery-menu-card-arrow {
  position: absolute;
  right: var(--gallery-cta-inset);
  bottom: var(--gallery-cta-inset);
  z-index: 2;
  width: var(--gallery-cta-size);
  height: var(--gallery-cta-size);
  box-sizing: border-box;
  border: 2px solid var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition:
    right 0.4s cubic-bezier(0.33, 1, 0.68, 1),
    bottom 0.4s cubic-bezier(0.33, 1, 0.68, 1),
    width 0.4s cubic-bezier(0.33, 1, 0.68, 1),
    height 0.4s cubic-bezier(0.33, 1, 0.68, 1),
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    backdrop-filter 0.3s ease;
}
.gallery-page .gallery-menu-card:hover .gallery-menu-card-arrow,
.gallery-page .gallery-menu-card:focus-visible .gallery-menu-card-arrow {
  right: 0;
  bottom: 0;
  width: var(--gallery-cta-spread);
  height: var(--gallery-cta-spread);
  background: var(--g-accent);
  border-color: var(--g-accent);
  color: var(--gray-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
@media (prefers-reduced-motion: reduce) {
  .gallery-page .gallery-menu-card-img {
    transition: filter 0.3s ease;
  }
  .gallery-page .gallery-menu-card:hover .gallery-menu-card-img,
  .gallery-page .gallery-menu-card:focus-visible .gallery-menu-card-img {
    transform: none;
  }
  .gallery-page .gallery-menu-card-arrow {
    transition:
      background 0.2s ease,
      color 0.2s ease,
      border-color 0.2s ease;
  }
  .gallery-page .gallery-menu-card:hover .gallery-menu-card-arrow,
  .gallery-page .gallery-menu-card:focus-visible .gallery-menu-card-arrow {
    right: var(--gallery-cta-inset);
    bottom: var(--gallery-cta-inset);
    width: var(--gallery-cta-size);
    height: var(--gallery-cta-size);
  }
}

/* ----- Exhibition feature row (alternating image/text) ----- */

.gallery-page .gallery-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  padding-block: 2.25rem;
  border-bottom: 1px solid var(--g-rule);
}
.gallery-page .gallery-feature:last-of-type {
  border-bottom: 0;
}
@media (min-width: 992px) {
  .gallery-page .gallery-feature {
    grid-template-columns: 5fr 6fr;
    gap: 3rem;
  }
  .gallery-page .gallery-feature--reverse .gallery-feature-media {
    order: 2;
  }
}

.gallery-page .gallery-feature-media {
  display: grid;
  gap: 0.5rem;
}
.gallery-page .gallery-feature-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.gallery-page .gallery-feature-media--stack {
  grid-template-columns: 1fr 1fr;
}
.gallery-page .gallery-feature-media--stack img:first-child {
  grid-column: span 2;
}

.gallery-page .gallery-feature-title {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(
    --bs-heading-color,
    var(--bs-emphasis-color, var(--bs-body-color))
  );
}
.gallery-page .gallery-feature-body p {
  margin-bottom: 0.85rem;
}
.gallery-page .gallery-feature-body p:last-child {
  margin-bottom: 0;
}

/* "Now on view" current-exhibition feature gets a stronger emphasis */
.gallery-page .gallery-feature--current {
  background: var(--blue-light);
  color: var(--bs-body-color);
  padding: 1.75rem;
  border-bottom: 0;
  border-left: 4px solid var(--g-accent);
  margin-bottom: 2rem;
}
@media (min-width: 992px) {
  .gallery-page .gallery-feature--current {
    padding: 2.25rem 2.5rem;
  }
}

/* ----- Mailing list strip -----
   No JS: flex row + growing slot. Resting: pill hugging the right. Hover/focus-within:
   row stretches to row height; slot flex-grows so the button fills right edge and full row
   height (left edge moves only as the slot grows left).
   ----- */

.gallery-page .gallery-mailing {
  background: var(--blue-dark);
  color: var(--white);
  padding: 2rem 2.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1rem;
  border-left: 4px solid var(--g-accent);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 768px) {
  .gallery-page .gallery-mailing {
    flex-wrap: nowrap;
    gap: 2rem;
    padding: 0;
  }
}

.gallery-page .gallery-mailing-copy {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
}

.gallery-page .gallery-mailing-slot {
  position: relative;
  z-index: 2;
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  transition: flex 0.42s cubic-bezier(0.33, 1, 0.68, 1);
}

@media (min-width: 768px) {
  .gallery-page .gallery-mailing:hover,
  .gallery-page .gallery-mailing:focus-within {
    align-items: stretch;
  }
  .gallery-page .gallery-mailing-copy {
    flex: 1 1 16rem;
    padding: 2rem 0 2rem 2.25rem;
  }
}

.gallery-page .gallery-mailing-title {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
}
.gallery-page .gallery-mailing p {
  margin: 0;
  color: color-mix(in srgb, var(--white) 92%, transparent);
}

.gallery-page .gallery-mailing .btn.gallery-mailing-btn {
  background: var(--g-accent);
  color: var(--gray-bg);
  border-color: var(--g-accent);
  font-weight: 700;
  white-space: nowrap;
  padding: 0.7rem 1.4rem;
  margin-right: 2rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  transition:
    background 0.3s ease,
    border 0.3s ease,
    height 0.42s cubic-bezier(0.33, 1, 0.68, 1),
    width 0.42s cubic-bezier(0.33, 1, 0.68, 1),
    padding 0.42s cubic-bezier(0.33, 1, 0.68, 1),
    margin 0.42s cubic-bezier(0.33, 1, 0.68, 1);
}

.gallery-page .gallery-mailing .btn.gallery-mailing-btn:hover,
.gallery-page .gallery-mailing .btn.gallery-mailing-btn:focus-visible {
  background: color-mix(in srgb, var(--g-accent) 75%, var(--blue-dark));
  border-color: color-mix(in srgb, var(--g-accent) 75%, var(--blue-dark));
}
@media (min-width: 768px) {
  .gallery-page .gallery-mailing .btn.gallery-mailing-btn {
    height: 50%;
  }
  .gallery-page .gallery-mailing:hover .gallery-mailing-btn,
  .gallery-page .gallery-mailing:focus-within .gallery-mailing-btn {
    width: 100%;
    height: 100%;
    min-height: 2.75rem;
    white-space: normal;
    height: 100%;
    padding: 0.7rem 2.4rem;
    margin-right: 0;
  }
}

.gallery-page .gallery-mailing .gallery-mailing-btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-page .gallery-mailing-slot,
  .gallery-page .gallery-mailing .btn.gallery-mailing-btn {
    transition: none;
  }
}

/* ----- Quick-link rail (in-page anchor nav) + home visit strip (shared chrome) ----- */

.gallery-page .gallery-rail,
.gallery-page .gallery-tags {
  border-top: 1px solid var(--g-rule);
  border-bottom: 1px solid var(--g-rule);
  padding-block: 1rem;
  margin: 1rem 0 2.25rem;
  list-style: none;
  padding-inline-start: 0;
}
.gallery-page .gallery-rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 1.25rem;
}
@media (min-width: 768px) {
  .gallery-page .gallery-rail {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}
/* Visit / hours / admission: row of items, even gaps, width follows content (not equal columns) */
.gallery-page .gallery-tags {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem 1.25rem;
}
@media (min-width: 768px) {
  .gallery-page .gallery-tags {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
  }
  .gallery-page .gallery-tags > li {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
  }
}
.gallery-page .gallery-rail a {
  text-decoration: none;
  color: var(--g-accent-2);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.4rem 0;
}
.gallery-page .gallery-rail a::after {
  content: 'â†’';
  color: var(--g-accent);
  font-weight: 800;
  transition: transform 0.25s ease;
}
.gallery-page .gallery-rail a:hover::after,
.gallery-page .gallery-rail a:focus-visible::after {
  transform: translateX(4px);
}

/* Home: visit / hours / admission â€” arrow first, then label/body; prefer one line, wrap on narrow */
.gallery-page .gallery-tags li {
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  color: var(--bs-body-color);
  margin: 0;
  padding: 0.35rem 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  text-transform: none;
}
.gallery-page .gallery-tags li::before {
  content: 'â†’';
  color: var(--g-accent);
  font-weight: 800;
  flex-shrink: 0;
  line-height: 1;
}
.gallery-page .gallery-tags li > span {
  flex: 0 1 auto;
  min-width: 0;
  white-space: normal;
}
@media (min-width: 992px) {
  .gallery-page .gallery-tags li > span {
    white-space: nowrap;
  }
}
.gallery-page .gallery-tags strong {
  color: var(--g-accent-2);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ----- Support cards ("How to Support Us") ----- */

.gallery-page .gallery-support {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1rem 0 0;
}
@media (min-width: 768px) {
  .gallery-page .gallery-support {
    grid-template-columns: 1fr 1fr;
  }
}
.gallery-page .gallery-support-card {
  background: var(--bs-secondary-bg);
  border: 1px solid var(--g-rule);
  border-top: 4px solid var(--g-accent);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--bs-body-color);
}
.gallery-page .gallery-support-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(
    --bs-heading-color,
    var(--bs-emphasis-color, var(--bs-body-color))
  );
}
.gallery-page .gallery-support-card p {
  flex: 1 1 auto;
}
.gallery-page .gallery-support-card .btn {
  align-self: flex-start;
}

/* ----- Mural artists list (text-only entries) ----- */

.gallery-page .gallery-list-block {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--g-rule);
}
.gallery-page .gallery-list-block:last-of-type {
  border-bottom: 0;
}
.gallery-page .gallery-list-block strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  margin-bottom: 0.25rem;
  color: var(
    --bs-heading-color,
    var(--bs-emphasis-color, var(--bs-body-color))
  );
}

/* Photo credits for third-party / openly licensed artwork images */
.gallery-page .gallery-art-credit {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--bs-body-color);
  margin: 0.6rem 0 0;
  max-width: 60ch;
}
.gallery-page .gallery-art-credit a {
  color: var(--bs-link-color);
}

/* ----- Dark theme: elevated surfaces (Bootstrap tokens; body copy stays --bs-body-color) ----- */

[data-bs-theme='dark'] .gallery-page .gallery-feature--current {
  background: var(--bs-tertiary-bg);
}
[data-bs-theme='dark'] .gallery-page .gallery-mailing {
  background: var(--bs-tertiary-bg);
}
