/* HOMEPAGE (/) only. Linked after overrides.css by the renderer, on this page only.
   Fixes for specific issues found on this page; site-wide rules live in ../overrides.css. */

/* Homepage, section 2 (three images): keep them in one row on phones instead of stacking */
@media (max-width: 767px) {
  .fluid-engine.fe-6a28a089670d794d9da0616f {
    grid-template-rows: repeat(3, minmax(24px, auto));
    grid-template-columns:
      minmax(var(--grid-gutter), 1fr)
      repeat(9, minmax(0, calc((var(--sqs-site-max-width, 1500px) - 11px * 8) / 9)))
      minmax(var(--grid-gutter), 1fr);
  }
  .fluid-engine .fe-block.fe-block-yui_3_17_2_1_1781043748991_127973 { grid-area: 1/2/4/5; }
  .fluid-engine .fe-block.fe-block-yui_3_17_2_1_1781043748991_128399 { grid-area: 1/5/4/8; }
  .fluid-engine .fe-block.fe-block-yui_3_17_2_1_1781043748991_127692 { grid-area: 1/8/4/11; }
}

/* Homepage "The First Chapter I" carousel: smaller gap under the title on phones (was 70px),
   so the title and a whole card fit on screen together. !important beats the inline style. */
@media (max-width: 767px) {
  .list-section-title[id="6a28a1f9ee22a56c731443dd"] { padding-bottom: 16px !important; }
}

/* Homepage travel cards ("The First Chapter I" carousel): the export right-aligns title and text.
   Title centred; description left-aligned across the full column width (no hyphenation). */
.user-items-list-carousel[data-section-id="6a28a1f9ee22a56c731443dd"] .list-item-content__title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 100% !important;   /* the export sets max-width:75% inline */
  width: 100%;
}
.user-items-list-carousel[data-section-id="6a28a1f9ee22a56c731443dd"] .list-item-content__description {
  width: 100%;
  max-width: 100% !important;   /* the export sets max-width:75% inline */
  text-align: left;
  hyphens: manual;
  -webkit-hyphens: manual;
}
/* override the export's inline white-space:pre-wrap so the text wraps normally across the column */
.user-items-list-carousel[data-section-id="6a28a1f9ee22a56c731443dd"] .list-item-content__description p {
  text-align: inherit;
  white-space: normal !important;
  max-width: none;
  width: 100%;
}

/* "It's not about destinations…": Learn more button centred under the text column
   (the export placed its frame at the left edge of the column). */
.fluid-engine .fe-block.fe-block-13c09f4bd8fb4d38c61e { grid-area: 18/6/20/11 !important; }
@media (max-width: 767px) {
  .fluid-engine .fe-block.fe-block-13c09f4bd8fb4d38c61e { grid-area: 24/4/26/8 !important; }
}
