/* Fifth window: Russian Frambini flavor gallery rebuilt from clean art frames. */
.flavors-collection,
.flavors-collection * {
  box-sizing: border-box;
}

.flavors-collection {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  background: #000;
  color: #fff;
  --flavors-gallery-duration: 1680ms;
  --flavors-gallery-ease: cubic-bezier(0.16, 0.86, 0.18, 1);
  --flavors-gallery-fade-ease: cubic-bezier(0.22, 0.72, 0.18, 1);
}

.flavors-gallery {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  width: 100%;
  background:
    radial-gradient(ellipse at 77% 87%, rgba(255, 183, 68, 0.06), transparent 30%),
    radial-gradient(ellipse at 47% 93%, rgba(255, 205, 102, 0.05), transparent 32%),
    #000;
  overflow: hidden;
  outline: none;
  cursor: grab;
  touch-action: pan-y;
}

.flavors-gallery:active {
  cursor: grabbing;
}

.flavors-gallery:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 222, 170, 0.26);
}

.flavors-gallery__artboard {
  position: relative;
  width: min(100vw, calc(100svh * 1784 / 882));
  aspect-ratio: 1784 / 882;
  max-width: 100vw;
  max-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #000;
  container-type: inline-size;
}

@supports (height: 100dvh) {
  .flavors-gallery__artboard {
    width: min(100vw, calc(100dvh * 1784 / 882));
  }
}

.flavors-gallery__track,
.flavors-gallery__card,
.flavors-gallery__image,
.flavors-gallery__copy {
  position: absolute;
}

