:root {
  --ink: #211f1d;
  --muted: #77716a;
  --paper: #f7f5f0;
  --white: #fffefa;
  --wine: #8d3b45;
  --wine-dark: #542a31;
  --gold: #b99b65;
  --line: #e5e0d7;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.site-header { min-height: 88px; padding: 0 clamp(1.2rem, 5.4vw, 6rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: var(--wine-dark); border-bottom: 1px solid rgba(255,255,255,.12); position: relative; z-index: 3; }
.brand { display: inline-flex; align-items: center; gap: .85rem; flex: 0 0 auto; }
.brand img { width: 52px; height: 58px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.2; }
.brand-copy strong { color: #fffefa; font: 600 1.08rem var(--serif); letter-spacing: -.015em; }
.brand-copy small { margin-top: .3rem; color: rgba(255,255,255,.72); font-size: .67rem; letter-spacing: .12em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(1rem, 2.5vw, 2.65rem); }
.main-nav a { font-size: .88rem; color: #fffefa; transition: color .2s ease; white-space: nowrap; }
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a[aria-current="page"] { color: #e6d0a7; }
.menu-trigger { display: none; }
.hero { min-height: min(700px, calc(100svh - 88px)); padding: clamp(3rem, 7vw, 7rem) clamp(1.2rem, 9vw, 9rem) clamp(3.5rem, 7vw, 6rem); display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 7rem); position: relative; overflow: hidden; background: linear-gradient(90deg, rgba(10,9,10,.86) 0%, rgba(10,9,10,.62) 44%, rgba(10,9,10,.08) 100%), url("images/home-hero.webp") center 52% / cover no-repeat, #111010; color: #f6f2e9; }
.hero-copy { max-width: 780px; position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: .7rem; color: var(--wine); font-size: .72rem; line-height: 1.35; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin: 0 0 1.4rem; }
.eyebrow span { width: 28px; height: 1px; background: var(--gold); }
.hero .eyebrow { color: #e6d0a7; }
.hero h1 { margin: 0; color: #fffefa; font: 500 clamp(3rem, 6vw, 5.7rem)/1.05 var(--serif); letter-spacing: -.045em; }
.hero h1 em { color: #e6d0a7; font-weight: 500; }
.hero-intro { max-width: 580px; margin: 1.75rem 0 1.8rem; color: #d2ccc2; font-size: clamp(1rem, 1.35vw, 1.13rem); line-height: 1.8; }
.scroll-link, .text-link { display: inline-flex; align-items: center; gap: .8rem; font-size: .87rem; font-weight: 600; color: var(--wine); }
.hero .scroll-link { color: #e6d0a7; }
.scroll-link span { border: 1px solid currentColor; border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; transition: transform .2s ease; }
.scroll-link:hover span { transform: translateY(3px); }
.hero-index { position: absolute; bottom: 2rem; right: clamp(1.3rem, 5.5vw, 6rem); display: flex; align-items: center; gap: .6rem; color: #b8aea0; font-size: .67rem; letter-spacing: .12em; }
.hero-index i { display: block; width: 42px; height: 1px; background: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.6rem; }
.hero-cta { display: inline-flex; align-items: center; gap: 1rem; padding: .85rem 1.2rem; border: 1px solid rgba(255,255,255,.7); color: #fffefa; background: rgba(255,255,255,.08); font-size: .86rem; font-weight: 600; transition: background .2s ease, color .2s ease; }
.hero-cta:hover { color: #181515; background: #fffefa; }
.section-wrap { padding: clamp(4.5rem, 8vw, 8rem) clamp(1.2rem, 9vw, 9rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.2rem; }
.section-heading .eyebrow { margin-bottom: .6rem; }
.section-heading h2, .note-content h2 { margin: 0; font: 500 clamp(2rem, 3.4vw, 3.35rem)/1.16 var(--serif); letter-spacing: -.035em; }
.section-heading > p { max-width: 350px; margin: 0 0 .2rem; color: var(--muted); font-size: .92rem; line-height: 1.7; }
.explore { background: var(--white); }
.portal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.portal-card { position: relative; min-height: 350px; aspect-ratio: .76; overflow: hidden; background: #443a38; isolation: isolate; color: white; }
.portal-card img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.portal-card:hover img, .portal-card:focus-visible img { transform: scale(1.045); }
.card-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(15,13,13,.04) 20%, rgba(15,13,13,.78) 100%); }
.card-number { position: absolute; top: 1.1rem; left: 1.15rem; font-size: .64rem; letter-spacing: .15em; color: rgba(255,255,255,.82); }
.card-title { position: absolute; left: 1.15rem; bottom: 1.3rem; right: 3rem; font: 500 clamp(1.4rem, 2.1vw, 2.1rem)/1.15 var(--serif); }
.card-arrow { position: absolute; right: 1rem; bottom: 1.2rem; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; transition: background .2s ease, color .2s ease; }
.portal-card:hover .card-arrow { color: var(--ink); background: white; }
.artist-note { padding: clamp(4.5rem, 8vw, 8rem) clamp(1.2rem, 13vw, 13rem); display: grid; grid-template-columns: .45fr 1.25fr .35fr; align-items: center; gap: clamp(1.5rem, 5vw, 5rem); background: #292524; color: #f7f3eb; }
.note-mark { font: 500 clamp(5rem, 10vw, 10rem)/1 var(--serif); color: transparent; -webkit-text-stroke: 1px rgba(221,195,151,.53); letter-spacing: -.09em; }
.note-content .eyebrow { color: #d1b77e; }
.note-content h2 { max-width: 680px; color: #fffefa; margin-bottom: 1.5rem; }
.note-content > p:not(.eyebrow) { max-width: 790px; color: #cbc4ba; font-size: .98rem; line-height: 1.85; }
.text-link { color: #dfc998; padding: .5rem 0; cursor: pointer; border: 0; background: transparent; }
.text-link span { font-size: 1.1rem; }
.note-side { align-self: stretch; display: flex; flex-direction: column; justify-content: end; color: #d3c2a2; font: italic 1.1rem/1.55 var(--serif); }
.note-side i { display: block; width: 1px; height: 84px; margin-top: 1.4rem; background: var(--gold); }
.partners { background: var(--paper); }
.partner-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: center; }
.partner-grid a { min-height: 120px; padding: 1.2rem; display: grid; place-items: center; background: rgba(255,255,255,.55); border: 1px solid var(--line); transition: background .2s ease, transform .2s ease; }
.partner-grid a:hover { background: var(--white); transform: translateY(-3px); }
.partner-grid img { max-height: 100px; width: auto; max-width: 100%; object-fit: contain; }
.site-footer { padding: 1.5rem clamp(1.2rem, 5.4vw, 6rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.footer-brand { font: 600 1.05rem var(--serif); color: var(--ink); }
.back-top { color: var(--wine); }
.footer-link-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem 1.2rem; }
.footer-link-menu a { color: #655e56; font-size: .76rem; }
.footer-link-menu a:hover { color: var(--wine); }

.content-dialog { width: min(1180px, 94vw); max-width: none; height: min(880px, 92dvh); max-height: 92dvh; padding: 0; border: 1px solid rgba(255,255,255,.6); background: var(--white); color: var(--ink); box-shadow: 0 30px 100px rgba(20,16,17,.32); overflow: hidden; }
.content-dialog::backdrop { background: rgba(24,21,22,.66); backdrop-filter: blur(5px); }
.dialog-bar { height: 76px; padding: .8rem 1.3rem .8rem 1.6rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--white); }
.dialog-heading { display: flex; flex-direction: column; line-height: 1.15; }
.dialog-kicker { font-size: .56rem; letter-spacing: .14em; color: var(--wine); font-weight: 500; }
.dialog-heading h2 { margin: .2rem 0 0; font: 400 1.02rem/1.15 var(--serif); letter-spacing: .005em; }
.dialog-actions { display: flex; align-items: center; gap: .85rem; }
.dialog-back { border: 0; padding: .45rem .6rem; background: transparent; color: var(--wine); font-size: .82rem; cursor: pointer; }
.dialog-back:hover { text-decoration: underline; }
.dialog-close { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.dialog-close:hover { border-color: var(--wine); color: var(--wine); }
.dialog-frame { display: block; width: 100%; height: calc(100% - 76px); border: 0; background: #fff; }

/* Consistent full-screen photo viewer for the captured EasyBlog galleries. */
.gallery-viewer { position: fixed; inset: 0; z-index: 1000; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; overflow: hidden; border: 0; background: #080808; color: #fff; }
.gallery-viewer::backdrop { background: rgba(0,0,0,.96); }
.gallery-stage { position: absolute; inset: 4.5rem 5.5rem 5rem; display: flex; align-items: center; justify-content: center; padding: 0; }
.gallery-stage img { display: block; flex: 0 1 auto; width: auto !important; height: auto !important; max-width: calc(100vw - 11rem) !important; max-height: calc(100dvh - 9.5rem) !important; object-fit: contain; }
.gallery-close, .gallery-control { position: absolute; z-index: 1; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(20,20,20,.72); color: white; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.gallery-close:hover, .gallery-control:hover { border-color: #fff; background: rgba(90,90,90,.8); }
.gallery-close { top: 1.2rem; right: 1.2rem; width: 48px; height: 48px; font-size: 1.8rem; }
.gallery-control { top: 50%; width: 52px; height: 52px; transform: translateY(-50%); font-size: 1.5rem; }
.gallery-prev { left: 1.25rem; }
.gallery-next { right: 1.25rem; }
.gallery-caption { position: absolute; left: 1rem; right: 1rem; bottom: 1.15rem; display: flex; justify-content: center; gap: .8rem; color: rgba(255,255,255,.83); text-align: center; font-size: .9rem; }
.gallery-counter { color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; }
.gallery-viewer button:focus-visible { outline: 2px solid #f1d79e; outline-offset: 3px; }
html.in-popup .gallery-stage img { max-width: calc(100vw - 11rem) !important; max-height: calc(100dvh - 9.5rem) !important; }
html.in-popup .eb-image-popup-container { display: grid !important; place-items: center !important; height: calc(100dvh - 7rem) !important; max-height: calc(100dvh - 7rem) !important; }
html.in-popup .eb-image-popup-container img { display: block; width: auto !important; height: auto !important; max-width: calc(100vw - 8rem) !important; max-height: calc(100dvh - 9rem) !important; object-fit: contain; }

/* When an original category or article is shown in the portal window, keep its content and images but remove the repeated site shell. */
html.in-popup, html.in-popup body { background: #fff; }
html.in-popup body { font-family: var(--sans); color: var(--ink); font-size: 17px; }
html.in-popup .tm-header, html.in-popup .tm-header-mobile, html.in-popup .tm-footer, html.in-popup .tm-footer-mobile, html.in-popup .uk-navbar-container, html.in-popup .uk-footer, html.in-popup .tm-sidebar, html.in-popup #tm-sidebar-a, html.in-popup #tm-sidebar-b { display: none !important; }
html.in-popup .tm-main { max-width: 1030px; margin: 0 auto; padding: clamp(1.1rem, 3vw, 2.4rem); min-height: 0; }
html.in-popup .uk-container { max-width: 100%; }
html.in-popup h1, html.in-popup .eb-entry-title { font: 500 clamp(1.8rem, 3.4vw, 2.75rem)/1.18 var(--serif); letter-spacing: -.025em; color: var(--ink); }
html.in-popup h2, html.in-popup h3 { font-family: var(--serif); }
html.in-popup p, html.in-popup li, html.in-popup .eb-entry-intro, html.in-popup .eb-post-content { font-size: 1rem; line-height: 1.78; }
html.in-popup .uk-card, html.in-popup .eb-entry, html.in-popup .eb-post { border-color: var(--line); }
html.in-popup img { max-width: 100%; max-height: 76vh; width: auto !important; height: auto !important; object-fit: contain; margin-inline: auto; border-radius: 2px; }
/* A video popup should focus on the selected film, without the Yendif related list. */
html.in-popup .yendif-video-share.video > h2,
html.in-popup .yendif-video-share.video > h2 + .row-fluid { display: none !important; }
html.in-popup .yendif-video-share.video .yendifplayers { width: 100%; max-width: 1080px; margin: 0 auto; }
html.in-popup .yendif-video-share.video .yendifplayers iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
/* Normalize EventGallery album thumbnails inside the Obras popups. The original
   Joomla layout centers each thumbnail with a transform, which makes the
   four-column flex layout collide when images have different proportions. */
html.in-popup #event .eventgallery-simplelist {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  justify-content: initial;
  gap: 1rem;
  width: 100%;
  margin: 1.2rem 0 2rem;
}
html.in-popup #event .eventgallery-simplelist-tile {
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}
html.in-popup #event .eventgallery-simplelist-tile .event-thumbnails { width: 100%; margin: 0; }
html.in-popup #event .eventgallery-simplelist .event-thumbnails .event-thumbnail {
  position: relative !important;
  left: auto !important;
  display: block !important;
  width: 100% !important;
  height: 190px;
  overflow: hidden;
  transform: none !important;
  border: 1px solid var(--line);
  background: #e9e4dc;
}
html.in-popup #event .eventgallery-simplelist .event-thumbnail img.eg-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: cover;
  object-position: center;
}
html.in-popup #event .eventgallery-icon-container { pointer-events: none; }
@media (max-width: 760px) {
  html.in-popup #event .eventgallery-simplelist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  html.in-popup #event .eventgallery-simplelist .event-thumbnails .event-thumbnail { height: 155px; }
}
@media (max-width: 420px) {
  html.in-popup #event .eventgallery-simplelist { grid-template-columns: 1fr; }
  html.in-popup #event .eventgallery-simplelist .event-thumbnails .event-thumbnail { height: 210px; }
}
/* Editorial presentation for the accessible Santa Bárbara exhibition article. */
html.in-popup .goeldi-feature-article { max-width: 1050px; margin: 0 auto; padding: clamp(.2rem, 1.3vw, 1rem) 0 2.5rem; border: 0; background: transparent; }
html.in-popup .goeldi-feature-article .eb-entry-head { margin: 0 0 1.1rem; }
html.in-popup .goeldi-feature-article .eb-entry-title { max-width: 940px; margin: 0; font: 500 clamp(1.65rem, 3vw, 2.45rem)/1.2 var(--sans); letter-spacing: -.035em; }
html.in-popup .goeldi-feature-article .eb-entry-article { display: flex; flex-direction: column; gap: 1rem; }
html.in-popup .goeldi-feature-article .eb-post-thumb { width: 100%; margin: 0; background: #e8e3da; }
html.in-popup .goeldi-feature-article .eb-post-thumb > a { display: block; width: 100% !important; }
html.in-popup .goeldi-feature-article .eb-post-thumb img { width: 100% !important; max-width: 100% !important; max-height: none !important; height: auto !important; aspect-ratio: 16 / 9; object-fit: cover; }
html.in-popup .goeldi-feature-article .ebd-block[data-type="text"] p { margin: 0; color: #4b4640; font-size: 1rem; line-height: 1.72; }
html.in-popup .goeldi-feature-article .ebd-block[data-type="columns"] { width: 100%; }
html.in-popup .goeldi-feature-article .ebd-block[data-type="columns"] > .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; margin: 0; }
html.in-popup .goeldi-feature-article .ebd-block[data-type="columns"] .col { width: auto; min-width: 0; padding: 0; }
html.in-popup .goeldi-feature-article .ebd-block[data-type="html"] iframe { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
#module-129 { display: none !important; }

/* Independent EasyBlog section pages use the portal's editorial shell. */
html.section-page, html.section-page body { min-height: 100%; background: var(--paper) !important; }
html.section-page body { display: flex; flex-direction: column; min-height: 100vh; }
html.section-page .uk-offcanvas-content, html.section-page .tm-page, html.section-page #tm-main, html.section-page #tm-main > .uk-container { background: var(--paper) !important; }
html.section-page .tm-header, html.section-page .tm-header-mobile, html.section-page .tm-footer, html.section-page .tm-footer-mobile, html.section-page .uk-navbar-container, html.section-page .uk-footer, html.section-page .tm-sidebar, html.section-page #tm-sidebar-a, html.section-page #tm-sidebar-b, html.section-page .uk-offcanvas-bar { display: none !important; }
html.section-page .uk-offcanvas-content, html.section-page .tm-page { display: contents; }
html.section-page .site-header { width: 100%; }
html.section-page .section-page-intro { padding: clamp(3rem, 6vw, 5.6rem) clamp(1.2rem, 9vw, 9rem) 2.1rem; background: linear-gradient(90deg, rgba(34,13,17,.78), rgba(34,13,17,.4)), url("images/pages-hero.webp") center 48% / cover no-repeat, #311b1e; border-bottom: 1px solid rgba(255,255,255,.16); color: #fffefa; }
html.section-page .section-page-intro .eyebrow { margin: 0 0 .8rem; color: #f2dfbd; }
html.section-page .section-page-intro .eyebrow span { background: #e6d0a7; }
html.section-page .section-page-intro h1 { margin: 0; color: #fffefa; font: 500 clamp(2.8rem, 6vw, 5rem)/1.06 var(--serif); letter-spacing: -.045em; }
html.section-page .section-home-link { display: inline-block; margin-top: 1.2rem; color: #fffefa; font-size: .87rem; border-bottom: 1px solid rgba(255,255,255,.55); }
html.section-page .section-subnav { padding: .85rem clamp(1.2rem, 9vw, 9rem); display: flex; align-items: flex-start; gap: 1.1rem; border-bottom: 1px solid var(--line); background: var(--white); }
html.section-page .section-subnav-label { flex: 0 0 auto; padding: .45rem .65rem .45rem 0; color: var(--wine); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
html.section-page .section-subnav > div { display: flex; flex-wrap: wrap; gap: .4rem .6rem; }
html.section-page .section-subnav a { padding: .38rem .65rem; color: #5b544d; font-size: .83rem; border: 1px solid transparent; transition: color .2s ease, background .2s ease, border-color .2s ease; }
html.section-page .section-subnav a:hover, html.section-page .section-subnav a[aria-current="page"] { color: var(--wine); border-color: var(--line); background: var(--paper); }
html.section-page #tm-main { flex: 1; width: 100%; margin: 0; padding: clamp(2rem, 4vw, 4rem) clamp(1.2rem, 7vw, 7rem); background: var(--paper); }
html.section-page #tm-main > .uk-container { max-width: 1240px; padding: 0; }
html.section-page #tm-main .eb-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
html.section-page #tm-main .eb-blog-grid > .eb-blog-grid__item { display: block; float: none; flex: none; grid-column: auto; width: auto !important; max-width: none !important; padding: 0 !important; }
html.section-page #tm-main #eb-blog-grid-showcases,
html.section-page #tm-main #eb-blog-grid-showcases .carousel-inner,
html.section-page #tm-main #eb-blog-grid-showcases .item,
html.section-page #tm-main .eb-blog-grid-showcase { display: contents; }
html.section-page #tm-main .eb-blog-grid-showcase-cover { position: relative; display: block; flex: none; width: 100%; min-height: 0; margin-bottom: .7rem; overflow: hidden; background: #e6e0d5; }
html.section-page #tm-main .eb-blog-grid-showcase-cover__img { position: relative; display: block; width: 100%; height: 0 !important; min-height: 190px !important; padding-bottom: 60% !important; background-size: cover; background-position: center; }
html.section-page #tm-main .eb-blog-grid-showcase-content { position: relative; inset: auto; display: block; flex: none; width: 100%; min-height: 0; padding: 0; background: transparent; color: var(--ink); }
html.section-page #tm-main .eb-blog-grid-showcase-content > a { display: block; color: var(--ink); }
html.section-page #tm-main .eb-blog-grid-showcase-content__title { margin: 0; color: var(--ink); font: 500 1.35rem/1.25 var(--serif); letter-spacing: 0; }
html.section-page #tm-main .eb-blog-grid-showcase-content__article,
html.section-page #tm-main .eb-blog-grid-showcase-content__meta,
html.section-page #tm-main .eb-blog-grid-showcase-content__more,
html.section-page #tm-main .eb-blog-grid-showcase-content > meta,
html.section-page #tm-main .eb-blog-grid-showcase-content > div[itemprop="image"],
html.section-page #tm-main .eb-blog-grid-showcase-content > div[itemprop="publisher"],
html.section-page #tm-main .eb-blog-grid-showcase-content > meta[itemprop="author"],
html.section-page #tm-main .eb-blog-grid-showcase-content > meta[itemprop^="date"] { display: none; }
html.section-page #tm-main .eb-blog-grid__content { min-height: 100%; padding: 1rem; border: 1px solid var(--line); background: var(--white); box-shadow: 0 12px 30px rgba(42,31,29,.045); transition: transform .2s ease, box-shadow .2s ease; }
html.section-page #tm-main .eb-blog-grid__content:hover { transform: translateY(-3px); box-shadow: 0 17px 36px rgba(42,31,29,.09); }
html.section-page #tm-main .eb-blog-grid__thumb { overflow: hidden; background: #e6e0d5; }
html.section-page #tm-main .eb-blog-grid-image { min-height: 190px; background-size: cover; background-position: center; transition: transform .45s ease; }
html.section-page #tm-main .eb-blog-grid__content:hover .eb-blog-grid-image { transform: scale(1.025); }
html.section-page #tm-main .eb-blog-grid__title a { color: var(--ink); font: 500 1.35rem/1.25 var(--serif); }
html.section-page #tm-main .eb-blog-grid__title a:hover { color: var(--wine); }
html.section-page #tm-main p, html.section-page #tm-main li { color: #554f49; font-size: 1rem; line-height: 1.78; }
html.section-page #tm-main .eb-blog-grid__meta, html.section-page #tm-main .eb-blog-grid__intro { color: var(--muted); font-size: .84rem; }
html.section-page .section-site-footer { width: 100%; margin-top: auto; background: var(--paper); }
html.section-page .footer-link-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem 1.2rem; }
html.section-page .footer-link-menu a { color: #655e56; font-size: .76rem; }
html.section-page .footer-link-menu a:hover { color: var(--wine); }
html.section-page .content-dialog { position: fixed; inset: 0; z-index: 20; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; }
html.section-page .dialog-bar { position: relative; height: 70px; padding: .8rem 5.2rem .8rem 1.6rem; }
html.section-page .dialog-close { position: absolute; top: 50%; right: 1rem; transform: translateY(-50%); width: 42px; height: 42px; background: var(--paper); }
html.section-page .dialog-frame { height: calc(100% - 70px); }

@media (max-width: 1050px) {
  html.section-page #tm-main .eb-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header { gap: 1rem; padding-inline: 1.4rem; }
  .main-nav { gap: 1.15rem; }
  .hero { padding-inline: 6vw; }
  .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-card { aspect-ratio: 1.05; }
  .artist-note { grid-template-columns: .3fr 1.2fr; padding-inline: 8vw; }
  .note-side { display: none; }
}
@media (max-width: 720px) {
  html.section-page #tm-main .eb-blog-grid { grid-template-columns: 1fr; gap: .8rem; }
  html.section-page #tm-main #eb.is-mobile .eb-blog-grid-showcase-cover { position: relative !important; width: 100% !important; height: auto !important; min-height: 0 !important; }
  html.section-page #tm-main #eb.is-mobile .eb-blog-grid-showcase-cover__img { height: 0 !important; min-height: 155px !important; padding-bottom: 60% !important; }
  :root { font-size: 16px; }
  .site-header { min-height: 74px; padding-inline: 1rem; flex-wrap: wrap; gap: .7rem; }
  .brand img { width: 42px; height: 46px; }
  .brand-copy strong { font-size: 1rem; }
  .brand-copy small { font-size: .58rem; }
  .menu-trigger { display: inline-flex; align-items: center; gap: .45rem; margin-left: auto; padding: .5rem .7rem; border: 1px solid rgba(255,255,255,.52); background: rgba(255,255,255,.08); color: #fffefa; font-size: .82rem; cursor: pointer; }
  .menu-trigger span { font-size: 1.15rem; line-height: .8; }
  .main-nav { display: none; flex: 1 0 100%; justify-content: flex-start; flex-wrap: wrap; padding: .2rem 0 .8rem; gap: .55rem; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: .5rem .7rem; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fffefa; font-size: .8rem; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 3.5rem 1.25rem 4.6rem; gap: 2rem; }
  .hero h1 { font-size: clamp(2.8rem, 13vw, 4.5rem); }
  .hero-intro { font-size: 1rem; }
  .hero { background-position: center, 72% center; }
  .hero-index { bottom: 1.5rem; }
  .section-wrap { padding: 3.8rem 1.1rem; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: .8rem; margin-bottom: 1.5rem; }
  .section-heading > p { max-width: 500px; }
  .portal-grid { gap: .7rem; }
  .portal-card { min-height: 230px; aspect-ratio: .79; }
  .card-number { top: .8rem; left: .75rem; font-size: .57rem; }
  .card-title { bottom: .9rem; left: .75rem; font-size: 1.3rem; }
  .card-arrow { width: 29px; height: 29px; right: .7rem; bottom: .8rem; }
  .artist-note { grid-template-columns: 1fr; padding: 3.8rem 1.25rem; gap: .2rem; }
  .note-mark { font-size: 4rem; }
  .note-content h2 { font-size: 2.3rem; }
  .note-content > p:not(.eyebrow) { font-size: .95rem; }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .partner-grid a { min-height: 100px; padding: .8rem; }
  .partner-grid img { max-height: 78px; }
  .site-footer { padding: 1.3rem 1rem; flex-wrap: wrap; font-size: .7rem; }
  .site-footer > span { order: 3; flex-basis: 100%; }
  .footer-link-menu { order: 3; flex: 0 0 100%; justify-content: flex-start; gap: .6rem 1rem; }
  .footer-link-menu a { font-size: .73rem; }
  .content-dialog { width: 100vw; height: 100dvh; max-width: none; max-height: none; border: 0; }
  .dialog-bar { height: 68px; padding-inline: .9rem; }
  .dialog-frame { height: calc(100% - 68px); }
  .dialog-heading h2 { font-size: .95rem; }
  .dialog-back { font-size: .75rem; }
  html.in-popup .tm-main { padding: 1.05rem; }
  html.section-page .section-page-intro { padding: 3rem 1.2rem 1.6rem; }
  html.section-page .section-subnav { flex-direction: column; gap: .15rem; padding: .7rem 1rem; }
  html.section-page .section-subnav > div { gap: .25rem .35rem; }
  html.section-page .section-subnav a { padding: .35rem .5rem; font-size: .78rem; }
  html.section-page #tm-main { padding: 1.5rem 1rem 2.5rem; }
  html.section-page #tm-main .eb-blog-grid__thumb { margin-bottom: .7rem; }
  html.section-page #tm-main .eb-blog-grid-image { min-height: 155px; }
  html.section-page .section-site-footer { align-items: flex-start; }
  html.section-page .dialog-bar { height: 64px; padding-left: 1rem; }
  html.section-page .dialog-frame { height: calc(100% - 64px); }
  html.section-page .dialog-close { right: .7rem; width: 40px; height: 40px; }
  .gallery-stage { inset: 3.7rem 3rem 3.8rem; }
  .gallery-stage img { max-width: calc(100vw - 6rem) !important; max-height: calc(100dvh - 7.5rem) !important; }
  html.in-popup .gallery-stage img { max-width: calc(100vw - 6rem) !important; max-height: calc(100dvh - 7.5rem) !important; }
  html.in-popup .eb-image-popup-container { height: calc(100dvh - 6rem) !important; max-height: calc(100dvh - 6rem) !important; }
  html.in-popup .eb-image-popup-container img { max-width: calc(100vw - 5rem) !important; max-height: calc(100dvh - 8rem) !important; }
  html.in-popup .goeldi-feature-article { padding: 0 0 1.5rem; }
  html.in-popup .goeldi-feature-article .eb-entry-title { font-size: clamp(1.45rem, 7vw, 2rem); }
  html.in-popup .goeldi-feature-article .ebd-block[data-type="columns"] > .row { grid-template-columns: 1fr; gap: .8rem; }
  .gallery-close { top: .7rem; right: .7rem; width: 42px; height: 42px; }
  .gallery-control { width: 42px; height: 42px; font-size: 1.2rem; }
  .gallery-prev { left: .55rem; }
  .gallery-next { right: .55rem; }
  .gallery-caption { bottom: .65rem; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Final editorial refinements for article content dialogs. */
.dialog-bar { background: #111 !important; color: #fffefa; border-bottom-color: rgba(255,255,255,.16); }
.dialog-kicker { color: #dfc998; }
.dialog-heading h2 { color: #fffefa; }
.dialog-back { color: #f4e8d2; }
.dialog-back:hover { color: #fffefa; }
.dialog-close, .gallery-close {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: currentColor;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  box-shadow: none;
}
.dialog-close { color: #fffefa; }
.dialog-close:hover, .gallery-close:hover { color: #e6d0a7; }
.dialog-close:focus-visible, .gallery-close:focus-visible { outline: 2px solid #e6d0a7; outline-offset: 3px; }
.gallery-close { color: #fffefa; font-size: 2.2rem; }

html.in-popup .eb-entry-article,
html.in-popup .eb-post-content,
html.in-popup .eb-entry-intro {
  color: #3f3b37;
  font-size: 1.02rem;
  line-height: 1.82;
}
html.in-popup .eb-entry-article p,
html.in-popup .eb-post-content p,
html.in-popup .eb-entry-intro p,
html.in-popup .ebd-block[data-type="text"] p {
  max-width: 76ch;
  margin: 0 0 1.15rem;
  color: #45403b;
  font-size: 1rem;
  line-height: 1.82;
}
html.in-popup .eb-entry-article h2,
html.in-popup .eb-post-content h2,
html.in-popup .eb-entry-article h3,
html.in-popup .eb-post-content h3 {
  max-width: 76ch;
  margin: 2rem 0 .8rem;
  color: #272321;
  line-height: 1.3;
}
html.in-popup .eb-entry-article h2,
html.in-popup .eb-post-content h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
html.in-popup .eb-entry-article h3,
html.in-popup .eb-post-content h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
html.in-popup .eb-entry-article ul,
html.in-popup .eb-entry-article ol,
html.in-popup .eb-post-content ul,
html.in-popup .eb-post-content ol,
html.in-popup .ebd-block[data-type="text"] ul,
html.in-popup .ebd-block[data-type="text"] ol {
  max-width: 76ch;
  margin: .35rem 0 1.35rem;
  padding-left: 1.5rem;
}
html.in-popup .eb-entry-article li,
html.in-popup .eb-post-content li,
html.in-popup .ebd-block[data-type="text"] li { margin: .35rem 0; padding-left: .2rem; line-height: 1.72; }
html.in-popup .eb-entry-article li::marker,
html.in-popup .eb-post-content li::marker { color: var(--wine); }
html.in-popup .eb-entry-article blockquote,
html.in-popup .eb-post-content blockquote,
html.in-popup .ebd-block[data-type="text"] blockquote {
  max-width: 76ch;
  margin: 1.7rem 0;
  padding: .9rem 1.2rem;
  border-left: 3px solid var(--wine);
  background: #f7f5f0;
  color: #4d4540;
  font: italic 1.12rem/1.65 var(--serif);
}
html.in-popup .eb-entry-article table,
html.in-popup .eb-post-content table,
html.in-popup .ebd-block[data-type="text"] table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.4rem 0 1.8rem;
  overflow-x: auto;
  border-collapse: collapse;
  color: #45403b;
  font-size: .94rem;
}
html.in-popup .eb-entry-article th,
html.in-popup .eb-entry-article td,
html.in-popup .eb-post-content th,
html.in-popup .eb-post-content td { padding: .7rem .8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
html.in-popup .eb-entry-article th,
html.in-popup .eb-post-content th { background: #f2efe9; color: #302b27; font-weight: 650; }
html.in-popup .eb-entry-article hr,
html.in-popup .eb-post-content hr { width: min(100%, 76ch); margin: 2rem 0; border: 0; border-top: 1px solid var(--line); }
html.in-popup .eb-entry-article figure,
html.in-popup .eb-post-content figure { margin: 1.4rem 0 1.8rem; }
html.in-popup .eb-entry-article figcaption,
html.in-popup .eb-post-content figcaption { margin-top: .55rem; color: var(--muted); font-size: .85rem; line-height: 1.5; text-align: center; }
html.in-popup .eb-entry-article a:not(.eb-image-popup-button),
html.in-popup .eb-post-content a:not(.eb-image-popup-button) { color: var(--wine); text-decoration: underline; text-decoration-color: rgba(141,59,69,.35); text-underline-offset: .18em; }
html.in-popup .eb-entry-article a:not(.eb-image-popup-button):hover,
html.in-popup .eb-post-content a:not(.eb-image-popup-button):hover { text-decoration-color: currentColor; }
