
/* ==========================================================
   RODRÍGUEZ YARD SERVICE — GALLERY PAGE
   The Work Collection / Editorial Botanical
   ========================================================== */


/* ==========================================================
   01. GALLERY HERO
   ========================================================== */

.rs-gal-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  box-sizing: border-box;

  width: 100%;
  height: var(--rs-first-screen, calc(100svh - 92px));
  min-height: 0;

  padding-block: clamp(18px, 3svh, 36px);
  overflow: clip;

  background:
    radial-gradient(ellipse at 100% 8%,
      rgba(167,195,173,.23), transparent 58%),
    radial-gradient(ellipse at 0% 90%,
      rgba(190,173,144,.14), transparent 52%),
    var(--rs-ivory);

  border-bottom: 1px solid var(--rs-border);
}

.rs-gal-hero::before {
  content: "";
  position: absolute;
  width: 550px;
  height: 550px;
  left: -300px;
  bottom: -260px;
  border: 1px solid rgba(32,87,64,.10);
  border-radius: 48% 52% 60% 40%;
  box-shadow:
    0 0 0 48px rgba(32,87,64,.025),
    0 0 0 110px rgba(32,87,64,.018);
  transform: rotate(-20deg);
  pointer-events: none;
}

.rs-gal-hero > .rs-container.rs-gal-hero__inner {
  position: relative;
  z-index: 1;
  box-sizing: border-box;

  width: min(
    var(--rs-container,1280px),
    calc(100% - 2 * var(--rs-gutter,24px))
  );
  max-width: var(--rs-container,1280px);
  height: 100%;
  min-height: 0;
  margin-inline: auto;
  padding: 0;

  display: grid;
  grid-template-columns: minmax(0,1.03fr) minmax(0,.97fr);
  align-items: center;
  gap: clamp(38px,5.5vw,90px);
}

/* Left content */

.rs-gal-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(17px,2.4svh,27px);
  min-width: 0;
}

.rs-gal-hero__eyebrow,
.rs-work__eyebrow,
.rs-gallery-cta__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.rs-gal-hero__eyebrow {
  color: var(--rs-forest);
}

.rs-gal-hero__eyebrow::before,
.rs-work__eyebrow::before,
.rs-gallery-cta__eyebrow::before {
  content: "";
  width: 39px;
  height: 1px;
  flex: 0 0 39px;
  background: currentColor;
}

.rs-gal-hero__copy h1 {
  max-width: 700px;
  margin: 0;
  color: var(--rs-charcoal);
  font-family: var(--rs-font-display);
  font-size: clamp(3.2rem,5.1vw,5.85rem);
  font-weight: 500;
  line-height: 1.01;
  letter-spacing: -.048em;
  text-wrap: balance;
}

.rs-gal-hero__copy h1 em {
  display: block;
  font-style: normal;
  color: var(--rs-forest);
}

.rs-gal-hero__copy > p {
  max-width: 495px;
  color: var(--rs-text-muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

.rs-gal-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 19px;
}

.rs-gal-hero__button,
.rs-gallery-cta__button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 19px;
  min-height: 55px;
  padding: 14px 22px;

  border: 1px solid var(--rs-forest);
  border-radius: 11px;

  background: var(--rs-forest);
  color: #fff;
  font-size: .93rem;
  font-weight: 800;
  line-height: 1.4;

  box-shadow: 0 10px 25px rgba(16,52,40,.15);

  transition:
    background-color .3s ease,
    transform .35s var(--rs-ease-out),
    box-shadow .35s ease;
}

.rs-gal-hero__button:hover,
.rs-gallery-cta__button:hover {
  color: #fff;
  background: var(--rs-forest-deep);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(16,52,40,.22);
}

.rs-gal-hero__button span {
  font-size: 1.18rem;
  transition: transform .3s ease;
}

.rs-gal-hero__button:hover span {
  transform: translate(3px,3px);
}

.rs-gal-hero__text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-block: 10px;

  color: var(--rs-forest-deep);
  font-size: .93rem;
  font-weight: 800;
  line-height: 1.5;

  border-bottom: 1px solid rgba(32,87,64,.35);
}

.rs-gal-hero__text-link span {
  transition: transform .3s ease;
}

.rs-gal-hero__text-link:hover span {
  transform: translateX(4px);
}

.rs-gal-hero__footnote {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--rs-text-muted);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.5;
}

