:root {
  --navy: #071833;
  --navy-2: #0a2148;
  --blue: #1b5cff;
  --blue-dark: #1548c2;
  --cream: #f6f0e6;
  --white: #ffffff;
  --ink: #142033;
  --muted: #5c6676;
  --line: #e2e8f0;
  --soft: #f7f9fc;
  --shadow: 0 18px 50px rgba(7, 24, 51, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  max-width: 820px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--white);
  color: var(--navy);
  padding: 10px 12px;
  border-radius: 8px;
  z-index: 999;
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.topbar-inner {
  min-height: 40px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.topbar a {
  text-decoration: none;
}

.topbar a:hover {
  color: var(--cream);
  text-decoration: underline;
}

.topbar-spacer {
  flex: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.nav-shell {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 160px;
}

.brand-logo {
  max-height: 62px;
  width: auto;
}

.brand-fallback {
  display: none;
  align-items: center;
  color: var(--navy);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  border-radius: 999px;
}

.nav-link:hover,
.nav-link.active {
  background: var(--soft);
  color: var(--blue);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--navy);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 4px 0;
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
.nav-link:focus-visible,
.topbar a:focus-visible,
.site-footer a:focus-visible,
.mobile-call:focus-visible {
  outline: 3px solid rgba(27, 92, 255, 0.32);
  outline-offset: 3px;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(27, 92, 255, 0.24);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
  box-shadow: 0 8px 18px rgba(7, 24, 51, 0.08);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
}

.btn-ghost-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-small {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 0.93rem;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(27, 92, 255, 0.45), transparent 32rem),
    linear-gradient(135deg, var(--navy), #071226 64%, #050b18);
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% 40%;
  height: 360px;
  background: rgba(246, 240, 230, 0.08);
  transform: rotate(-7deg);
  border-radius: 80px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.65fr);
  gap: 42px;
  align-items: center;
  padding: 88px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 900;
}

.hero .eyebrow,
.section-dark .eyebrow,
.cta-strip .eyebrow {
  color: var(--cream);
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.04em;
}

h1 {
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5.5rem);
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
}

h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

p {
  margin: 0 0 16px;
}

.hero-lead {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.83);
  max-width: 720px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 700px;
}

.trust-row div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
}

.trust-row strong,
.trust-row span {
  display: block;
}

.trust-row strong {
  font-size: 1.1rem;
}

.trust-row span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.hero-card,
.area-card,
.contact-card,
.quote-form,
.thank-card,
.detail-card,
.service-card,
.step,
.project-card {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  color: var(--ink);
  padding: 30px;
}

.hero-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-logo {
  max-height: 68px;
  width: auto;
}

.hero-card-label {
  margin: 0;
  font-weight: 900;
  color: var(--navy);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin: 10px 0;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 900;
}

.mini-note {
  margin: 20px 0 0;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--soft);
  color: var(--muted);
}

.section {
  padding: 86px 0;
}

.soft-bg {
  background: var(--soft);
}

.section-heading {
  max-width: 820px;
  text-align: center;
  margin-bottom: 38px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.card-grid {
  display: grid;
  gap: 22px;
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  padding: 26px;
  box-shadow: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card p {
  color: var(--muted);
}

.icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--soft);
  border-radius: 16px;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.centered {
  text-align: center;
  margin-top: 34px;
}

.section-dark {
  background:
    radial-gradient(circle at 20% 20%, rgba(27, 92, 255, 0.32), transparent 22rem),
    var(--navy);
  color: var(--white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.76);
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 42px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-list div {
  padding: 22px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step {
  padding: 26px;
  box-shadow: none;
}

.step span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  font-weight: 900;
  margin-bottom: 18px;
}

.step p {
  color: var(--muted);
}

.area-card {
  padding: 28px;
}

.page-hero {
  background:
    radial-gradient(circle at top right, rgba(27, 92, 255, 0.28), transparent 26rem),
    linear-gradient(135deg, var(--navy), #08142b);
  color: var(--white);
  padding: 78px 0;
  text-align: center;
}

.page-hero p:not(.eyebrow) {
  margin: 22px auto 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

.breadcrumb {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 750;
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--white);
  text-decoration: underline;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.detail-card {
  padding: 30px;
  box-shadow: none;
}

.detail-card p,
.detail-card li {
  color: var(--muted);
}

.detail-card ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.detail-card li {
  margin: 8px 0;
}

.detail-card.highlight {
  background: var(--navy);
  color: var(--white);
}

.detail-card.highlight p {
  color: rgba(255, 255, 255, 0.78);
}

.service-card-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.service-card-link:hover {
  text-decoration: underline;
}

.service-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--soft);
  color: var(--muted);
  font-weight: 700;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.faq-item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: none;
}

.faq-item h3 {
  margin-top: 0;
}

.faq-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  overflow: hidden;
  box-shadow: none;
}

.project-image-wrap {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(7, 24, 51, 0.88), rgba(27, 92, 255, 0.42)),
    var(--navy);
  position: relative;
}

.project-photo-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(7, 24, 51, 0.86);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
}

.project-image-wrap.missing-image::after {
  content: "Add project photo";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.project-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-lightbox-trigger {
  cursor: zoom-in;
}

.project-lightbox-trigger:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
}

.project-content {
  padding: 24px;
}

.project-content p:not(.eyebrow) {
  color: var(--muted);
}

.project-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.project-thumbnails img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.lightbox-open {
  overflow: hidden;
}

.project-lightbox[hidden] {
  display: none;
}

.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.project-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 24, 51, 0.86);
}

.project-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: min(100%, 1040px);
  gap: 16px;
}

