/* About page: top wedding case strip (subset of portfolio-serhiy-iryna-style.css; avoids .oa-hero / .oa-intro conflicts) */

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

.oa-top-strip-tablet {
  display: none;
}

/* Дублікат тексту лише для tablet (основний блок лишається в .oa-top-strip для desktop) */
.consultation-text-content1--tablet-only {
  display: none;
}

/* Desktop (≥1201px): флористика в смузі — як раніше, без змін типографіки */
@media (min-width: 1201px) {
  .oa-top-strip .consultation-text-content1--desktop {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
    margin-top: 10px;
  }

  .oa-top-strip .consultation-text-content1--desktop .consultation-text-title1 {
    font-family: "Cormorant", serif;
    font-weight: 300;
    font-style: normal;
    font-size: 48px;
    line-height: 1.2;
    letter-spacing: 2%;
    text-transform: uppercase;
    color: rgba(49, 48, 46, 1);
    margin: 0;
    max-width: 1022px;
    display: flex;
    flex-direction: column;
  }

  .oa-top-strip .consultation-text-content1--desktop .consultation-text-description1 {
    font-family: "Cormorant", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    line-height: 120%;
    letter-spacing: 0%;
    text-align: justify;
    color: var(--black, #31302e);
    margin: 0;
    margin-top: -10px;
    max-width: 1022px;
    margin-bottom: 25px;
  }
}

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

  .oa-top-strip-tablet {
    display: block;
  }

  .consultation-text-content1--tablet-only {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: min(1022px, calc(100vw - 64px));
    margin-left: auto;
    margin-right: auto;
    margin-top: 28px;
    margin-bottom: 72px;
    text-align: center;
    gap: 20px;
    box-sizing: border-box;
    padding: 0 32px 20px;
  }

  .consultation-text-content1--tablet-only .consultation-text-title1 {
    font-family: "Cormorant", serif;
    font-weight: 300;
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.15;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-wrap: balance;
    color: #31302e;
    margin: 0;
    max-width: 1022px;
  }

  .consultation-text-content1--tablet-only .consultation-text-description1 {
    font-family: "Cormorant", serif;
    font-weight: 400;
    font-size: clamp(17px, 1.9vw, 19px);
    line-height: 1.4;
    letter-spacing: 0;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    color: #31302e;
    margin: 0;
    width: 100%;
    max-width: 100%;
  }

  .consultation-text-content1--tablet-only .consultation-text-btn--floristics {
    margin-top: 4px;
    margin-bottom: 0;
    text-decoration: none;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    min-height: 48px;
    max-width: min(100%, 460px);
    padding: 32px 50px;
    box-sizing: border-box;
  }
  .oa-top-strip-tablet .oa-photo-slider {
    width: 100%;
    max-width: 100%;
    margin: 0 0 34px;
    box-sizing: border-box;
}
}

.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;
  overscroll-behavior: auto;
  touch-action: pan-y;
}

/* Mobile drag: match index.html locations-gallery (disable UA gestures while dragging) */
.oa-top-strip--dragging .oa-top-viewport {
  touch-action: none;
}

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

.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,
.oa-top-slide-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

.oa-top-slide-video {
  pointer-events: none;
  background: transparent;
  opacity: 1;
}

.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: 40px;
  height: 12px;
  display: block;
}

@media (max-width: 1200px) and (min-width: 1051px) {
  .oa-top-caption-row {
    width: calc(1022px * (100vw / 1200));
  }
}

@media (max-width: 1050px) and (min-width: 740px) {
  .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;
  }

  .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,
  .oa-top-slide-video {
    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;
  }
}

@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);
  }

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

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

  .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,
  .oa-top-slide-video {
    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;
  }

  .oa-top-caption {
    margin-top: 0;
    font-size: 0;
    letter-spacing: 0;
    line-height: 0;
    gap: 0;
    padding: 12px 16px;
    margin-left: -16px;
    margin-right: -16px;
    -webkit-tap-highlight-color: transparent;
  }

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