.flavors-gallery__track {
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.flavors-gallery__card {
  inset: 0;
  z-index: 2;
  opacity: 0;
  transform: translate3d(100%, 0, 0);
  filter: brightness(0.72) saturate(0.92);
  will-change: transform, opacity, filter;
  transition:
    transform var(--flavors-gallery-duration) var(--flavors-gallery-ease),
    opacity 820ms var(--flavors-gallery-fade-ease),
    filter 980ms var(--flavors-gallery-fade-ease);
}

.flavors-gallery__image {
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center center;
  user-select: none;
  -webkit-user-drag: none;
  image-rendering: auto;
  backface-visibility: hidden;
  filter:
    contrast(1.018)
    saturate(1.02)
    brightness(0.985);
}

.flavors-gallery__copy {
  left: 5.7%;
  top: 50.2%;
  z-index: 10;
  width: 34.5%;
  transform: translate3d(0, -50%, 0);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.flavors-collection.is-visible .flavors-gallery__copy {
  animation: flavors-gallery-copy-in 980ms cubic-bezier(0.16, 0.82, 0.18, 1) 140ms both;
}

.flavors-gallery__title {
  margin: 0;
  color: #f2e7cf;
  font-family: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  font-size: clamp(64px, 8.4cqw, 156px);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.066em;
  text-wrap: balance;
  font-feature-settings: "liga" 1, "kern" 1;
  text-shadow:
    0 0.035em 0.13em rgba(255, 247, 226, 0.18),
    0 0.08em 0.38em rgba(0, 0, 0, 0.72),
    0 0 0.68cqw rgba(255, 218, 162, 0.12),
    0 0 1.8cqw rgba(255, 80, 154, 0.08);
}

.flavors-gallery__title-line {
  display: block;
  transform: translateZ(0);
}

.flavors-gallery__title-line--bottom {
  margin-top: -0.035em;
}


.flavors-gallery__hint {
  position: relative;
  margin-top: 5.9cqw;
  width: min(14cqw, 220px);
  min-width: 118px;
  color: rgba(238, 190, 101, 0.88);
  font-family: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  font-size: clamp(14px, 1.12cqw, 24px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0.012em;
  text-shadow: 0 0 0.42cqw rgba(228, 167, 80, 0.2);
}

.flavors-gallery__divider {
  display: block;
  position: relative;
  width: 6.2cqw;
  max-width: 128px;
  min-width: 76px;
  height: 1px;
  margin-bottom: 1.05cqw;
  background: linear-gradient(90deg, transparent, rgba(214, 160, 71, 0.76), transparent);
}

.flavors-gallery__divider::before {
  content: "✥";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -53%);
  color: rgba(228, 175, 83, 0.86);
  font-size: clamp(14px, 1.1cqw, 22px);
  line-height: 1;
  text-shadow: 0 0 0.42cqw rgba(255, 188, 77, 0.35);
}

.flavors-gallery__hint-text {
  margin: 0.92cqw 0 0;
  width: 8.4em;
}

.flavors-gallery__mouse {
  position: relative;
  display: inline-block;
  width: 1.15cqw;
  min-width: 17px;
  max-width: 25px;
  aspect-ratio: 0.62;
  border: 1px solid rgba(231, 176, 83, 0.74);
  border-radius: 999px;
  box-shadow:
    0 0 0.34cqw rgba(255, 184, 73, 0.16),
    inset 0 0 0.28cqw rgba(255, 205, 115, 0.1);
}

.flavors-gallery__wheel {
  position: absolute;
  left: 50%;
  top: 20%;
  width: 2px;
  height: 23%;
  border-radius: 99px;
  background: rgba(238, 190, 101, 0.9);
  transform: translateX(-50%);
  animation: flavors-gallery-wheel 1.55s ease-in-out infinite;
}

.flavors-gallery__arrow {
  display: block;
  position: relative;
  width: 1px;
  height: 1.28cqw;
  min-height: 17px;
  max-height: 28px;
  margin: 0.9cqw 0 0 0.57cqw;
  background: linear-gradient(180deg, rgba(228, 175, 83, 0.0), rgba(228, 175, 83, 0.9));
}

.flavors-gallery__arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.05cqw;
  width: 0.42cqw;
  min-width: 7px;
  max-width: 10px;
  aspect-ratio: 1;
  border-right: 1px solid rgba(228, 175, 83, 0.9);
  border-bottom: 1px solid rgba(228, 175, 83, 0.9);
  transform: translateX(-50%) rotate(45deg);
}

/* Slide positions */
.flavors-collection[data-state="slide-0"] .flavors-gallery__card--one,
.flavors-collection[data-state="slide-1"] .flavors-gallery__card--two,
.flavors-collection[data-state="slide-2"] .flavors-gallery__card--three {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: brightness(1) saturate(1);
}

.flavors-collection[data-state="slide-1"] .flavors-gallery__card--one,
.flavors-collection[data-state="slide-2"] .flavors-gallery__card--one,
.flavors-collection[data-state="slide-2"] .flavors-gallery__card--two,
.flavors-collection[data-state="__removed_outro__"] .flavors-gallery__card--one,
.flavors-collection[data-state="__removed_outro__"] .flavors-gallery__card--two,
.flavors-collection[data-state="__removed_outro__"] .flavors-gallery__card--three {
  opacity: 0;
  transform: translate3d(-100%, 0, 0);
  filter: brightness(0.58) saturate(0.86);
}

.flavors-collection[data-state="slide-0"] .flavors-gallery__card--two,
.flavors-collection[data-state="slide-0"] .flavors-gallery__card--three,
.flavors-collection[data-state="slide-1"] .flavors-gallery__card--three {
  opacity: 0;
  transform: translate3d(100%, 0, 0);
  filter: brightness(0.58) saturate(0.86);
}

.flavors-collection[data-state="__removed_outro__"] .flavors-gallery__copy {
  opacity: 0;
  transform: translate3d(-28%, -50%, 0);
  filter: blur(0.08cqw);
  transition:
    transform 920ms var(--flavors-gallery-ease),
    opacity 620ms ease,
    filter 620ms ease;
}

@keyframes flavors-gallery-copy-in {
  0% {
    opacity: 0;
    transform: translate3d(-2.2cqw, -49.2%, 0);
    filter: blur(0.18cqw);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, -50%, 0);
    filter: blur(0);
  }
}

@keyframes flavors-gallery-wheel {
  0%, 100% {
    opacity: 0.42;
    transform: translate(-50%, 0);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, 0.35cqw);
  }
}

