/* Manasananda Yoga — shared styles */
:root {
  --cream: #fcf7f0;
  --cream-2: #f8efe3;
  --card: rgba(255, 252, 247, 0.92);
  --ink: #16161d;
  --ink-soft: #4a4a52;
  --muted: #6b6b73;
  --gold: #bf7512;
  --gold-deep: #a8620a;
  --gold-line: #d08a2c;
  --btn-a: #f8cd78;
  --btn-b: #eeb656;
  --icon-bg: #f9ead4;
  --border: rgba(170, 130, 80, 0.16);
  --shadow: 0 10px 30px rgba(120, 80, 30, 0.08);
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --header-h: 80px;
  --gutter: clamp(16px, 6.5vw, 110px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
svg { flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(252, 248, 242, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.header-inner {
  height: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5.5vw, 92px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-size: clamp(22px, 2.1vw, 32px);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav { display: flex; gap: clamp(20px, 3.6vw, 60px); }
.nav a {
  position: relative;
  font-size: 17px;
  padding: 26px 0;
  color: var(--ink);
  transition: color .2s;
}
.nav a:hover { color: var(--gold); }
.nav a.active { color: var(--gold); font-weight: 500; }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold-line);
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 52px;
  padding: 0 34px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  color: var(--ink);
  background: linear-gradient(180deg, var(--btn-a), var(--btn-b));
  box-shadow: 0 6px 18px rgba(214, 150, 50, 0.25);
}
.btn-gold:hover { box-shadow: 0 10px 24px rgba(214, 150, 50, 0.35); }
.btn-outline-light {
  color: #f6d9a0;
  border: 1.5px solid #e2b86a;
  background: rgba(20, 12, 6, 0.25);
}
.btn-outline-light:hover { background: rgba(20, 12, 6, 0.45); }
.btn-sm { height: 46px; padding: 0 28px; font-size: 17px; }
.btn-outline {
  color: var(--gold-deep);
  background: #fff;
  border: 1.5px solid #e4b774;
  height: 44px;
  padding: 0 20px;
  font-size: 16px;
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--cream);
}
/* faint leaf watermark on the left edge */
.page-hero::before {
  content: "";
  position: absolute;
  left: -40px; top: 30%;
  width: 180px; height: 520px;
  opacity: .35;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 520' fill='none' stroke='%23e9d6ba' stroke-width='2'%3E%3Cpath d='M30 20 C120 60 130 150 40 200 C10 140 0 80 30 20Z'/%3E%3Cpath d='M30 20 L40 200'/%3E%3Cpath d='M20 230 C120 260 140 350 40 400 C0 340 -10 290 20 230Z'/%3E%3Cpath d='M20 230 L40 400'/%3E%3Cpath d='M40 420 C100 440 110 490 50 520'/%3E%3C/svg%3E") no-repeat;
  pointer-events: none;
}
.hero-photo {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 60%;
  background-size: cover;
  background-position: center;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--cream) 0%,
    rgba(252, 247, 240, 0.8) 11%,
    rgba(252, 247, 240, 0.25) 26%,
    rgba(252, 247, 240, 0) 40%);
}
.page-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 72px) var(--gutter);
}
.page-content > .inner { max-width: 780px; }

.eyebrow {
  margin: 0 0 30px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #2a2a32;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin-top: 24px;
  background: var(--gold-line);
}
.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(44px, 5.2vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.display .accent { color: var(--gold); display: block; }
.lead {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-size: clamp(19px, 1.75vw, 29px);
  line-height: 1.3;
  color: var(--ink-soft);
}

/* ---------- Icon circle ---------- */
.icon-circle {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fcf1e2, var(--icon-bg));
  color: var(--gold);
}

/* ---------- Feature cards (About / Programs) ---------- */
.card-row {
  display: grid;
  gap: 18px;
  margin-top: 40px;
}
.card-row.three { grid-template-columns: repeat(3, 1fr); }
.feature-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 22px 18px 24px;
}
.feature-card .icon-circle { width: 106px; height: 106px; margin: 0 auto 12px; }
.feature-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
}
.feature-card p {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: clamp(16px, 1.3vw, 20px);
  color: var(--muted);
}