.rs-gal-hero__footnote-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  color: var(--rs-forest);
  background: var(--rs-sage-pale);
  border-radius: 50%;
}

.rs-gal-hero__footnote-mark svg {
  width: 19px;
  height: 19px;
}

/* Hero imagery */

.rs-gal-hero__art {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: min(63svh,595px);
  max-height: 100%;
  min-width: 0;
  min-height: 0;
}

.rs-gal-hero__shape {
  position: absolute;
  inset: 9% 1% 6% 22%;
  border-radius: 47% 49% 18px 18px;
  background: rgba(167,195,173,.31);
  border: 1px solid rgba(32,87,64,.12);
  transform: rotate(5deg);
  z-index: -1;
}

.rs-gal-hero__main-photo,
.rs-gal-hero__small-photo {
  position: absolute;
  overflow: hidden;
  background: #dfe9dc;
  border: 6px solid #fff;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(16,52,40,.18);
}

.rs-gal-hero__main-photo {
  inset: 3% 2% 11% 18%;
}

.rs-gal-hero__small-photo {
  left: 1%;
  bottom: 2%;
  width: 48%;
  height: 43%;
  border-width: 5px;
  border-radius: 15px;
  box-shadow: 0 20px 45px rgba(16,52,40,.25);
}

.rs-gal-hero__main-photo img,
.rs-gal-hero__small-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .85s var(--rs-ease-out);
}

.rs-gal-hero__main-photo:hover img,
.rs-gal-hero__small-photo:hover img {
  transform: scale(1.05);
}

.rs-gal-hero__main-photo::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent,rgba(6,29,19,.64));
  pointer-events: none;
}

.rs-gal-hero__photo-label {
  position: absolute;
  bottom: 23px;
  left: 23px;
  right: 15px;
  z-index: 1;
  color: #fff;
  font-family: var(--rs-font-display);
  font-size: clamp(1.3rem,1.8vw,1.8rem);
  font-weight: 500;
  line-height: 1.2;
}

.rs-gal-hero__seal {
  position: absolute;
  top: 0;
  left: 2%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 59px;
  height: 59px;
  border-radius: 50%;
  border: 1px solid var(--rs-border);
  background: #fff;
  color: var(--rs-forest);
  box-shadow: 0 12px 30px rgba(16,52,40,.1);
}

.rs-gal-hero__seal svg {
  width: 29px;
  height: 29px;
}


/* ==========================================================
   02. GENERAL WORK COLLECTION
   ========================================================== */

.rs-work {
  position: relative;
  isolation: isolate;
  overflow: clip;

  padding-block: clamp(85px,8.5vw,132px);
  scroll-margin-top: calc(var(--rs-header-height) + 24px);

  background:
    radial-gradient(ellipse at 0% 5%,
      rgba(44,112,83,.33),transparent 55%),
    radial-gradient(ellipse at 100% 100%,
      rgba(167,195,173,.10),transparent 50%),
    var(--rs-forest-deep);

  color: #fff;
}

.rs-work::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -220px;
  width: 580px;
  height: 580px;
  border-radius: 47% 53% 61% 39%;
  border: 1px solid rgba(167,195,173,.09);
  box-shadow:
    0 0 0 55px rgba(167,195,173,.018),
    0 0 0 115px rgba(167,195,173,.012);
  pointer-events: none;
}

.rs-work > .rs-container {
  position: relative;
  z-index: 1;
}

.rs-work__anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  scroll-margin-top: calc(var(--rs-header-height) + 24px);
}

/* Collection heading */

.rs-work__heading {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(260px,.75fr);
  align-items: end;
  gap: 35px;
  margin-bottom: clamp(35px,4vw,56px);
}

.rs-work__eyebrow {
  margin-bottom: 20px;
  color: var(--rs-sage);
}

