.oa-page {
  background: #f8f3ed;
  color: #31302e;
  padding-bottom: 84px;
}
/* Allow independent tuning of close icon on mobile sticky plaque (burger untouched) */
@media (max-width: 739px) {
  :root {
    /* Smooth mobile feel (consistent across all portfolio cases) */
    --oa-top-mobile-trans: 0.36s;
    --oa-top-mobile-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .mobile-menu-close.with-sticky-panel {
    top: -2px !important;
    left: 3px !important;
  }
}
/* Sticky top CTA (copied from portfolio) */
.pf-sticky-cta {
  position: fixed;
  top: 0;
  left: 12px;
  right: 12px;
  transform: translateY(-120%);
  width: auto;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.88);
  border: none;
  border-bottom: 1px solid #e6ddd2;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s ease, opacity 0.32s ease;
}
.pf-sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.pf-sticky-cta-inner {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 6px 30px;
  box-sizing: border-box;
}
.pf-sticky-cta-text {
  margin: 0;
  font-family: 'Cormorant', serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 100%;
  color: #31302e;
}
.pf-sticky-cta-btn {
  flex: 0 0 auto;
  min-width: 210px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: #ECE3D8;
  color: #31302e;
  text-decoration: none;
  text-transform: uppercase;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.24em;
  white-space: nowrap;
}
/* Mobile: match portfolio exactly */
@media (max-width: 739px) {
  .pf-sticky-cta {
      top: 0;
      left: 0;
      right: 0;
      width: 100%;
      max-width: none;
      height: 56px;
  }
  .pf-sticky-cta-inner {
      min-height: 56px;
      padding: 0 16px 0 96px;
      gap: 16px;
      justify-content: flex-end;
  }
  .pf-sticky-cta-text { display: none; }
  .pf-sticky-cta-btn {
      width: auto;
      min-width: 0;
      max-width: max-content;
      margin-left: auto;
  }
}



@media (min-width: 740px) {
  .oa-cta-text {
    width: 100%;
    max-width: 781px;        /* cap at 781 but allow shrink */
    min-width: 0;            /* enable shrinking within grid */
    box-sizing: border-box;
  }
}

/* (reverted) desktop hard guard removed */
.oa-hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oa-hero-video,
.oa-banner-video,
.oa-mid-video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oa-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.oa-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.oa-hero h1 {
  margin: 0;
  font-family: "Cormorant", serif;
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

.oa-intro {
  width: 100%;
  max-width: 1022px;
  margin: 84px auto 74px;
  text-align: center;
}

.oa-intro.oa-intro--no-bottom {
  margin-bottom: 0 !important;
}

@media (min-width: 1051px) {
  .oa-intro.oa-intro--lead {
    margin-bottom: 40px;
  }
}

.oa-intro h2 {
  margin: 0 0 10px;
  font-family: "Cormorant", serif;
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
}

.oa-intro p {
  margin: 0 auto;
  width: 100%;
  max-width: 846px;
  font-family: "Cormorant", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  text-align: justify;
  box-sizing: border-box;
}

.oa-pair,
.oa-columns,
.oa-feedback {
  width: 1022px;
  margin: 0 auto 74px;
}

/* Separator line before footer on case pages (all viewports) */
.oa-cta::after {
  display: none; /* use standalone separator section like on Oleksandr & Anna */
}

/* Fallback: ensure the separator is visible even if CTA layout changes */


/* Standalone separator section (full-bleed) */
.case-separator {
  width: 100vw;
  height: 3px;
  background: #F1EBE4;
  border-radius: 1px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 64px; /* match Oleksandr & Anna spacing */
  margin-bottom: 0;
  pointer-events: none;
}

@media (min-width: 740px) {
  .case-separator {
    display: none;
  }
}

.oa-columns {
  width: 1022px;
  margin: 74px auto 0px;
}

.oa-top-strip {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto 74px;
  padding: 54px 0 0 0;
  overflow-anchor: none;
}

/* Tablet-only replacement: use oa-photo-slider behavior 1:1 like Sulo & Tina */
.oa-top-strip-tablet { display: none; }

@media (min-width: 740px) and (max-width: 1200px) {
  .oa-top-strip { display: none; }
  .oa-top-strip-tablet { display: block; }
}

/* Scope Sulo-Tina scroll slider styling to the tablet-only top strip */
.oa-top-strip-tablet .oa-photo-slider {
  width: 100%;
  max-width: 100%;
  margin: 0 0 74px;
  box-sizing: border-box;
}

.oa-top-strip-tablet .oa-photo-slider-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-anchor: none;
  /* pan-x: горизонталь у в’юпорті; вертикаль передається сторінці */
  touch-action: pan-x;
  overscroll-behavior-y: auto;
}