/* Programs variant: larger cards with divider and misty hills */
.program-card { padding: 22px 26px 90px; }
.program-card h3 { font-size: clamp(24px, 2.1vw, 32px); }
.program-card h3::after {
  content: "";
  display: block;
  width: 50px; height: 2px;
  margin: 18px auto 20px;
  background: var(--gold-line);
}
.program-card p { font-family: var(--sans); font-size: 18px; line-height: 1.5; color: var(--ink-soft); }
.program-card::after {
  content: "";
  position: absolute;
  left: 6px; right: 6px; bottom: 6px;
  height: 70px;
  border-radius: 0 0 8px 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C40 20 70 18 110 34 C150 50 170 22 210 20 C250 18 280 40 320 30 C350 22 380 26 400 34 V80 H0Z' fill='%23f3e1c7' opacity='.7'/%3E%3Cpath d='M0 60 C60 40 100 44 150 56 C200 68 240 42 290 46 C340 50 370 40 400 30 V80 H0Z' fill='%23ebd0aa' opacity='.8'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.page-programs .page-content > .inner { max-width: 1140px; }
.page-programs .intro { max-width: 640px; }
.page-timings .page-content > .inner { max-width: 900px; }
.page-contact .page-content > .inner { max-width: none; }

/* ---------- Timing rows ---------- */
.timing-list { display: grid; gap: 16px; margin-top: 34px; max-width: 760px; }
.timing-card {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 24px 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.timing-card .icon-circle { width: 122px; height: 122px; }
.timing-card .body {
  border-left: 2px solid #efdcc0;
  padding-left: 40px;
}
.timing-card h3 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 400; }
.timing-card p { margin: 6px 0 14px; font-family: var(--serif); font-size: 20px; color: var(--ink-soft); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 26px 9px 22px;
  border-radius: 999px;
  background: #f9e5c6;
  color: #5b3a10;
  font-size: 17px;
  font-weight: 500;
}
.pill svg { color: var(--gold); }

.cta-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 30px;
}
.cta-inline .label {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--serif);
  font-size: 22px;
}
.cta-inline .label svg { color: var(--gold); }
.cta-inline .label .sep { width: 2px; height: 56px; background: var(--gold-line); opacity: .7; }

/* ---------- Tagline strip (Home / About) ---------- */
.tagline-strip {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 46px;
  font-size: 15px;
  letter-spacing: 0.22em;
  line-height: 1.5;
  text-transform: uppercase;
  color: #2a2a32;
}
.tagline-strip svg { color: var(--gold); }
.tagline-strip .sep { width: 2px; height: 56px; background: var(--gold-line); opacity: .7; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(0, 480px);
  gap: 26px;
  align-items: end;
  margin-top: 36px;
}
.contact-list { display: grid; gap: 14px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 40px 16px 30px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.contact-item:hover { transform: translateX(3px); box-shadow: 0 12px 30px rgba(120, 80, 30, 0.14); }
.contact-item .icon-circle { width: 76px; height: 76px; }
.contact-item .body {
  flex: 1;
  border-left: 2px solid #efdcc0;
  padding-left: 36px;
}
.contact-item h3 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 400; }
.contact-item p { margin: 4px 0 0; font-family: var(--serif); font-size: 18px; color: var(--ink-soft); }
.contact-item .arrow { color: var(--gold); }

.map-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 16px 40px rgba(60, 35, 10, 0.18);
  aspect-ratio: 473 / 340;
  background: #eef0ec url("../img/map.jpg") center / cover no-repeat;
}
.map-card .btn { position: absolute; right: 3%; bottom: 5.5%; height: 48px; }

/* ---------- Home hero ---------- */
.home-hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  background: #2b1a0e;
}
.home-hero .bg {
  position: absolute;
  inset: 0;
  background: url("../img/home-bg.jpg") center 40% / cover no-repeat;
}
.home-hero .bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(30, 18, 8, 0.38) 0%, rgba(30, 18, 8, 0.12) 32%, rgba(0, 0, 0, 0) 50%),
    linear-gradient(0deg, rgba(25, 14, 6, 0.45) 0%, rgba(25, 14, 6, 0) 22%);
}
.home-hero .content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 60px var(--gutter) 140px;
}
.home-hero .logo-hero {
  width: min(410px, 72vw);
  margin-left: clamp(0px, 3vw, 50px);
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.35));
}
.home-hero .tagline {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.1vw, 32px);
  color: #fbf1e2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.home-hero .actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; padding-left: clamp(0px, 2.2vw, 36px); }