.rs-work__heading h2 {
  color: #fff;
  font-family: var(--rs-font-display);
  font-size: clamp(3rem,4.6vw,5.1rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.rs-work__heading h2 em {
  display: block;
  color: #bed9c3;
  font-style: normal;
}

.rs-work__heading > p {
  max-width: 390px;
  padding-bottom: 7px;
  color: rgba(246,250,245,.79);
  font-size: 1.02rem;
  line-height: 1.78;
}

/* Filter toolbar */

.rs-work__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.rs-work__filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 13px;
  background: rgba(255,255,255,.065);
}

.rs-work__filter {
  min-height: 44px;
  padding: 10px 19px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: rgba(255,255,255,.83);
  background: transparent;
  font-family: var(--rs-font-body);
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;

  transition:
    background-color .27s ease,
    color .27s ease,
    border-color .27s ease;
}

.rs-work__filter:hover {
  background: rgba(255,255,255,.10);
  color: #fff;
}

.rs-work__filter.is-active {
  background: var(--rs-sage-pale);
  color: var(--rs-forest-deep);
  border-color: rgba(255,255,255,.7);
}

.rs-work__toolbar-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #bbd3c0;
  font-size: .86rem;
  font-weight: 700;
}

/* Adaptive editorial grid */

.rs-work__grid {
  display: grid;
  grid-template-columns: repeat(12,minmax(0,1fr));
  grid-auto-rows: clamp(145px,16vw,225px);
  grid-auto-flow: row dense;
  gap: clamp(11px,1.35vw,18px);
  align-items: stretch;
}

.rs-work__item {
  position: relative;
  isolation: isolate;

  display: block;
  grid-column: span 4;
  min-width: 0;
  min-height: 0;

  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 15px;

  background:
    radial-gradient(ellipse at 70% 20%,
      rgba(167,195,173,.30),transparent 65%),
    #254d3a;

  color: #fff;
  text-align: left;
  cursor: zoom-in;

  box-shadow: 0 14px 34px rgba(3,24,16,.13);

  transition:
    transform .45s var(--rs-ease-out),
    border-color .3s ease,
    box-shadow .45s ease;
}

.rs-work__item[hidden] {
  display: none !important;
}

.rs-work__item:hover {
  transform: translateY(-4px);
  border-color: rgba(218,239,221,.60);
  box-shadow: 0 22px 42px rgba(3,24,16,.23);
}

.rs-work__item img,
.rs-work__item video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform .8s var(--rs-ease-out);
}

.rs-work__item:hover img,
.rs-work__item:hover video {
  transform: scale(1.055);
}

/* Featured media is chosen dynamically */

.rs-work__item.is-featured {
  grid-column: span 8;
  grid-row: span 2;
}

.rs-work__item.is-half {
  grid-column: span 6;
}

.rs-work__item.is-full {
  grid-column: 1 / -1;
}

/* Film-like gradient */

.rs-work__item::after {
  content: "";
  position: absolute;
  inset: 30% 0 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(4,22,15,.82)
  );
  pointer-events: none;
}

.rs-work__item-bottom {
  position: absolute;
  z-index: 2;
  right: 19px;
  bottom: 19px;
  left: 19px;

  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
}

.rs-work__item-bottom small {
  color: #c6deca;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.rs-work__item-bottom strong {
  color: #fff;
  font-family: var(--rs-font-display);
  font-size: clamp(1.25rem,1.6vw,1.65rem);
  font-weight: 500;
  line-height: 1.15;
}

.rs-work__item.is-featured .rs-work__item-bottom strong {
  font-size: clamp(1.7rem,2.5vw,2.6rem);
}

/* Video-specific design */

.rs-work__item--video {
  background:
    radial-gradient(ellipse at 30% 10%,
      rgba(190,173,144,.23),transparent 58%),
    linear-gradient(145deg,#496750,#112a20);
  cursor: pointer;
}

.rs-work__play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;

  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;

  transform: translate(-50%,-50%);
  border: 1px solid rgba(255,255,255,.60);
  border-radius: 50%;
  background: rgba(255,255,255,.19);
  box-shadow: 0 8px 30px rgba(0,0,0,.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition:
    background-color .3s ease,
    scale .35s ease;
  pointer-events: none;
}

.rs-work__play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
}

.rs-work__item:hover .rs-work__play {
  background: rgba(32,87,64,.74);
  scale: 1.08;
}

/* Footer of collection */

.rs-work__collection-note {
  margin-top: 26px;
  color: rgba(236,247,237,.73);
  font-size: .87rem;
  line-height: 1.65;
  text-align: center;
}

.rs-work__screenreader-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}


/* ==========================================================
   03. FULLSCREEN MEDIA VIEWER
   ========================================================== */

.rs-media-viewer:not([open]) {
  display: none;
}

