
/* ---------- Shared banner base ---------- */
.f-banner .fGalleryList {
  list-style: none;
  margin: 0;
  padding: 0;
}

.f-banner .fGalleryItem,
.f-banner .ItemfinnerGallery {
  position: relative;
  margin: 0;
}

.f-banner .fGalleryImage {
  display: block;
  line-height: 0;
}

.f-banner .fGalleryImage img {
  display: block;
  width: 100%;
  height: auto;
}

.f-banner .fGalleryText {
  text-align: center;
}

.f-banner .fGalleryText > p {
  margin: 0;
}

/* ---------- CTA button ---------- */
.f-banner .fButton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-color-secondary) 0%, var(--brand-color-secondary-text) 100%);
  color: var(--brand-color-surface);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  box-shadow: 0 10px 24px rgba(26, 122, 112, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.f-banner .fButton::after {
  content: "→";
  font-size: 1.1em;
  transition: transform 0.25s ease;
}

.f-banner .fButton:hover,
.f-banner .fButton:focus-visible {
  color: var(--brand-color-surface);
  text-decoration: none;
  background: linear-gradient(135deg, var(--brand-color-primary) 0%, var(--brand-color-accent) 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(18, 84, 154, 0.4);
}

.f-banner .fButton:hover::after {
  transform: translateX(4px);
}

.f-banner .fButton:focus-visible {
  outline: 3px solid var(--brand-color-secondary-soft);
  outline-offset: 3px;
}

/* ---------- Countdown ---------- */
.f-banner .f-countdown .row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 14px;
  margin: 0;
}

.f-banner .f-countdown .col-count {
  position: relative;
  flex: 0 0 auto;
  min-width: 104px;
  padding: 16px 12px 12px;
  border-radius: 14px;
  background: var(--brand-color-surface);
  border: 1px solid var(--brand-color-border);
  border-top: 4px solid var(--brand-color-secondary);
  box-shadow: 0 8px 22px rgba(11, 37, 69, 0.12);
  text-align: center;
}

.f-banner .f-countdown .col-count:first-child {
  border-top-color: var(--brand-color-primary);
}

.f-banner .f-countdown .fDay {
  margin: 0;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-color-primary);
  font-variant-numeric: tabular-nums;
}

.f-banner .f-countdown p.fCountText {
  margin: 8px 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-color-secondary-text);
}

/* "col-count" also carries .fCountText — reset so the label styles don't leak onto the box */
.f-banner .f-countdown .col-count.fCountText {
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
}

/* ---------- Lock countdown sizing (overrides theme .row / .col-count) ---------- */
.f-banner .f-countdown .row {
  width: auto !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  flex-wrap: nowrap !important;
}

.f-banner .f-countdown .col-count {
  flex: 0 0 auto !important;
  width: 110px !important;
  max-width: 110px !important;
  margin: 0 !important;
  float: none !important;
}

/* ---------- Desktop: strip under the image (doesn't cover the artwork) ---------- */
.home-preview-banner .fGalleryText {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 40px;
  padding: 22px 24px;
  background: var(--brand-color-light);
  border-top: 4px solid var(--brand-color-secondary);
  border-bottom: 1px solid var(--brand-color-border);
}

.home-preview-banner .f-countdown {
  padding: 0 !important;
}

.home-preview-banner .f-countdown .col-count {
  padding: 12px 8px 10px;
}

.home-preview-banner .f-countdown .fDay {
  font-size: 2.2rem;
}

@media (max-width: 991.98px) {
  .home-preview-banner .fGalleryText { gap: 16px; }
  .home-preview-banner .f-countdown .row { gap: 10px; }
  .home-preview-banner .f-countdown .col-count { width: 88px !important; max-width: 88px !important; }
  .home-preview-banner .f-countdown .fDay { font-size: 1.8rem; }
}

