/* =========================================================
   THINGS TO DO PAGE – MOSAIC MAGAZINE STYLE (V4)
   URL: /things-to-do
   Body class: .site.blank.template27
   ========================================================= */

/* ---------------------------------------
   BASE PAGE
---------------------------------------- */

body.site.blank.template27 {
  background: #020617;
  color: #111827;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Soft gradient background behind modules */
body.site.blank.template27 .page-content {
  background:
    radial-gradient(circle at 0% 0%, #1f2937 0, transparent 50%),
    radial-gradient(circle at 100% 8%, #0f172a 0, transparent 55%),
    radial-gradient(circle at 50% 100%, #111827 0, #020617 65%);
}

/* ---------------------------------------
   HERO TITLE: .md-content.richtext
   – Left-aligned title + right blob
---------------------------------------- */

body.site.blank.template27 .md-content.richtext {
  margin-bottom: 0;
  padding: 45px 0 40px;
  background: transparent;
}

body.site.blank.template27 .md-content.richtext .mg-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  position: relative;
  overflow: visible;
}

/* Tiny label above heading */
body.site.blank.template27 .md-content.richtext .mg-container::before {
  content: "Victoria BC · Things To Do";
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: rgba(249, 250, 251, 0.9);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 10px;
  z-index: 2;
}

/* Colored blob on right */
body.site.blank.template27 .md-content.richtext .mg-container::after {
  content: "";
  position: absolute;
  top: -40px;
  right: max(0px, calc(50% - 420px));
  width: 460px;
  height: 460px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 0%, rgba(250, 204, 21, 0.9), transparent 60%),
    radial-gradient(circle at 80% 100%, rgba(56, 189, 248, 0.8), transparent 60%),
    radial-gradient(circle at 50% 40%, rgba(244, 63, 94, 0.5), transparent 60%);
  filter: blur(1px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 1;
}

/* Remove extra blank element from richtext */
body.site.blank.template27
  .md-content.richtext
  .custom-richtext-content
  > div:first-child {
  display: none;
}

/* Main heading text */
body.site.blank.template27
  .md-content.richtext
  .custom-richtext-content
  span {
  display: inline-block;
  position: relative;
  z-index: 2;
  font-family: var(--mg-title-font, system-ui);
  font-weight: 700;
  font-size: clamp(42px, 5.4vw, 58px) !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f9fafb !important;
}

/* Supporting line under heading */
body.site.blank.template27
  .md-content.richtext
  .custom-richtext-content {
  position: relative;
  padding-top: 6px;
  max-width: 580px;
}

body.site.blank.template27
  .md-content.richtext
  .custom-richtext-content::after {
  content: "Curated guides, hidden gems and seasonal experiences around Victoria & Vancouver Island.";
  display: block;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(209, 213, 219, 0.88);
}

/* Accent underline */
body.site.blank.template27
  .md-content.richtext
  .custom-richtext-content::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -18px;
  width: 90px;
  height: 2px;
  border-radius: 999px;
  background-image: linear-gradient(90deg, #facc15, #fb923c, #38bdf8);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.65);
}

/* ---------------------------------------
   FEATURED ARTICLES MOSAIC
   Module: .md-blog.layout2
---------------------------------------- */

body.site.blank.template27 .md-blog.layout2.mg-bg {
  padding: 40px 0 90px;
  background: transparent;
}

body.site.blank.template27 .md-blog.layout2 .blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  position: relative;
}

/* Soft glass panel behind grid */
body.site.blank.template27 .md-blog.layout2 .blog-container::before {
  content: "";
  position: absolute;
  inset: -24px -32px;
  border-radius: 32px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  z-index: 0;
}

/* Title inside module (if used) */
body.site.blank.template27
  .md-blog.layout2
  .blog-title {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
}

body.site.blank.template27
  .md-blog.layout2
  .blog-title h2 span {
  font-size: 18px !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e5e7eb !important;
}

/* Mosaic grid */
body.site.blank.template27 .md-blog.layout2 .blog-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1.3fr);
  grid-auto-rows: 230px;
  gap: 22px;
}

/* li wrapper acts as pass-through */
body.site.blank.template27 .md-blog.layout2 .blog-card {
  display: contents;
}

body.site.blank.template27 .md-blog.layout2 .blog-item {
  min-width: 0;
}

/* Mosaic layout rules */
body.site.blank.template27 .md-blog.layout2 .blog-item:nth-child(1) {
  grid-row: span 2;
}