.rs-media-viewer {
  position: fixed;
  inset: 0;

  box-sizing: border-box;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;

  margin: 0;
  padding: clamp(15px,2.5vw,35px);

  border: 0;
  color: #fff;
  background: rgba(6,20,14,.98);

  overscroll-behavior: contain;
  z-index: var(--rs-z-viewer,3000);
}

.rs-media-viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  gap: 15px;
}

.rs-media-viewer::backdrop {
  background: rgba(5,19,12,.94);
}

.rs-media-viewer__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.rs-media-viewer__top,
.rs-media-viewer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.rs-media-viewer__brand {
  color: #fff;
  font-family: var(--rs-font-display);
  font-size: 1.45rem;
  line-height: 1.2;
}

.rs-media-viewer__brand small {
  display: block;
  margin-top: 4px;
  color: #b9d4bf;
  font-family: var(--rs-font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rs-media-viewer__close,
.rs-media-viewer__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 48px;
  min-height: 48px;
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 11px;
  color: #fff;
  background: rgba(255,255,255,.075);
  cursor: pointer;
  font: 800 .88rem/1.3 var(--rs-font-body);
  transition:
    background-color .25s ease,
    border-color .25s ease;
}

.rs-media-viewer__close:hover,
.rs-media-viewer__arrow:hover {
  background: rgba(167,195,173,.20);
  border-color: rgba(255,255,255,.45);
}

.rs-media-viewer__body {
  display: grid;
  grid-template-columns: 52px minmax(0,1fr) 52px;
  align-items: center;
  min-height: 0;
  gap: clamp(10px,2vw,24px);
}

.rs-media-viewer__arrow {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.35rem;
}

.rs-media-viewer__stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.rs-media-viewer__stage img,
.rs-media-viewer__stage video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(78dvh,100%);
  object-fit: contain;
  border-radius: 7px;
  box-shadow: 0 15px 65px rgba(0,0,0,.27);
}

.rs-media-viewer__stage video {
  background: #000;
}

.rs-media-viewer__bottom {
  color: #b9d4bf;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.5;
}

.rs-media-viewer button:focus-visible {
  outline: 3px solid #cbe8cf;
  outline-offset: 4px;
}


/* ==========================================================
   04. CLOSING CTA
   ========================================================== */

.rs-gallery-cta {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(85px,8vw,135px);

  background:
    radial-gradient(ellipse at 100% 20%,
      rgba(167,195,173,.24),transparent 65%),
    #edf2e9;
}

.rs-gallery-cta >
.rs-container.rs-gallery-cta__inner {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(200px,.5fr);
  align-items: center;
  gap: 45px;

  box-sizing: border-box;
  width: min(
    var(--rs-container,1280px),
    calc(100% - 2 * var(--rs-gutter,24px))
  );
  max-width: var(--rs-container,1280px);
  margin-inline: auto;
  padding: 0;
}

.rs-gallery-cta__eyebrow {
  margin-bottom: 20px;
  color: var(--rs-forest);
}

.rs-gallery-cta__copy h2 {
  max-width: 760px;
  color: var(--rs-charcoal);
  font-family: var(--rs-font-display);
  font-size: clamp(3.1rem,5vw,5.6rem);
  font-weight: 500;
  line-height: 1.035;
  letter-spacing: -.046em;
  text-wrap: balance;
}

.rs-gallery-cta__copy h2 em {
  display: block;
  color: var(--rs-forest);
  font-style: normal;
}