/* ---------- Mobile: stacked dark band under the image ---------- */
.f-banner.mobile .fGalleryText {
  padding: 24px 16px 8px;
  background: linear-gradient(180deg, var(--brand-color-dark-2) 0%, var(--brand-color-dark) 100%);
}

.f-banner.mobile .fButton {
  width: 100%;
  max-width: 340px;
  justify-content: center;
}

.f-banner.mobile .f-countdown .row {
  gap: 8px;
}

.f-banner.mobile .f-countdown .col-count {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0;
  max-width: 84px !important;
  padding: 12px 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(127, 211, 202, 0.25);
  border-top: 3px solid var(--brand-color-secondary);
  box-shadow: none;
}

.f-banner.mobile .f-countdown .col-count:first-child {
  border-top-color: var(--brand-color-secondary-soft);
}

.f-banner.mobile .f-countdown .fDay {
  font-size: 1.6rem;
  color: var(--brand-color-surface);
}

.f-banner.mobile .f-countdown p.fCountText {
  margin-top: 6px;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--brand-color-secondary-soft);
}

/* Theme positions .f-countdown absolutely — keep it in normal flow everywhere */
.f-banner .f-countdown {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  width: auto !important;
}

/* =========================================================
   Tablet + mobile (< 992px): button on top, 4 equal boxes below
   Applies to both the desktop module and the .mobile module
   ========================================================= */
@media (max-width: 991.98px) {
  .home-preview-banner .fGalleryText,
  .f-banner.mobile .fGalleryText {
    position: static !important;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 22px 16px 24px !important;
    transform: none !important;
    border-radius: 0;
    border: 0;
    border-top: 4px solid var(--brand-color-secondary);
    background: linear-gradient(180deg, var(--brand-color-dark-2) 0%, var(--brand-color-dark) 100%) !important;
    backdrop-filter: none;
    box-shadow: none;
  }

  .home-preview-banner .fGalleryText > p,
  .f-banner.mobile .fGalleryText > p {
    order: 1;
    text-align: center;
  }

  .home-preview-banner .f-countdown,
  .f-banner.mobile .f-countdown {
    order: 2;
    padding: 0 !important;
  }

  /* Button: one line, centred, capped width */
  .home-preview-banner .fButton,
  .f-banner.mobile .fButton {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    padding: 13px 22px;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  /* Countdown: 4 equal columns that always fit */
  .home-preview-banner .f-countdown .row,
  .f-banner.mobile .f-countdown .row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100% !important;
    max-width: 420px !important;
    margin: 0 auto !important;
  }

  .home-preview-banner .f-countdown .col-count,
  .f-banner.mobile .f-countdown .col-count {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
    padding: 12px 4px 10px !important;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(127, 211, 202, 0.25);
    border-top: 3px solid var(--brand-color-secondary);
    box-shadow: none;
  }

  .home-preview-banner .f-countdown .col-count:first-child,
  .f-banner.mobile .f-countdown .col-count:first-child {
    border-top-color: var(--brand-color-secondary-soft);
  }

  .home-preview-banner .f-countdown .fDay,
  .f-banner.mobile .f-countdown .fDay {
    font-size: clamp(1.35rem, 6vw, 1.9rem);
    color: var(--brand-color-surface);
  }

  .home-preview-banner .f-countdown p.fCountText,
  .f-banner.mobile .f-countdown p.fCountText {
    margin-top: 6px;
    font-size: clamp(0.55rem, 2.2vw, 0.68rem);
    letter-spacing: 0.06em;
    color: var(--brand-color-secondary-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }
}

/* Very small phones */
@media (max-width: 359.98px) {
  .home-preview-banner .f-countdown .row,
  .f-banner.mobile .f-countdown .row { gap: 6px; }
  .home-preview-banner .f-countdown p.fCountText,
  .f-banner.mobile .f-countdown p.fCountText { letter-spacing: 0.02em; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .f-banner .fButton,
  .f-banner .fButton::after { transition: none; }
  .f-banner .fButton:hover { transform: none; }
}