/* Bootstrap clearfix pseudo-elements must not become extra grid cells. */
#image-feed::before,
#image-feed::after { display: none; content: none; }

/* Keep the logo and desktop links aligned without floated, oversized cells. */
@media (min-width: 992px) {
  .site-header .sticky-header > .container {
    width: 96%;
    max-width: 1450px;
  }
  .site-header .sticky-header > .container > .row {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .site-header .sticky-header > .container > .row > .col-xs-8 {
    flex: 0 0 auto;
    width: auto;
  }
  .site-header .sticky-header > .container > .row > .col-xs-4 {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
  .site-header .site-nav { float: none; }
  .site-header .site-nav ul.nav-off-canvas {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(10px, 1.4vw, 22px);
    background: transparent;
  }
  .site-header .site-nav ul.nav-off-canvas > li {
    float: none;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
  }
  .site-header .site-nav ul.nav-off-canvas > li > a {
    display: block;
    padding: 0;
    white-space: nowrap;
    letter-spacing: 0;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .site-header .site-logo { font-size: 24px; }
  .site-header .sticky-header > .container > .row { gap: 16px; }
  .site-header .site-nav ul.nav-off-canvas { gap: 10px; }
  .site-header .site-nav ul.nav-off-canvas > li > a { font-size: 12px; }
}

/* Reserve space for the twelve live renders, including before the first fetch. */
#image-feed {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  aspect-ratio: 9 / 4;
  gap: 12px;
  margin: 0 0 25px;
  overflow: hidden;
}
#image-feed .col-xs-6 {
  float: none;
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  transition: none;
}
#image-feed .col-xs-6 a { display: block; width: 100%; height: 100%; }
#image-feed .col-xs-6 img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-bottom: 0 !important;
}
@media (max-width: 767px) {
  #image-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(0, 1fr));
    aspect-ratio: 1 / 4;
  }
}

.tour-section { padding: 80px 0; color: #21213a; }
.tour-section--models { background: #fff; }
.tour-section--creators { background: #f4f4fb; }
.tour-section--create { background: #15172d; color: #fff; }
.tour-container { max-width: 1450px; width: 92%; }
.tour-heading { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.tour-eyebrow { display: block; color: #7857cd; font-size: 12px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; margin-bottom: 10px; }
.tour-section--create .tour-eyebrow { color: #c1a5ff; }
.tour-heading h2 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 46px); line-height: 1.15; font-weight: 700; }
.tour-heading p { color: #696980; font-size: 16px; line-height: 1.6; }
.tour-section--create .tour-heading p { color: #d3d0e5; }
.tour-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 20px; }
.tour-card { overflow: hidden; border: 1px solid #ebebf2; border-radius: 16px; background: #fff; box-shadow: 0 8px 28px rgba(30,25,60,.07); transition: transform .2s, box-shadow .2s; }
.tour-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(30,25,60,.14); }
.tour-card a { text-decoration: none; }
.tour-card-image { display: block; aspect-ratio: 3/4; overflow: hidden; background: #ededf5; }
.tour-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tour-card-content { padding: 16px; }
.tour-card h3 { font-size: 17px; line-height: 1.3; margin: 0 0 15px; font-weight: 700; overflow-wrap: anywhere; }
.tour-card h3 a { color: #24233b; }
.tour-card-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.tour-card-actions a { color: #523eb0; background: #f0ecfb; border-radius: 7px; font-size: 12px; font-weight: 700; padding: 7px 9px; }
.tour-card-actions a:hover { background: #e1d6fa; }
.tour-section-link { text-align: center; margin-top: 36px; }
.tour-section-link a { display: inline-block; border-radius: 9px; padding: 13px 22px; background: #7350d2; color: #fff; font-weight: 700; text-decoration: none; }
.tour-section-link a:hover { color: #fff; background: #5839b4; }
.tour-empty { text-align: center; }
.tour-creator { min-height: 270px; text-align: center; padding-top: 25px; }
.tour-creator-avatar { display: inline-block; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: #e8e5f1; }
.tour-creator-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tour-creator .tour-card-content { padding-top: 10px; }
.tour-creator h3 { margin-bottom: 2px; }
.tour-handle { color: #817c93; font-size: 12px; margin: 0 0 12px; overflow-wrap: anywhere; }
.tour-creator-description { color: #66647a; font-size: 13px; line-height: 1.5; min-height: 40px; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tour-profile-link { color: #6545bd; font-size: 13px; font-weight: 700; }
.tour-feature-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.tour-feature { display: block; padding: 28px 24px; min-height: 250px; border-radius: 16px; color: #fff; background: #24263e; border: 1px solid #42415d; text-decoration: none; transition: transform .2s, background .2s; }
.tour-feature:hover { color: #fff; transform: translateY(-4px); background: #30324f; text-decoration: none; }
.tour-feature-icon { display: block; font-size: 26px; line-height: 1; color: #b99bff; margin-bottom: 24px; }
.tour-feature h3 { color: #fff; font-size: 19px; margin: 0 0 10px; }
.tour-feature p { color: #d3d0e5; font-size: 14px; line-height: 1.55; min-height: 65px; }
.tour-feature strong { color: #cdbbff; font-size: 13px; }
@media (max-width: 1199px) {
  .tour-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .tour-feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .tour-section { padding: 55px 0; }
  .tour-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .tour-card-content { padding: 12px; }
  .tour-card h3 { font-size: 15px; }
  .tour-creator { min-height: 245px; padding-top: 20px; }
  .tour-feature-grid { gap: 12px; }
  .tour-feature { padding: 22px 18px; min-height: 240px; }
}
@media (max-width: 480px) {
  .tour-feature-grid { grid-template-columns: 1fr; }
  .tour-feature { min-height: 0; }
  .tour-feature p { min-height: 0; }
}

.tour-section--pricing { background: #f4f4fb; }
.tour-pricing-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tour-price-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e0f1; border-radius: 15px; padding: 24px 20px; box-shadow: 0 8px 28px rgba(30,25,60,.06); }
.tour-price-card h3 { margin: 0 0 13px; font-size: 19px; color: #25233e; }
.tour-price { font-size: 28px; font-weight: 700; color: #6745ba; margin: 0 0 14px; }
.tour-price small { font-size: 13px; font-weight: 500; }
.tour-price-card > p:not(.tour-price) { color: #66647a; font-size: 14px; line-height: 1.5; }
.tour-price-card a { display: block; margin-top: auto; padding: 11px; border-radius: 8px; background: #7350d2; color: #fff; text-decoration: none; text-align: center; font-weight: 700; }
.tour-price-card a:hover { color: #fff; background: #5839b4; }
@media (max-width: 1199px) { .tour-pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .tour-pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tour-pricing-grid { grid-template-columns: 1fr; } }