/* Floristics: mobile (лише блок у смузі, не desktop ≥1201) */
@media (max-width: 739px) {
  .consultation-text-content1--tablet-only {
    display: none !important;
  }

  .oa-top-strip .consultation-text-content1--desktop {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    max-width: 100%;
    width: 100%;
    margin-top: 24px;
    margin-bottom: 0;
    padding: 0 24px 94px;
    gap: 16px;
    box-sizing: border-box;
  }

  .oa-top-strip .consultation-text-content1--desktop .consultation-text-title1 {
    font-family: "Cormorant", "Times New Roman", serif;
    font-weight: 400;
    font-style: normal;
    align-self: center;
    text-align: center;
    text-transform: uppercase;
    color: rgba(49, 48, 46, 1);
    font-size: 23px;
    max-width: 1022px;
    letter-spacing: 0.06em;
    line-height: 1.15;
  }

  .oa-top-strip .consultation-text-content1--desktop .consultation-text-description1 {
    color: var(--black, #31302E);
        text-align: justify;
        font-family: 'Cormorant', serif;
        font-weight: 400;
        font-style: normal;
        font-size: 20px;
        line-height: 120%;
        letter-spacing: 0%;
  }

  .oa-top-strip .consultation-text-content1--desktop .consultation-text-btn {
    font-family: "Nunito Sans", system-ui, -apple-system, sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    align-self: stretch;
    width: 100%;
    max-width: 311px;
    padding: 52px 52px;
    margin-top: 8px;
    white-space: normal;
    text-align: center;
    line-height: 140%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile native scroll carousel (Sulo & Tina / pf-end-mobile.js) — about + portfolio */
@media (max-width: 739px) {
  [data-pf-end-mobile-native="1"] {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  [data-pf-end-mobile-native="1"] .oa-top-slider,
  [data-pf-end-mobile-native="1"] .pf-end-slider {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    gap: 0;
    display: block;
    box-sizing: border-box;
  }

  [data-pf-end-mobile-native="1"] .oa-top-viewport,
  [data-pf-end-mobile-native="1"] .pf-end-viewport {
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: 0;
    height: auto;
    display: block;
    touch-action: pan-x pan-y;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-user-select: none;
    user-select: none;
  }

  [data-pf-end-mobile-native="1"] .oa-top-viewport::-webkit-scrollbar,
  [data-pf-end-mobile-native="1"] .pf-end-viewport::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  [data-pf-end-mobile-native="1"] .oa-top-track,
  [data-pf-end-mobile-native="1"] .pf-end-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 24px;
    padding: 0;
    transform: none !important;
    transition: none !important;
    will-change: auto;
    box-sizing: border-box;
  }

  [data-pf-end-mobile-native="1"] .oa-top-slide,
  [data-pf-end-mobile-native="1"] .pf-end-slide {
    width: 250px;
    height: 373px;
    flex: 0 0 250px;
    flex-shrink: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    aspect-ratio: auto;
    opacity: 1;
    transition: none;
    position: relative;
    display: block;
    overflow: hidden;
    box-sizing: border-box;
    transform: none;
  }

  [data-pf-end-mobile-native="1"] .oa-top-slide.is-center,
  [data-pf-end-mobile-native="1"] .pf-end-slide.is-center {
    width: 250px;
    height: 373px;
    flex: 0 0 250px;
    aspect-ratio: auto;
    transform: none;
    opacity: 1;
  }

  [data-pf-end-mobile-native="1"] .oa-top-slide img,
  [data-pf-end-mobile-native="1"] .oa-top-slide-video,
  [data-pf-end-mobile-native="1"] .pf-end-slide img,
  [data-pf-end-mobile-native="1"] .pf-end-slide video {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #131313;
  }

  [data-pf-end-mobile-native="1"] .oa-top-caption-row,
  [data-pf-end-mobile-native="1"] .pf-end-caption-row {
    width: 100%;
    max-width: none;
    padding: 0;
    margin-top: 16px;
    margin-bottom: 0;
    justify-content: center;
    gap: 43px;
  }

  [data-pf-end-mobile-native="1"] .oa-top-caption,
  [data-pf-end-mobile-native="1"] .pf-end-caption {
    margin-top: 0;
    font-size: 0;
    letter-spacing: 0;
    line-height: 0;
    gap: 0;
    padding: 12px 16px;
    margin-left: -16px;
    margin-right: -16px;
    -webkit-tap-highlight-color: transparent;
  }

  [data-pf-end-mobile-native="1"] .oa-top-caption .oa-top-ic,
  [data-pf-end-mobile-native="1"] .pf-end-caption .pf-end-ic {
    width: 40px;
    height: 12px;
    display: block;
  }

  .page-portfolio [data-pf-end-mobile-native="1"] {
    padding-left: 0;
    padding-right: 0;
  }
}
