/*
Theme Name: Master Designer Studios Astra Child
Theme URI: https://masterdesignerstudios.com/
Description: Custom Astra child theme for Master Designer Studios. Custom Astra child theme for Master Designer Studios with transfer services, professional filming, livestreaming, drone video services, and selected wedding work.
Author: Master Designer Studios
Template: astra
Version: 1.0.0
Text Domain: mds-astra-child
*/

:root {
  --mds-orange: #f29a3f;
  --mds-orange-dark: #a84e08;
  --mds-orange-light: #fff0df;
  --mds-cream: #fffaf4;
  --mds-ink: #171717;
  --mds-muted: #626262;
  --mds-border: #e8e1da;
  --mds-card: #ffffff;
  --mds-max: 1180px;
  --mds-radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--mds-ink); background: #fff; font-family: Arial, Helvetica, sans-serif; line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.mds-wrap { width: min(var(--mds-max), calc(100% - 40px)); margin: 0 auto; }
.mds-section { padding: 72px 0; }
.mds-eyebrow { margin: 0 0 10px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--mds-orange-dark); }
.mds-section h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.03em; }
.mds-lead { max-width: 760px; margin: 18px 0 0; font-size: 1.08rem; color: var(--mds-muted); }

.mds-site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--mds-border); backdrop-filter: blur(10px); }
.mds-header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.mds-brand { display: flex; align-items: center; min-width: 260px; text-decoration: none; }
.mds-brand img { width: min(360px, 42vw); display: block; }
.mds-nav { display: flex; align-items: center; gap: 22px; font-size: .95rem; }
.mds-nav a { text-decoration: none; font-weight: 700; }
.mds-nav a:hover { color: var(--mds-orange-dark); }
.mds-nav .mds-contact-link { padding: 10px 15px; border-radius: 999px; background: var(--mds-orange); color: #171717; }
.mds-menu-toggle { display: none; border: 1px solid var(--mds-border); background: #fff; border-radius: 10px; padding: 9px 12px; font-weight: 700; }
.mds-orange-rule { height: 4px; background: linear-gradient(90deg, #f7bd78, var(--mds-orange), #ef8420); }

.mds-hero { background: linear-gradient(135deg, var(--mds-cream), #fff 60%); padding: 42px 0 36px; }
.mds-hero-grid { display: block; }
.mds-kicker { display: inline-flex; gap: 8px; align-items: center; padding: 7px 12px; border-radius: 999px; background: var(--mds-orange-light); color: var(--mds-orange-dark); font-size: .86rem; font-weight: 800; }
.mds-hero h1 { margin: 0; max-width: 980px; font-size: clamp(2.25rem, 4.5vw, 4rem); line-height: 1.02; letter-spacing: -.04em; }
.mds-hero-line { display: block; white-space: nowrap; }
.mds-hero-line-accent { color: var(--mds-orange-dark); }
.mds-hero p { max-width: 980px; margin: 18px 0 0; font-size: 1.08rem; color: var(--mds-muted); }
.mds-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.mds-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--mds-orange); text-decoration: none; font-weight: 800; transition: .15s ease; }
.mds-button-primary { background: var(--mds-orange); color: #171717; }
.mds-button-secondary { background: #fff; color: var(--mds-orange-dark); }
.mds-button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,.08); }
.mds-trustline { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; color: var(--mds-muted); font-size: .92rem; }
.mds-trustline strong { color: var(--mds-ink); }

.mds-service-gateway { background: #fff; border-bottom: 1px solid var(--mds-border); padding: 26px 0 34px; }
.mds-service-gateway-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mds-service-gateway-card { position: relative; display: flex; flex-direction: column; min-height: 260px; padding: 28px; border: 1px solid #efc89c; border-radius: 20px; background: #fff; box-shadow: 0 12px 30px rgba(80,45,10,.06); }
.mds-service-gateway-primary { border-width: 2px; background: linear-gradient(145deg, var(--mds-cream), #fff); }
.mds-service-gateway-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: var(--mds-orange-light); color: var(--mds-orange-dark); }
.mds-service-gateway-icon svg { width: 27px; height: 27px; }
.mds-service-gateway-card h2 { margin: 17px 0 0; font-size: clamp(1.65rem, 2.7vw, 2.15rem); line-height: 1.08; }
.mds-service-gateway-card p { margin: 14px 0 22px; color: var(--mds-muted); font-size: 1rem; }
.mds-service-gateway-link { margin-top: auto; color: var(--mds-orange-dark); font-weight: 800; text-decoration: none; }
.mds-service-gateway-link:hover { text-decoration: underline; }

.mds-media-panel { padding: 18px; border: 1px solid #efc89c; background: #fff; border-radius: 24px; box-shadow: 0 18px 45px rgba(80,45,10,.10); }
.mds-media-panel h3 { margin: 0 0 14px; font-size: 1.05rem; }
.mds-format-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mds-format { min-height: 124px; padding: 15px; border: 1px solid var(--mds-border); border-radius: 14px; background: var(--mds-cream); display: flex; flex-direction: column; justify-content: flex-start; gap: 12px; }
.mds-format svg { width: 42px; height: 42px; color: var(--mds-orange-dark); }
.mds-format b { font-size: .92rem; }
.mds-format small { color: var(--mds-muted); }
.mds-format-wide { grid-column: 1 / -1; min-height: 108px; flex-direction: row; align-items: center; gap: 14px; justify-content: flex-start; }
.mds-format-wide div { display: flex; flex-direction: column; }

.mds-focus { background: #fff; }
.mds-focus-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; margin-top: 34px; }
.mds-card { border: 1px solid var(--mds-border); border-radius: var(--mds-radius); background: var(--mds-card); padding: 30px; }
.mds-card-featured { border: 2px solid var(--mds-orange); background: linear-gradient(145deg, var(--mds-cream), #fff); }
.mds-service-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--mds-orange-light); color: var(--mds-orange-dark); }
.mds-service-icon svg { width: 28px; height: 28px; }
.mds-card h3 { margin: 18px 0 0; font-size: 1.65rem; line-height: 1.12; }
.mds-card p { color: var(--mds-muted); }
.mds-list { margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 22px; list-style: none; }
.mds-list li::before { content: "•"; color: var(--mds-orange-dark); font-weight: 900; margin-right: 8px; }
.mds-text-link { display: inline-block; margin-top: 20px; font-weight: 800; color: var(--mds-orange-dark); text-decoration: none; }

.mds-recording { background: var(--mds-cream); border-top: 1px solid var(--mds-border); border-bottom: 1px solid var(--mds-border); }
.mds-three { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 32px; }
.mds-mini-card { padding: 24px; border-radius: 16px; border: 1px solid var(--mds-border); background: #fff; }
.mds-mini-card h3 { margin: 0; font-size: 1.25rem; }
.mds-mini-card p { margin-bottom: 0; color: var(--mds-muted); }
.mds-badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.mds-badge { display: inline-block; padding: 7px 11px; border-radius: 999px; background: var(--mds-orange-light); color: var(--mds-orange-dark); font-size: .85rem; font-weight: 800; }

.mds-photo-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 34px; align-items: start; }
.mds-photo-points { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.mds-photo-point { padding: 20px; border-radius: 14px; background: var(--mds-cream); border: 1px solid var(--mds-border); }
.mds-photo-point b { display: block; margin-bottom: 5px; }
.mds-photo-point span { color: var(--mds-muted); font-size: .92rem; }


.mds-integrated-samples { margin-top: 46px; padding-top: 34px; border-top: 1px solid var(--mds-border); }
.mds-integrated-samples > h3 { margin: 0 0 8px; font-size: 1.55rem; }
.mds-integrated-samples > p { margin: 0 0 22px; color: var(--mds-muted); }
.mds-sample-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; margin-top: 22px; }
.mds-photo-sample-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 20px; }
.mds-photo-restoration-intro { margin-top: 34px; padding: 24px 26px; border-radius: 16px; background: #151515; border: 1px solid #333; }
.mds-photo-restoration-intro h3 { margin: 0; color: #fff; font-size: 1.3rem; line-height: 1.2; }
.mds-photo-restoration-intro p { margin: 10px 0 0; max-width: 900px; color: #d0d0d0; font-size: 1rem; }
.mds-photo-example-card { overflow: hidden; }
.mds-photo-comparison { display: grid; grid-template-columns: 1fr 1fr; background: #f4ede5; overflow: hidden; align-items: stretch; }
.mds-photo-comparison .mds-ba-panel { position: relative; min-width: 0; border-right: 1px solid rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center; overflow: hidden; background: #efe9e2; }
.mds-photo-comparison .mds-ba-panel:last-child { border-right: 0; }
.mds-photo-comparison img { width: 100%; height: auto; display: block; }
.mds-photo-comparison-portrait img { width: 100%; height: 520px; object-fit: contain; }
.mds-ba-label { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 5px 9px; border-radius: 999px; background: rgba(20,20,20,.78); color: #fff; font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.mds-photo-placeholder { color: #777; font-size: 14px; padding: 18px; text-align: center; }

.mds-work { background: #111; color: #fff; }
.mds-work .mds-eyebrow { color: #ffb66e; }
.mds-work .mds-lead { color: #c8c8c8; }
.mds-work-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; margin-top: 32px; }
.mds-work-card { overflow: hidden; border-radius: 16px; border: 1px solid #333; background: #191919; }
.mds-video-frame { aspect-ratio: 16 / 9; background: linear-gradient(135deg,#272727,#111); display: grid; place-items: center; color: #cfcfcf; text-align: center; padding: 20px; }
.mds-video-frame iframe { width: 100%; height: 100%; border: 0; }
.mds-work-copy { padding: 20px; }
.mds-work-copy h3 { margin: 0; font-size: 1.3rem; }
.mds-work-copy .mds-work-title { margin: 0; font-size: 1.3rem; color: inherit; font-weight: 700; }
#recording .mds-work-copy h3, #recording .mds-work-copy .mds-work-title { color: #fff; }
#transfers .mds-sample-grid .mds-work-copy h3 { color: #fff; }
.mds-work-copy p { color: #c7c7c7; }
.mds-work-copy a { color: #ffb66e; font-weight: 800; }
.mds-referral-note { display: inline-block; margin-top: 8px; padding: 5px 8px; border-radius: 999px; background: #2d2117; color: #ffc486; font-size: .76rem; font-weight: 800; }

.mds-about { background: var(--mds-cream); }
.mds-about-grid { display: grid; grid-template-columns: 180px 1fr; gap: 34px; align-items: center; }
.mds-avatar { width: 180px; height: 180px; object-fit: cover; border-radius: 22px; border: 3px solid var(--mds-orange); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.mds-about p { max-width: 820px; color: var(--mds-muted); }

.mds-contact { background: #fff; }
.mds-contact-box { border: 2px solid var(--mds-orange); border-radius: 22px; padding: 38px; background: linear-gradient(145deg,var(--mds-cream),#fff); }
.mds-contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 34px; align-items: start; }
.mds-contact-methods { display: grid; gap: 10px; margin-top: 20px; }
.mds-contact-methods a { text-decoration: none; font-weight: 800; color: var(--mds-orange-dark); }
.mds-placeholder-form { border: 1px dashed #cfab82; border-radius: 14px; padding: 24px; color: var(--mds-muted); background: #fff; }

.mds-site-footer { padding: 34px 0; background: #111; color: #d0d0d0; }
.mds-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.mds-footer-brand { display: flex; align-items: center; gap: 14px; }
.mds-footer-brand img { width: 52px; height: 52px; border-radius: 11px; }
.mds-site-footer a { color: #ffb66e; }

.mds-page { padding: 60px 0; }
.mds-page article { max-width: 850px; }

@media (max-width: 900px) {
  .mds-header-inner { min-height: 78px; }
  .mds-menu-toggle { display: inline-block; }
  .mds-nav { display: none; position: absolute; left: 20px; right: 20px; top: 78px; padding: 18px; background: rgba(17,17,17,.98); border: 1px solid rgba(255,255,255,.15); border-radius: 14px; box-shadow: 0 15px 35px rgba(0,0,0,.35); flex-direction: column; align-items: flex-start; }
  .mds-nav.is-open { display: flex; }
  .mds-hero-grid, .mds-focus-grid, .mds-photo-grid, .mds-contact-grid { grid-template-columns: 1fr; }
  .mds-service-gateway-grid { grid-template-columns: 1fr; }
  .mds-three { grid-template-columns: 1fr; }
  .mds-work-grid, .mds-sample-grid, .mds-photo-sample-grid { grid-template-columns: 1fr; }
  .mds-photo-comparison { grid-template-columns: 1fr; }
  .mds-photo-comparison .mds-ba-panel { border-right: 0; border-bottom: 1px solid rgba(0,0,0,.12); }
  .mds-photo-comparison .mds-ba-panel:last-child { border-bottom: 0; }
  .mds-photo-comparison-portrait img { height: auto; max-height: 620px; object-fit: contain; }
  .mds-about-grid { grid-template-columns: 120px 1fr; }
  .mds-avatar { width: 120px; height: 120px; }
}

@media (max-width: 620px) {
  .mds-wrap { width: min(100% - 28px, var(--mds-max)); }
  .mds-section { padding: 52px 0; }
  .mds-hero { padding: 36px 0 30px; }
  .mds-brand img { width: 260px; max-width: 70vw; }
  .mds-format-grid, .mds-list, .mds-photo-points { grid-template-columns: 1fr; }
  .mds-format-wide { grid-column: auto; }
  .mds-about-grid, .mds-footer-inner { grid-template-columns: 1fr; display: grid; }
  .mds-contact-box { padding: 24px; }
}

@media (max-width: 520px) {
  .mds-hero-line { white-space: normal; }
}


/* Polished restoration comparison layout */
.mds-photo-example-card {
  background: #151515;
}
.mds-photo-example-card .mds-work-copy {
  text-align: center;
  padding: 16px 20px 20px;
}
.mds-photo-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 18px;
  background: #111;
  align-items: center;
  justify-content: center;
}
.mds-photo-comparison .mds-ba-panel,
.mds-photo-comparison .mds-ba-panel:last-child {
  border: 0;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mds-photo-comparison img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: auto;
  box-shadow: 0 5px 18px rgba(0,0,0,.28);
}
.mds-photo-comparison:not(.mds-photo-comparison-portrait) .mds-ba-panel {
  aspect-ratio: 2048 / 1461;
}
.mds-photo-comparison:not(.mds-photo-comparison-portrait) img {
  width: 100%;
  height: 100%;
}
.mds-photo-comparison-portrait {
  grid-template-columns: repeat(2, minmax(0, 390px));
  justify-content: center;
}
.mds-photo-comparison-portrait .mds-ba-panel {
  width: 100%;
  aspect-ratio: 1194 / 1686;
}
.mds-photo-comparison-portrait img {
  width: 100%;
  height: 100%;
}

/* Transfer sample text: keep Film Transfer and Audio Transfer white. */
#transfers .mds-transfer-video-grid .mds-work-copy h3,
#transfers .mds-transfer-video-grid .mds-work-copy p {
  color: #fff;
}

@media (max-width: 760px) {
  .mds-photo-comparison,
  .mds-photo-comparison-portrait {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }
  .mds-photo-comparison-portrait .mds-ba-panel {
    max-width: 440px;
    margin: 0 auto;
  }
}


/* Vertically center restoration photos within the black mats */
.mds-photo-comparison .mds-ba-panel,
.mds-photo-comparison .mds-ba-panel:last-child {
  height: 430px;
  aspect-ratio: auto;
  padding: 18px 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mds-photo-comparison img,
.mds-photo-comparison:not(.mds-photo-comparison-portrait) img,
.mds-photo-comparison-portrait img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  margin: auto;
}
.mds-photo-comparison-portrait .mds-ba-panel {
  height: 560px;
}
@media (max-width: 760px) {
  .mds-photo-comparison .mds-ba-panel,
  .mds-photo-comparison .mds-ba-panel:last-child {
    height: 320px;
  }
  .mds-photo-comparison-portrait .mds-ba-panel {
    height: 560px;
  }
}

/* Keep the second restoration pair at exactly the same displayed size */
.mds-photo-comparison-portrait .mds-ba-panel img {
  width: 371px;
  height: 524px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}
@media (max-width: 760px) {
  .mds-photo-comparison-portrait .mds-ba-panel img {
    width: auto;
    height: 524px;
    max-width: 100%;
    max-height: 100%;
  }
}

/* Force the second restoration pair to the exact same displayed dimensions */
.mds-photo-comparison-portrait {
  grid-template-columns: repeat(2, 371px) !important;
  justify-content: center !important;
  align-items: center !important;
}
.mds-photo-comparison-portrait .mds-ba-panel,
.mds-photo-comparison-portrait .mds-ba-panel:last-child {
  width: 371px !important;
  height: 524px !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 371px !important;
  aspect-ratio: auto !important;
}
.mds-photo-comparison-portrait .mds-ba-panel img {
  display: block !important;
  width: 371px !important;
  height: 524px !important;
  min-width: 371px !important;
  min-height: 524px !important;
  max-width: 371px !important;
  max-height: 524px !important;
  object-fit: fill !important;
  margin: 0 !important;
}
@media (max-width: 760px) {
  .mds-photo-comparison-portrait {
    grid-template-columns: 1fr !important;
  }
  .mds-photo-comparison-portrait .mds-ba-panel,
  .mds-photo-comparison-portrait .mds-ba-panel:last-child {
    width: min(371px, 100%) !important;
    height: auto !important;
    aspect-ratio: 1194 / 1686 !important;
    margin: 0 auto !important;
    flex: none !important;
  }
  .mds-photo-comparison-portrait .mds-ba-panel img {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
  }
}


/* Third restoration example: identical before/after display size */
.mds-photo-comparison-tall {
  grid-template-columns: repeat(2, 371px) !important;
  justify-content: center !important;
}
.mds-photo-comparison-tall .mds-ba-panel,
.mds-photo-comparison-tall .mds-ba-panel:last-child {
  width: 371px !important;
  height: 537px !important;
  padding: 0 !important;
  margin: 0 !important;
  aspect-ratio: auto !important;
}
.mds-photo-comparison-tall .mds-ba-panel img {
  width: 371px !important;
  height: 537px !important;
  min-width: 371px !important;
  min-height: 537px !important;
  max-width: 371px !important;
  max-height: 537px !important;
  object-fit: fill !important;
  margin: 0 !important;
}
@media (max-width: 760px) {
  .mds-photo-comparison-tall {
    grid-template-columns: 1fr !important;
  }
  .mds-photo-comparison-tall .mds-ba-panel,
  .mds-photo-comparison-tall .mds-ba-panel:last-child {
    width: min(371px, 100%) !important;
    height: auto !important;
    aspect-ratio: 1414 / 2048 !important;
    margin: 0 auto !important;
  }
  .mds-photo-comparison-tall .mds-ba-panel img {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
  }
}

/* Unified sample-video sizing: transfer samples match filming samples exactly */
.mds-work-grid,
.mds-sample-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.mds-work-card .mds-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.mds-work-card .mds-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.mds-work-card .mds-video-frame > div {
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
}
@media (max-width: 760px) {
  .mds-work-grid,
  .mds-sample-grid { grid-template-columns: 1fr; }
}

/* All video samples use one identical 16:9 frame and grid sizing. */
.mds-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0 !important;
  overflow: hidden;
  box-sizing: border-box;
}
.mds-video-frame iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  border: 0;
}
.mds-transfer-video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 760px) {
  .mds-transfer-video-grid { grid-template-columns: 1fr; }
}


/* Mobile optimization refinements */
@media (max-width: 760px) {
  .mds-wrap {
    width: calc(100% - 28px);
  }

  .mds-section {
    padding: 44px 0;
  }

  .mds-header-inner {
    min-height: 72px;
  }

  .mds-brand img {
    width: min(250px, 65vw);
  }

  .mds-hero {
    padding: 28px 0 30px;
  }

  .mds-hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .mds-hero-line {
    white-space: normal;
  }

  .mds-hero p,
  .mds-lead {
    font-size: 1rem;
  }

  .mds-actions .mds-button {
    width: 100%;
  }

  .mds-work-card,
  .mds-sample-card {
    border-radius: 14px;
  }

  .mds-work-card .mds-video-frame,
  .mds-video-frame {
    aspect-ratio: 16 / 9;
  }

  .mds-photo-comparison,
  .mds-photo-comparison-tall,
  .mds-photo-comparison-portrait {
    gap: 14px !important;
  }

  .mds-photo-comparison-tall .mds-ba-panel,
  .mds-photo-comparison-portrait .mds-ba-panel {
    max-width: 100% !important;
  }

  .mds-nav {
    gap: 14px;
  }

  .mds-section h2 {
    font-size: 2rem;
  }

  .mds-contact-form input,
  .mds-contact-form textarea,
  .mds-contact-form select {
    width: 100%;
  }
}

@media (max-width:900px){ .mds-nav a{color:#fff;} .mds-menu-toggle{background:#111;color:#fff;border-color:rgba(255,255,255,.2);} }
.mds-video-frame iframe{width:100%;height:100%;display:block;}

/* Mobile fix: first restoration before/after pair scales identically */
@media (max-width: 760px) {
  .mds-photo-example-card:first-child .mds-photo-comparison .mds-ba-panel,
  .mds-photo-example-card:first-child .mds-photo-comparison .mds-ba-panel:last-child {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2048 / 1461 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .mds-photo-example-card:first-child .mds-photo-comparison .mds-ba-panel img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 !important;
  }
}


/* Restoration example dates */
.mds-photo-year {
  margin: 0;
  padding: 0 20px 18px;
  text-align: center;
  color: #d7d7d7;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}


/* 2011 digital restoration pair: keep Before and After exactly the same displayed size */
.mds-photo-comparison-digital .mds-ba-panel,
.mds-photo-comparison-digital .mds-ba-panel:last-child {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2048 / 1154 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.mds-photo-comparison-digital .mds-ba-panel img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 !important;
}
@media (max-width: 760px) {
  .mds-photo-comparison-digital {
    grid-template-columns: 1fr !important;
  }
  .mds-photo-comparison-digital .mds-ba-panel,
  .mds-photo-comparison-digital .mds-ba-panel:last-child {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2048 / 1154 !important;
  }
}
