@font-face {
  font-family: "headers";
  src: url("../fonts/headers.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "headers_regular";
  src: url("../fonts/headers_regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "body_regular";
  src: url("../fonts/body_regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "body_italic";
  src: url("../fonts/body_italic.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #fff;
  --black: #000;
  --white: #fff;
  --focus-ring-light: rgba(255, 255, 255, 0.98);
  --focus-ring-dark: rgba(0, 0, 0, 0.92);
  --overlay-shadow: 0 1px 3px rgba(0, 0, 0, 0.92), 0 0 18px rgba(0, 0, 0, 0.55);

  --page-padding-top: 30px;
  --page-padding-right: 0;
  --page-padding-bottom: 30px;
  --page-padding-left: 30px;
  --art-height: calc(100vh - 160px);
  --track-gap: 18px;
  --arrow-offset: 50px;
  --shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  --track-overlap-left: 120px;
  --projects-text-bg: #f2f2f2;

  --icon-stroke: 2px;
  --detail-edge-offset: 62px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #fff;
}

body {
  margin: 30px 0 30px 60px;
  background: #fff;
  font-family: "body_regular", serif;
  overflow: hidden;
}

button {
  font: inherit;
}


/* Mailchimp*/


#mc_embed_shell{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 9999;
}

#mc_embed_signup{
    background: rgba(255,255,255,.95);
    font:14px "headers_regular", sans-serif;
    width: 400px;
    margin-top: 80px;
    position: relative;
    padding: 20px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Animación */
#mc_embed_signup.hide {
    opacity: 0;
    transform: translateY(-20px);
}

/* Botón cerrar */
.close-btn{
    position:absolute;
    top:10px;
    right:10px;
    cursor:pointer;
    font-size:18px;
    font-weight:bold;
    background:none;
    border:none;
	color:#000;
}

.refferal_badge{opacity: 0 !important;}
.indicates-required{margin-right: -77px !important;}
#mc_embed_signup .asterisk{color:#000;}

/*Fin mailchimp*/

.skip-link {
  position: absolute;
  left: 26px;
  top: 12px;
  transform: translateY(-140%);
  z-index: 1000;
  padding: 10px 14px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-family: "headers_regular", sans-serif;
  font-size: 16px;
  line-height: 1;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  padding: var(--page-padding-top) var(--page-padding-right) var(--page-padding-bottom) var(--page-padding-left);
  background: #fff;
  margin: 0;
  overflow: hidden;
}

.page-texture {
  display: none;
}

.sidebar {
  width: 270px;
  position: fixed;
  top: 80px;
  left: 80px;
  background: #fff;
  padding: 20px 20px 18px;
  z-index: 100;
  text-align: left;
}

.brand {
  display: block;
  font-family: "headers", sans-serif;
  font-size: 40px;
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #000;
  padding-bottom: 10px;
  margin-bottom: 0;
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.sidebar-panel {
  max-height: 500px;
  overflow: hidden;
  opacity: 1;
  transition: max-height 0.28s ease, opacity 0.2s ease;
}

.main-nav {
  display: grid;
  gap: 2px;
  padding-top: 8px;
  padding-bottom: 10px;
}

.main-nav a {
  font-size: 25px;
  text-decoration: none;
  color: #000;
  line-height: 1.2;
}

.page-paintings .main-nav a[href*="paintings"],
.page-projects .main-nav a[href*="projects"] {
  text-decoration: underline;
}

.main-nav a:hover,
.sidebar-footer a:hover,
.menu-toggle:hover {
  opacity: 0.65;
}

.header_subtitle {
  border-top: 1px solid #000;
  margin-top: 0;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-footer a,
.year,
.menu-toggle {
  font-family: "headers_regular", sans-serif;
  font-size: 20px;
  color: #000;
  text-decoration: none;
  line-height: 1;
}

.menu-toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.menu-toggle::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.menu-toggle__label {
  display: inline-block;
}

.menu-toggle__icon {
  position: relative;
  display: inline-block;
  width: 11px;
  height: 11px;
  top: -1px;
  transition: transform 0.2s ease;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #000;
  transform: translate(-50%, -50%);
  transform-origin: center;
}

.menu-toggle__icon::before {
  width: 11px;
  height: 2px;
}

.menu-toggle__icon::after {
  width: 2px;
  height: 11px;
}

.menu-toggle:focus-visible {
  outline: 2px solid #000;
  outline-offset: 4px;
}

.brand:focus-visible,
.main-nav a:focus-visible,
.sidebar-footer a:focus-visible {
  outline: 2px solid var(--focus-ring-dark);
  outline-offset: 4px;
}

.sidebar.is-collapsed .brand {
  border-bottom: 0;
}

.sidebar.is-collapsed .sidebar-panel {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.sidebar.is-collapsed .menu-toggle__icon {
  transform: rotate(0deg);
}

.sidebar:not(.is-collapsed) .menu-toggle__icon {
  transform: rotate(45deg);
}

.gallery-view,
.paintings-view,
.projects-view {
  position: relative;
  min-height: 100vh;
}

.gallery-carousel,
.paintings-carousel,
.projects-carousel {
  height: 100vh;
  display: flex;
  align-items: flex-start;
}

.gallery-track,
.paintings-track,
.projects-track {
  display: flex;
  align-items: flex-end;
  gap: var(--track-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  margin-left: calc(-1 * var(--track-overlap-left));
  padding: 0 0 40px 30px;
  scroll-behavior: smooth;
  cursor: grab;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar,
.paintings-track::-webkit-scrollbar,
.projects-track::-webkit-scrollbar {
  display: none;
}

.gallery-track.is-dragging,
.paintings-track.is-dragging,
.projects-track.is-dragging {
  cursor: grabbing;
}

.gallery-card,
.painting-card,
.project-card {
  flex: 0 0 auto;
  position: relative;
  text-decoration: none;
  scroll-snap-align: center;
}

.gallery-image-wrap,
.painting-image-wrap,
.project-image-wrap {
  height: var(--art-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-card img,
.painting-card img,
.project-card img {
  height: 100%;
  width: auto;
  max-height: var(--art-height);
  object-fit: contain;
  display: block;
  filter: none;
}

.gallery-card:hover img,
.painting-card:hover img,
.project-card:hover img {
  transform: none;
}

.gallery-card:focus-visible,
.painting-card:focus-visible,
.project-card:focus-visible {
  outline: 2px solid var(--focus-ring-light);
  outline-offset: -2px;
}

.gallery-card:focus-visible img,
.painting-card:focus-visible img,
.project-card:focus-visible img {
  transform: none;
}

.gallery-meta,
.painting-meta,
.project-meta {
  position: absolute;
  left: 20px;
  bottom: 15px;
  text-align: left;
  color: #fff;
  /* text-shadow: var(--overlay-shadow); */
}

.gallery-meta--offset,
.painting-meta.first,
.project-meta.first {
  left: 82px;
}

.gallery-meta h2,
.painting-meta h2,
.project-meta h2 {
  font-family: "headers_regular", sans-serif;
  font-size: 18px;
  margin: 0 0 2px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  font-weight: normal;
}

.gallery-meta p,
.painting-meta p,
.project-meta p {
  font-family: "headers_regular", serif;
  font-size: 16px;
  margin: 0;
  line-height: 1.2;
}

.gallery-plus,
.painting-plus,
.project-plus {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 70px;
  height: 70px;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.72));
}

.gallery-plus::before,
.gallery-plus::after,
.painting-plus::before,
.painting-plus::after,
.project-plus::before,
.project-plus::after {
  content: "";
  position: absolute;
  background: #fff;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.gallery-plus::before,
.painting-plus::before,
.project-plus::before {
  width: 42px;
  height: var(--icon-stroke);
}

.gallery-plus::after,
.painting-plus::after,
.project-plus::after {
  width: var(--icon-stroke);
  height: 42px;
}

.gallery-intro-panel,
.project-text-panel {
  position: relative;
  flex: 0 0 700px;
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  align-self: stretch;
  padding: 96px 44px 54px;
  background: var(--projects-text-bg);
  scroll-snap-align: center;
  overflow: visible;
  z-index: 0;
}

.gallery-intro-panel__inner,
.project-text-panel__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
}

.gallery-intro-panel__inner p,
.project-text-panel__inner p {
  margin: 0;
  color: #000;
  font-family: "body_regular", serif;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: 0;
}

.nav-arrow {
  position: fixed;
  top: 50%;
  width: 60px;
  height: 60px;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: none;
  cursor: pointer;
  transform: translateY(-50%);
  z-index: 120;
  transition: opacity 0.2s ease;
}

.nav-arrow span {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 24px;
  height: 24px;
  border-top: var(--icon-stroke) solid #fff;
  border-right: var(--icon-stroke) solid #fff;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.8));
}

.nav-arrow--left {
  left: 80px;
}

.nav-arrow--left span {
  transform: rotate(-135deg);
}

.nav-arrow--right {
  right: var(--arrow-offset);
}

.nav-arrow--right span {
  transform: rotate(45deg);
}

.nav-arrow.is-hidden,
.nav-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

/* =========================
   PAINTING DETAIL
========================= */

.page-painting-detail {
  margin: 0;
  background: #fff;
  overflow: hidden;
}

.painting-detail {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #fff;
  overflow: hidden;
}

.detail-track {
  --detail-gap: 22px;

  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: var(--detail-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  cursor: grab;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.detail-track::-webkit-scrollbar {
  display: none;
}

.detail-track.is-dragging {
  cursor: grabbing;
}

.detail-slide {
  flex: 0 0 auto;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  position: relative;
}

.detail-slide img {
  display: block;
  height: 100vh;
  width: auto;
  max-width: none;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.home-hero-copy {
  position: fixed;
  left: 50%;
  bottom: 78px;
  transform: translateX(-50%);
  z-index: 21;
  width: min(900px, calc(100vw - 520px));
  text-align: center;
  color: #fff;
}

.home-hero-copy__link {
  color: inherit;
  text-decoration: underline;
}

.home-hero-copy__link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
}

.home-hero-copy h1 {
  margin: 0;
  font-family: "headers", sans-serif;
  font-size: clamp(84px, 10vw, 160px);
  line-height: 0.9;
  letter-spacing: 0.01em;
}

.home-hero-copy p {
  margin: 12px 0 0;
  font-family: "body_regular", serif;
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.15;
}

.detail-slide:not(.is-active) .home-hero-copy {
  opacity: 0;
  pointer-events: none;
}

/* Metadatos */
.detail-meta {
  position: fixed;
  left: var(--detail-edge-offset);
  bottom: 36px;
  z-index: 20;
  color: #fff;
  pointer-events: none;
  /* text-shadow: var(--overlay-shadow); */
}

.detail-meta h2 {
  margin: 0 0 2px;
  font-family: "headers_regular", sans-serif;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  font-weight: normal;
  text-transform: uppercase;
}

.detail-meta p {
  margin: 0;
  font-family: "headers_regular", serif;
  font-size: 16px;
  line-height: 1.2;
}


.behind-the-scenes {
  position: relative;
}

.behind-the-scenes::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 10;
  pointer-events: none;
}

.behind-the-scenes-meta {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: min(420px, calc(100% - 48px));
  color: #fff;
  text-align: center;
}

.behind-the-scenes-meta h2 {
  margin: 0 0 2px;
  font-family: "headers_regular", sans-serif;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  font-weight: normal;
  text-transform: uppercase;
}

.behind-the-scenes-meta p {
  margin: 0;
  font-family: "headers_regular", serif;
  font-size: 16px;
  line-height: 1.2;
}

.behind-the-scenes-meta a {
  color: inherit;
  text-decoration: underline;
}

.behind-the-scenes-meta a:hover {
  opacity: 0.65;
}

.behind-the-scenes-meta a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* Contador */
.detail-counter {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 20;
  color: #fff;
  font-family: "headers_regular", sans-serif;
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
  /* text-shadow: var(--overlay-shadow); */
}

/* Flechas */
.detail-arrow {
  position: fixed;
  top: 50%;
  width: 64px;
  height: 64px;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  z-index: 25;
  transition: opacity 0.2s ease;
}

.detail-arrow span {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 26px;
  height: 26px;
  border-top: var(--icon-stroke) solid #fff;
  border-right: var(--icon-stroke) solid #fff;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.8));
}

.detail-arrow--left {
  left: 24px;
}

.detail-arrow--left span {
  transform: rotate(-135deg);
}

.detail-arrow--right {
  right: 24px;
}

.detail-arrow--right span {
  transform: rotate(45deg);
}

.detail-arrow.is-hidden,
.detail-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

/* Cerrar / volver */
.detail-close {
  position: fixed;
  right: 26px;
  bottom: 36px;
  width: 72px;
  height: 72px;
  z-index: 30;
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.detail-close::before,
.detail-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: var(--icon-stroke);
  background: #fff;
  transform-origin: center;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

.detail-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.detail-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.detail-close:hover,
.detail-arrow:hover {
  opacity: 0.7;
}

.detail-track:focus-visible,
.detail-close:focus-visible,
.detail-arrow:focus-visible,
.nav-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 900px) {
  :root {
    --page-padding-top: 0;
    --page-padding-right: 0;
    --page-padding-bottom: 0;
    --page-padding-left: 0;
    --track-gap: 12px;
    --icon-stroke: 2px;
  }

  html,
  body {
    height: 100%;
    background: #fff;
	margin: 0 !important;  
  }

  html {
    scroll-snap-type: y proximity;
    scroll-padding-top: 12px;
    scroll-padding-bottom: 0;
  }

  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page-shell {
    min-height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: #fff;
  }

  .paintings-view,
  .projects-view {
    min-height: auto;
  }

  .paintings-carousel,
  .projects-carousel {
    height: auto;
    display: block;
  }

  .gallery-track,
  .paintings-track,
  .projects-track {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--track-gap);
    margin-left: 0;
    padding: 18px 0 0;
    overflow-x: hidden;
    overflow-y: visible;
    scroll-snap-type: y proximity;
    scroll-padding-top: 12px;
    scroll-padding-bottom: 0;
    cursor: auto;
    scrollbar-width: none;
  }

  .gallery-track.is-dragging,
  .paintings-track.is-dragging,
  .projects-track.is-dragging {
    cursor: auto;
  }

  .gallery-card,
  .painting-card,
  .project-card {
    display: block;
    width: 100%;
    padding: 0 18px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    opacity: 1;
    transition: none;
  }

  .gallery-card.is-active,
  .painting-card.is-active,
  .project-card.is-active {
    opacity: 1;
  }

  .gallery-card:not(.is-active) img,
  .painting-card:not(.is-active) img,
  .project-card:not(.is-active) img,
  .gallery-card.is-active img,
  .painting-card.is-active img,
  .project-card.is-active img {
    opacity: 1;
    transform: none;
  }

  .gallery-image-wrap,
  .painting-image-wrap,
  .project-image-wrap {
    width: 100%;
    height: auto;
    min-height: 0;
    display: block;
  }

  .gallery-card img,
  .painting-card img,
  .project-card img {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
    object-fit: cover;
    filter: none;
    transition: none;
  }

  .gallery-card:hover img,
  .painting-card:hover img,
  .project-card:hover img {
    transform: none;
  }

  .gallery-meta,
  .painting-meta,
  .project-meta {
    position: absolute;
    left: 34px;
    bottom: 28px;
    right: 88px;
    color: #fff;
    z-index: 2;
  }

  .gallery-meta--offset,
  .painting-meta.first,
  .project-meta.first {
    left: 34px;
  }

  .gallery-meta h2,
  .painting-meta h2,
  .project-meta h2 {
    font-size: 19px;
    line-height: 1.05;
    margin: 0 0 4px;
  }

  .gallery-meta p,
  .painting-meta p,
  .project-meta p {
    font-size: 18px;
    line-height: 1.16;
    margin: 0;
  }

  .gallery-plus,
  .painting-plus,
  .project-plus {
    right: 28px;
    bottom: 26px;
    width: 54px;
    height: 54px;
    z-index: 2;
  }

  .gallery-plus::before,
  .gallery-plus::after,
  .painting-plus::before,
  .painting-plus::after,
  .project-plus::before,
  .project-plus::after {
    background: #fff;
  }

  .gallery-plus::before,
  .painting-plus::before,
  .project-plus::before {
    width: 34px;
    height: var(--icon-stroke);
  }

  .gallery-plus::after,
  .painting-plus::after,
  .project-plus::after {
    width: var(--icon-stroke);
    height: 34px;
  }

  .gallery-intro-panel,
.project-text-panel {
    order: -1;
    flex: 0 0 auto;
    min-height: auto;
    width: 100%;
    margin-top: -12px;
    padding: 40px 22px;
    background: var(--projects-text-bg);
    scroll-snap-align: start;
  }

  .gallery-intro-panel__inner,
.project-text-panel__inner {
    max-width: none;
  }

  .gallery-intro-panel__inner p,
.project-text-panel__inner p {
    font-size: 22px;
    line-height: 1.2;
  }

  .nav-arrow {
    display: none;
  }

  .sidebar {
    width: 246px;
    position: fixed;
    left: 24px;
    right: auto;
    top: auto;
    bottom: 24px;
    padding: 16px 16px 14px;
    z-index: 200;
    background: #fff;
    box-shadow: none;
    transform: none;
  }

  .brand {
    font-size: 36px;
    line-height: 0.92;
    padding-bottom: 12px;
    margin-bottom: 0;
    border-bottom: 1px solid #000;
  }

  .sidebar-panel {
    max-height: 60vh;
    overflow: hidden;
    opacity: 1;
    transition: max-height 0.28s ease, opacity 0.2s ease, margin-bottom 0.28s ease;
  }

  .main-nav {
    gap: 4px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .main-nav a {
    font-size: 22px;
    line-height: 1.15;
  }

  .header_subtitle {
    margin-top: 0;
    padding-top: 14px;
  }

  .sidebar-footer a,
  .year,
  .menu-toggle {
    font-size: 18px;
  }

  .menu-toggle {
    gap: 4px;
    align-items: center;
  }

  .menu-toggle__icon {
    width: 12px;
    height: 12px;
    top: 0;
  }

  .menu-toggle__icon::before {
    width: 12px;
    height: 1px;
  }

  .menu-toggle__icon::after {
    width: 1px;
    height: 12px;
  }

  .sidebar.is-collapsed .brand {
    border-bottom: 1px solid #000;
  }

  .sidebar.is-collapsed .sidebar-panel {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
  }

  /* DETAIL MOBILE */
  .page-painting-detail {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .painting-detail {
    width: 100%;
    min-height: 100dvh;
    height: auto;
    overflow: visible;
  }

  .detail-track {
    --detail-gap: clamp(12px, 3.3vw, 22px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    height: auto;
    gap: var(--detail-gap);
    overflow-x: hidden;
    overflow-y: visible;
    scroll-snap-type: y proximity;
    padding: 0;
    cursor: auto;
  }

  .detail-slide {
    display: block;
    width: 100%;
    height: auto;
    scroll-snap-align: start;
  }

  .detail-slide img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  .detail-meta {
    left: 24px;
    bottom: 18px;
    right: 96px;
  }

  .detail-meta h2 {
    font-size: 16px;
    margin-bottom: 2px;
  }

  .detail-meta p {
    font-size: 14px;
    line-height: 1.18;
  }

  .behind-the-scenes-meta {
    width: min(320px, calc(100% - 32px));
  }

  .behind-the-scenes-meta h2 {
    font-size: 16px;
    margin-bottom: 2px;
  }

  .behind-the-scenes-meta p {
    font-size: 14px;
    line-height: 1.18;
  }

  .detail-counter {
    display: none;
  }

  .detail-arrow {
    width: 50px;
    height: 50px;
  }

  .detail-arrow--left {
    left: 6px;
  }

  .detail-arrow--right {
    right: 6px;
  }

  .detail-arrow span {
    width: 20px;
    height: 20px;
  }

  .detail-close {
    right: 12px;
    bottom: 18px;
    width: 60px;
    height: 60px;
  }

  .detail-close::before,
  .detail-close::after {
    width: 34px;
  }
}

@media (max-width: 560px) {
  .gallery-track,
  .paintings-track,
  .projects-track {
    padding: 12px 0 0;
    gap: 10px;
  }

  .gallery-card,
  .painting-card,
  .project-card {
    padding: 0 12px;
  }

  .gallery-meta,
  .painting-meta,
  .project-meta {
    left: 24px;
    right: 72px;
    bottom: 18px;
  }

  .gallery-meta--offset,
  .painting-meta.first,
  .project-meta.first {
    left: 24px;
  }

  .gallery-meta h2,
  .painting-meta h2,
  .project-meta h2 {
    font-size: 16px;
    margin-bottom: 2px;
  }

  .gallery-meta p,
  .painting-meta p,
  .project-meta p {
    font-size: 14px;
    line-height: 1.18;
  }

  .gallery-plus,
  .painting-plus,
  .project-plus {
    right: 20px;
    bottom: 18px;
    width: 42px;
    height: 42px;
  }

  .gallery-plus::before,
  .painting-plus::before,
  .project-plus::before {
    width: 26px;
  }

  .gallery-plus::after,
  .painting-plus::after,
  .project-plus::after {
    height: 26px;
  }

  .gallery-intro-panel,
.project-text-panel {
    padding: 40px 16px;
  }

  .gallery-intro-panel__inner p,
.project-text-panel__inner p {
    font-size: 18px;
    line-height: 1.22;
  }

  .sidebar {
    width: 232px;
    left: 25px;
    bottom: 10px;
    padding: 14px 14px 13px;
  }

  .brand {
    font-size: 35px;
    padding-bottom: 10px;
    letter-spacing: 0.9px;
  }

  .main-nav a {
    font-size: 20px;
  }

  .sidebar-footer a,
  .year,
  .menu-toggle {
    font-size: 17px;
  }

  .detail-meta {
    left: 18px;
    right: 84px;
    bottom: 14px;
  }

  .detail-meta h2 {
    font-size: 15px;
  }

  .detail-meta p {
    font-size: 13px;
  }

  .behind-the-scenes-meta {
    width: min(280px, calc(100% - 24px));
  }

  .behind-the-scenes-meta h2 {
    font-size: 15px;
  }

  .behind-the-scenes-meta p {
    font-size: 13px;
  }

  .detail-counter {
    bottom: 12px;
    font-size: 15px;
  }

  .detail-close {
    right: 8px;
    bottom: 14px;
    width: 56px;
    height: 56px;
  }

  .detail-close::before,
  .detail-close::after {
    width: 32px;
  }
}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .paintings-track,
  .projects-track,
  .detail-track {
    scroll-behavior: auto;
  }
}

@media (max-width: 900px) {
  .skip-link {
    left: 12px;
    top: 10px;
  }
}

/* =========================
   ABOUT
========================= */

.page-about {
  background: #f2f2f2;
  overflow-x: hidden;
  overflow-y: auto;
}

.page-about .page-shell {
  min-height: 100vh;
  margin: 0;
  padding: 0 28px 56px 0;
  background: #f2f2f2;
  overflow: visible;
}

.page-about .main-nav a[href*="about"] {
  text-decoration: underline;
}

.about-page {
  margin-left: 356px;
  padding: 168px 36px 72px 36px;
  max-width: 1220px;
}

.about-bio {
  margin:60px 0 72px;
}

.about-bio__columns {
  display: block;
}

.about-copy {
  font-size: 18px;
}

.about-copy--flow {
  column-count: 3;
  column-gap: 28px;
  column-fill: balance;
}

.about-copy p {
  margin: 0;
  font-family: "body_regular";
  font-size: 18px;
  line-height: 1.42;
  color: #111;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-section-heading {
  margin-bottom: 22px;
}

.about-section-title {
  margin: 0;
  font-family: "body_regular", sans-serif;
  font-size: 20px;
  font-weight: normal;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #111;
  text-transform: uppercase;
}

.about-cv {
  margin-bottom: 56px;
  font-size: 18px;
}

.cv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.details-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 2.05fr);
  gap: 28px;
  align-items: start;
}

.cv-year-block {
  margin-bottom: 18px;
}

.cv-year {
  margin: 0 0 6px;
  font-family: "headers", sans-serif;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.1;
  color: #111;
  text-transform: uppercase;
}

.cv-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: "headers_regular", sans-serif;
}

.cv-list li {
  position: relative;
  padding-left: 14px;
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.3;
  color: #111;
}

.cv-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  top: 0;
}

.cv-list strong {
  font-family: "headers", sans-serif;
  font-weight: normal;
}

@media (max-width: 1200px) {
  .about-page {
    margin-left: 340px;
    max-width: none;
    padding-top: 168px;
  }

  .about-copy--flow {
    column-count: 2;
  }

  .cv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .page-about .page-shell {
    padding: 0 0 112px;
  }

  .about-page {
    margin-left: 0;
    padding: 140px 18px 12px;
    max-width: none;
  }

  .about-bio {
    margin: -100px 0 44px;
  }

  .cv-grid,
  .details-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-copy--flow {
    column-count: 1;
    column-gap: 0;
  }

  .about-copy,
  .about-cv {
    font-size: 18px;
  }

  .about-copy p {
    font-size: 18px;
    line-height: 1.45;
    margin: 0;
  }

  .about-section-title {
    font-size: 18px;
  }

  .cv-list li {
    font-size: 18px;
    line-height: 1.32;
  }
}


/* about tweaks */
.page-about .sidebar{background:#ffffff;}
.about-bio__columns{font-family:"body_regular", sans-serif;}
.about-bio__header{color:#f2f2f2;}
.about-bio__header h1{font-size:1em;}

/* =========================
   CONTACT
========================= */

.page-contact {
  background: #000;
  overflow: hidden;
}

.page-contact .skip-link:focus-visible {
  outline-color: #000;
}

.page-contact .page-shell {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
    url("https://sebasvelasco.com/img/contact/contact.jpg") center center / cover no-repeat;
  overflow: hidden;
}

.page-contact .sidebar {
  background: rgba(255, 255, 255, 0.96);
}

.page-contact .main-nav a[href*="contact"] {
  text-decoration: underline;
}

.page-contact .contact-page {
  position: relative;
  min-height: 100vh;
  margin-left: 356px;
  padding: 168px 36px 72px 36px;
  max-width: 1220px;
}

.page-contact .contact-layout {
  position: relative;
  min-height: calc(100vh - 240px);
  margin: 0;
  display: block;
}

.contact-overlay {
  width: min(320px, calc(100vw - 560px));
  color: #fff;
  padding-top: 80px;
}

.contact-block {
  min-width: 0;
}

.contact-block + .contact-block {
  margin-top: 42px;
}

.contact-name {
  margin: 0;
  font-family: "body_regular", serif;
  font-size: 20px;
  font-weight: normal;
  line-height: 1.42;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
}

.contact-email {
  margin: 0 0 18px;
}

.contact-email a,
.contact-social a,
.contact-credit a {
  color: #fff;
  text-decoration: underline;
}

.contact-email a {
  font-family: "headers_regular", sans-serif;
  font-size: 16px;
  line-height: 1.3;
  word-break: break-word;
}

.contact-social {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-social li {
  margin: 0 0 4px;
}

.contact-social li:last-child {
  margin-bottom: 0;
}

.contact-social a,
.contact-credit,
.contact-archive {
  font-family: "headers_regular", sans-serif;
  font-size: 16px;
  line-height: 1.3;
  color: #fff;
}

.contact-social a {
  display: inline-block;
}

.contact-credits-title {
  margin: 0 0 22px;
  font-family: "body_regular", sans-serif;
  font-size: 18px;
  font-weight: normal;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #fff;
}

.contact-email a:hover,
.contact-social a:hover,
.contact-credit a:hover {
  opacity: 0.72;
}

.contact-email a:focus-visible,
.contact-social a:focus-visible,
.contact-credit a:focus-visible {
  outline: 2px solid var(--focus-ring-light);
  outline-offset: 4px;
}

.contact-credits {
  margin: 0;
  display: grid;
  gap: 14px;
}

.contact-credit {
  margin: 0;
}

.contact-credit__label,
.contact-credit__name {
  display: block;
}

.contact-credit__label {
  letter-spacing: 0.01em;
  margin-bottom: 2px;
}

.contact-credit__name {
  font-family: "headers_regular", sans-serif;
  font-weight: normal;
  letter-spacing: 0.01em;
}

.contact-archive {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 1200px) {
  .page-contact .contact-page {
    margin-left: 340px;
    max-width: none;
    padding-top: 168px;
  }

  .contact-overlay {
    width: min(320px, calc(100vw - 470px));
 	padding-top: 0px;
  }
}

@media (max-width: 900px) {
  .page-contact {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page-contact .page-shell {
    min-height: 100dvh;
    padding: 0 0 112px;
    background-position: 62% center;
    overflow: visible;
  }

  .page-contact .contact-page {
    min-height: 100dvh;
    margin-left: 0;
    padding: 140px 18px 140px 24px;
    max-width: none;
  }

  .page-contact .contact-layout {
    min-height: 100dvh;
  }

  .contact-overlay {
    width: min(320px, calc(100vw - 48px));
    padding-top: 0;
  }

  .contact-block + .contact-block {
    margin-top: 40px;
  }

  .contact-name {
    font-size: 18px;
    line-height: 1.45;
  }

  .contact-email {
    margin: 0 0 16px;
  }

  .contact-email a,
  .contact-social a,
  .contact-credit,
  .contact-archive {
    font-size: 18px;
    line-height: 1.32;
  }

  .contact-social li {
    margin: 0 0 3px;
  }

  .contact-credits-title {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.15;
  }

  .contact-credit__label {
    margin-bottom: 1px;
  }

  .contact-credits {
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .page-contact .page-shell {
    background-position: 68% center;
  }

  .page-contact .contact-page {
    padding: 132px 16px 132px 25px;
  }

  .contact-overlay {
    width: min(280px, calc(100vw - 41px));
    padding-top: 0;
	margin-top: -100px;  
  }

  .contact-block + .contact-block {
    margin-top: 34px;
  }

  .contact-name {
    font-size: 18px;
    line-height: 1.45;
  }

  .contact-email {
    margin: 0 0 16px;
  }

  .contact-email a,
  .contact-social a,
  .contact-credit,
  .contact-archive {
    font-size: 16px;
    line-height: 1.32;
  }

  .contact-social li {
    margin: 0 0 3px;
  }

  .contact-credits-title {
    margin-bottom: 16px;
    line-height: 1.15;
  }

  .contact-credit__label {
    margin-bottom: 1px;
  }

  .contact-credits {
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .home-hero-copy {
    width: calc(100vw - 40px);
    bottom: 72px;
  }

  .home-hero-copy h1 {
    font-size: clamp(58px, 16vw, 108px);
  }

  .home-hero-copy p {
    margin-top: 8px;
    font-size: clamp(18px, 4.6vw, 24px);
    line-height: 1.18;
  }
}

@media (max-width: 560px) {
  .home-hero-copy {
    width: calc(100vw - 28px);
    bottom: 56px;
  }

  .home-hero-copy p {
    font-size: 17px;
  }
}

/* MOBILE — move hero text to top */
@media (max-width: 768px){

  .home-hero-copy{
    position: fixed;
    top: 8vh;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 90%;
    z-index: 20;
  }

  .home-hero-copy h1{
    font-size: 14vw;
    line-height: 0.9;
  }

  .home-hero-copy p{
    font-size: 4.5vw;
    margin-top: 8px;
  }

}
@media (max-width: 768px){

  .home-hero-copy__link{
    display:flex;
    flex-direction:column;
  }

  .home-hero-copy__link p{
    order:-1;
  }

}


/* =========================
   HOME RANDOM BACKGROUND
========================= */
.page-home-random,
.page-home-random .painting-detail,
.page-home-random .detail-track,
.page-home-random .detail-slide {
  background: #fff;
}

.page-home-random .detail-track--single {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: default;
  scroll-snap-type: none;
  gap: 0;
}

.page-home-random .detail-slide--single {
  width: 100%;
  height: 100vh;
  min-height: 100vh;
}

.page-home-random .detail-slide--single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  max-width: none;
}

.page-home-random .detail-arrow,
.page-home-random .detail-counter,
.page-home-random .detail-meta,
.page-home-random .detail-close {
  display: none !important;
}

@media (max-width: 900px) {
  .page-home-random,
  .page-home-random body,
  .page-home-random .painting-detail,
  .page-home-random .detail-track--single,
  .page-home-random .detail-slide--single {
    min-height: 100dvh;
  }

  .page-home-random .detail-track--single {
    display: block;
    overflow: hidden;
  }

  .page-home-random .detail-slide--single {
    height: 100dvh;
  }

  .page-home-random .detail-slide--single img {
    width: 100%;
    height: 100%;
    max-width: none;
  }
}


/* Hide + overlay until image loads */
.category .loading::after {
  opacity: 0 !important;
}

.category .loading img {
  opacity: 0;
}

.category img {
  transition: opacity 0.3s ease;
}


/* Fix desktop outer white margins on about/contact */
@media (min-width: 901px) {
  body.page-about,
  body.page-contact {
    margin: 0;
    background: #f2f2f2;
  }
}
