/*
 * Case page layout (Toskana). Load portfolio-case-scale.css *before* this file (see <head> in HTML).
 * Breakpoint: scale from 740px up; mobile max-width 739px (shared with portfolio-case-scale.css).
 * Base .oa-* rules avoid 100vw breakouts; the block at EOF fixes both photo sliders inside the scale shell on tablet.
 */
.oa-page {
    background:#F8F3ED;
    color: #31302e;
    padding-bottom: 0px;
}
.mobile-menu-close {
    position: relative;
    top: 1px;
    left: 2px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Allow independent tuning of close icon on mobile sticky plaque (burger untouched) */
@media (max-width: 739px) {
  .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;
  }
}



.oa-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oa-hero-video {
    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;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.oa-hero-logo {
    width: 164px;
}

.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 {
    max-width: 788px;
    margin: 84px auto;
    text-align: center;
}

.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;
}

.oa-intro p {
    margin: 0;
    font-family: "Cormorant", serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    text-align: justify;
}

.oa-pair,
.oa-columns,
.oa-grid4,
.oa-cta {
    max-width: 1300px;
    margin: 0 auto 74px;
}

.oa-pair {
    display: grid;
    grid-template-columns: 341.00140380859375px 571px;
    justify-content: center;
    align-items: center;
    gap: 34px;
    background: #fff;
    padding: 84px 0;
}

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

.oa-pair img:first-child {
    width: 341.00140380859375px;
    height: 471.9657287597656px;
    opacity: 1;
}

.oa-pair img:last-child {
    width: 571px;
    height: 642px;
    opacity: 1;
}

/* Figma 4227-12873 — три фото; desktop: білий блок, бік 232×322, центр 564×532 */
.toskana-triple {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 34px;
    background: #fff;
    padding: 84px 0;
    box-sizing: border-box;
    width: auto;
    margin: 0 65px 74px;
}

.toskana-triple img {
    max-width: none;
}

