@import url('/assets/styles.css');
@import url('site-chrome.css');

main#inicio { margin: 0; padding: 0; }
.note-shell { width: 100%; max-width: 1000px; margin-inline: auto; padding-inline: clamp(1.25rem,4vw,2.5rem); }
.note-heading { background: var(--cream); padding: 2rem 0 clamp(2.5rem,5vw,4rem); border-bottom: 1px solid var(--line); }
.note-breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 2.5rem; }
.note-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.note-breadcrumbs li { display: flex; gap: .5rem; min-width: 0; overflow-wrap: anywhere; }
.note-breadcrumbs li + li::before { content: '›'; color: var(--red); }
.note-breadcrumbs a:hover { color: var(--red); text-decoration: underline; }
.note-heading h1 { font-size: clamp(2.25rem,5vw,4rem); color: var(--navy); max-width: 900px; text-wrap: balance; }
.note-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.2rem; margin-top: 1.5rem; font-size: .9rem; color: var(--muted); }
.note-categories { display: flex; flex-wrap: wrap; gap: .5rem; }
.note-categories a { color: var(--red); border: 1px solid var(--line); padding: .25rem .8rem; border-radius: 50px; }
.note-content { padding-block: clamp(2rem,5vw,3.5rem); font-size: 1.1rem; line-height: 1.85; overflow-wrap: anywhere; }
.note-content > :first-child { margin-top: 0; }
.note-content h2,.note-content h3,.note-content h4 { color: var(--navy); margin: 2rem 0 1rem; }
.note-content h2 { font-size: clamp(1.6rem,3vw,2.2rem); }
.note-content h3 { font-size: 1.5rem; }
.note-content strong,.note-content b { color: var(--navy); }
.note-content a { color: var(--red); text-underline-offset: .2em; }
.note-content a:not([data-note-image]):hover { text-decoration: underline; }
.note-content ul,.note-content ol { padding-left: 1.4rem; }
.note-content figure { max-width: 100%; margin: 1.5rem 0; }
.note-content img { max-width: 100%; height: auto; border-radius: 12px; }
.note-content .aligncenter { margin-inline: auto; }
.note-content .alignleft { float: left; margin: .5rem 1.5rem 1rem 0; }
.note-content .alignright { float: right; margin: .5rem 0 1rem 1.5rem; }
.note-content::after { content: ''; display: block; clear: both; }
.note-content iframe,.note-content video { max-width: 100%; }
.note-content blockquote { margin: 2rem 0; padding: 1rem 1.5rem; background: var(--cream); border-left: 3px solid var(--gold); }
.note-content figcaption,.note-content .wp-caption-text { font-size: .85rem; color: var(--muted); line-height: 1.5; margin-top: .5rem; }
.note-content .note-image-grid,.note-content .gallery,.note-content .wp-block-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin: 2rem 0; clear: both; }
.note-content .note-image-grid > *,.note-content .gallery-item,.note-content .wp-block-gallery > figure { width: auto !important; max-width: 100%; float: none; margin: 0 !important; }
.note-content .gallery br { display: none; }
.note-content [data-note-image] { display: block; cursor: zoom-in; border-radius: 12px; overflow: hidden; }
.note-content .note-image-grid img,.note-content .gallery img,.note-content .wp-block-gallery img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; float: none; margin: 0; border: 0 !important; transition: transform .25s; }
.note-content [data-note-image]:hover img { transform: scale(1.025); }
.note-pagination { border-top: 1px solid var(--line); padding-block: 2rem 3rem; }
.note-pagination > a { margin-bottom: 2rem; }
.note-neighbors { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; }
.note-neighbors a { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
.note-neighbors a:hover { background: var(--cream); border-color: var(--gold); }
.note-neighbors span { color: var(--red); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.note-neighbors strong { color: var(--navy); font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }

/* Borderless gallery: the photograph is the focal point. */
.note-lightbox { position: fixed; inset: 0; margin: auto; width: min(1440px,100%); max-width: 100%; height: 100dvh; max-height: 100dvh; padding: clamp(1rem,3vw,2.5rem); border: 0; background: transparent; color: var(--cream); overflow: hidden; }
.note-lightbox::backdrop { background: rgba(3,12,30,.96); backdrop-filter: blur(14px); }
.note-lightbox[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: clamp(1rem,2.5vh,1.8rem); }
.note-lightbox-single[open] { grid-template-rows: auto minmax(0,1fr); }
.note-lightbox-toolbar { display: flex; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.note-lightbox-heading { flex: 1; min-width: 0; }
.note-lightbox-heading > span { display: block; margin-bottom: .45rem; color: var(--gold); font: 600 .65rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .19em; }
.note-lightbox-heading > p { margin: 0; font: 400 clamp(1rem,2vw,1.4rem)/1.3 var(--serif); text-wrap: balance; }
.note-lightbox-counter { margin: 0; padding: .45rem .8rem; white-space: nowrap; font: 500 .8rem/1 var(--sans); font-variant-numeric: tabular-nums; color: rgba(255,255,255,.65); }
.note-lightbox button { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(255,255,255,.06); color: var(--cream); cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.note-lightbox button:hover { background: var(--cream); border-color: var(--cream); color: var(--navy); }
.note-lightbox button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.note-lightbox button[hidden],.note-lightbox-thumbs[hidden] { display: none; }
.note-lightbox-stage { position: relative; min-height: 0; display: grid; grid-template-columns: 56px minmax(0,1fr) 56px; align-items: center; gap: 1rem; }
.note-lightbox-stage:has(.note-lightbox-prev[hidden]) { grid-template-columns: minmax(0,1fr); }
.note-lightbox-stage > button { justify-self: center; }
.note-lightbox-figure { height: 100%; min-height: 0; min-width: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.note-lightbox-image { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; border-radius: 5px; box-shadow: 0 16px 60px rgba(0,0,0,.28); touch-action: pan-y pinch-zoom; }
.note-lightbox-caption { flex-shrink: 0; font-size: .85rem; line-height: 1.4; text-align: center; color: rgba(255,255,255,.7); margin-top: .75rem; max-height: 4.2em; overflow: auto; }
.note-lightbox-caption:empty { display: none; }
.note-lightbox-thumbs { display: flex; justify-self: center; gap: .6rem; max-width: 100%; overflow-x: auto; padding: .5rem; border-radius: 14px; background: rgba(255,255,255,.045); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.note-lightbox-thumbs button { flex: 0 0 70px; width: 70px; height: 54px; padding: 3px; border: 2px solid transparent; border-radius: 9px; opacity: .45; background: transparent; }
.note-lightbox-thumbs button:hover { opacity: 1; background: transparent; border-color: rgba(255,255,255,.45); transform: translateY(-2px); }
.note-lightbox-thumbs button[aria-current=true] { opacity: 1; border-color: var(--gold); background: transparent; }
.note-lightbox-thumbs img { width: 60px; height: 44px; object-fit: cover; border-radius: 4px; }
.note-shell :focus-visible,.note-lightbox :focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 640px) {
  .note-content .note-image-grid,.note-content .gallery,.note-content .wp-block-gallery,.note-neighbors { grid-template-columns: 1fr; }
  .note-content .alignleft,.note-content .alignright { float: none; margin: 1rem auto; }
  .note-lightbox { padding: max(1rem,env(safe-area-inset-top)) 1rem max(1rem,env(safe-area-inset-bottom)); }
  .note-lightbox-toolbar { gap: .4rem; }
  .note-lightbox-heading > p { font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .note-lightbox-heading > span { font-size: .58rem; }
  .note-lightbox-counter { padding: .4rem; font-size: .7rem; }
  .note-lightbox-stage { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0,1fr) 44px; gap: .9rem; }
  .note-lightbox-stage:has(.note-lightbox-prev[hidden]) { grid-template-rows: minmax(0,1fr); }
  .note-lightbox-figure { grid-column: 1 / -1; grid-row: 1; }
  .note-lightbox-stage > button { width: 44px; height: 44px; }
  .note-lightbox-thumbs { gap: .35rem; padding: .35rem; }
  .note-lightbox-thumbs button { flex-basis: 60px; width: 60px; height: 48px; }
  .note-lightbox-thumbs img { width: 50px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) { .note-content [data-note-image] img,.note-lightbox button { transition: none; } }