.rs-gallery-cta__copy > p {
  max-width: 525px;
  margin-top: 22px;
  color: var(--rs-text-muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.rs-gallery-cta__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 21px;
  margin-top: 29px;
}

.rs-gallery-cta__phone {
  color: var(--rs-forest-deep);
  font-size: .94rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.rs-gallery-cta__art {
  display: grid;
  place-items: center;
  min-width: 0;
  color: var(--rs-forest);
  opacity: .25;
}

.rs-gallery-cta__art svg {
  width: min(100%,310px);
  height: auto;
}


/* ==========================================================
   05. ACCESSIBILITY
   ========================================================== */

.rs-gal-hero a:focus-visible,
.rs-work button:focus-visible,
.rs-gallery-cta a:focus-visible {
  outline: 3px solid var(--rs-focus);
  outline-offset: 4px;
}


/* ==========================================================
   06. TABLET — MAX 1100PX
   ========================================================== */

@media (max-width: 1100px) {

  .rs-gal-hero >
  .rs-container.rs-gal-hero__inner {
    gap: 30px;
  }

  .rs-gal-hero__copy h1 {
    font-size: clamp(3rem,5vw,4.75rem);
  }

  .rs-gal-hero__art {
    height: min(56svh,510px);
  }

  .rs-work__heading h2 {
    font-size: clamp(2.8rem,5vw,4.5rem);
  }

  .rs-work__grid {
    grid-auto-rows: clamp(135px,16vw,190px);
  }

}


/* ==========================================================
   07. TABLET — MAX 920PX
   ========================================================== */

@media (max-width: 920px) {

  .rs-gal-hero {
    padding-block: clamp(17px,2.5svh,27px);
  }

  .rs-gal-hero >
  .rs-container.rs-gal-hero__inner {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto minmax(0,1fr);
    align-items: stretch;
    gap: clamp(15px,2.4svh,23px);
  }

  .rs-gal-hero__copy {
    gap: clamp(10px,1.7svh,17px);
  }

  .rs-gal-hero__copy h1 {
    max-width: 700px;
    font-size: clamp(2.75rem,6.5vw,4.3rem);
  }

  .rs-gal-hero__copy > p {
    max-width: 610px;
    font-size: .99rem;
    line-height: 1.6;
  }

  .rs-gal-hero__art {
    align-self: stretch;
    width: min(100%,650px);
    height: 100%;
    max-height: none;
    margin-inline: auto;
  }

  .rs-gal-hero__main-photo {
    inset: 1% 2% 8% 15%;
  }

  .rs-gal-hero__small-photo {
    width: 44%;
    height: 49%;
  }

  .rs-work__heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .rs-work__heading > p {
    max-width: 680px;
  }

  .rs-gallery-cta >
  .rs-container.rs-gallery-cta__inner {
    grid-template-columns: minmax(0,1fr) minmax(140px,.35fr);
  }

}


/* ==========================================================
   08. MOBILE — MAX 768PX
   ========================================================== */

@media (max-width: 768px) {

  .rs-work {
    padding-block: 77px 88px;
  }

  .rs-work__heading h2 {
    font-size: clamp(2.7rem,7.2vw,4rem);
  }

  .rs-work__grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    grid-auto-rows: auto;
    grid-auto-flow: row;
    gap: 12px;
  }

  .rs-work__item,
  .rs-work__item.is-half,
  .rs-work__item.is-full {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 5;
  }

  .rs-work__item.is-featured,
  .rs-work__item.is-mobile-wide {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }

  .rs-work__item-bottom {
    left: 14px;
    right: 11px;
    bottom: 13px;
  }

  .rs-work__item-bottom strong {
    font-size: 1.25rem;
  }

  .rs-work__item.is-featured
  .rs-work__item-bottom strong {
    font-size: 1.8rem;
  }

  .rs-work__play {
    width: 54px;
    height: 54px;
  }

  .rs-gallery-cta >
  .rs-container.rs-gallery-cta__inner {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .rs-gallery-cta__art {
    display: none;
  }

  .rs-gallery-cta__copy h2 {
    font-size: clamp(2.8rem,7.2vw,4rem);
  }

  .rs-media-viewer__body {
    gap: 9px;
    grid-template-columns: 42px minmax(0,1fr) 42px;
  }

  .rs-media-viewer__arrow {
    width: 42px;
    height: 42px;
  }

}


/* ==========================================================
   09. SMALL MOBILE — MAX 480PX
   ========================================================== */

@media (max-width: 480px) {

  .rs-gal-hero {
    padding-block: clamp(12px,1.7svh,19px);
  }

  .rs-gal-hero__eyebrow,
  .rs-work__eyebrow,
  .rs-gallery-cta__eyebrow {
    gap: 9px;
    font-size: .76rem;
    letter-spacing: .08em;
  }

  .rs-gal-hero__eyebrow::before,
  .rs-work__eyebrow::before,
  .rs-gallery-cta__eyebrow::before {
    width: 27px;
    flex-basis: 27px;
  }

  .rs-gal-hero__copy h1 {
    font-size: clamp(2.25rem,9vw,3rem);
    line-height: 1.02;
  }

  .rs-gal-hero__copy > p {
    font-size: .93rem;
    line-height: 1.53;
  }

  .rs-gal-hero__actions {
    gap: 12px;
  }

  .rs-gal-hero__button {
    min-height: 49px;
    padding: 11px 15px;
    font-size: .87rem;
  }

  .rs-gal-hero__text-link {
    font-size: .85rem;
  }

  .rs-gal-hero__footnote {
    display: none;
  }

  .rs-gal-hero__main-photo,
  .rs-gal-hero__small-photo {
    border-width: 4px;
    border-radius: 12px;
  }

  .rs-gal-hero__seal {
    width: 40px;
    height: 40px;
  }

  .rs-gal-hero__seal svg {
    width: 20px;
    height: 20px;
  }

  .rs-gal-hero__photo-label {
    left: 14px;
    bottom: 14px;
    font-size: 1.2rem;
  }

  .rs-work {
    padding-block: 65px 75px;
  }

  .rs-work__heading h2 {
    font-size: clamp(2.45rem,9.4vw,3.25rem);
  }

  .rs-work__heading > p {
    font-size: .96rem;
  }

  .rs-work__toolbar {
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 18px;
  }

  .rs-work__filters {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 4px;
    padding: 5px;
  }

  .rs-work__filter {
    min-height: 43px;
    padding: 8px 7px;
    font-size: .82rem;
  }

  .rs-work__toolbar-note {
    display: none;
  }

  .rs-work__grid {
    gap: 10px;
  }

  .rs-work__item {
    border-radius: 11px;
  }

  .rs-work__item-bottom {
    left: 10px;
    right: 8px;
    bottom: 10px;
  }

  .rs-work__item-bottom small {
    font-size: .67rem;
  }

  .rs-work__item-bottom strong {
    font-size: 1.08rem;
  }

  .rs-work__item.is-featured
  .rs-work__item-bottom strong {
    font-size: 1.55rem;
  }

  .rs-work__play {
    width: 44px;
    height: 44px;
  }

  .rs-work__play::before {
    border-top-width: 8px;
    border-bottom-width: 8px;
    border-left-width: 13px;
  }

  .rs-gallery-cta {
    padding-block: 72px 84px;
  }

  .rs-gallery-cta__copy h2 {
    font-size: clamp(2.5rem,9.2vw,3.25rem);
  }

  .rs-gallery-cta__copy > p {
    font-size: .98rem;
  }

  .rs-gallery-cta__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .rs-gallery-cta__button {
    width: 100%;
  }

  .rs-gallery-cta__phone {
    text-align: center;
  }

  .rs-media-viewer {
    padding: 14px 9px;
  }

  .rs-media-viewer__brand {
    font-size: 1.15rem;
  }

  .rs-media-viewer__close {
    min-width: 44px;
    padding: 10px;
  }

  .rs-media-viewer__close span:last-child {
    display: none;
  }

  .rs-media-viewer__body {
    position: relative;
    display: block;
  }

  .rs-media-viewer__stage {
    height: 100%;
  }

  .rs-media-viewer__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    background: rgba(16,52,40,.74);
  }

  .rs-media-viewer__arrow:first-child {
    left: 0;
  }

  .rs-media-viewer__arrow:last-child {
    right: 0;
  }

  .rs-media-viewer__stage img,
  .rs-media-viewer__stage video {
    max-height: 75dvh;
  }

  .rs-media-viewer__bottom {
    font-size: .74rem;
  }

}


/* ==========================================================
   10. SHORT VIEWPORTS
   ========================================================== */

@media (min-width: 921px) and (max-height: 700px) {

  .rs-gal-hero {
    height: auto;
    min-height: var(--rs-first-screen);
  }

  .rs-gal-hero >
  .rs-container.rs-gal-hero__inner {
    height: auto;
  }

  .rs-gal-hero__art {
    height: clamp(310px,55svh,470px);
    max-height: none;
  }

}

@media (max-width: 920px) and (max-height: 760px) {

  .rs-gal-hero {
    height: auto;
    min-height: var(--rs-first-screen);
  }

  .rs-gal-hero >
  .rs-container.rs-gal-hero__inner {
    height: auto;
    grid-template-rows:
      auto clamp(190px,33svh,280px);
  }

  .rs-gal-hero__art {
    height: 100%;
  }

}


/* ==========================================================
   11. REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

  .rs-gal-hero__main-photo img,
  .rs-gal-hero__small-photo img,
  .rs-gal-hero__button,
  .rs-gal-hero__text-link span,
  .rs-work__filter,
  .rs-work__item,
  .rs-work__item img,
  .rs-work__item video,
  .rs-work__play,
  .rs-gallery-cta__button {
    transition: none !important;
    animation: none !important;
  }

  .rs-work__item:hover,
  .rs-work__item:hover img,
  .rs-work__item:hover video {
    transform: none !important;
  }

}

/* ==========================================================
   RODRÍGUEZ YARD SERVICE
   GALLERY — IOS SAFARI RELIABILITY FIX

   - Stable mobile grid row sizing
   - No dependence on aspect-ratio alone
   - CSS-based video covers
   - No background video downloads
   - Preserves original editorial layout
   ========================================================== */


/* ==========================================================
   01. VIDEO CARD — ABSTRACT BOTANICAL COVER
   ========================================================== */

.rs-work__item--video .rs-work__video-art {
  position: absolute;
  inset: 0;

  display: block;

  pointer-events: none;

  background:
    radial-gradient(
      circle at 74% 22%,
      rgba(190, 173, 144, .35),
      transparent 48%
    ),
    repeating-radial-gradient(
      ellipse at 15% 92%,
      transparent 0 28px,
      rgba(201, 225, 203, .12) 29px 30px,
      transparent 31px 57px
    ),
    linear-gradient(
      145deg,
      #416A51,
      #112E23
    );
}


/* Decorative organic silhouette */

.rs-work__video-art::before {
  content: "";

  position: absolute;

  top: 18%;
  right: 15%;

  width: 34%;
  aspect-ratio: 1;

  border: 1px solid rgba(233, 245, 234, .18);
  border-radius: 42% 58% 63% 37%;

  transform: rotate(-25deg);
}


/* Fine editorial accent */

.rs-work__video-art::after {
  content: "";

  position: absolute;

  inset: auto 20% 20% 17%;

  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(233, 245, 234, .3),
    transparent
  );
}