.project-lightbox-figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.project-lightbox-figure img {
  display: block;
  width: 100%;
  max-height: min(76vh, 760px);
  object-fit: contain;
  background: #081324;
}

.project-lightbox-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.project-lightbox-close,
.project-lightbox-nav {
  border: 0;
  cursor: pointer;
  background: var(--white);
  color: var(--navy);
  font-weight: 950;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.project-lightbox-close {
  position: absolute;
  top: -52px;
  right: 0;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
}

.project-lightbox-nav {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 1.35rem;
}

.project-lightbox-close:focus-visible,
.project-lightbox-nav:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.project-review-note {
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 850;
}

.portfolio-note {
  margin-top: 28px;
  padding: 32px;
  background: var(--soft);
  border-radius: var(--radius);
  text-align: center;
}

.portfolio-note p {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 28px;
  align-items: start;
}

.contact-card,
.quote-form {
  padding: 30px;
}

.contact-card p,
.form-note {
  color: var(--muted);
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.contact-methods a {
  display: grid;
  gap: 2px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 900;
}

.contact-methods span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.small-panel {
  background: var(--soft);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-weight: 850;
  color: var(--navy);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(27, 92, 255, 0.16);
  border-color: var(--blue);
}

.form-button {
  width: 100%;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  font-weight: 800;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status.success {
  color: #0f7a3d;
}

.form-status.error {
  color: #b42318;
}

.form-note {
  font-size: 0.92rem;
  margin-top: 16px;
}

.thank-you {
  min-height: 58vh;
  display: grid;
  place-items: center;
  padding: 84px 0;
  background: var(--soft);
}

.thank-card {
  padding: 42px;
  text-align: center;
}

.thank-card p:not(.eyebrow) {
  color: var(--muted);
}

.centered-actions {
  justify-content: center;
}

.cta-strip {
  background:
    radial-gradient(circle at top right, rgba(246, 240, 230, 0.18), transparent 24rem),
    var(--navy);
  color: var(--white);
  padding: 56px 0;
}

.cta-strip-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.cta-strip p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-footer {
  background: #050b18;
  color: rgba(255, 255, 255, 0.78);
  padding: 54px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 0.7fr;
  gap: 28px;
}

.footer-logo {
  max-height: 74px;
  width: auto;
  margin-bottom: 16px;
}

.footer-tagline {
  max-width: 340px;
}

.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.footer-bottom p {
  margin: 0;
}

.mobile-call {
  display: none;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-link,
  .site-nav .btn {
    justify-content: center;
    text-align: center;
  }

  .hero-grid,
  .split,
  .contact-grid,
  .cta-strip-inner {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 64px 0;
  }

  .card-grid.three,
  .portfolio-grid,
  .steps,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    justify-content: center;
    text-align: center;
    gap: 8px 12px;
    padding: 8px 0;
  }

  .topbar-divider,
  .topbar-spacer {
    display: none;
  }

  .brand-logo {
    max-height: 52px;
  }

  .hero-grid {
    padding: 48px 0;
  }

  .trust-row,
  .form-row.two,
  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .page-hero {
    padding: 58px 0;
  }

  .contact-card,
  .quote-form,
  .thank-card,
  .hero-card {
    padding: 24px;
  }

  .project-lightbox {
    padding: 14px;
  }

  .project-lightbox-dialog {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .project-lightbox-close {
    position: static;
    justify-self: end;
    order: -2;
  }

  .project-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
  }

  .project-lightbox-prev {
    left: 8px;
  }

  .project-lightbox-next {
    right: 8px;
  }

  .project-lightbox-figure img {
    max-height: 70vh;
  }

  .project-lightbox-figure figcaption {
    flex-direction: column;
    gap: 4px;
  }

  .mobile-call {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 60;
    display: flex;
    justify-content: center;
    padding: 13px 16px;
    border-radius: 999px;
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 18px 40px rgba(7, 24, 51, 0.28);
  }

  body {
    padding-bottom: 74px;
  }
}

/* Desktop layout/card width fixes */
.hero-card,
.area-card,
.contact-card,
.quote-form,
.detail-card,
.service-card,
.project-card {
  width: 100%;
}

.contact-grid {
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.35fr);
}

/* Instagram / third-party feed widget fix
   This keeps the feed from sitting as a tiny left-aligned column inside a huge desktop box. */
.elfsight-app,
[class*="elfsight-app"],
.eapps-widget,
[class*="eapps-widget"],
.eapps-instagram-feed,
[class*="eapps-instagram"] {
  display: block !important;
  width: 100% !important;
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Center common widget wrappers without forcing every widget child to stretch weirdly */
.instagram-feed,
.instagram-widget,
.instagram-widget-wrap,
.social-feed,
.social-feed-wrap,
.widget-container {
  width: min(100%, 980px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* If the Instagram widget exposes its grid, let it fill desktop space better. */
.eapps-instagram-feed-posts-grid,
[class*="eapps-instagram-feed-posts-grid"],
.eapps-instagram-feed-posts,
[class*="eapps-instagram-feed-posts"] {
  width: 100% !important;
  max-width: 100% !important;
}

/* Keep iframes responsive, but don't make every widget wrapper look broken. */
iframe {
  max-width: 100% !important;
}

@media (max-width: 920px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .elfsight-app,
  [class*="elfsight-app"],
  .eapps-widget,
  [class*="eapps-widget"],
  .eapps-instagram-feed,
  [class*="eapps-instagram"],
  .instagram-feed,
  .instagram-widget,
  .instagram-widget-wrap,
  .social-feed,
  .social-feed-wrap,
  .widget-container {
    max-width: 100% !important;
  }
}