.home-hero .actions .btn { height: 60px; min-width: 260px; }
.home-hero .side-words {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 14vw, 240px);
  top: 36%;
  text-align: center;
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: 0.22em;
  color: #fff3de;
  text-shadow: 0 1px 8px rgba(80, 40, 0, 0.5);
}
.home-hero .side-words::after {
  content: "";
  display: block;
  width: 48px; height: 2px;
  margin: 16px auto 0;
  background: #fff3de;
  opacity: .8;
}
.home-hero .bottom {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 48px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.home-hero .bottom .tagline-strip { margin: 0; color: #f5ead8; }
.home-hero .bottom .tagline-strip svg { color: #e2b264; }
.home-hero .motto {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  letter-spacing: 0.22em;
  color: #f5ead8;
}
.home-hero .motto::before { content: ""; width: 80px; height: 2px; background: #e2b264; }

/* ---------- Footer ---------- */
.site-footer {
  background: #fdf9f3;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.footer-logo { width: 170px; }
.footer-sep { width: 2px; height: 42px; background: var(--gold-line); opacity: .6; }
.footer-words {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: #4d4d55;
}
.footer-words span.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.socials { display: flex; gap: 14px; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--gold-deep);
  transition: background .2s;
}
.socials a:hover { background: #f3d7ad; }
.copyright { font-size: 14px; line-height: 1.7; color: #4d4d55; border-left: 2px solid rgba(208, 138, 44, .6); padding-left: 34px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .contact-grid { grid-template-columns: 1fr; max-width: 650px; }
  .map-card { max-width: 480px; }
  .footer-words { display: none; }
  .footer-sep:nth-of-type(2) { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fcf8f2;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 16px 24px; border-top: 1px solid rgba(0, 0, 0, 0.05); }
  .nav a.active::after { display: none; }
  .nav .nav-cta { display: flex; padding: 16px 24px; }

  .page-hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .page-hero::before { display: none; }
  .hero-photo { position: relative; width: 100%; height: 300px; order: -1; }
  .hero-photo::before { background: linear-gradient(0deg, var(--cream) 0%, rgba(252, 247, 240, 0) 45%); }
  .page-content { padding-top: 8px; padding-bottom: 56px; }
  .display { overflow-wrap: break-word; }
  .home-hero .content { padding-top: 40px; }

  .card-row.three { grid-template-columns: 1fr; }
  .program-card { padding-bottom: 80px; }

  .home-hero .side-words { display: none; }
  .home-hero .bottom { position: relative; bottom: auto; padding-bottom: 36px; flex-direction: column; align-items: flex-start; }
  .home-hero .content { padding-bottom: 32px; }
  .home-hero .bg { background-position: 70% center; }
  .home-hero .bg::before {
    background: linear-gradient(90deg, rgba(38, 24, 12, 0.85), rgba(38, 24, 12, 0.45));
  }

  .footer-inner { flex-wrap: wrap; justify-content: center; text-align: center; }
  .footer-sep { display: none; }
  .copyright { border-left: 0; padding-left: 0; width: 100%; }
}

@media (min-width: 961px) {
  .nav .nav-cta { display: none; }
}

@media (max-width: 600px) {
  .eyebrow { font-size: 15px; margin-bottom: 22px; }
  .eyebrow::after { margin-top: 18px; }
  .timing-card { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px; }
  .timing-card .icon-circle { width: 84px; height: 84px; }
  .timing-card .icon-circle svg { width: 52px; height: 52px; }
  .timing-card .body { border-left: 0; padding-left: 0; }
  .timing-card h3 { font-size: 26px; }
  .contact-item { gap: 16px; padding: 14px 16px; }
  .contact-item .icon-circle { width: 56px; height: 56px; }
  .contact-item .body { padding-left: 16px; }
  .contact-item h3 { font-size: 21px; }
  .contact-item p { font-size: 16px; }
  .btn { font-size: 17px; padding: 0 26px; }
  .home-hero .actions { padding-left: 0; }
  .home-hero .actions .btn { min-width: 0; width: 100%; }
  .cta-inline .label { font-size: 19px; }
}

/* ---------- Fit every page to one screen (no scrolling) on desktop/tablet ---------- */
@media (min-width: 961px) and (min-height: 560px) {
  html, body { height: 100%; overflow: hidden; }
  body { display: flex; flex-direction: column; }
  .site-header { flex: none; }
  main { flex: 1; min-height: 0; display: flex; }
  .site-footer { flex: none; }
  .page-hero, .home-hero { flex: 1; min-height: 0; }

  /* sizes follow the screen height so content always fits */
  .page-content { padding-top: 3vh; padding-bottom: 3vh; }
  .eyebrow { font-size: min(18px, 2vh); margin-bottom: 2.6vh; }
  .eyebrow::after { margin-top: 2.2vh; }
  .display { font-size: min(5.2vw, 8.4vh); }
  .lead { font-size: min(1.75vw, 3vh); margin-top: 1.8vh; }

  .card-row { margin-top: 3.4vh; }
  .feature-card { padding: 2.2vh 18px 2.4vh; }
  .feature-card .icon-circle { width: min(106px, 10.5vh); height: min(106px, 10.5vh); margin-bottom: 1.2vh; }
  .feature-card .icon-circle svg { width: min(56px, 5.8vh); height: min(56px, 5.8vh); }
  .feature-card h3 { font-size: min(2vw, 3.2vh); }
  .feature-card p { font-size: min(1.3vw, 2.1vh); }
  .program-card { padding-bottom: min(90px, 9vh); }
  .program-card h3::after { margin: 1.8vh auto 2vh; }
  .program-card p { font-size: min(18px, 1.95vh); }
  .program-card::after { height: min(70px, 7vh); }
  .tagline-strip { margin-top: 4vh; }
  .tagline-strip .sep { height: min(56px, 5.5vh); }

  .timing-list { margin-top: 3vh; gap: 1.6vh; }
  .timing-card { padding: 2.2vh 40px; }
  .timing-card .icon-circle { width: min(122px, 12vh); height: min(122px, 12vh); }
  .timing-card .icon-circle svg { width: min(72px, 7vh); height: min(72px, 7vh); }
  .timing-card h3 { font-size: min(30px, 3.2vh); }
  .timing-card p { font-size: min(20px, 2.1vh); margin: 0.6vh 0 1.4vh; }
  .pill { padding-top: 0.9vh; padding-bottom: 0.9vh; font-size: min(17px, 1.8vh); }
  .cta-inline { margin-top: 3vh; }
  .cta-inline .btn { height: min(52px, 5.6vh); }
  .cta-inline .label .sep { height: min(56px, 5.5vh); }

  .page-contact .display { font-size: min(5.2vw, 7vh); }
  .page-contact .lead { font-size: min(1.75vw, 2.8vh); }
  .contact-grid { margin-top: 2vh; }
  .contact-list { gap: 1.3vh; }
  .contact-item { padding-top: 1.2vh; padding-bottom: 1.2vh; }
  .contact-item .icon-circle { width: min(76px, 7.2vh); height: min(76px, 7.2vh); }
  .contact-item h3 { font-size: min(26px, 2.7vh); }
  .contact-item p { font-size: min(18px, 1.9vh); }
  .map-card { height: min(345px, 36vh); width: auto; justify-self: start; }
  .footer-inner { padding-top: 1.2vh; padding-bottom: 1.2vh; }
  .footer-logo { width: auto; height: min(104px, 10vh); }

  .home-hero .content { padding-top: 4vh; padding-bottom: 14vh; }
  .home-hero .logo-hero { width: min(410px, 44vh); }
  .home-hero .tagline { font-size: min(2.1vw, 3.4vh); }
  .home-hero .actions { margin-top: 3vh; }
  .home-hero .actions .btn { height: min(60px, 6.4vh); }
  .home-hero .bottom { bottom: 5vh; }
}

/* ---------- Gallery (coming soon) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 3.4vh;
  max-width: 780px;
}
.gallery-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background-size: 260%;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
}
.gallery-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px);
  background: rgba(252, 247, 240, 0.35);
}
.gallery-tile span {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--gold-deep);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cta-inline .pill { font-size: 18px; }
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-tile:last-child { display: none; }
  .gallery-tile span { font-size: 11px; padding: 5px 10px; }
}
@media (min-width: 961px) and (min-height: 560px) {
  .gallery-grid { max-width: min(780px, 105vh); }
}

/* ---------- "Powered by" credit ---------- */
.credit {
  flex: none;
  padding: 7px 16px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #fdf9f3;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.credit strong { font-weight: 600; color: var(--gold-deep); }
.page-home .credit { background: #1e140b; color: #cdbba0; border-top-color: rgba(255, 255, 255, 0.06); }
.page-home .credit strong { color: #e8b866; }
.copyright .powered { font-size: 13px; color: var(--muted); }
.copyright .powered strong { font-weight: 600; color: var(--gold-deep); }
.credit a:hover strong, .copyright .powered a:hover strong { text-decoration: underline; }