body.site.blank.template27 .md-blog.layout2 .blog-item:nth-child(2) {
  grid-column: 2 / span 1;
}

body.site.blank.template27 .md-blog.layout2 .blog-item:nth-child(3) {
  grid-column: 3 / span 1;
}

body.site.blank.template27 .md-blog.layout2 .blog-item:nth-child(4) {
  grid-column: 2 / span 2;
}

body.site.blank.template27 .md-blog.layout2 .blog-item:nth-child(5),
body.site.blank.template27 .md-blog.layout2 .blog-item:nth-child(6),
body.site.blank.template27 .md-blog.layout2 .blog-item:nth-child(n + 7) {
  grid-column: auto;
}

/* Slight stagger effect */
body.site.blank.template27 .md-blog.layout2 .blog-item:nth-child(odd) {
  transform: translateY(6px);
}

body.site.blank.template27 .md-blog.layout2 .blog-item:nth-child(even) {
  transform: translateY(-6px);
}

/* Card layout – image with gradient overlay text */
body.site.blank.template27
  .md-blog.layout2
  .blog-item
  .blog-jump.layout2 {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #020617;
  text-decoration: none;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(30, 64, 175, 0.5);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

/* Extra depth on hover */
body.site.blank.template27
  .md-blog.layout2
  .blog-item
  .blog-jump.layout2:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(248, 250, 252, 0.6);
}

/* Preview image fills card */
body.site.blank.template27
  .md-blog.layout2
  .blog-item
  .preview-box {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}

body.site.blank.template27
  .md-blog.layout2
  .blog-item
  .img-box.blog-preview,
body.site.blank.template27
  .md-blog.layout2
  .blog-item
  .img-box.blog-preview
  .img-content {
  width: 100%;
  height: 100%;
}

body.site.blank.template27
  .md-blog.layout2
  .blog-item
  .img-box.blog-preview
  .img-content
  img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.05);
  transition: transform 0.45s ease;
}

body.site.blank.template27
  .md-blog.layout2
  .blog-item
  .blog-jump.layout2:hover
  .img-box.blog-preview
  .img-content
  img {
  transform: scale(1.12);
}

/* Remove original white line */
body.site.blank.template27
  .md-blog.layout2
  .blog-item
  .preview-box
  .line-box {
  display: none;
}

/* Gradient overlay at bottom for text */
body.site.blank.template27
  .md-blog.layout2
  .blog-item
  .blog-bottom {
  position: absolute;
  inset: auto 0 0;
  padding: 18px 22px 20px;
  background:
    linear-gradient(
      to top,
      rgba(15, 23, 42, 0.95),
      rgba(15, 23, 42, 0.6),
      transparent
    );
  color: #f9fafb;
}

/* Category pill (using .blog-title if present) */
body.site.blank.template27
  .md-blog.layout2
  .blog-item
  .blog-title {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: rgba(249, 250, 251, 0.9);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* Title */
body.site.blank.template27
  .md-blog.layout2
  .blog-item
  .blog-sub-title {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #f9fafb;
}

/* Remove arrow icon from title */
body.site.blank.template27
  .md-blog.layout2
  .blog-item
  .blog-sub-title
  .iconfont {
  display: none;
}

/* Description */
body.site.blank.template27
  .md-blog.layout2
  .blog-item
  .blog-description {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(209, 213, 219, 0.96);
  max-width: 460px;
}

/* Meta info */
body.site.blank.template27
  .md-blog.layout2
  .blog-item
  .blog-time {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
}

/* “View more” button under grid */
body.site.blank.template27
  .md-blog.layout2
  .blog-footer {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  text-align: center;
}

body.site.blank.template27
  .md-blog.layout2
  .blog-footer
  .button-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.8rem 2.6rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.6);
  background: rgba(15, 23, 42, 0.96);
  color: #f9fafb;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.7);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

body.site.blank.template27
  .md-blog.layout2
  .blog-footer
  .button-more:hover {
  background-image: linear-gradient(135deg, #facc15, #fb923c, #38bdf8);
  color: #111827;
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.85);
}

/* ---------------------------------------
   TRENDING SLIDER – layout1
   – Lighter strip below, pill cards
---------------------------------------- */

body.site.blank.template27 .md-blog.layout1.mg-bg {
  padding: 0 0 80px;
  background: transparent;
}