.toskana-triple__frame--side {
    width: 232px;
    height: 322px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.toskana-triple__center {
    width: 564px;
    height: 532px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.toskana-triple__img--center {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.toskana-triple__img--left,
.toskana-triple__img--right {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Toskana mosaic — Figma desktop: ліва колонка 440px, права 522px */
@media (min-width: 740px) {
    body.page-toskana .oa-columns-mosaic.toskana-mosaic-figma {
        grid-template-columns: 440px 522px;
        gap: 44px;
        align-items: center;
    }

    body.page-toskana .toskana-mosaic-figma > .oa-col > img:nth-child(1) {
        width: 440px;
        height: 350px;
        opacity: 1;
        transform: rotate(0deg);
        object-fit: cover;
        display: block;
    }

    body.page-toskana .toskana-mosaic-figma > .oa-col > img:nth-child(2) {
        width: 440px;
        height: 653px;
        opacity: 1;
        transform: rotate(0deg);
        object-fit: cover;
        display: block;
    }

    body.page-toskana .toskana-mosaic-figma > .oa-col > img:nth-child(3) {
        width: 440px;
        height: 580px;
        opacity: 1;
        transform: rotate(0deg);
        object-fit: cover;
        display: block;
    }

    body.page-toskana .toskana-mosaic-figma > .oa-col > img:nth-child(4) {
        width: 440px;
        height: 651px;
        opacity: 1;
        transform: rotate(0deg);
        object-fit: cover;
        display: block;
    }

    body.page-toskana .toskana-mosaic-figma > .oa-col > img:nth-child(5) {
        width: 440px;
        height: 540px;
        opacity: 1;
        transform: rotate(0deg);
        object-fit: cover;
        display: block;
    }

    body.page-toskana .toskana-mosaic-figma > .oa-col-wide > img:nth-child(1) {
        width: 522px;
        height: 642px;
        opacity: 1;
        transform: rotate(0deg);
        object-fit: cover;
        display: block;
    }

    body.page-toskana .toskana-mosaic-figma > .oa-col-wide > img:nth-child(2) {
        width: 522px;
        height: 659px;
        opacity: 1;
        transform: rotate(0deg);
        object-fit: cover;
        display: block;
    }

    body.page-toskana .toskana-mosaic-figma > .oa-col-wide > img:nth-child(3) {
        width: 522px;
        height: 685px;
        opacity: 1;
        transform: rotate(0deg);
        object-fit: cover;
        display: block;
    }

    body.page-toskana .toskana-mosaic-figma > .oa-col-wide > img:nth-child(4) {
        width: 522px;
        height: 692px;
        opacity: 1;
        transform: rotate(0deg);
        object-fit: cover;
        display: block;
    }

    body.page-toskana .toskana-mosaic-figma .oa-col,
    body.page-toskana .toskana-mosaic-figma .oa-col-wide {
        gap: 44px;
    }
}

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

.oa-columns-mosaic {
    grid-template-columns: 522px 440px;
    align-items: center;
}

.oa-columns-mosaic > .oa-col-wide {
    align-self: center;
}

.oa-columns-mosaic .oa-col img[src="src/img/case_w5/03-wedd05.jpg"] {
    width: 522px;
    height: 760px;
    opacity: 1;
}
@media (max-width: 739px) {
    .oa-columns-mosaic .oa-col img[src="src/img/case_w5/03-wedd05.jpg"] {
        width: 522px;
        height: 468px;
        opacity: 1;
    }

}


.oa-columns-mosaic .oa-col img[src="src/img/case_w5/04-wedd05.jpg"] {
    width: 522px;
    height: 604.831298828125px;
    opacity: 1;
}

.oa-columns-mosaic .oa-col .oa-mosaic-video {
    width: 522px;
    height: 604px;
    opacity: 1;
}
@media (max-width: 739px) {

.oa-columns-mosaic .oa-col img[src="src/img/case_w5/06-wedd05.jpg"] {
    width: 522px;
    height: 234px;
    opacity: 1;
}
}
@media (min-width: 739px) {

    .oa-columns-mosaic .oa-col img[src="src/img/case_w5/06-wedd05.jpg"] {
        width: 522px;
        height: 394px;
        opacity: 1;
    }
    }
.oa-columns-mosaic .oa-col-wide img[src="src/img/case_w5/07-wedd05.jpg"] {
    width: 440px;
    height: 457px;
    opacity: 1;
}

.oa-columns-mosaic .oa-col-wide img[src="src/img/case_w5/08-wedd05.jpg"] {
    width: 440px;
    height: 673px;
    opacity: 1;
}

.oa-columns-mosaic .oa-col-wide img[src="src/img/case_w5/09-wedd05.jpg"] {
    width: 440px;
    height: 730px;
    opacity: 1;
}

.oa-columns-mosaic .oa-col-wide img[src="src/img/case_w5/10-wedd05.jpg"] {
    width: 440px;
    height: 673px;
    opacity: 1;
}

.oa-columns-last4 {
    align-items: center;
}

.oa-columns-last4 > .oa-col-wide {
    align-self: center;
}

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

/* Full width of parent only — no 100vw (breaks uniform zoom inside .oa-scale-canvas) */
.oa-banner {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    margin: 0 0 74px;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.oa-banner img,
.oa-banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.oa-feedback {
    width: 846px;
    margin: 0 auto 74px;
    background: #fff;
    padding: 64px 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: 1.08;
}

/* 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 74px;
    background: #fff;
    padding: 64px 84px;
    text-align: center;
    box-sizing: border-box;
}

.oa-photo-slider {
    width: 100%;
    max-width: 100%;
    margin: 0 0 74px;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.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;
    /* Set from JS on narrow viewports so rail padding matches clientWidth (not 100vw — breaks inside scaled canvas / resize). */
    --oa-slider-rail-pad: 0px;
}

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

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

.oa-photo-slide {
    width: 410px;
    height: 600px;
    opacity: 1;
    flex: 0 0 410px;
    cursor: pointer;
}

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

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

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

/* Cursor while dragging */
.oa-photo-slider-viewport.is-dragging {
    cursor: grabbing;
}

/* Mobile slider: 1 slide centered + neighbors clipped, native snap */
@media (max-width: 739px) {
    .oa-photo-slider-viewport {
        scroll-snap-type: x mandatory;
        scroll-padding-left: 10vw;
        scroll-padding-right: 10vw;
        touch-action: pan-x;
        overscroll-behavior-x: contain;
    }

    .oa-photo-slider-track {
        margin: 0;
        gap: 24px;
        padding-left: 10vw;
        padding-right: 10vw;
        box-sizing: border-box;
    }

    .oa-photo-slide {
        width: 80vw;
        flex: 0 0 80vw;
        height: auto;
        aspect-ratio: 410 / 600;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }
}

.oa-photo-nav {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    border: none;
    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;          /* compensate to keep alignment */
    margin-right: -14px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    margin-top: -8px;
}

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

.oa-mid-video {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 128px;
    height: 100vh;
    margin: 0 auto 74px;
    position: relative;
    overflow: hidden;
}

.oa-mid-video-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mid video: як khreshchennya-liyi — обмежена ширина + aspect на планшеті/десктопі */
@media (min-width: 740px) {
    .oa-mid-video {
        width: min(1282px, 100%);
        max-width: 1282px;
        aspect-ratio: 1282 / 722;
        height: auto;
        padding: 0;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 120px;
    }

    .oa-mid-video-el {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }
}

/* Планшет: 96px по боках (як khreshchennya-liyi) */
@media (min-width: 740px) and (max-width: 1299.98px) {
    body.page-toskana .oa-scale-canvas .oa-mid-video {
        width: calc(100% - 192px);
        max-width: calc(100% - 192px);
        margin-left: 96px;
        margin-right: 96px;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box;
    }
}

.oa-youtube {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 128px;
    margin: 0 auto 74px;
}

.oa-youtube-inner {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.oa-youtube-inner iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.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: 154px;
}

.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;
}

/* Separator line before footer on case page */
.oa-cta::after {
    display: none; /* use standalone separator below for precise spacing */
}

/* Standalone separator (mobile); width of parent — no viewport breakout */
.case-separator {
    width: 100vw;
    max-width: 100vw;
    height: 3px;
    background: #F1EBE4;
    border-radius: 1px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 64px;
    margin-bottom: 0;
    pointer-events: none;
    box-sizing: border-box;
}

.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: 120%;
    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: 1.53;
    letter-spacing: 0.02em;
    text-align: justify;
}

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

@media (max-width: 739px) {
    .oa-hero {
        height: 100vh;
    }

    .oa-hero h1 {
        font-size: 44px;
    }

    .oa-intro {
        max-width: calc(100% - 32px);
        margin: 56px auto;
    }

    .oa-pair,
    .oa-columns,
    .oa-feedback,
    .oa-cta {
        width: 100%;
    }

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

    .oa-pair img:first-child,
    .oa-pair img:last-child {
        width: 100%;
        height: auto;
    }

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

    .oa-col {
        gap: 16px;
    }

    .oa-feedback {
        padding: 24px;
    }

    .pf-feedback-container {
        width: 100%;
        max-width: 100%;
        padding: 44px 34px 44px 34px;
        margin-top: 54px;
        margin-bottom: 0;
    }

    .oa-photo-slide {
        width: min(410px, calc(100vw - 24px));
        flex-basis: min(410px, calc(100vw - 24px));
        height: 440px;
    }

    .oa-photo-slider-captions {
        margin-top: 24px;
        max-width: calc(100% - 24px);
    }

    .oa-cta {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 0;
    }

    .oa-cta::before {
        width: 100%;
        height: 100%;
        top: 0;
    }

    .oa-cta img {
        height: auto;
    }
}

@media (max-width: 739px) {
    body {
        overflow-x: hidden;
        background: #f8f3ed;
    }

    .oa-page {
        padding-bottom: 54px;
    }

    .oa-hero {
        height: 100vh;
    }
    .oa-page {
        background: linear-gradient(to bottom, #F8F3ED 0 98%, #FFFFFF 98% 100%);
        color: #31302e;
        padding-bottom: 5px;
    }

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

    .mobile-menu-btn {
        top: 20px;
        left: 20px;
        padding: 0;
        z-index: 1210;
    }

    /* Keep burger and top CTA fixed in place even when menu is opened */
    .mobile-menu.active ~ .mobile-menu-btn {
        top: 20px !important;
        left: 20px !important;
    }

    .mobile-menu-icon {
        width: 24px;
        height: 24px;
        position: relative;
        top: -4px;
    }

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

    .oa-intro h2 {
        margin-bottom: 16px;
        font-size: 28px;
        font-weight: 300;
        letter-spacing: 0.04em;
    }

    .oa-intro p {
        font-size: 20px;
        font-weight: 400;
        line-height: 1;
        line-height: 120%;
    }

    .oa-pair {
        width: 100%;
        max-width: 100%;
        margin: 54px 0 0;
        padding: 32px;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        box-sizing: border-box;
    }

    /* Figma mobile — два фото: лівий бік + центр; правий кадр приховано */
    .toskana-triple {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        margin: 54px 0 0;
        padding: 32px;
        gap: 16px;
        width: 100%;
        max-width: 100%;
    }

    .toskana-triple > .toskana-triple__frame.toskana-triple__frame--side:last-child {
        display: none;
    }

    .toskana-triple__frame--side {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        max-width: none;
        height: auto;
        aspect-ratio: 232 / 322;
    }

    .toskana-triple__center {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        max-width: none;
        height: auto;
        aspect-ratio: 564 / 532;
    }

    .oa-columns {
        width: 100%;
        max-width: 100%;
        margin: 54px 0 0;
        padding: 0 32px;
        grid-template-columns: 1fr;
        gap: 24px;
        box-sizing: border-box;
    }

    /* First gallery: keep all photos, but compose 06/07/08 as mosaic */
    .oa-columns-mosaic {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        align-items: start;
    }

    .oa-columns-mosaic > .oa-col,
    .oa-columns-mosaic > .oa-col-wide {
        display: contents;
    }

.oa-columns-mosaic .oa-mosaic-video {
    grid-column: 1 / span 2;
    grid-row: 3;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin: 0;
}

    .oa-columns-mosaic img,
    .oa-columns-mosaic video {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

    .oa-columns-mosaic img[src$="/03.jpg"] {
        grid-column: 1 / span 2;
        grid-row: 1;
        width: 100%;
        margin: 0;
    }

    .oa-columns-mosaic img[src$="/04.jpg"] {
        grid-column: 1 / span 2;
        grid-row: 2;
        width: 100%;
        margin: 0;
    }

    .oa-columns-mosaic img[src$="/05.jpg"] {
        grid-column: 1 / span 2;
        grid-row: 3;
        width: 100%;
        margin: 0;
    }

    .oa-columns-mosaic .oa-mosaic-video {
        grid-column: 1 / span 2;
        grid-row: 3;
        width: 100%;
        margin: 0;
    }

    .oa-columns-mosaic img[src$="/06.jpg"] {
        grid-column: 1;
        grid-row: 4;
        aspect-ratio: 1 / 1.18;
    }

    .oa-columns-mosaic img[src$="/07.jpg"] {
        grid-column: 1;
        grid-row: 5;
        aspect-ratio: 1 / 1.27;
    }

    .oa-columns-mosaic img[src$="/08.jpg"] {
        grid-column: 2;
        grid-row: 4 / span 2;
        align-self: center;
        aspect-ratio: 1 / 1.1;
    }

    .oa-columns-mosaic img[src$="/09.jpg"] {
        grid-column: 1 / span 2;
        grid-row: 6;
        width: 100%;
        margin: 0;
    }

    .oa-columns-mosaic img[src$="/10.jpg"] {
        grid-column: 1 / span 2;
        grid-row: 7;
        width: 100%;
        margin: 0;
    }

    /* Case w5 mobile override:
       03/04/video/06 full width, 07-10 in adaptive 2x2 grid */
    .oa-columns.oa-columns-mosaic {
        gap: 24px !important;
        width: 100% !important;
        max-width: 780px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    .oa-columns-mosaic img[src="src/img/case_w5/03-wedd05.jpg"] {
        grid-column: 1 / span 2 !important;
        grid-row: 1 !important;
        width: 100% !important;
        margin: 0 !important;
        height: 468px;
    }

    .oa-columns-mosaic img[src="src/img/case_w5/04-wedd05.jpg"] {
        grid-column: 1 / span 2 !important;
        grid-row: 2 !important;
        width: 100% !important;
        margin: 0 !important;
        height: 360px !important;
        object-fit: cover !important;
    }

    .oa-columns-mosaic .oa-mosaic-video {
        grid-column: 1 / span 2 !important;
        grid-row: 3 !important;
        width: 100% !important;
        height: 360px !important;
        margin: 0 !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .oa-columns-mosaic img[src="src/img/case_w5/06-wedd05.jpg"] {
        grid-column: 1 / span 2 !important;
        grid-row: 4 !important;
        width: 100% !important;
        margin: 0 !important;
        aspect-ratio: auto !important;
    }

    .oa-columns-mosaic img[src="src/img/case_w5/07-wedd05.jpg"] {
        grid-column: 1 !important;
        grid-row: 5 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 143.5 / 149.37045288085938 !important;
        justify-self: stretch !important;
        transform: translateY(36px);
        opacity: 1;
    }

    .oa-columns-mosaic img[src="src/img/case_w5/08-wedd05.jpg"] {
        grid-column: 2 !important;
        grid-row: 5 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 143.5 / 219.81591796875 !important;
        justify-self: stretch !important;
        align-self: end !important;
        margin-top: 0 !important;
        transform: none;
        opacity: 1;
    }

    .oa-columns-mosaic img[src="src/img/case_w5/09-wedd05.jpg"] {
        grid-column: 1 !important;
        grid-row: 6 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 143.5 / 238.07952880859375 !important;
        justify-self: stretch !important;
        transform: translateY(-36px);
        opacity: 1;
    }

    .oa-columns-mosaic img[src="src/img/case_w5/10-wedd05.jpg"] {
        grid-column: 2 !important;
        grid-row: 6 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 143.5 / 219.81591796875 !important;
        justify-self: stretch !important;
        opacity: 1;
    }

    /* Second gallery: last four photos (13-16) in 2x2 */
    .oa-columns-last4 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px 16px;
        align-items: start;
    }

    .oa-columns-last4 > .oa-col,
    .oa-columns-last4 > .oa-col-wide {
        display: contents;
    }

    .oa-columns-last4 img[src$="/11.jpg"] {
        grid-column: 1 / span 2;
        grid-row: 1;
    }

    .oa-columns-last4 img[src$="/12.jpg"] {
        grid-column: 1 / span 2;
        grid-row: 2;
    }

    .oa-columns-last4 img[src$="/13.jpg"] {
        grid-column: 1;
        grid-row: 3;
    }

    .oa-columns-last4 img[src$="/14.jpg"] {
        grid-column: 1;
        grid-row: 4;
    }

    .oa-columns-last4 img[src$="/15.jpg"] {
        grid-column: 2;
        grid-row: 3;
        width: 100%;
        height: auto;
        opacity: 1;
        justify-self: stretch;
        margin-top: 75px;
    }

    .oa-columns-last4 img[src$="/16.jpg"] {
        grid-column: 2;
        grid-row: 4;
        width: 100%;
        height: auto;
        opacity: 1;
        justify-self: stretch;
    }


    .oa-col {
        gap: 24px;
    }

    .oa-banner {
        height: 100vh;
        margin: 54px 0 0;
    }

    .oa-feedback {
        width: 100%;
        margin: 54px 0 0;
        padding: 44px 34px;
    }

    .oa-feedback p {
        font-size: 20px;
        font-weight: 400;
        line-height: 1;
        line-height: 120%;
    }

    body.page-toskana .oa-mid-video {
        width: 100vw;
        max-width: 100vw;
        height: 468px;
        aspect-ratio: unset;
        margin: 54px 0;
        margin-left: calc(-50vw + 50%);
        padding: 0 !important;
        box-sizing: border-box;
    }

    body.page-toskana .oa-mid-video-el {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .oa-youtube {
        margin: 0;
        padding: 0 32px;
    }

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

    .oa-photo-slider-track {
        margin: 0;
        gap: 8px;
        padding-left: var(--oa-slider-rail-pad);
        padding-right: var(--oa-slider-rail-pad);
        box-sizing: border-box;
    }

    .oa-photo-slide {
        width: 232px;
        height: 340px;
        flex: 0 0 232px;
    }

    .oa-photo-slider-captions {
        max-width: 100%;
        margin-top: 16px;
        justify-content: center;
        gap: 43px;
        padding: 0;
    }

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

    .oa-photo-nav img {
        width: 48px;                     /* slightly bigger icon for touch */
        height: 16px;
    }

    .oa-cta {
        width: 100%;
        max-width: 100%;
        margin: 54px 0 0;
        padding: 0 32px;
        box-sizing: border-box;
        grid-template-columns: 1fr;
        gap: 24px;
        background: linear-gradient(to bottom, #F8F3ED 0 20%, #FFFFFF 20% 100%);
        left: 0;
    }

    /* Mobile separator line after CTA button, before footer */
    .oa-cta {
        position: relative;
        justify-content: center;
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 0;
        padding: 0 24px;
        max-width: 100vw;
        box-sizing: border-box;
        overflow: hidden;
        margin-top: 54px;
    }
    .oa-cta::after {
        display: block;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;                   /* full-bleed across the viewport */
        height: 4px;
        background: #F1EBE3;
        border-radius: 2px;
        margin: 54px auto 0 auto;
    }

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

    .oa-cta img {
        width: 100%;
        height: 100%;
        margin: 0 auto;
        object-fit: cover;
    }

    .oa-cta-text h3 {
        font-size: 28px;
        font-weight: 400;
        letter-spacing: 0.04em;
        margin-bottom: 16px;
    }

    .oa-cta-text p {
        font-size: 15px;
        line-height: 23px;
        letter-spacing: 0.02em;
    }

    .oa-cta-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

    .oa-cta-text a {
        width: auto;
        box-sizing: border-box;
        display: inline-flex;
        align-self: center;
        margin: 0 auto;
        text-align: center;
        padding: 12px 18px;
    }

    .footer {
        background: #fff;
        border-bottom: 1px solid #e3e1e0;
        padding: 64px 0 44px;
    }

    .footer-content {
        width: 100%;
        max-width: 100%;
        padding: 0 32px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 44px;
    }

    .footer-logo-img {
        width: 209px;
        height: auto;
    }

    .footer-nav {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px 12px;
        justify-items: center;
    }

    .footer-contacts {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .footer-section-title,
    .footer-contact {
        display: none;
    }

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

    .footer-right {
        width: 100%;
    }

    .footer-right .footer-section-title {
        display: none;
    }

    .footer-social {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 24px;
    }

    .footer-social-icon,
    .footer-social-icon-pinterest {
        width: 30px;
        height: 30px;
        object-fit: contain;
    }

    .instagram-section {
        background: #fff;
        padding: 24px 32px 44px;
    }

    .instagram-section-content {
        width: 100%;
        max-width: 100%;
    }

    .instagram-title {
        margin-bottom: 18px;
        font-size: 26px;
        line-height: 28px;
        text-align: center;
    }

    .instagram-gallery {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .instagram-item {
        width: 100%;
        aspect-ratio: 1 / 1;
    }

    .footer-bottom {
        background: #fff;
        min-height: 64px;
        padding: 12px 16px;
        border-top: 1px solid #e3e1e0;
    }

    .footer-bottom-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        text-align: center;
    }

    .footer-bottom-link {
        text-decoration: underline;
    }
}

/* Two .oa-photo-slider sections: shared scale CSS uses 100vw + calc(50% - 50vw) when vw ≥ 1300; below design width that margin mis-pulls — keep canvas-wide (matches portfolio-case-scale.css tablet band, wins cascade when this file loads last). */
@media (min-width: 740px) and (max-width: 1299.98px) {
    .oa-scale-canvas .oa-photo-slider {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
}

/* Планшет і десктоп: три фото (58 | 61 | 62), мобільну підміну 58→62 не застосовувати */
@media (min-width: 740px) {
    body.page-toskana .toskana-triple {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 34px;
        margin: 0 65px 74px;
        padding: 84px 0;
        width: auto;
        max-width: none;
    }

    body.page-toskana .toskana-triple > .toskana-triple__frame.toskana-triple__frame--side:last-child {
        display: block;
    }

    body.page-toskana .toskana-triple__frame--side {
        flex: 0 0 auto;
        width: 232px;
        height: 322px;
        max-width: none;
        min-width: 0;
        aspect-ratio: auto;
    }

    body.page-toskana .toskana-triple__center {
        flex: 0 0 auto;
        width: 564px;
        height: 532px;
        max-width: none;
        min-width: 0;
        aspect-ratio: auto;
    }
}

/* toskana.html — tablet band */
@media (min-width: 740px) and (max-width: 1200px) {
    .oa-cta::before {
        content: "";
        position: absolute;
        left: 62%;
        top: -47px;
        transform: translateX(-50%);
        width: 798px;
        height: 674px;
        background: #fff;
        z-index: 0;
    }
}

/* Мобайл: лише Toskana — відступ 12px між фото у верхній каруселі */
@media (max-width: 739px) {
    body.page-toskana .oa-top-strip .oa-top-track {
        gap: 12px !important;
    }
}

/* Toskana mosaic — mobile Figma 4227:13027
 * 4× full width → 2+1 triplet (ліворуч 68+67-1, праворуч 66-1 на 2 ряди) → 2× full */
@media (max-width: 739px) {
    body.page-toskana .oa-columns-mosaic.toskana-mosaic-figma {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 24px !important;
        column-gap: 24px !important;
        row-gap: 24px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 54px 0 0 !important;
        padding: 0 32px !important;
        box-sizing: border-box !important;
        align-items: stretch !important;
    }

    body.page-toskana .toskana-mosaic-figma > .oa-col,
    body.page-toskana .toskana-mosaic-figma > .oa-col-wide {
        display: contents !important;
    }

    body.page-toskana .toskana-mosaic-figma img {
        width: 100% !important;
        display: block !important;
        object-fit: cover !important;
        object-position: center !important;
        opacity: 1 !important;
        transform: none !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        aspect-ratio: unset !important;
        max-height: none !important;
        align-self: start !important;
    }

    /* Rows 1–4: full width (326px контент, висоти з Figma desktop × 326/W) */
    body.page-toskana .toskana-mosaic-figma img[src*="events9"][src*="Rectangle 65.jpg"]:not([src*="65-"]),
    body.page-toskana .toskana-mosaic-figma img[src*="events9"][src*="Rectangle%2065.jpg"]:not([src*="65-"]) {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        height: 259px !important;
    }

    body.page-toskana .toskana-mosaic-figma img[src*="events9"][src*="Rectangle 67.jpg"]:not([src*="67-"]),
    body.page-toskana .toskana-mosaic-figma img[src*="events9"][src*="Rectangle%2067.jpg"]:not([src*="67-"]) {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        height: 484px !important;
    }

    body.page-toskana .toskana-mosaic-figma img[src*="Rectangle 61-1"],
    body.page-toskana .toskana-mosaic-figma img[src*="Rectangle%2061-1"] {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
        height: 430px !important;
    }

    body.page-toskana .toskana-mosaic-figma img[src*="events9"][src*="Rectangle 66.jpg"]:not([src*="66-"]),
    body.page-toskana .toskana-mosaic-figma img[src*="events9"][src*="Rectangle%2066.jpg"]:not([src*="66-"]) {
        grid-column: 1 / -1 !important;
        grid-row: 4 !important;
        height: 482px !important;
    }

    /* Triplet: зліва 68 + 66-1, справа 67-1 (на моб — місцями відносно HTML) */
    body.page-toskana .toskana-mosaic-figma img[src*="events9"][src*="Rectangle 68.jpg"],
    body.page-toskana .toskana-mosaic-figma img[src*="events9"][src*="Rectangle%2068.jpg"] {
        grid-column: 1 !important;
        grid-row: 5 !important;
        height: 186px !important;
    }

    body.page-toskana .toskana-mosaic-figma img[src*="Rectangle 66-1"],
    body.page-toskana .toskana-mosaic-figma img[src*="Rectangle%2066-1"] {
        grid-column: 1 !important;
        grid-row: 6 !important;
        height: 191px !important;
        align-self: start !important;
    }

    body.page-toskana .toskana-mosaic-figma img[src*="Rectangle 67-1"],
    body.page-toskana .toskana-mosaic-figma img[src*="Rectangle%2067-1"] {
        grid-column: 2 !important;
        grid-row: 5 / span 2 !important;
        height: calc((186px + 24px + 191px) / 2) !important;
        min-height: 0 !important;
        align-self: center !important;
    }

    /* Rows 7–8: full width */
    body.page-toskana .toskana-mosaic-figma img[src*="Rectangle 62-1"],
    body.page-toskana .toskana-mosaic-figma img[src*="Rectangle%2062-1"] {
        grid-column: 1 / -1 !important;
        grid-row: 7 !important;
        height: 428px !important;
    }

    body.page-toskana .toskana-mosaic-figma img[src*="events9"][src*="Rectangle 63.jpg"]:not([src*="63-"]),
    body.page-toskana .toskana-mosaic-figma img[src*="events9"][src*="Rectangle%2063.jpg"]:not([src*="63-"]) {
        grid-column: 1 / -1 !important;
        grid-row: 8 !important;
        height: 432px !important;
    }
}

/* Планшет 740–1130: sticky CTA — файл після portfolio-case-scale; стабільний лівий gutter без clip */
@media (min-width: 740px) and (max-width: 1130px) {
    .pf-sticky-cta-inner {
        padding: 0 16px 0 96px !important;
        -webkit-clip-path: none !important;
        clip-path: none !important;
    }
}
