@font-face {
  font-family: Dream;
  src: url("assets/serif-0.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Sans;
  src: url("assets/sans-0.woff2") format("woff2");
  font-weight: 100 700; font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  background: #f1eadb;
  color: #343c30;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 75% 10%, #f8edcd, transparent 60%), #f1eadb;
  font-family: Sans, Arial, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 2px solid #8a4939;
  outline-offset: 8px;
}
.gallery-header {
  max-width: 1500px;
  margin: auto;
  padding: 32px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gallery-header > a {
  font-size: 18px;
  letter-spacing: 4px;
}
.gallery-header > a span {
  display: block;
  font-size: 7px;
  letter-spacing: 2px;
  margin-top: 7px;
}
.edition {
  font-size: 8px;
  letter-spacing: 2px;
  color: #7b7d67;
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 14px 5% 0;
}
.opening {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: 10px 40px;
  margin: 0 0 35px;
}
.eyebrow {
  font-size: 8px;
  letter-spacing: 3px;
  grid-column: 1/-1;
  margin: 8px 0 5px;
}
.opening h1 {
  font:
    400 clamp(46px, 5.5vw, 80px) / 0.98 Dream,
    Georgia,
    serif;
  letter-spacing: -2px;
  margin: 0;
}
.opening h1 em {
  font-weight: 400;
  color: #8d593f;
}
.opening > p:last-child {
  font-size: 11px;
  line-height: 1.9;
  margin: 0 0 3px;
  justify-self: end;
  text-align: right;
  color: #7a7868;
}
.collection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5%;
  align-items: start;
}
.painting {
  display: block;
  min-width: 0;
  --shadow: #183b3440;
}
.painting-valley {
  --shadow: #a0743e40;
}
.painting-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  letter-spacing: 1.4px;
  margin-bottom: 14px;
  height: 21px;
}
.painting-top > span:last-child {
  font-size: 20px;
}
.painting-top > .new-label {
  font-size: 6px !important;
  letter-spacing: 1.2px;
  border: 1px solid #bda17d77;
  border-radius: 20px;
  padding: 6px 8px;
  color: #836044;
}
.painting figure {
  margin: 0;
  position: relative;
  aspect-ratio: 1.49;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9dfc9;
  box-shadow: 0 14px 32px -14px var(--shadow);
  border: 9px solid #faf6eb;
  outline: 1px solid #b3a58b55;
  transition:
    transform 0.6s,
    box-shadow 0.6s;
  overflow: hidden;
}
.painting img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s;
  display: block;
}
.painting-dream img {
  object-position: 68% 50%;
}
.painting-valley img {
  object-position: center;
}
.painting-invite {
  position: absolute;
  bottom: 17px;
  right: 16px;
  background: #f7f0dfeb;
  border: 1px solid #fff9ee77;
  border-radius: 30px;
  padding: 11px 15px;
  font-size: 8px;
  display: flex;
  gap: 25px;
  align-items: center;
  backdrop-filter: blur(7px);
  transition: background 0.4s;
}
.painting-invite > span {
  font-size: 18px;
}
.painting:hover figure,
.painting:focus-visible figure {
  transform: translateY(-4px);
  box-shadow: 0 23px 40px -16px var(--shadow);
}
.painting:hover img,
.painting:focus-visible img {
  transform: scale(1.025);
}
.painting:hover .painting-invite {
  background: #fff8e9;
}
.painting-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}
.painting h2 {
  font:
    400 clamp(28px, 3vw, 41px) / 1.05 Dream,
    Georgia,
    serif;
  letter-spacing: -0.5px;
  margin: 0 0 9px;
}
.painting-caption p {
  font-size: 9px;
  line-height: 1.8;
  color: #777b68;
  margin: 0;
}
.enter-mark {
  border: 1px solid #aea48b88;
  border-radius: 50%;
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  font-size: 25px;
  flex-shrink: 0;
}
.painting-notes {
  font-size: 7px;
  letter-spacing: 1.6px;
  color: #8c806b;
  margin: 20px 0 0;
  padding-top: 15px;
  border-top: 1px solid #b6aa9055;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 28px 0 25px;
  font-size: 8px;
  line-height: 1.8;
  color: #88816f;
}
footer > span:last-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
footer svg {
  width: 15px;
  height: 15px;
}
@media (min-width: 1600px) {
  main {
    padding-top: 30px;
  }
  .opening {
    margin-bottom: 45px;
  }
}
@media (max-width: 650px) {
  .gallery-header {
    padding: 25px 7%;
  }
  .gallery-header > a {
    font-size: 15px;
  }
  .edition {
    font-size: 6px;
    letter-spacing: 1px;
    max-width: 100px;
    text-align: right;
    line-height: 1.8;
  }
  main {
    padding: 10px 7% 0;
  }
  .opening {
    display: block;
    margin-bottom: 32px;
  }
  .opening h1 {
    font-size: 59px;
    margin: 17px 0 15px;
  }
  .eyebrow {
    font-size: 7px;
    letter-spacing: 2px;
  }
  .opening > p:last-child {
    text-align: left;
    font-size: 10px;
  }
  .opening > p:last-child br {
    display: none;
  }
  .collection {
    grid-template-columns: 1fr;
    gap: 37px;
  }
  .painting figure {
    aspect-ratio: 1.5;
    border-width: 7px;
  }
  .painting h2 {
    font-size: 33px;
  }
  .painting-caption {
    margin-top: 19px;
  }
  .painting-top {
    font-size: 7px;
    margin-bottom: 10px;
  }
  .painting-caption p {
    font-size: 9px;
  }
  .painting-notes {
    margin-top: 16px;
  }
  .painting-invite {
    font-size: 7px;
    padding: 7px 11px;
    bottom: 12px;
    right: 12px;
    gap: 17px;
  }
  footer {
    font-size: 7px;
    padding-top: 32px;
    align-items: center;
  }
  footer > span:first-child {
    max-width: 150px;
  }
  footer > span:last-child {
    max-width: 150px;
    text-align: right;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
@media (max-width: 650px) {
  .collection {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .painting figure {
    aspect-ratio: 0.86;
    border-width: 5px;
  }
  .painting img {
    object-position: 68% 50%;
  }
  .painting-valley img {
    object-position: 59% 50%;
  }
  .painting-top {
    font-size: 5px;
    letter-spacing: 0.7px;
    margin-bottom: 9px;
  }
  .painting-top > span:last-child {
    font-size: 15px;
  }
  .painting-top > .new-label {
    font-size: 4px !important;
    padding: 4px 5px;
    letter-spacing: 0.3px;
  }
  .painting-caption {
    align-items: start;
    margin-top: 15px;
  }
  .painting h2 {
    font-size: 28px;
    line-height: 1;
    min-height: 56px;
  }
  .painting-caption p {
    font-size: 8px;
    line-height: 1.7;
    min-height: 41px;
  }
  .enter-mark {
    display: none;
  }
  .painting-invite {
    font-size: 6px;
    padding: 7px 9px;
    right: 6px;
    bottom: 7px;
    gap: 8px;
  }
  .painting-invite > span {
    font-size: 15px;
  }
  .painting-notes {
    font-size: 5px;
    letter-spacing: 0.7px;
    line-height: 1.8;
    margin-top: 12px;
    padding-top: 10px;
  }
  .opening {
    margin-bottom: 23px;
  }
  .opening h1 {
    font-size: 55px;
  }
  .opening > p:last-child {
    font-size: 9px;
    max-width: 280px;
  }
  .gallery-header {
    padding-bottom: 17px;
  }
  footer {
    font-size: 6px;
    padding-top: 22px;
  }
}
@media (max-width: 360px) {
  main {
    padding-left: 5%;
    padding-right: 5%;
  }
  .collection {
    gap: 12px;
  }
  .painting h2 {
    font-size: 25px;
    min-height: 50px;
  }
  .opening h1 {
    font-size: 49px;
  }
  .painting-invite {
    font-size: 5px;
  }
}

/* Two choices remain visible together, with readable mobile captions. */
.gallery-header > a span,
.edition,
.eyebrow,
.painting-top,
.painting-notes,
footer {
  font-size: 11px;
  line-height: 1.6;
}
.painting-caption p {
  font-size: 14px;
  line-height: 1.65;
  color: #57614c;
}
.opening > p:last-child {
  font-size: 14px;
  color: #59614d;
}
.painting-invite {
  font-size: 13px;
  min-height: 44px;
  padding: 10px 17px;
}
.painting-top > .new-label {
  font-size: 10px !important;
}
.painting-notes,
footer {
  color: #62654e;
}
@media (max-width: 650px) {
  .gallery-header {
    padding: 23px 6% 15px;
  }
  .gallery-header > a {
    font-size: 16px;
  }
  .gallery-header > a span {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .edition {
    font-size: 10px;
    letter-spacing: 0.6px;
    max-width: 125px;
  }
  main {
    padding: 7px 6% 0;
  }
  .opening {
    margin-bottom: 22px;
  }
  .opening .eyebrow {
    font-size: 10px;
    letter-spacing: 1.5px;
  }
  .opening h1 {
    font-size: 49px;
    letter-spacing: -1.4px;
    margin: 13px 0 17px;
  }
  .opening > p:last-child {
    font-size: 13px;
    max-width: 300px;
    line-height: 1.6;
  }
  .collection {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .painting-top {
    font-size: 10px;
    letter-spacing: 0.4px;
    line-height: 1.5;
    margin-bottom: 9px;
    min-height: 29px;
  }
  .new-label {
    display: none;
  }
  .painting figure {
    aspect-ratio: 0.95;
    border-width: 5px;
  }
  .painting h2 {
    font-size: 28px;
    line-height: 1.06;
    min-height: 60px;
    margin-bottom: 10px;
  }
  .painting-caption {
    margin-top: 16px;
  }
  .painting-caption p {
    font-size: 13px;
    line-height: 1.6;
    min-height: 0;
  }
  .painting-invite {
    left: 8px;
    right: 8px;
    bottom: 9px;
    padding: 8px;
    font-size: 12px;
    min-height: 44px;
    justify-content: center;
    gap: 6px;
  }
  .painting-invite > span {
    font-size: 18px;
  }
  .painting-notes {
    display: none;
  }
  footer {
    font-size: 11px;
    line-height: 1.65;
    padding-top: 24px;
    gap: 16px;
  }
  footer > span {
    max-width: 150px !important;
  }
}
@media (max-width: 360px) {
  main {
    padding-left: 5%;
    padding-right: 5%;
  }
  .collection {
    gap: 12px;
  }
  .opening h1 {
    font-size: 43px;
  }
  .painting h2 {
    font-size: 25px;
  }
  .painting-caption p {
    font-size: 12px;
  }
  .painting-top {
    font-size: 9px;
  }
  .painting-invite {
    font-size: 11px;
    left: 5px;
    right: 5px;
  }
}
@media (max-height: 700px) and (max-width: 650px) {
  .gallery-header {
    padding-top: 16px;
  }
  .opening h1 {
    font-size: 40px;
    margin: 9px 0 12px;
  }
  .opening {
    margin-bottom: 15px;
  }
  .painting figure {
    aspect-ratio: 1.05;
  }
  .painting h2 {
    font-size: 25px;
    min-height: 53px;
  }
  .painting-caption {
    margin-top: 12px;
  }
}

.painting-invite {
  position: relative;
  inset: auto;
  width: max-content;
  max-width: 100%;
  margin-top: 17px;
  backdrop-filter: none;
  border-color: #9c8e6a77;
  background: #faf5e8;
}
@media (max-width: 650px) {
  .painting-invite {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 16px;
    width: 100%;
  }
}

/* Painted theme: the valley's ochre sky, with pieces of both paintings cut from
   the originals (tools/build_theme.py). Nothing here is drawn; it is all paint. */
:root {
  --sky-ochre: #f0a502;
  --roof-red: #cf162f;
  --tree-teal: #075262;
  --paint-ink: #2b2210;
  --paint-soft: #4d3b14;
}
html {
  background: var(--sky-ochre);
  color: var(--paint-ink);
}
body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 120px;
  background:
    url("assets/tema-cielo-valle.webp?v=24.0") 0 0 / 1466px auto repeat,
    var(--sky-ochre);
}
.gallery-header,
main {
  position: relative;
  z-index: 2;
}
.gallery-header {
  align-items: flex-start;
}
.gallery-header > a {
  font: 400 34px/1 Dream, Georgia, serif;
  letter-spacing: 7px;
}
.gallery-header > a span {
  font-family: Sans, Arial, sans-serif;
  letter-spacing: 2.4px;
}
.signature {
  display: grid;
  justify-items: end;
  gap: 4px;
  margin: 0 34px 0 auto;
}
.artist {
  font: italic 400 clamp(34px, 4.4vw, 60px) / 1 Dream, Georgia, serif;
  letter-spacing: -1px;
  color: var(--roof-red);
}
.gallery-header > a span,
.edition,
.opening .eyebrow,
.opening > p:last-child,
.painting-caption p,
.painting-notes,
footer {
  color: var(--paint-soft);
}
.gallery-header .language-picker select {
  background: #f6dc98;
  border-color: #4d3b1455;
  color: var(--paint-ink);
}
.opening h1 em {
  color: var(--tree-teal);
}
.opening > p:last-child {
  margin-right: 92px;
}
.painting-top .num {
  font: 400 30px/1 Dream, Georgia, serif;
  margin-left: 26px;
  vertical-align: -6px;
}
.painting-top > .new-label,
.enter-mark {
  color: var(--paint-ink);
  border-color: #4d3b1466;
}
.painting figure {
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: 0 22px 34px -22px #5a3600aa;
}
.painting-notes {
  border-top-color: #4d3b1433;
}
.painting-invite {
  background: #f8e4b4;
  border-color: #fff4d055;
}
.painted-pieces {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.painted-pieces img {
  position: absolute;
  display: block;
  height: auto;
}
/* The skyline and the pink hill rise from the page's bottom edge; their own lower
   cut stays below it. The dome thins into the sky in the painting, so its edge does. */
.piece-skyline {
  left: -30px;
  bottom: 0;
  width: min(640px, 47vw);
  transform: translateY(36%);
  -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent 99%);
  mask-image: linear-gradient(90deg, #000 84%, transparent 99%);
}
.piece-pink-hill {
  right: -120px;
  bottom: 0;
  width: min(660px, 48vw);
  transform: translateY(48%);
}
.piece-moon {
  right: 5%;
  top: 190px;
  width: 62px;
}
@media (max-width: 650px) {
  body {
    padding-bottom: 90px;
  }
  .gallery-header {
    flex-wrap: wrap;
  }
  .gallery-header > a {
    font-size: 22px;
    letter-spacing: 4px;
  }
  .signature {
    order: 3;
    flex-basis: 100%;
    justify-items: start;
    margin: 12px 0 0;
  }
  .artist {
    font-size: 34px;
  }
  .opening > p:last-child {
    margin-right: 0;
  }
  .painting-top .num {
    font-size: 18px;
    margin-left: 8px;
    vertical-align: -3px;
  }
  .piece-skyline {
    left: -16px;
    width: 64vw;
  }
  .piece-pink-hill {
    right: -18vw;
    width: 72vw;
  }
  .piece-moon {
    top: 96px;
    right: 7%;
    width: 40px;
  }
}