body.site.blank.template27 .md-blog.layout1 .f-col {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

/* Section panel */
body.site.blank.template27 .md-blog.layout1 .f-col::before {
  content: "";
  position: absolute;
  inset: -24px -32px;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.75);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: -1;
}

body.site.blank.template27 .md-blog.layout1 .f-col {
  position: relative;
}

/* Title */
body.site.blank.template27
  .md-blog.layout1
  .blog-title {
  margin-bottom: 20px;
}

body.site.blank.template27
  .md-blog.layout1
  .blog-title h2 span {
  font-size: 1.42rem !important;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #e5e7eb !important;
}

/* Card */
body.site.blank.template27
  .md-blog.layout1
  .blog-card
  .blog-jump.layout1 {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;

}

body.site.blank.template27
  .md-blog.layout1
  .blog-card
  .blog-jump.layout1:hover {
  transform: translateY(-4px);
  background: rgba(15, 23, 42, 0.98);
}

/* Image */
body.site.blank.template27
  .md-blog.layout1
  .blog-card
  .img-box.blog-preview
  .img-content
  img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

/* Text */
body.site.blank.template27
  .md-blog.layout1
  .blog-card
  .blog-bottom {
  padding: 14px 16px 16px;
}

body.site.blank.template27
  .md-blog.layout1
  .blog-card
  .blog-sub-title,
body.site.blank.template27
  .md-blog.layout1
  .blog-card
  .blog-sub-title.site-title {
  font-size: 14px;
  font-weight: 600;
  color: #f9fafb;
}

body.site.blank.template27
  .md-blog.layout1
  .blog-card
  .blog-description {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(209, 213, 219, 0.9);
}

/* Slider footer */
body.site.blank.template27
  .md-blog.layout1
  .blog-footer {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* Arrows */
body.site.blank.template27
  .md-blog.layout1
  .blog-footer
  .swiper-button {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.site.blank.template27
  .md-blog.layout1
  .blog-footer
  .button-prev,
body.site.blank.template27
  .md-blog.layout1
  .blog-footer
  .button-next {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

body.site.blank.template27
  .md-blog.layout1
  .blog-footer
  .button-prev
  i,
body.site.blank.template27
  .md-blog.layout1
  .blog-footer
  .button-next
  i {
  transform: rotate(-90deg);
  color: #e5e7eb;
}

body.site.blank.template27
  .md-blog.layout1
  .blog-footer
  .button-prev:hover,
body.site.blank.template27
  .md-blog.layout1
  .blog-footer
  .button-next:hover {
  transform: translateY(-1px);
  background: #facc15;
  border-color: #facc15;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.9);
}

body.site.blank.template27
  .md-blog.layout1
  .blog-footer
  .button-prev:hover
  i,
body.site.blank.template27
  .md-blog.layout1
  .blog-footer
  .button-next:hover
  i {
  color: #111827;
}

/* View more button */
body.site.blank.template27
  .md-blog.layout1
  .blog-footer
  .button-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 2.1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: transparent;
  color: #e5e7eb;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

body.site.blank.template27
  .md-blog.layout1
  .blog-footer
  .button-more:hover {
  background: #e5e7eb;
  color: #111827;
  border-color: #e5e7eb;
}

/* ---------------------------------------
   SERIES GALLERY STRIP – layout4
---------------------------------------- */

body.site.blank.template27 .md-gallery.layout4.mg-bg {
  margin-bottom: 40px;
  background: transparent;
}

body.site.blank.template27
  .md-gallery.layout4
  .gallery-container {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 40px clamp(16px, 4vw, 32px) 50px;
  border-radius: 28px;
  background: radial-gradient(circle at top left, #0f172a 0, #020617 70%);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(30, 64, 175, 0.6);
}

/* Series heading */
body.site.blank.template27
  .md-gallery.layout4
  .gallery-title {
  margin-bottom: 18px;
}

body.site.blank.template27
  .md-gallery.layout4
  .gallery-title span {
  font-size: 16px !important;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #e5e7eb !important;
}

/* Image blocks */
body.site.blank.template27
  .md-gallery.layout4
  .gallery-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9);
}

/* Image */
body.site.blank.template27
  .md-gallery.layout4
  .gallery-img-wrap
  .img-box.swiper-img
  .img-content
  img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform 0.4s ease;
}

body.site.blank.template27
  .md-gallery.layout4
  .gallery-img-wrap:hover
  .img-content
  img {
  transform: scale(1.08);
}

/* Overlay */
body.site.blank.template27
  .md-gallery.layout4
  .gallery-img-wrap
  .img-mask {
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.4),
    transparent
  ) !important;
}

