.t-flower-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 26px);
}
.t-flower-card {
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}
.tulipa-brand .t-flower-preview {
  position: relative;
  isolation: isolate;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 5px;
  overflow: hidden;
  background: var(--brand-mist);
}
.tulipa-brand .t-flower-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.t-flower-card[data-flower-crop='tulip'] .t-flower-preview img { object-position: 46% 57%; }
.t-flower-card[data-flower-crop='chrysanthemum'] .t-flower-preview img { object-position: 43% 50%; }
.t-flower-card[data-flower-crop='lily'] .t-flower-preview img { object-position: 54% 52%; }
.t-flower-card[data-flower-crop='rose'] .t-flower-preview img { object-position: 58% 50%; }
.t-flower-card[data-flower-crop='scarlet-tulip'] .t-flower-preview img { object-position: 74% 50%; }
.t-flower-expand {
  position: absolute;
  display: grid;
  place-items: center;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-cream);
  color: var(--brand-navy);
  box-shadow: 0 3px 18px #0b132940;
}
.t-flower-expand::before {
  content: '';
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translate(-1.5px, -1.5px);
}
.t-flower-expand::after {
  content: '';
  position: absolute;
  top: calc(50% + 3px);
  left: calc(50% + 3px);
  width: 7px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}
.t-flower-preview:is(:hover, :focus-visible) .t-flower-expand { background: var(--brand-red); color: white; }
.t-flower-card figcaption { padding-block: clamp(12px, 1.45vw, 20px) 17px; }
.tulipa-brand .t-flower-card h3 {
  margin: 0 0 7px;
  font: 650 clamp(1.2rem, 1.7vw, 1.6rem)/1.16 var(--editorial-sans);
  letter-spacing: -.028em;
  overflow-wrap: anywhere;
}
.t-flower-card p { color: var(--muted); font-size: .94rem; line-height: 1.55; margin: 0; }

.t-flower-carousel.is-ready .t-flower-grid {
  --rail-columns: var(--rail-desktop, 3);
  --rail-gap: clamp(12px, 1.8vw, 26px);
  position: relative;
  display: flex;
  align-items: stretch;
  gap: var(--rail-gap);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.t-flower-carousel.is-ready .t-flower-grid::-webkit-scrollbar { display: none; }
.t-flower-carousel.is-ready .t-flower-card {
  flex: 0 0 calc((100% + var(--rail-gap)) / var(--rail-columns) - var(--rail-gap));
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.t-flower-carousel.is-ready .t-flower-preview:focus-visible { outline-offset: -4px; }
.t-flower-carousel .t-rail-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -10px 0 14px;
}
.t-rail-controls[hidden] { display: none; }
.t-rail-count { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.t-rail-buttons { display: flex; gap: 8px; }
.tulipa-brand .t-rail-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--brand-navy);
  font: 600 18px/1 var(--editorial-sans);
}
.tulipa-brand .t-rail-button:hover { border-color: var(--brand-red); color: var(--brand-red); }
.t-rail-motion {
  display: block;
  box-sizing: border-box;
  width: 11px;
  height: 12px;
  border-inline: 3px solid currentColor;
}
.t-rail-button[data-paused] .t-rail-motion {
  width: 0;
  height: 0;
  margin-inline-start: 3px;
  border-block: 6px solid transparent;
  border-inline: 10px solid currentColor;
  border-inline-end: 0;
}

html:has(.t-gallery-dialog[open]) { overflow: hidden; }
.t-gallery-dialog {
  display: none;
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(1060px, calc(100% - 36px));
  height: min(850px, calc(100vh - 36px));
  height: min(850px, calc(100dvh - 36px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ffffff2b;
  border-radius: 12px;
  background: #0a1021;
  color: var(--brand-cream);
  font: 400 1rem/1.4 var(--editorial-sans);
}
.t-gallery-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.t-gallery-dialog::backdrop { background: #050916e1; }
.t-gallery-bar,
.t-gallery-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px clamp(12px, 2.7vw, 27px); }
.t-gallery-bar { border-bottom: 1px solid #ffffff24; }
.tulipa-brand .t-gallery-bar h2 { font: 650 1rem/1.3 var(--editorial-sans); letter-spacing: -.015em; margin: 0; color: var(--brand-cream); }
.t-gallery-track {
  display: flex;
  min-width: 0;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  touch-action: pan-x pinch-zoom;
}
.t-gallery-track::-webkit-scrollbar { display: none; }
.t-gallery-slide {
  box-sizing: border-box;
  flex: 0 0 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: clamp(6px, 1.5vw, 16px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.tulipa-brand .t-gallery-slide img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; display: block; }
.t-gallery-caption { border-top: 1px solid #ffffff24; }
.t-gallery-current { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 13px; }
.t-gallery-current strong { font-size: clamp(1rem, 2.2vw, 1.4rem); overflow-wrap: anywhere; }
.t-gallery-count { font-size: .8125rem; color: #d3daeb; white-space: nowrap; }
.t-gallery-buttons { display: flex; align-items: center; gap: 8px; flex: none; }
.tulipa-brand .t-gallery-dialog .t-gallery-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #ffffff57;
  border-radius: 50%;
  background: transparent;
  color: var(--brand-cream);
  font: 400 22px/1 var(--editorial-sans);
}
.tulipa-brand .t-gallery-dialog .t-gallery-button:not(:disabled):hover { background: #ffffff22; border-color: var(--brand-coral); }
.tulipa-brand .t-gallery-dialog .t-gallery-button:disabled { opacity: .4; cursor: default; }
.tulipa-brand .t-gallery-dialog button:focus-visible,
.tulipa-brand .t-gallery-track:focus-visible { outline: 2px solid var(--brand-coral); outline-offset: -3px; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .t-flower-preview img { transition: transform .48s cubic-bezier(.2,.65,.3,1); }
  .t-flower-preview:hover img { transform: scale(1.045); }
}
@media (max-width: 850px) {
  .t-flower-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .t-flower-carousel.is-ready .t-flower-grid { --rail-columns: min(2, var(--rail-desktop, 3)); }
}
@media (max-width: 640px) {
  .t-gallery-dialog { width: 100%; height: 100vh; height: 100dvh; border: 0; border-radius: 0; }
  .t-gallery-bar { padding-top: max(10px, env(safe-area-inset-top)); }
  .t-gallery-caption { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .t-flower-expand { width: 34px; height: 34px; right: 8px; bottom: 8px; }
  .tulipa-brand .t-flower-card h3 { font-size: clamp(1rem, 4.2vw, 1.4rem); }
  .t-flower-card p { font-size: .875rem; }
}