@media (max-width: 1024px) {
  .flavors-gallery {
    min-height: 100svh;
  }

  .flavors-gallery__artboard {
    width: 100vw;
    max-width: none;
  }

  .flavors-gallery__copy {
    left: 7%;
    width: 45%;
  }

  .flavors-gallery__title {
    font-size: clamp(48px, 13.8vw, 112px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .flavors-collection {
    --flavors-gallery-duration: 180ms;
  }

  .flavors-gallery__card,
  .flavors-gallery__copy,
  .flavors-gallery__wheel {
    animation: none !important;
    transition-duration: 180ms !important;
  }
}


/* === v66: closer Russian title style to reference + more admin-editable atoms === */
.flavors-gallery__hint-text-line {
  display: inline-block;
}

.flavors-gallery__copy,
.flavors-gallery__title,
.flavors-gallery__title-line,
.flavors-gallery__hint,
.flavors-gallery__hint-text,
.flavors-gallery__hint-text-line,
.flavors-gallery__mouse,
.flavors-gallery__wheel,
.flavors-gallery__divider,
.flavors-gallery__arrow,
.flavors-gallery__card,
.flavors-gallery__image {
  transform-origin: center center;
}

.flavors-gallery__title {
  color: #f2e7cf;
}


/* === v71: stable Photoshop-like editing for the rebuilt fifth gallery === */
.flavors-gallery__copy {
  height: 72%;
}

.flavors-gallery__title,
.flavors-gallery__title-line,
.flavors-gallery__hint,
.flavors-gallery__hint-text,
.flavors-gallery__hint-text-line,
.flavors-gallery__mouse,
.flavors-gallery__wheel,
.flavors-gallery__divider,
.flavors-gallery__arrow {
  position: absolute;
  display: block;
  box-sizing: border-box;
}

.flavors-gallery__title {
  left: 0;
  top: 0;
  width: 100%;
  height: 40%;
  margin: 0;
  color: rgba(255, 247, 232, 0.96);
  background: none;
  -webkit-text-fill-color: rgba(255, 247, 232, 0.96);
  filter: none;
  -webkit-filter: none;
  text-shadow:
    0 0.035em 0.13em rgba(255, 247, 226, 0.16),
    0 0.08em 0.32em rgba(0, 0, 0, 0.78),
    0 0 0.46cqw rgba(255, 218, 162, 0.10),
    0 0 1.25cqw rgba(255, 80, 154, 0.055);
}

.flavors-gallery__title-line {
  left: 0;
  width: 100%;
  height: 50%;
  color: inherit;
  -webkit-text-fill-color: inherit;
  filter: none;
  -webkit-filter: none;
}

.flavors-gallery__title-line--top {
  top: 0;
}

.flavors-gallery__title-line--bottom {
  top: 43%;
  margin-top: 0;
}

.flavors-gallery__hint {
  left: 0;
  top: 60%;
  width: min(14cqw, 220px);
  height: 34%;
  margin: 0;
}

.flavors-gallery__divider {
  left: 0;
  top: 0;
  margin: 0;
}

.flavors-gallery__mouse {
  left: 0;
  top: 22%;
}

.flavors-gallery__hint-text {
  left: 0;
  top: 48%;
  margin: 0;
}

.flavors-gallery__hint-text-line {
  left: 0;
  top: 0;
  width: 100%;
}

.flavors-gallery__arrow {
  left: 0.57cqw;
  top: 84%;
  margin: 0;
}

/* Admin must always show a concrete slide and the selected picture layer. */
.fr-admin-mode .flavors-collection.is-admin-gallery-preview {
  min-height: 100svh;
}

.fr-admin-mode .flavors-collection.is-admin-gallery-preview .flavors-gallery__copy {
  opacity: 1 !important;
  visibility: visible !important;
  animation: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}

.fr-admin-mode .flavors-collection.is-admin-gallery-preview .flavors-gallery__card {
  pointer-events: none !important;
}

.fr-admin-mode .flavors-gallery__card.fr-admin-gallery-card-selected {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  -webkit-filter: none !important;
  z-index: 8 !important;
}

.fr-admin-mode .flavors-gallery__image.fr-admin-gallery-image-selected {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  -webkit-filter: none !important;
  z-index: 10 !important;
}

/* Do not let old intro blur interfere with editing. */
.fr-admin-mode .flavors-gallery__copy,
.fr-admin-mode .flavors-gallery__title,
.fr-admin-mode .flavors-gallery__title-line,
.fr-admin-mode .flavors-gallery__hint,
.fr-admin-mode .flavors-gallery__hint-text,
.fr-admin-mode .flavors-gallery__hint-text-line,
.fr-admin-mode .flavors-gallery__mouse,
.fr-admin-mode .flavors-gallery__wheel,
.fr-admin-mode .flavors-gallery__divider,
.fr-admin-mode .flavors-gallery__arrow,
.fr-admin-mode .flavors-gallery__card,
.fr-admin-mode .flavors-gallery__image {
  transition-duration: 0ms !important;
  animation: none !important;
}


/* === v72: stable visible fifth-window admin preview + normal clear title === */

/* Default fifth gallery state even if JS/admin state has not run yet. */
#window-5.flavors-collection:not([data-state]) .flavors-gallery__copy,
.fr-admin-mode #window-5.flavors-collection .flavors-gallery__copy {
  opacity: 1 !important;
  visibility: visible !important;
  animation: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}

#window-5.flavors-collection:not([data-state]) .flavors-gallery__card--one {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: brightness(1) saturate(1);
}

#window-5.flavors-collection:not([data-state]) .flavors-gallery__card--two,
#window-5.flavors-collection:not([data-state]) .flavors-gallery__card--three {
  opacity: 0;
  transform: translate3d(100%, 0, 0);
  filter: brightness(0.58) saturate(0.86);
}

