/* responsive.css — only breakpoints and layout changes */

@media (max-width: 960px) {
  :root {
    --page-margin: 28px;
  }

  .home-intro__identity,
  .home-intro__text,
  .project-intro__left,
  .project-intro__right,
  .project-copy,
  .project-closing .project-copy,
  .project-meta,
  .about-media,
  .about-content {
    grid-column: 1 / span 12;
  }

  .project-intro__right {
    margin-top: 12px;
  }

  .project-lede {
    margin-left: 0;
    text-align: left;
  }

  .home-intro__text {
    justify-content: flex-end;
  }

  .intro-text {
    max-width: 260px;
    text-align: right;
    white-space: normal;
  }

  .project-meta {
    margin-top: 28px;
  }

  .about-media {
    width: 100%;
    max-width: none;
  }

  .about-contact-card--links {
    justify-content: flex-start;
  }

  .about-content {
    margin-top: 18px;
  }
}

@media (max-width: 1540px) {
  .pl-1211-lightbox__control--previous {
    left: 10px;
  }

  .pl-1211-lightbox__control--next {
    right: 10px;
  }
}

@media (max-width: 760px) {
  :root {
    --page-margin: 18px;
    --grid-gap: 18px;
  }

  html,
  body {
    overflow-x: hidden;
  }

  @supports (overflow: clip) {
    html,
    body {
      overflow-x: clip;
    }
  }

  .site-shell {
    width: min(calc(100% - (var(--page-margin) * 2)), var(--max-width));
  }

  .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
  }

  .page-main {
    padding-top: 56px;
  }

  .project-copy--primary {
    display: none;
  }

  .project-body {
    padding: 6px 0 18px;
  }

  .project-meta {
    margin-top: 0;
  }

  .project-gallery {
    padding-top: 8px;
  }

  .project-story--mobile {
    display: block;
    padding: 38px 0 28px;
  }

  .image-block,
  .image-frame,
  .project-gallery figure,
  .project-gallery video,
  .morphology-mosaic__image,
  .morphology-final__image {
    max-width: 100%;
  }

  .hero-image .image-frame img,
  .project-gallery .image-frame img,
  .flowerland-gallery__intermediate-photo,
  .morphology-final__image img {
    object-fit: contain;
    object-position: center;
  }

  .pl-1211-lightbox {
    padding: 14px;
  }

  .pl-1211-lightbox__stage {
    max-height: calc(100vh - 88px);
  }

  .pl-1211-lightbox__image {
    max-height: calc(100vh - 88px);
  }

  .pl-1211-lightbox__control {
    width: 30px;
    height: 30px;
    font-size: 25px;
  }

  .pl-1211-lightbox__control--close {
    top: -34px;
    right: 0;
  }

  .pl-1211-lightbox__control--previous {
    left: 6px;
  }

  .pl-1211-lightbox__control--next {
    right: 6px;
  }

  .site-header__inner {
    min-height: 56px;
  }

  .site-brand__full {
    display: none;
  }

  .site-brand__short {
    display: inline;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 16px 20px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    transform: translateY(-115%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-slow), opacity var(--transition-slow);
  }

  body.is-menu-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-line);
    text-align: left;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .project-card__media {
    aspect-ratio: 4 / 3;
  }

  .project-card--wide .project-card__media {
    aspect-ratio: 4 / 3;
  }

  .project-card__info {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .project-card__meta {
    align-items: flex-start;
    text-align: left;
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: baseline;
  }

  .site-footer__inner > p:first-child {
    min-width: 0;
  }

  .next-project {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    padding-top: 0;
    margin-top: 44px;
    margin-bottom: 36px;
    border-top-color: var(--color-line);
    border-bottom: 1px solid var(--color-line);
  }

  .next-project__link {
    min-height: 72px;
    padding: 14px 0 13px;
    align-items: center;
    gap: 10px;
  }

  .next-project__link--previous {
    padding-right: 14px;
  }

  .next-project__link--next {
    padding-left: 14px;
  }

  .next-project--start {
    grid-template-columns: 1fr 1fr;
  }

  .next-project--start .next-project__link--next {
    grid-column: 2;
  }

  .next-project__home {
    display: none;
  }

  .next-project__label {
    margin-bottom: 4px;
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .next-project__label > * {
    display: none;
  }

  .next-project__label {
    font-size: 0;
  }

  .next-project__label::before {
    display: block;
    font-size: 10px;
    line-height: 1.35;
  }

  .next-project__link--previous .next-project__label::before {
    content: "Previous";
  }

  .next-project__link--next .next-project__label::before {
    content: "Next";
  }

  :lang(es) .next-project__link--previous .next-project__label::before {
    content: "Anterior";
  }

  :lang(es) .next-project__link--next .next-project__label::before {
    content: "Siguiente";
  }

  .next-project h2 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.32;
    padding-bottom: 2px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .next-project__arrow {
    font-size: 18px;
    line-height: 1;
  }

  .image-half,
  .image-small,
  .gallery-note,
  .deeb-gallery__archive-note,
  .deeb-gallery__detail,
  .deeb-gallery__triptych,
  .pl-1211-gallery__details,
  .pl-1211-gallery__triptych,
  .ufc-gallery__caption--top,
  .ufc-gallery__strip,
  .ufc-gallery__result--large,
  .ufc-gallery__video-card,
  .phi-lamp-gallery__solo-left,
  .phi-lamp-gallery__solo-right,
  .phi-lamp-gallery__pair-left,
  .phi-lamp-gallery__pair-right,
  .phi-lamp-gallery__archive-note,
  .phi-lamp-gallery__wide {
    grid-column: 1 / span 12;
  }

  .phi-lamp-gallery {
    row-gap: 42px;
  }

  .phi-lamp-gallery__wide {
    aspect-ratio: auto;
  }

  .phi-lamp-gallery__wide .image-frame {
    aspect-ratio: auto;
    overflow: visible;
    background: transparent;
  }

  .phi-lamp-gallery__wide img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .phi-lamp-gallery__archive-note {
    max-width: 320px;
    padding-bottom: 0;
    justify-self: start;
    text-align: left;
  }

  .ufc-gallery {
    row-gap: 18px;
  }

  .ufc-gallery__caption--top {
    max-width: 360px;
    margin-bottom: -8px;
  }

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

  .ufc-gallery__result--large {
    aspect-ratio: 4 / 5;
  }

  .ufc-gallery__video-card {
    justify-self: start;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
    align-items: end;
    width: 100%;
    margin-top: 20px;
  }

  .ufc-gallery__video-card .ufc-gallery__video {
    width: min(58vw, 190px);
  }

  .ufc-gallery__video-card figcaption {
    align-self: end;
    margin-top: 0;
    padding-bottom: 1px;
  }

  .phi-lamp-gallery__solo-left,
  .phi-lamp-gallery__solo-right,
  .phi-lamp-gallery__pair-left,
  .phi-lamp-gallery__pair-right {
    aspect-ratio: 1400 / 2489;
  }

  .flowerland-gallery {
    grid-template-columns: 1fr;
    row-gap: 34px;
  }

  .flowerland-gallery__item--top,
  .flowerland-gallery__item--wide,
  .flowerland-gallery__duo,
  .flowerland-gallery__campaign,
  .flowerland-gallery__strip {
    grid-column: 1;
  }

  .flowerland-gallery__item--wide {
    aspect-ratio: 4 / 3;
  }

  .flowerland-gallery__duo {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .flowerland-gallery__item--portrait,
  .flowerland-gallery__duo-text,
  .flowerland-gallery__intermediate-photo-card,
  .flowerland-gallery__mini-video-card {
    grid-column: 1;
  }

  .flowerland-gallery__intermediate-photo-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
    align-items: end;
    justify-self: start;
    width: 100%;
    transform: none;
  }

  .flowerland-gallery__mini-video-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
    align-items: end;
    justify-self: start;
    width: 100%;
    margin-top: 8px;
  }

  .flowerland-gallery .image-block,
  .flowerland-gallery .image-frame,
  .flowerland-gallery__intermediate-photo,
  .flowerland-gallery__mini-video {
    aspect-ratio: auto;
    background: transparent;
    border: 0;
  }

  .flowerland-gallery .image-frame {
    overflow: visible;
  }

  .flowerland-gallery .image-frame img,
  .flowerland-gallery__intermediate-photo,
  .flowerland-gallery__mini-video {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
  }

  .flowerland-gallery__intermediate-photo-card .flowerland-gallery__intermediate-photo {
    width: min(66vw, 235px);
  }

  .flowerland-gallery__mini-video-card .flowerland-gallery__mini-video {
    width: min(42vw, 130px);
  }

  .flowerland-gallery__intermediate-photo-card figcaption,
  .flowerland-gallery__mini-video-card figcaption {
    align-self: end;
    margin-top: 0;
    padding-bottom: 1px;
  }

  .flowerland-gallery__item--portrait {
    max-width: 460px;
  }

  .flowerland-gallery__duo-text {
    max-width: 460px;
    margin-top: -2px;
    margin-bottom: 0;
  }

  .flowerland-gallery__campaign {
    margin-top: 18px;
    row-gap: 18px;
  }

  .flowerland-gallery__campaign-note {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .flowerland-gallery__campaign-note p,
  .flowerland-gallery__campaign-note a {
    grid-column: 1;
  }

  .flowerland-gallery__campaign-note a {
    justify-self: start;
    text-align: left;
  }

  .flowerland-gallery__strip {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 0;
    align-items: start;
  }

  .flowerland-gallery__item--square {
    width: 100%;
    min-height: 0;
  }

  .morphology-mosaic,
  .morphology-mosaic--reverse {
    grid-template-columns: 1fr;
    grid-template-areas:
      "vertical"
      "horizontal"
      "quote";
  }

  .morphology-mosaic--reverse {
    grid-template-areas:
      "horizontal"
      "vertical"
      "quote";
  }

  .morphology-final {
    grid-template-columns: 1fr;
    row-gap: 18px;
    justify-items: center;
  }

  .morphology-final__image {
    height: auto;
    overflow: visible;
  }

  .morphology-final__image img {
    width: 100%;
    max-width: 520px;
    height: auto;
    object-fit: contain;
  }

  .morphology-mosaic__quote,
  .morphology-final__quote {
    grid-column: auto;
    max-width: 420px;
    margin-right: 0;
    margin-left: 0;
    text-align: center;
  }

  .morphology-mosaic__quote {
    grid-area: quote;
    justify-self: center;
  }

  .morphology-final__quote {
    grid-column: 1 / -1;
  }

  .morphology-mosaic__quote--right {
    margin-left: 0;
    text-align: center;
  }

  .image-small {
    aspect-ratio: 4 / 3;
  }

  .gallery-note {
    padding-bottom: 0;
  }

  .deeb-gallery {
    row-gap: 12px;
  }

  .project-gallery .deeb-gallery {
    row-gap: 12px;
  }

  [data-project-page="deeb"] .project-body {
    padding-bottom: 18px;
  }

  .project-gallery--deeb {
    padding-top: 8px;
  }

  .deeb-gallery__archive-note {
    max-width: 320px;
    margin-top: 0;
    margin-bottom: -2px;
    padding-bottom: 0;
  }

  .deeb-gallery__detail {
    aspect-ratio: 1600 / 1065;
  }

  .deeb-gallery__portrait {
    aspect-ratio: 1200 / 1520;
  }

  .deeb-gallery__triptych {
    grid-template-columns: 1fr;
    row-gap: 22px;
    margin-top: 22px;
  }

  .deeb-gallery__triptych-caption {
    grid-column: 1;
    order: -1;
    margin-top: 0;
    margin-bottom: -2px;
  }

  .pl-1211-gallery {
    row-gap: 34px;
  }

  .project-gallery .pl-1211-gallery {
    row-gap: 38px;
  }

  [data-project-page="pl-1211"] .project-body {
    padding-bottom: 18px;
  }

  .project-gallery--pl-1211 {
    padding-top: 8px;
  }

  .pl-1211-gallery__details,
  .pl-1211-gallery__triptych {
    grid-template-columns: 1fr;
    row-gap: 22px;
  }

  .pl-1211-gallery__detail {
    aspect-ratio: auto;
  }

  .pl-1211-gallery__detail .image-frame {
    aspect-ratio: 4 / 3;
  }

  .pl-1211-gallery__photo {
    aspect-ratio: 1200 / 1520;
  }

  .pl-1211-gallery__triptych-caption {
    grid-column: 1;
    order: -1;
    margin-top: 0;
    margin-bottom: -2px;
  }

  .meta-list div,
  .about-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .about-list--dated li {
    grid-template-columns: 1fr;
    row-gap: 3px;
  }
}

@media (max-width: 480px) {
  .home-intro h1,
  .page-title {
    font-size: 19px;
    line-height: 1.3;
    padding-bottom: 2px;
  }

  .project-card h3 {
    line-height: 1.3;
    padding-bottom: 2px;
  }

  .project-lede {
    font-size: 14px;
  }

  .about-statement {
    font-size: 14px;
  }

  .ufc-gallery__video-card .ufc-gallery__video {
    width: min(52vw, 176px);
  }

  .flowerland-gallery__mini-video-card {
    width: 100%;
  }

  .flowerland-gallery__intermediate-photo-card {
    width: 100%;
  }

  .flowerland-gallery__mini-video-card .flowerland-gallery__mini-video {
    width: min(38vw, 126px);
  }

  .flowerland-gallery__intermediate-photo-card .flowerland-gallery__intermediate-photo {
    width: min(60vw, 210px);
  }
}