.oa-top-strip-tablet .oa-photo-slider-viewport::-webkit-scrollbar { display: none; }
.oa-top-strip-tablet .oa-photo-slider-viewport.is-dragging { cursor: grabbing; }

.oa-top-strip-tablet .oa-photo-slider-track {
  display: flex;
  gap: 8px;
  width: max-content;
  align-items: center;
  will-change: scroll-position;
}

.oa-top-strip-tablet .oa-photo-slide {
  width: 410px;
  height: 600px;
  flex: 0 0 410px;
  opacity: 1;
}

.oa-top-strip-tablet .oa-photo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.oa-top-strip-tablet .oa-photo-slider-captions {
  max-width: 1022px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.oa-top-slider {
  width: 1234px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.oa-top-arrow-btn {
  width: 40px;
  height: 12px;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
  display: none;
}

.oa-top-arrow-btn::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 1px;
  background: #bea59b;
}

.oa-top-viewport {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  justify-self: center;
  min-height: 716px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  overflow-anchor: none;
  /* Не блокувати вертикальний скрол сторінки (trackpad / touch) */
  overscroll-behavior: auto;
  touch-action: pan-y;
}

.oa-top-track {
  display: flex;
  gap: 44px;
  align-items: center;
  transition: transform 1.65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.oa-top-track.no-transition {
  transition: none;
}

.oa-top-viewport.oa-top-viewport--dragging {
  user-select: none;
  -webkit-user-select: none;
}

/* Prevent double “center zoom” animation on infinite-carousel wrap (clone → real) */
.oa-top-viewport.oa-top-viewport--no-slide-trans .oa-top-slide {
  transition: none !important;
}

.oa-top-slide {
  flex: 0 0 332px;
  height: 494px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition:
    flex-basis 1.65s cubic-bezier(0.4, 0, 0.2, 1),
    height 1.65s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 1.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.oa-top-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

.oa-top-slide.is-center {
  flex-basis: 482px;
  height: 716px;
  opacity: 1;
}

.oa-top-caption-row {
  max-width: 1234px;
  margin: 24px auto 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
}

.oa-top-caption {
  font-family: "Nunito Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.88px;
  text-transform: uppercase;
  color: rgba(127, 108, 101, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  margin-top: -200px;
  position: relative;
  padding: 10px 14px;
  margin-left: -14px;
  margin-right: -14px;
  -webkit-tap-highlight-color: transparent;
}

.oa-top-caption .oa-top-ic {
  width: 48px;
  height: 16px;
  display: block;
}

.oa-pair {
  display: grid;
  grid-template-columns: 332px 482px 332px;
  align-items: start;
  justify-content: center;
  gap: 44px;
  padding: 54px 0;
}

.oa-pair img,
.oa-columns img,
.oa-columns video,
.oa-cta img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.oa-pair img:nth-child(1),
.oa-pair img:nth-child(3) {
  height: 494px;
}

.oa-pair img:nth-child(2) {
  height: 716px;
}

.oa-columns {
  display: grid;
  grid-template-columns: 440px 522px;
  gap: 44px;
}

.oa-col {
  display: grid;
  gap: 44px;
}

/* Tighter spacing for the specific 3+3 block after feedback */
.oa-columns-tight {
  gap: 44px;
  align-items: center;
}

.oa-columns-tight-fullbg {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  justify-content: center;
  background: #F8F3ED;
  padding-bottom: 74px;
}

/* Tablet + desktop: full-bleed site background in the scaled canvas */
@media (min-width: 740px) {
  .oa-columns-tight-fullbg {
    position: relative;
    z-index: 0;
    background: transparent;
  }

  .oa-columns-tight-fullbg::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background: #F8F3ED;
    box-shadow: 0 0 0 100vmax #F8F3ED;
    clip-path: inset(0 -100vmax);
    z-index: -1;
    pointer-events: none;
  }
}

.oa-columns-tight .oa-col {
  gap: 44px;
}

.oa-columns-tight > .oa-col:first-child {
  align-self: center;
}

/* Figma sizes: intro photo block (items 1–5) */
@media (min-width: 1051px) {
  .oa-columns-tight-fullbg .oa-col img:nth-child(1) {
    width: 440px;
    height: 456px;
  }

  .oa-columns-tight-fullbg .oa-col img:nth-child(2) {
    width: 440px;
    height: 641.2060546875px;
  }

  .oa-columns-tight-fullbg .oa-col img:nth-child(3) {
    width: 440px;
    height: 454px;
  }

  .oa-columns-tight-fullbg .oa-col-wide img:nth-child(1) {
    width: 522px;
    height: 782px;
  }

  .oa-columns-tight-fullbg .oa-col-wide .oa-column-inline-video {
    width: 522px;
    height: 711px;
    margin-top: 0;
  }

  /* Decor block after Iryna feedback (items 1–4) */
  .oa-columns-decor .oa-col img:nth-child(1) {
    width: 440px;
    height: 641.2060546875px;
  }

  .oa-columns-decor .oa-col img:nth-child(2) {
    width: 440px;
    height: 678px;
  }

  .oa-columns-decor .oa-col-wide img:nth-child(1) {
    width: 522px;
    height: 492px;
  }

  .oa-columns-decor .oa-col-wide img:nth-child(2) {
    width: 522px;
    height: 708px;
  }
}

/* Center left column vertically against the right one for the specific block */
.oa-columns-center-left {
  align-items: center;
}

.oa-columns-center-left > .oa-col:first-child {
  align-self: center;
}

/* Mid-page video block (wedding02-02), not full-screen */
.oa-banner {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  min-height: 100vh;
  margin: 0 0 74px;
  margin-left: calc(-50vw + 50%);
  position: relative;
  overflow: hidden;
  margin-top: 0;               /* remove beige strip above video */
  background-color: transparent;
}

/* Desktop: keep fullscreen block, but avoid "over-zoom" crop */
@media (min-width: 1024px) {
  .oa-banner {
    background: #000;
  }
  .oa-banner .oa-banner-video {
    object-fit: cover;
  }
}

.oa-mid-video {
  width: calc(100% - 256px);
  max-width: calc(100% - 256px);
  box-sizing: border-box;
  padding: 0 !important;
  height: 716px;
  margin: 0 auto 74px;
  position: relative;
  overflow: hidden;
  background-color: transparent;
}

.oa-feedback {
  width: 846px;
  background: #fff;
  padding: 54px 84px;
  text-align: center;
  box-sizing: border-box;
}

.oa-feedback img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
}

.oa-feedback h3 {
  margin: 24px 0 12px;
  font-family: "Nunito Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.oa-feedback p {
  margin: 0;
  font-family: "Cormorant", serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 28px;
}

/* Keep original case-page feedback geometry for unified pf markup */
.pf-feedback-section {
  padding: 0;
  background: transparent;
}

.pf-feedback-container {
  width: 846px;
  max-width: 846px;
  margin: 0 auto;
  background: #fff;
  padding: 54px 84px;
  text-align: center;
  box-sizing: border-box;
}

.oa-photo-slider {
  width: 100vw;
  max-width: 100vw;
  margin: 0 0 74px;
  margin-left: calc(-50vw + 50%);
}

.oa-photo-slider-viewport {
  overflow: hidden;
  width: 100%;
}

.oa-photo-slider-track {
  display: flex;
  gap: 44px;
  align-items: center;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.oa-photo-slider-track.no-transition {
  transition: none;
}

.oa-photo-slide {
  flex: 0 0 332px;
  height: 494px;
  opacity: 0.85;
  transition: transform 1.08s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.08s ease;
}

.oa-photo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.oa-photo-slider-captions {
  max-width: 1022px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.oa-photo-nav {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  border: 0;
  background: transparent;
  color: #7f6c65;
  font-family: "Nunito Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 10px 14px;          /* enlarge clickable area */
  margin-left: -14px;          /* keep visual alignment */
  margin-right: -14px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.oa-photo-nav img {
  width: 40px;
  height: 12px;
}

/* Bottom gallery before CTA: scroll carousel (desktop/tablet), pf-end on mobile */
.oa-photo-slider--serhiy-cta {
  width: 100vw;
  max-width: 100vw;
  margin: 64px 0 132px;
  margin-left: calc(-50vw + 50%);
}

.oa-photo-slider--serhiy-cta .oa-photo-slider-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: none;
}

.oa-photo-slider--serhiy-cta .oa-photo-slider-viewport::-webkit-scrollbar {
  display: none;
}

.oa-photo-slider--serhiy-cta .oa-photo-slider-viewport.is-dragging {
  cursor: grabbing;
}

.oa-photo-slider--serhiy-cta .oa-photo-slider-track {
  display: flex;
  gap: 8px;
  width: max-content;
  align-items: center;
  transition: none;
  transform: none;
  will-change: scroll-position;
}

.oa-photo-slider--serhiy-cta .oa-photo-slide {
  flex: 0 0 410px;
  width: 410px;
  height: 598.5999755859375px;
  opacity: 1;
}

.oa-photo-slider--serhiy-cta .oa-photo-slide img,
.oa-photo-slider--serhiy-cta .oa-photo-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.pf-end--serhiy-cta {
  background: #F8F3ED;
}

.oa-photo-slider--serhiy-cta + .oa-cta {
  margin-top: 54px;
}

.oa-cta {
  position: relative;
  display: grid;
  grid-template-columns: 420px 454px;
  gap: 54px;
  align-items: center;
  margin-top: 159px;
}

.oa-cta {
  width: 1022px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 82px;

}

.oa-cta::before {
  content: "";
  position: absolute;
  left: 60%;
  top: -47px;
  transform: translateX(-50%);
  width: 798px;
  height: 674px;
  background: #fff;
  z-index: 0;
}

.oa-cta > * {
  position: relative;
  z-index: 1;
}

.oa-cta img {
  height: 580px;
}

.oa-cta-text h3 {
  margin: 0 0 16px;
  font-family: "Cormorant", serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.oa-cta-text p {
  margin: 0 0 24px;
  font-family: "Nunito Sans", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 23px;
  letter-spacing: 0.02em;
  text-align: justify;
}

.oa-cta-text a {
  display: inline-flex;
  padding: 12px 32px;
  background: #f1ebe3;
  color: #31302e;
  text-decoration: none;
  font-family: "Nunito Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* Narrow desktop: proportional columns (1051px–1200px only; tablet handled below) */
@media (max-width: 1200px) and (min-width: 1051px) {
  .oa-intro,
  .oa-pair,
  .oa-columns,
  .oa-feedback,
  .oa-photo-slider-captions {
    width: calc(1022px * (100vw / 1200));
    max-width: calc(1022px * (100vw / 1200));
  }

  .oa-top-caption-row {
    width: calc(1022px * (100vw / 1200));
  }

  .oa-intro p {
    width: 100%;
    max-width: calc(846px * (100vw / 1200));
  }

  .oa-columns {
    grid-template-columns: calc(440px * (100vw / 1200)) calc(522px * (100vw / 1200));
  }

  .pf-feedback-container {
    width: calc(846px * (100vw / 1200));
    max-width: calc(846px * (100vw / 1200));
  }
}

/* Tablet: 740px–1050px — fluid widths, grids, slider, feedback, CTA */
@media (max-width: 1050px) and (min-width: 740px) {
  .oa-hero h1 {
    font-size: clamp(34px, 5.5vw, 56px);
  }

  .oa-intro {
    width: 100% !important;
    max-width: min(1022px, calc(100vw - 64px)) !important;
    margin: 64px auto 40px !important;
    padding: 0 32px !important;
    box-sizing: border-box !important;
  }

  html[lang="en"] .oa-intro.oa-intro--lead,
  html[data-en-static="1"] .oa-intro.oa-intro--lead {
    margin-top: 56px !important;
    margin-bottom: 56px !important;
  }

  .oa-intro h2 {
    font-size: clamp(30px, 4vw, 48px);
  }

  .oa-intro p {
    width: 100% !important;
    max-width: 100% !important;
  }

  .oa-top-strip {
    margin-bottom: 56px !important;
    padding: 40px 0 !important;
  }

  .oa-top-slider {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 32px !important;
    box-sizing: border-box !important;
  }

  /* Carousel: proportional to desktop row (332+44+482+44+332=1234) — fits in (100vw - slider gutters) */
  .oa-top-track {
    gap: calc((100vw - 64px) * 44 / 1234) !important;
  }

  .oa-top-slide {
    flex: 0 0 calc((100vw - 64px) * 332 / 1234) !important;
    width: calc((100vw - 64px) * 332 / 1234) !important;
    max-width: calc((100vw - 64px) * 332 / 1234) !important;
    height: auto !important;
    min-width: 0 !important;
    aspect-ratio: 332 / 494;
    box-sizing: border-box !important;
  }

  .oa-top-slide.is-center {
    flex: 0 0 calc((100vw - 64px) * 482 / 1234) !important;
    width: calc((100vw - 64px) * 482 / 1234) !important;
    max-width: calc((100vw - 64px) * 482 / 1234) !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 482 / 716;
    transform: none;
  }

  .oa-top-slide img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
  }

  .oa-top-caption-row {
    width: 100% !important;
    max-width: min(1022px, calc(100vw - 64px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 32px !important;
    box-sizing: border-box !important;
  }

  /* Only horizontal padding — do not use padding shorthand (would zero out .oa-columns-tight-fullbg padding-bottom) */
  .oa-columns {
    width: 100% !important;
    max-width: min(1022px, calc(100vw - 64px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
    box-sizing: border-box !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.186fr) !important;
    gap: min(44px) !important;
  }

  .oa-columns-tight-fullbg {
    width: 100% !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
    /* Preserve base padding-bottom: 74px under full-bleed photo grid (last img e.g. wedd02 64-2.jpg) */
    padding-bottom: 74px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    overflow: visible !important;
  }

  .oa-columns-tight-fullbg > .oa-col:first-child {
    align-self: center !important;
  }

  .oa-columns-tight-fullbg img {
    object-fit: contain !important;
  }

  .oa-columns-tight .oa-col,
  .oa-columns-tight .oa-col-wide {
    min-width: 0;
  }

  .oa-columns img,
  .oa-columns video {
    height: auto !important;
    max-height: none !important;
  }

  /* Intro photo block: keep Figma proportions on tablet */
  .oa-columns-tight-fullbg .oa-col img:nth-child(1) {
    aspect-ratio: 440 / 456;
  }

  .oa-columns-tight-fullbg .oa-col img:nth-child(2) {
    aspect-ratio: 440 / 641.2060546875;
  }

  .oa-columns-tight-fullbg .oa-col img:nth-child(3) {
    aspect-ratio: 440 / 454;
  }

  .oa-columns-tight-fullbg .oa-col-wide img:nth-child(1) {
    aspect-ratio: 522 / 782;
  }

  .oa-columns-tight-fullbg .oa-col-wide .oa-column-inline-video {
    aspect-ratio: 522 / 711;
    margin-top: 0 !important;
  }

  /* Decor block: keep Figma proportions on tablet */
  .oa-columns-decor .oa-col img:nth-child(1) {
    aspect-ratio: 440 / 641.2060546875;
  }

  .oa-columns-decor .oa-col img:nth-child(2) {
    aspect-ratio: 440 / 678;
  }

  .oa-columns-decor .oa-col-wide img:nth-child(1) {
    aspect-ratio: 522 / 492;
  }

  .oa-columns-decor .oa-col-wide img:nth-child(2) {
    aspect-ratio: 522 / 708;
  }

  .oa-photo-slider--serhiy-cta .oa-photo-slider-track {
    gap: min(8px);
  }

  .oa-photo-slider--serhiy-cta .oa-photo-slide {
    flex: 0 0 410px;
    width: 410px;
    height: auto;
    aspect-ratio: 410 / 598.5999755859375;
  }

  .pf-feedback-container {
    width: 100% !important;
    max-width: min(846px, calc(100vw - 64px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: clamp(36px, 5vw, 54px) clamp(24px, 5vw, 64px) !important;
    box-sizing: border-box !important;
  }

  .pf-feedback-quote {
    font-size: clamp(19px, 2.35vw, 26px);
    line-height: 1.28;
  }
}

@media (max-width: 739px) {
  /* wedd02 61-2: spacing handled by intro mosaic grid */
  .oa-columns-tight-fullbg .oa-col img[src="src/img/case_w2/wedd02 61-2 .jpg"] {
    margin-top: 0 !important;
  }
  /* Reduce spacing after mid video on mobile */
  .oa-mid-video {
    margin-bottom: 24px !important;
  }
  /* Intro mosaic (5 items): mobile — усі кадри на повну ширину */
  .oa-columns.oa-columns-tight.oa-columns-tight-fullbg {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 24px;
    margin-top: 0;
    padding: 0 32px 74px 32px;
    box-sizing: border-box;
    align-items: start;
    justify-items: stretch;
  }

  .oa-columns-tight-fullbg {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    justify-content: center;
    background: #F8F3ED;
  }

  .oa-columns-tight-fullbg .oa-col,
  .oa-columns-tight-fullbg .oa-col-wide {
    display: contents;
  }

  .oa-columns-tight-fullbg img,
  .oa-columns-tight-fullbg video {
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 1;
    margin: 0 !important;
    transform: none;
    min-width: 0;
  }

  .oa-columns-tight-fullbg .oa-col img:nth-child(1) {
    grid-row: 1;
    aspect-ratio: 440 / 456;
  }

  .oa-columns-tight-fullbg .oa-col img:nth-child(2) {
    grid-row: 2;
    aspect-ratio: 440 / 641.2060546875;
  }

  .oa-columns-tight-fullbg .oa-col img:nth-child(3) {
    grid-row: 3;
    aspect-ratio: 440 / 454;
  }

  .oa-columns-tight-fullbg .oa-col-wide img:nth-child(1) {
    grid-row: 4;
    aspect-ratio: 522 / 782;
  }

  .oa-columns-tight-fullbg .oa-col-wide .oa-column-inline-video {
    grid-row: 5;
    aspect-ratio: 522 / 711;
    width: 100%;
  }

  .oa-columns-center-left:not(.oa-columns-decor):not(.oa-columns-gallery5) {
    margin-top: 24px !important;
    padding-top: 0 !important;
  }

  .oa-columns-center-left:not(.oa-columns-decor):not(.oa-columns-gallery5) .oa-col,
  .oa-columns-center-left:not(.oa-columns-decor):not(.oa-columns-gallery5) .oa-col-wide {
    display: block !important;
  }

  .oa-columns-center-left:not(.oa-columns-decor):not(.oa-columns-gallery5) .oa-col img,
  .oa-columns-center-left:not(.oa-columns-decor):not(.oa-columns-gallery5) .oa-col-wide img {
    margin: 0 !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .oa-columns-center-left:not(.oa-columns-decor):not(.oa-columns-gallery5) .oa-col img + img,
  .oa-columns-center-left:not(.oa-columns-decor):not(.oa-columns-gallery5) .oa-col-wide img + img {
    margin-top: 0px !important;
  }

  /* Decor block: Figma mobile — 4 photos full width, one per row */
  .oa-columns.oa-columns-center-left.oa-columns-decor {
    display: grid !important;
    grid-template-columns: 1fr !important;
    row-gap: 24px !important;
    margin-top: 54px !important;
    margin-bottom: 54px !important;
    padding: 0 32px !important;
    box-sizing: border-box !important;
    align-items: start !important;
    justify-items: stretch !important;
  }

  .oa-columns.oa-columns-center-left.oa-columns-decor .oa-col,
  .oa-columns.oa-columns-center-left.oa-columns-decor .oa-col-wide {
    display: contents !important;
  }

  .oa-columns.oa-columns-center-left.oa-columns-decor img {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover !important;
    margin: 0 !important;
    transform: none !important;
    min-width: 0 !important;
  }

  .oa-columns.oa-columns-center-left.oa-columns-decor .oa-col img:nth-child(1) {
    grid-row: 1 !important;
    aspect-ratio: 440 / 641.2060546875;
  }

  .oa-columns.oa-columns-center-left.oa-columns-decor .oa-col img:nth-child(2) {
    grid-row: 2 !important;
    aspect-ratio: 440 / 678;
  }

  .oa-columns.oa-columns-center-left.oa-columns-decor .oa-col-wide img:nth-child(1) {
    grid-row: 3 !important;
    aspect-ratio: 522 / 492;
  }

  .oa-columns.oa-columns-center-left.oa-columns-decor .oa-col-wide img:nth-child(2) {
    grid-row: 4 !important;
    aspect-ratio: 522 / 708;
  }

  /* Gallery after Yuliia feedback: mobile — 3 left + 2 right, right column vertically centered */
  .oa-columns.oa-columns-center-left.oa-columns-gallery5 {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 54px 0 54px !important;
    padding: 0 32px !important;
    box-sizing: border-box !important;
  }

  .oa-columns.oa-columns-center-left.oa-columns-gallery5 .oa-col,
  .oa-columns.oa-columns-center-left.oa-columns-gallery5 .oa-col-wide {
    display: flex !important;
    flex: 1 1 0 !important;
    flex-direction: column !important;
    gap: 24px !important;
    min-width: 0 !important;
  }

  .oa-columns.oa-columns-center-left.oa-columns-gallery5 img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
    object-fit: cover !important;
    margin: 0 !important;
    transform: none !important;
  }
  .oa-page {
    background: linear-gradient(to bottom, #f8f3ed 0 98%, #fff 98% 100%);
    padding-bottom: 14px;
  }

  .oa-hero,
  .oa-banner {
    height: 100vh;
  }

  .oa-mid-video {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 468px;
    min-height: 0;
    margin-top: 0;
    margin-bottom: 24px !important;
    padding: 0 !important;
  }

  .oa-hero h1 {
    width: 311px;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.45);
  }

  .oa-intro {
    width: 100%;
    margin: 0px 0 54px;
    padding: 0 32px;
    box-sizing: border-box;
  }

  .oa-intro.oa-intro--lead {
    margin-top: 54px !important;
    margin-bottom: 0 !important;
  }

  .oa-intro h2 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 16px;
    text-align: center;
  }

  .oa-intro p {
    width: 100%;
    font-size: 20px;
    line-height: 1.2;
  }

  .oa-pair,
  .oa-top-strip,
  .oa-columns,
  .oa-feedback,
  .oa-cta {
    width: 100%;
    max-width: 100%;
    margin: 54px 0 0;
    padding: 0 32px;
    box-sizing: border-box;
  }

  .oa-top-strip {
    width: 100%;
    max-width: 100%;
    padding: 0px 0;
    margin: 54px 0 0;
    margin-left: 0;
  }

  /* Мобільна смуга як pf-end: без зайвої висоти в’юпорта, слайдер на всю ширину */
  .oa-top-slider {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    display: block;
    box-sizing: border-box;
  }

  .oa-top-viewport {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    height: auto;
    display: block;
    margin: 0;
    box-sizing: border-box;
  }

  /* Як на portfolio.html pf-end: швидка плавна карусель; центр дає JS, без гориз. padding на track */
  .oa-top-track {
    gap: 16px;
    padding: 0;
    box-sizing: border-box;
    transition: transform var(--oa-top-mobile-trans) var(--oa-top-mobile-ease);
  }

  .oa-top-slide {
    width: min(276px, calc(100vw - 32px));
    flex: 0 0 min(276px, calc(100vw - 32px));
    max-width: 100%;
    height: auto;
    aspect-ratio: 276 / 408;
    opacity: 1;
    box-sizing: border-box;
    transition:
      flex-basis var(--oa-top-mobile-trans) var(--oa-top-mobile-ease),
      width var(--oa-top-mobile-trans) var(--oa-top-mobile-ease),
      height var(--oa-top-mobile-trans) var(--oa-top-mobile-ease),
      opacity var(--oa-top-mobile-trans) var(--oa-top-mobile-ease);
  }

  .oa-top-slide.is-center {
    width: min(276px, calc(100vw - 32px));
    flex: 0 0 min(276px, calc(100vw - 32px));
    max-width: 100%;
    height: auto;
    aspect-ratio: 276 / 408;
    transform: none;
    box-sizing: border-box;
    transition:
      flex-basis var(--oa-top-mobile-trans) var(--oa-top-mobile-ease),
      width var(--oa-top-mobile-trans) var(--oa-top-mobile-ease),
      height var(--oa-top-mobile-trans) var(--oa-top-mobile-ease),
      opacity var(--oa-top-mobile-trans) var(--oa-top-mobile-ease);
  }

  .oa-top-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .oa-top-caption-row {
    width: 100%;
    max-width: none;
    margin-top: 16px;
    padding: 0;
    justify-content: center;
    gap: 43px;
  }

  /* Override portfolio-case-scale.css which hides caption rows on mobile for case pages */
  main.oa-page .oa-top-caption-row {
    display: flex !important;
  }
  main.oa-page .oa-top-caption {
    display: inline-flex !important;
  }

  .oa-top-caption {
    margin-top: 0;
    font-family: "Nunito Sans", sans-serif;
    /* Mobile: match portfolio.html end strip captions (icons only) */
    font-size: 0;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    color: rgba(127, 108, 101, 1);
    display: inline-flex;
    align-items: center;
    gap: 0;
    line-height: 0;
    padding: 10px 14px;         /* enlarge clickable area without visual change */
    margin-left: -14px;         /* compensate padding */
    margin-right: -14px;
    -webkit-tap-highlight-color: transparent;
  }

  .oa-top-caption .oa-top-ic {
    width: 40px;
    height: 12px;
    display: block;
  }

  .oa-pair {
    background: #fff;
    padding: 32px;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .oa-pair img {
    width: 100%;
    height: auto !important;
  }

  .oa-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .oa-col {
    gap: 24px;
  }

  .oa-columns-tight {
    gap: 16px;
  }

  .oa-columns-tight .oa-col {
    gap: 16px;
  }

  .oa-feedback {
    background: #fff;
    padding: 44px 34px;
  }

  .pf-feedback-container {
    width: 100%;
    max-width: 100%;
    background: #fff;
    padding: 44px 34px ;
    margin-top: -25px;
  }

  .oa-feedback p {
    font-size: 20px;
    line-height: 1.2;
  }

  .oa-photo-slider--serhiy-cta {
    width: 100%;
    max-width: 100%;
    margin: 24px 0 0;
    margin-left: 0;
  }

  .oa-photo-slider--serhiy-cta .oa-photo-slider-track {
    gap: 12px;
    padding: 0 calc((100vw - 276px) / 2);
    box-sizing: border-box;
  }

  .oa-photo-slider--serhiy-cta .oa-photo-slide {
    width: 276px;
    height: auto;
    flex: 0 0 276px;
    aspect-ratio: 410 / 598.5999755859375;
    opacity: 1;
  }

  .oa-photo-slider {
    width: 100%;
    max-width: 100%;
    margin: 24px 0 0;
    margin-left: 0;
  }

  .oa-photo-slider-track {
    gap: 12px;
    padding: 0 calc((100vw - 276px) / 2);
    box-sizing: border-box;
  }

  .oa-photo-slide {
    width: 276px;
    height: 408px;
    flex: 0 0 276px;
    opacity: 1;
  }

  .oa-photo-slider-captions {
    margin-top: 24px;
    justify-content: center;
    gap: 43px;
  }

  .oa-photo-nav {
    font-size: 0;
    letter-spacing: 0;
    line-height: 0;
    gap: 0;
    padding: 12px 16px;              /* bigger tap target */
    margin-left: -16px;              /* keep visual alignment */
    margin-right: -16px;
    -webkit-tap-highlight-color: transparent;
  }

  /* Prevent mobile browser from shrinking the layout due to overflow */
  html, body, .oa-page {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  .oa-cta {
    margin: 84px 0 0;
    grid-template-columns: 1fr;
    gap: 24px;
    background: linear-gradient(to bottom, #f8f3ed 0 20%, #fff 20% 100%);
    position: relative;
    justify-content: center;
    padding: 0 32px;            /* add side paddings on mobile */
    box-sizing: border-box;
    max-width: 100%;
  }
  /* Mobile separator line after CTA button, before footer (same as OA page) */
  .oa-cta::after {
    display: none !important; /* use standalone .case-separator for consistency */
  }

  .oa-cta::before {
    display: none;
  }

  .oa-cta img {
    width: 100%;
    height: auto;
    max-height: none;
    padding: 0 0px;          /* match block side gutters for the photo as well */
    box-sizing: border-box;
    object-fit: contain;
  }

  .oa-cta-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0px;          /* ensure text also has gutters */
    box-sizing: border-box;
    width: 100%;
  }

  .oa-cta-text h3 {
    width: 100%;
    font-size: 28px;
    font-weight: 400;
  }

  .oa-cta-text p {
    width: 100%;
  }

  .oa-cta-text a {
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
    display: inline-block;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-align: center;
    padding: 12px 22px;
  }

  .footer-content,
  .instagram-section-content,
  .footer-bottom-content {
    max-width: 100%;

    box-sizing: border-box;
  }

  .footer-btn {
    align-self: stretch;
    width: 100%;
    margin-top: -18px;
}
}

/* Serhiy & Iryna: mobile gallery uses portfolio .pf-end-strip + pf-end-mobile.js */
.pf-end--serhiy-mobile {
  display: none;
}
@media (max-width: 739px) {
  main.oa-page > section.oa-top-strip.serhiy-top--legacy {
    display: none !important;
  }
  main.oa-page > section.pf-end--serhiy-mobile {
    display: block !important;
  }
  main.oa-page > section.pf-end--serhiy-cta {
    background: #F8F3ED;
  }

  main.oa-page > section.pf-end--serhiy-cta .pf-end-track {
    gap: 8px !important;
  }

  .pf-end--serhiy-cta[data-pf-end-start-video="1"] .pf-end-viewport {
    visibility: hidden;
  }

  .pf-end--serhiy-cta[data-pf-end-start-video="1"] .pf-end-viewport.pf-end-viewport--ready {
    visibility: visible;
  }

  .pf-end--serhiy-cta .pf-end-slide:has(.pf-end-slide-video),
  .pf-end--serhiy-cta .pf-end-slide-video {
    background-color: #F8F3ED;
  }
}