/* In admin the current slide must never be black. Do not force transform here,
   so admin-generated left/top/width/height/transform can still override normally. */
.fr-admin-mode #window-5 .flavors-gallery__card {
  visibility: visible !important;
  animation: none !important;
}

.fr-admin-mode #window-5 .flavors-gallery__card.fr-admin-gallery-card-selected,
.fr-admin-mode #window-5 .flavors-gallery__card.fr-admin-active-layer,
.fr-admin-mode #window-5 .flavors-gallery__card.fr-admin-active-layer-parent {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  -webkit-filter: none !important;
  z-index: 12 !important;
}

.fr-admin-mode #window-5 .flavors-gallery__image.fr-admin-gallery-image-selected,
.fr-admin-mode #window-5 .flavors-gallery__image.fr-admin-active-layer {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  -webkit-filter: none !important;
  z-index: 14 !important;
}

/* Restore the good non-black title style: clear cream serif, no transparent gradient, no blur. */
#window-5 .flavors-gallery__title {
  font-family: "Cormorant Garamond", "Georgia", "Times New Roman", serif !important;
  font-size: clamp(64px, 8.4cqw, 156px) !important;
  font-weight: 700 !important;
  line-height: 0.84 !important;
  letter-spacing: -0.066em !important;
  color: rgba(255, 247, 232, 0.96) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: rgba(255, 247, 232, 0.96) !important;
  filter: none !important;
  -webkit-filter: none !important;
  text-shadow:
    0 0.035em 0.13em rgba(255, 247, 226, 0.16),
    0 0.08em 0.32em rgba(0, 0, 0, 0.78),
    0 0 0.46cqw rgba(255, 218, 162, 0.10),
    0 0 1.25cqw rgba(255, 80, 154, 0.055) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

#window-5 .flavors-gallery__title-line {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  background: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}

#window-5 .flavors-gallery__image,
#window-5 .flavors-gallery__card,
#window-5 .flavors-gallery__copy,
#window-5 .flavors-gallery__title,
#window-5 .flavors-gallery__title-line,
#window-5 .flavors-gallery__hint,
#window-5 .flavors-gallery__hint-text {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* === FRAMBINI ADMIN DIRECT COMMIT START === */
/* Generated by /?admin=1. This is real source CSS, not admin-overrides.css. */
:root { --frambini-admin-active: 1; }
@media (min-width: 901px) {
.flavors-gallery__artboard { inset: auto !important; right: auto !important; bottom: auto !important; left: 0% !important; top: 0% !important; width: 100.337% !important; height: 99.998% !important; transform: rotate(0deg) !important; transform-origin: center center !important; }
.flavors-gallery__title-line--top { inset: auto !important; right: auto !important; bottom: auto !important; left: -2.729% !important; top: -10.289% !important; width: 147.465% !important; height: 76.821% !important; transform: rotate(0deg) !important; transform-origin: center center !important; }
.flavors-gallery__title-line--bottom { inset: auto !important; right: auto !important; bottom: auto !important; left: -1.971% !important; top: 44.468% !important; width: 96.664% !important; height: 47.057% !important; transform: rotate(0deg) !important; transform-origin: center center !important; }
.flavors-gallery__hint { inset: auto !important; right: auto !important; bottom: auto !important; left: -1.516% !important; top: 54.414% !important; width: 33.363% !important; height: 33.998% !important; transform: rotate(0deg) !important; transform-origin: center center !important; }
.flavors-gallery__hint-text { inset: auto !important; right: auto !important; bottom: auto !important; left: 0% !important; top: 47.994% !important; width: 81.733% !important; height: 1% !important; transform: rotate(0deg) !important; transform-origin: center center !important; }
.flavors-gallery__title-line--top { color: #E4D1B4 !important; color: #E4D1B4 !important; -webkit-text-fill-color: #E4D1B4 !important; background: none !important; font-size: 176pt !important; }
.flavors-gallery__title-line--top * { color: #E4D1B4 !important; -webkit-text-fill-color: #E4D1B4 !important; background: none !important; font-size: 176pt !important; }
.flavors-gallery__title-line--bottom { color: #E4D1B4 !important; color: #E4D1B4 !important; -webkit-text-fill-color: #E4D1B4 !important; background: none !important; font-size: 111.5pt !important; }
.flavors-gallery__title-line--bottom * { color: #E4D1B4 !important; -webkit-text-fill-color: #E4D1B4 !important; background: none !important; font-size: 111.5pt !important; }
}
/* === FRAMBINI ADMIN DIRECT COMMIT END === */