/* CTA text */
body.site.blank.template27
  .md-gallery.layout4
  .gallery-img-wrap
  .cta-text {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #f9fafb;
}

body.site.blank.template27
  .md-gallery.layout4
  .gallery-img-wrap
  .cta-text
  span {
  font-weight: 600;
}

/* ---------------------------------------
   FOOTER
---------------------------------------- */

body.site.blank.template27 .md-footer.layout6 {
  padding-top: 80px;
  padding-bottom: 72px;
  background: #020617;
}

body.site.blank.template27
  .md-footer.layout6
  .form-email
  .info-form2
  .input-content
  .input-box
  input[type="email"] {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

body.site.blank.template27
  .md-footer.layout6
  .form-email
  .info-form2
  .submit-box
  .submit {
  border-radius: 999px;
  padding-inline: 20px;
}

/* Hide Lofty copyright */
body.site.blank.template27 .page-foot,
body.site.blank.template27 .footer-bottom,
body.site.blank.template27 .footer-site-info,
body.site.blank.template27 .copyright,
body.site.blank.template27 .site-footer-bottom,
body.site.blank.template27 .site-info,
body.site.blank.template27 .site-info-bar,
body.site.blank.template27 [class*="powered-by"],
body.site.blank.template27 [class*="lofty-footer"],
body.site.blank.template27 footer.md-footer + div {
  display: none !important;
}

/* ---------------------------------------
   RESPONSIVE
---------------------------------------- */

@media (max-width: 1024px) {
  body.site.blank.template27 .md-blog.layout2 .blog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 220px;
  }

  body.site.blank.template27 .md-blog.layout2 .blog-item {
    transform: translateY(0);
  }

  body.site.blank.template27 .md-blog.layout2 .blog-item:nth-child(1) {
    grid-row: span 2;
  }
}

@media (max-width: 768px) {
  body.site.blank.template27 .md-content.richtext {
    padding: 70px 0 36px;
  }

  body.site.blank.template27
    .md-content.richtext
    .custom-richtext-content {
    max-width: none;
  }

  body.site.blank.template27
    .md-content.richtext
    .custom-richtext-content::after {
    font-size: 13px;
  }

  body.site.blank.template27 .md-blog.layout2 .blog-container::before {
    inset: -18px -18px;
    border-radius: 22px;
  }

  body.site.blank.template27 .md-blog.layout2 .blog-list {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 230px;
  }

  body.site.blank.template27 .md-blog.layout2 .blog-item {
    transform: none;
  }

  body.site.blank.template27 .md-blog.layout2 .blog-item:nth-child(1) {
    grid-row: span 1;
  }

  body.site.blank.template27
    .md-blog.layout1
    .blog-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  body.site.blank.template27
    .md-gallery.layout4
    .gallery-container {
    margin-bottom: 32px;
    padding: 28px 16px 32px;
  }

  body.site.blank.template27
    .md-gallery.layout4
    .gallery-img-wrap
    .img-box.swiper-img
    .img-content
    img {
    height: 220px;
  }
}
/* ===============================
   1) HERO EYEBROW TEXT OFF
   ===============================*/

/* Remove hard-coded "Victoria BC · Things To Do" */
body.site.blank.template27 .md-content.richtext .mg-container::before {
  content: none !important;
  display: none !important;
}

/* ===============================
   2) DARK CARD TEXT – MAKE IT LIGHT
   ===============================*/

/* All blog cards on dark backgrounds use light text */
body.site.blank.template27 .md-blog.layout2 .blog-jump.layout2 .blog-bottom,
body.site.blank.template27 .md-blog.layout2 .blog-jump.layout2 .blog-bottom * {
  color: #e5e7eb !important;
}

body.site.blank.template27 .md-blog.layout1 .blog-jump.layout1 .blog-bottom,
body.site.blank.template27 .md-blog.layout1 .blog-jump.layout1 .blog-bottom * {
  color: #e5e7eb !important;
}

/* Category / meta pill on dark cards */
body.site.blank.template27 .md-blog.layout2 .blog-jump.layout2 .blog-title,
body.site.blank.template27 .md-blog.layout1 .blog-jump.layout1 .blog-title {
  color: #e5e7eb !important;
  background-color: rgba(15, 23, 42, 0.85);
}

body.site.blank.template27
  .md-blog.layout1
  .blog-title
  h2
  span {
  color: #9ca3af !important;
}