/* Hover enhancement — no video playback */

@media (hover: hover) and (pointer: fine) {

  .rs-work__item--video:hover
  .rs-work__video-art {
    filter: brightness(1.09);
  }

}


/* Keep the existing play icon above the artwork */

.rs-work__item--video .rs-work__play,
.rs-work__item--video .rs-work__item-bottom {
  pointer-events: none;
}


/* ==========================================================
   02. VIEWER ERROR FALLBACK
   ========================================================== */

.rs-media-viewer__error {
  max-width: 360px;

  padding: 20px;

  color: #E4EEE6;

  line-height: 1.65;
  text-align: center;
}

.rs-media-viewer__error a {
  display: inline-block;

  margin-top: 12px;

  color: #D2EBD4;

  text-decoration: underline;
  text-underline-offset: 4px;
}


/* ==========================================================
   03. MOBILE GRID — EXPLICIT TRACK HEIGHTS
   Critical fix for iOS Safari
   ========================================================== */

@media (max-width: 768px) {

  .rs-work__grid {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    /*
     * Explicit row sizes prevent zero-height tracks.
     * We no longer rely on aspect-ratio calculations.
     */

    grid-auto-rows:
      clamp(190px, 54vw, 300px);

    grid-auto-flow: row;

    align-items: stretch;
  }


  /* All card variants share a stable row height */

  .rs-work__item,
  .rs-work__item.is-half,
  .rs-work__item.is-full,
  .rs-work__item.is-featured,
  .rs-work__item.is-mobile-wide {
    aspect-ratio: auto;

    height: 100%;
    min-height: 0;

    grid-row: auto;

    align-self: stretch;
  }


  /* Normal cards: one column */

  .rs-work__item,
  .rs-work__item.is-half,
  .rs-work__item.is-full {
    grid-column: auto;
  }


  /* Featured card and balancing item: full width */

  .rs-work__item.is-featured,
  .rs-work__item.is-mobile-wide {
    grid-column: 1 / -1;
  }


  /* Images occupy their reserved space */

  .rs-work__item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
  }


  /* Fullscreen media respects the visible viewport */

  .rs-media-viewer__stage img,
  .rs-media-viewer__stage video {
    max-height: min(75dvh, 100%);
  }

}


/* ==========================================================
   04. SMALL IPHONES
   ========================================================== */

@media (max-width: 480px) {

  .rs-work__grid {
    grid-auto-rows:
      clamp(175px, 55vw, 245px);
  }

}


/* ==========================================================
   05. REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

  .rs-work__video-art {
    transition: none !important;
    animation: none !important;
  }

}
