.frame-scroll-container { -webkit-overflow-scrolling: touch; }

/* BS (прев’ю + експорт): картки ~вдвічі вужчі за w-72; TW без змін */
.about-frame-strip--bs .frame-scroll-container > li:not([aria-hidden="true"]),
#section-preview-root.section-preview--bootstrap .frame-scroll-container > li:not([aria-hidden="true"]),
[data-preview-framework="bootstrap"] .frame-scroll-container > li:not([aria-hidden="true"]) {
    flex: 0 0 16rem !important;
    width: 16rem !important;
    max-width: min(16rem, 85vw) !important;
}

.frame-sq-12 { width: 3rem; height: 3rem; flex-shrink: 0; }

.frame-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.frame-card-hover:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--bs-box-shadow);
}

.frame-icon-hover {
    transition: transform 0.2s ease;
}

.frame-card-hover:hover .frame-icon-hover {
    transform: scale(1.05);
}

.frame-title-hover {
    transition: color 0.2s ease;
}

.frame-card-hover:hover .frame-title-hover {
    color: var(--bs-primary);
}

#scroll-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* #scroll-container::-webkit-scrollbar {
  display: none;
} */
/* 
#scroll-container {
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
} */

/* @media (pointer: fine) {
  #scroll-container {
    scroll-snap-type: x proximity;
  }
} */

.values-scroll-deck__hint-right {
    cursor: pointer;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    right: 1rem;
}

.values-scroll-deck__hint-left {
    cursor: pointer;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    left: 1rem;
}

.values-scroll-deck__item {
    scroll-snap-align: center;
    width: 90%;
    min-width: 280px;
}

@media (min-width: 768px) {
    .values-scroll-deck__item {
        width: 70%;
    }
}

@media (min-width: 992px) {
    .values-scroll-deck__item {
        width: 55%;
    }
}

.values-scroll-deck__card {
    min-height: 380px;
}

.values-scroll-deck__thumb {
    width: 6rem;
    height: 6rem;
}

.values-scroll-deck__overlay {
    height: 6rem;
}

@keyframes floating-organic-timeline__float-a {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-8px) rotate(0.5deg); }
    66% { transform: translateY(-4px) rotate(-0.3deg); }
}

@keyframes floating-organic-timeline__float-b {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-6px) rotate(-0.5deg); }
    66% { transform: translateY(-10px) rotate(0.4deg); }
}

@keyframes floating-organic-timeline__float-c {
    0%, 100% { transform: translateY(-4px) rotate(0deg); }
    50% { transform: translateY(4px) rotate(0.3deg); }
}

.floating-organic-timeline__float-a {
    animation: floating-organic-timeline__float-a 6s ease-in-out infinite;
}

.floating-organic-timeline__float-b {
    animation: floating-organic-timeline__float-b 7s ease-in-out infinite;
}

.floating-organic-timeline__float-c {
    animation: floating-organic-timeline__float-c 5s ease-in-out infinite;
}

.floating-organic-timeline__decor-1 {
    top: -8rem;
    left: -8rem;
    width: 24rem;
    height: 24rem;
}

.floating-organic-timeline__decor-2 {
    bottom: -8rem;
    right: -8rem;
    width: 20rem;
    height: 20rem;
}

.floating-organic-timeline__decor-3 {
    top: 50%;
    left: -4rem;
    width: 16rem;
    height: 16rem;
}

.floating-organic-timeline__decor-4 {
    top: 25%;
    right: 0;
    width: 12rem;
    height: 12rem;
}

.floating-organic-timeline__card-offset {
    margin-top: 2rem;
}

.floating-organic-timeline__media-square {
    aspect-ratio: 1;
    position: relative;
    width: 100%;
}

.floating-organic-timeline__media-square img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Bootstrap branch: grid + gap (row gutters often collapse with overflow on section) */
.floating-organic-timeline__bs-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 768px) {
    .floating-organic-timeline__bs-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .floating-organic-timeline__bs-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.floating-organic-timeline__min-shrink {
  min-width: 0;
}

/* Совпадает с Tailwind max-w-4xl (56rem) для Bootstrap-ветки */
.border-rail-list__shell {
    max-width: 56rem;
}

.border-rail-list__portrait {
    width: 7rem;
    height: 7rem;
}

@media (min-width: 768px) {
    .border-rail-list__portrait {
        width: 8rem;
        height: 8rem;
    }
}

.border-rail-list__min-shrink {
  min-width: 0;
}

