:root {
  --ba-ivory: #f4efe6;
  --ba-paper: #fbf8f1;
  --ba-ink: #2d2b27;
  --ba-muted: rgba(45, 43, 39, 0.62);
  --ba-line: rgba(74, 67, 57, 0.18);
  --ba-gold: #9a7a52;
}

.before-after-page {
  background: var(--ba-ivory);
  color: var(--ba-ink);
}

.ba-main {
  background:
    linear-gradient(180deg, rgba(244, 239, 230, 0.94), rgba(248, 244, 236, 0.98) 48%, rgba(244, 239, 230, 1));
}

.ba-hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(520px, 1.08fr);
  gap: clamp(60px, 8vw, 128px);
  align-items: center;
  width: min(1480px, calc(100% - 112px));
  min-height: 820px;
  margin: 0 auto;
  padding: 160px 0 108px;
}

.ba-hero h1 {
  margin: 20px 0 28px;
  color: #2c2923;
  font-family: "Sorts Mill Goudy", Georgia, serif;
  font-size: clamp(4.4rem, 6vw, 7.7rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
}

.ba-hero-ko {
  margin: 0 0 22px;
  color: #3b352e;
  font-family: "KoPubWorldBatang", "Noto Serif KR", serif;
  font-size: clamp(1.55rem, 2vw, 2.3rem);
  line-height: 1.48;
}

.ba-hero-text {
  width: min(520px, 100%);
  margin: 0;
  color: var(--ba-muted);
  font-size: 1.08rem;
  line-height: 1.86;
}

.ba-hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 42px;
}

.ba-text-button,
.ba-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(55, 49, 41, 0.38);
  border-radius: 999px;
  background: transparent;
  color: #332f29;
  font: inherit;
  font-size: 0.94rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.ba-text-button:hover,
.ba-text-link:hover {
  border-color: rgba(50, 45, 38, 0.72);
  background: rgba(255, 255, 255, 0.24);
}

.ba-hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  aspect-ratio: 0.98;
  margin: 0;
  background: #ded5c8;
}

.ba-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.ba-control,
.ba-filter-wrap,
.ba-grid,
.ba-notice {
  width: min(1360px, calc(100% - 112px));
  margin: 0 auto;
}

.ba-control {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding: 52px 0 28px;
  border-top: 1px solid var(--ba-line);
}

.ba-control h2,
.ba-notice h2 {
  margin: 12px 0 0;
  color: #2d2a25;
  font-family: "KoPubWorldBatang", "Noto Serif KR", serif;
  font-size: clamp(2.35rem, 3.1vw, 4.2rem);
  font-weight: 400;
  line-height: 1.18;
}

.ba-session {
  color: var(--ba-muted);
  font-size: 0.95rem;
}

.ba-session button {
  margin-left: 12px;
  border: 0;
  background: none;
  color: #7d5f3a;
  font: inherit;
  cursor: pointer;
}

.ba-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 42px;
  scrollbar-width: none;
}

.ba-filters::-webkit-scrollbar {
  display: none;
}

.ba-filter {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--ba-line);
  border-radius: 999px;
  background: transparent;
  color: rgba(43, 39, 33, 0.72);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.ba-filter.is-active {
  border-color: rgba(49, 43, 35, 0.62);
  color: #2d2922;
}

.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 78px 48px;
  padding: 10px 0 118px;
}

.ba-card {
  border-top: 1px solid var(--ba-line);
  padding-top: 20px;
}

.ba-card-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 18px;
}

.ba-card h3 {
  margin: 0;
  color: #302c25;
  font-family: "KoPubWorldBatang", "Noto Serif KR", serif;
  font-size: clamp(1.7rem, 2vw, 2.45rem);
  font-weight: 400;
  line-height: 1.26;
}

.ba-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--ba-line);
  border-radius: 999px;
  color: var(--ba-gold);
  font-size: 0.78rem;
  white-space: nowrap;
}

.ba-photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ba-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.82;
  background: #ded7cc;
}

.ba-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-photo-label {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  color: #f9f3e8;
  font-family: "Sorts Mill Goudy", Georgia, serif;
  font-size: 0.94rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.38);
}

.ba-after-locked {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(98, 84, 69, 0.28), rgba(242, 236, 226, 0.62)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18) 4px, rgba(80, 70, 60, 0.08) 4px, rgba(80, 70, 60, 0.08) 12px);
  color: rgba(51, 45, 38, 0.78);
  text-align: center;
  backdrop-filter: blur(8px);
}

.ba-after-locked strong {
  display: block;
  margin-bottom: 10px;
  font-family: "KoPubWorldBatang", "Noto Serif KR", serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.ba-after-locked button {
  margin-top: 18px;
}

.ba-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  color: var(--ba-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.ba-card-summary,
.ba-card-disclaimer {
  margin: 16px 0 0;
  color: rgba(45, 43, 39, 0.72);
  font-size: 1rem;
  line-height: 1.78;
}

.ba-card-disclaimer {
  color: rgba(45, 43, 39, 0.54);
  font-size: 0.86rem;
}

.ba-empty {
  grid-column: 1 / -1;
  padding: 80px 0;
  border-top: 1px solid var(--ba-line);
  color: var(--ba-muted);
  text-align: center;
}

.ba-notice {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: 80px;
  padding: 82px 0 128px;
  border-top: 1px solid var(--ba-line);
}

.ba-notice p:last-child {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--ba-muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

.ba-login-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  background: transparent;
}

.ba-login-dialog::backdrop {
  background: rgba(31, 28, 24, 0.46);
}

.ba-login-panel {
  position: relative;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 44px 48px 42px;
  background: var(--ba-paper);
  color: var(--ba-ink);
  box-shadow: 0 28px 80px rgba(31, 28, 24, 0.24);
  scrollbar-width: none;
}

.ba-login-panel::-webkit-scrollbar {
  display: none;
}

.ba-login-panel h2 {
  margin: 12px 0 16px;
  font-family: "KoPubWorldBatang", "Noto Serif KR", serif;
  font-size: 2.1rem;
  font-weight: 400;
}

.ba-login-panel p {
  color: var(--ba-muted);
  line-height: 1.75;
}

.ba-dialog-close {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ba-dialog-close::before,
.ba-dialog-close::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 18px;
  height: 1px;
  background: #4d463d;
}

.ba-dialog-close::before {
  transform: rotate(45deg);
}

.ba-dialog-close::after {
  transform: rotate(-45deg);
}

.ba-provider-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  border-top: 1px solid var(--ba-line);
  padding-top: 14px;
}

.ba-provider-row {
  --provider-accent: #8b6b45;
  --provider-soft: rgba(139, 107, 69, 0.13);
  --provider-line: rgba(139, 107, 69, 0.34);
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--provider-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  color: var(--ba-ink);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.ba-provider-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--provider-accent);
  opacity: 1;
}

.ba-provider-naver {
  --provider-accent: #03c75a;
  --provider-soft: rgba(3, 199, 90, 0.16);
  --provider-line: rgba(3, 199, 90, 0.52);
}

.ba-provider-google {
  --provider-accent: #1a73e8;
  --provider-soft: rgba(26, 115, 232, 0.15);
  --provider-line: rgba(26, 115, 232, 0.48);
}

.ba-provider-kakao {
  --provider-accent: #fee500;
  --provider-soft: rgba(254, 229, 0, 0.3);
  --provider-line: rgba(60, 30, 30, 0.3);
}

.ba-provider-row:not([disabled]):hover {
  border-color: var(--provider-accent);
  background: var(--provider-soft);
  transform: translateY(-1px);
}

.ba-provider-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--provider-line);
  border-radius: 50%;
  background: var(--provider-soft);
  color: var(--provider-accent);
  font-family: "GWS Suit", "SUIT", sans-serif;
  font-size: 1rem;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
}

.ba-provider-kakao .ba-provider-mark {
  border-color: rgba(60, 30, 30, 0.22);
  border-radius: 50%;
  background: #fee500;
  color: #3c1e1e;
  font-size: 1rem;
  font-weight: 780;
}

.ba-provider-naver .ba-provider-mark {
  border-color: #03c75a;
  background: #03c75a;
  color: #fff;
}

.ba-provider-google .ba-provider-mark {
  border-color: #1a73e8;
  background: #1a73e8;
  color: #fff;
}

.ba-provider-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ba-provider-copy strong {
  color: #292620;
  font-family: "GWS Suit", "SUIT", "Noto Sans KR", sans-serif;
  font-size: 0.98rem;
  font-weight: 640;
  line-height: 1.25;
  letter-spacing: 0;
}

.ba-provider-copy em {
  color: rgba(45, 43, 39, 0.52);
  font-style: normal;
  font-size: 0.78rem;
  line-height: 1.35;
}

.ba-provider-row small {
  color: rgba(45, 43, 39, 0.5);
  font-size: 0.78rem;
  white-space: nowrap;
}

.ba-provider-row:not([disabled]):hover small,
.ba-provider-row:not([disabled]):hover .ba-provider-copy em {
  color: rgba(45, 43, 39, 0.68);
}

.ba-provider-row[disabled] {
  cursor: not-allowed;
  opacity: 1;
}

.ba-provider-row[disabled] small {
  color: rgba(45, 43, 39, 0.46);
}

.ba-login-foot {
  margin-top: 22px;
  font-size: 0.85rem;
}

.ba-consent-card {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--ba-line);
}

.ba-consent-card[hidden] {
  display: none;
}

.ba-consent-card strong {
  color: var(--ba-ink);
  font-family: "KoPubWorldBatang", "Noto Serif KR", serif;
  font-size: 1.14rem;
  font-weight: 400;
}

.ba-consent-card p {
  margin: 0;
  font-size: 0.92rem;
}

.ba-consent-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 11px;
  align-items: start;
  color: rgba(45, 43, 39, 0.72);
  font-size: 0.9rem;
  line-height: 1.58;
}

.ba-consent-check input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: #7d5f3a;
}

.ba-consent-submit {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(55, 49, 41, 0.34);
  border-radius: 999px;
  background: transparent;
  color: #332f29;
  font: inherit;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.ba-consent-submit:hover {
  border-color: rgba(55, 49, 41, 0.58);
  background: rgba(255, 255, 255, 0.24);
}

.ba-consent-status {
  min-height: 1.5em;
  margin: 0;
  color: #7d5f3a;
  font-size: 0.84rem;
}

@media (max-width: 1024px) {
  .ba-hero,
  .ba-control,
  .ba-filter-wrap,
  .ba-grid,
  .ba-notice {
    width: min(100% - 36px, 720px);
  }

  .ba-hero {
    display: block;
    min-height: auto;
    padding: 118px 0 68px;
  }

  .ba-hero h1 {
    margin-top: 18px;
    font-size: clamp(3.2rem, 16vw, 5.2rem);
    line-height: 1;
  }

  .ba-hero-ko {
    font-size: 1.42rem;
    line-height: 1.58;
  }

  .ba-hero-text {
    font-size: 1rem;
    line-height: 1.82;
  }

  .ba-hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    width: min(320px, 100%);
    margin-top: 30px;
  }

  .ba-hero-visual {
    min-height: auto;
    aspect-ratio: 0.86;
    margin-top: 48px;
  }

  .ba-control {
    display: block;
    padding: 44px 0 22px;
  }

  .ba-session {
    margin-top: 18px;
    line-height: 1.6;
  }

  .ba-filters {
    overflow: auto;
    flex-wrap: nowrap;
    padding-bottom: 34px;
  }

  .ba-filter {
    flex: 0 0 auto;
  }

  .ba-grid {
    display: block;
    padding-bottom: 78px;
  }

  .ba-card + .ba-card {
    margin-top: 58px;
  }

  .ba-card-head {
    display: block;
  }

  .ba-chip {
    margin-top: 12px;
  }

  .ba-photo-pair {
    gap: 8px;
  }

  .ba-photo-label {
    left: 10px;
    top: 10px;
    font-size: 0.8rem;
  }

  .ba-after-locked {
    padding: 16px 10px;
  }

  .ba-after-locked strong {
    font-size: 1.05rem;
  }

  .ba-after-locked p {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .ba-meta {
    grid-template-columns: 1fr;
  }

  .ba-notice {
    display: block;
    padding: 62px 0 92px;
  }

  .ba-login-panel {
    padding: 34px 24px 28px;
  }

  .ba-provider-list {
    gap: 9px;
    margin-top: 16px;
  }

  .ba-provider-row {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 74px;
    padding: 12px 14px 12px 12px;
  }

  .ba-provider-mark {
    width: 34px;
    height: 34px;
    font-size: 0.94rem;
  }

  .ba-provider-row small {
    grid-column: 2;
    justify-self: start;
    margin-top: -2px;
    font-size: 0.74rem;
  }
}

.ba-gallery-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  width: min(1360px, calc(100% - 112px));
  margin: 0 auto;
  padding: 150px 0 28px;
}

.ba-gallery-head h1 {
  margin: 14px 0 18px;
  color: #2d2a25;
  font-family: "KoPubWorldBatang", "Noto Serif KR", serif;
  font-size: clamp(3.4rem, 5.2vw, 6.2rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}

.ba-gallery-head p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--ba-muted);
  font-size: 1.04rem;
  line-height: 1.82;
}

.ba-gallery-head + .ba-filter-wrap .ba-filters {
  padding-top: 8px;
  padding-bottom: 24px;
}

.ba-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 18px;
  padding: 0 0 96px;
}

.ba-thumb-card {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--ba-line);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.ba-thumb-media {
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 0.86;
  margin-top: 12px;
  background: #d9d0c4;
}

.ba-thumb-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.ba-thumb-copy {
  display: grid;
  gap: 8px;
  padding-top: 16px;
}

.ba-thumb-copy .ba-chip {
  width: max-content;
  min-height: 26px;
  padding: 0 10px;
}

.ba-thumb-copy strong {
  display: block;
  color: #2d2a25;
  font-family: "KoPubWorldBatang", "Noto Serif KR", serif;
  font-size: 1.24rem;
  font-weight: 400;
  line-height: 1.34;
}

.ba-thumb-copy small {
  color: rgba(45, 43, 39, 0.58);
  font-size: 0.86rem;
  line-height: 1.55;
}

.ba-thumb-status {
  color: #7d5f3a;
  font-size: 0.84rem;
}

.ba-thumb-card:hover .ba-thumb-media img {
  transform: scale(1.035);
}

.ba-thumb-card:hover .ba-thumb-status {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ba-case-dialog {
  width: min(1180px, calc(100% - 36px));
  max-height: calc(100vh - 36px);
  padding: 0;
  border: 0;
  background: transparent;
}

.ba-case-dialog::backdrop {
  background: rgba(31, 28, 24, 0.62);
}

.ba-case-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 34px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 34px;
  background: var(--ba-paper);
  color: var(--ba-ink);
}

.ba-case-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ba-case-media figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  min-height: 520px;
  background: #ddd4c8;
}

.ba-case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-case-media span {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 1;
  color: #f7efe3;
  font-family: "Sorts Mill Goudy", Georgia, serif;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.36);
}

.ba-case-copy {
  align-self: center;
  padding-right: 20px;
}

.ba-case-copy h2 {
  margin: 14px 0 24px;
  color: #2d2a25;
  font-family: "KoPubWorldBatang", "Noto Serif KR", serif;
  font-size: clamp(2.1rem, 3vw, 3.6rem);
  font-weight: 400;
  line-height: 1.22;
}

.ba-case-copy dl {
  display: grid;
  gap: 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--ba-line);
}

.ba-case-copy dl div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ba-line);
}

.ba-case-copy dt {
  color: #8b6b45;
  font-size: 0.86rem;
}

.ba-case-copy dd {
  margin: 0;
  color: rgba(45, 43, 39, 0.78);
  line-height: 1.6;
}

.ba-case-copy p {
  color: var(--ba-muted);
  line-height: 1.82;
}

.ba-case-disclaimer {
  font-size: 0.86rem;
}

@media (max-width: 1024px) {
  .ba-gallery-head,
  .ba-filter-wrap,
  .ba-grid,
  .ba-notice {
    width: min(100% - 36px, 720px);
  }

  .ba-gallery-head {
    display: block;
    padding: 100px 0 20px;
    text-align: center;
  }

  .ba-gallery-head h1 {
    margin-top: 12px;
    font-size: clamp(2.6rem, 12vw, 4.2rem);
  }

  .ba-gallery-head p:not(.eyebrow) {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .ba-gallery-head .ba-session {
    margin: 18px auto 0;
  }

  .ba-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 10px;
    padding-bottom: 68px;
  }

  .ba-thumb-media {
    aspect-ratio: 0.82;
  }

  .ba-thumb-copy {
    gap: 7px;
    padding-top: 12px;
  }

  .ba-thumb-copy strong {
    font-size: 1.02rem;
  }

  .ba-thumb-copy small {
    font-size: 0.76rem;
  }

  .ba-thumb-status {
    font-size: 0.76rem;
  }

  .ba-case-panel {
    display: block;
    padding: 24px 18px;
  }

  .ba-case-media {
    gap: 6px;
  }

  .ba-case-media figure {
    min-height: auto;
    aspect-ratio: 0.78;
  }

  .ba-notice {
    text-align: center;
  }

  .ba-notice p {
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  .ba-case-copy {
    padding: 24px 0 0;
  }

  .ba-case-copy dl div {
    grid-template-columns: 64px 1fr;
  }
}

.ba-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 46px 26px;
}

.ba-comparison-card {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--ba-line);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.ba-comparison-head {
  display: grid;
  gap: 7px;
  padding: 16px 0 14px;
}

.ba-comparison-head strong {
  color: #2d2a25;
  font-family: "KoPubWorldBatang", "Noto Serif KR", serif;
  font-size: clamp(1.36rem, 1.6vw, 1.92rem);
  font-weight: 400;
  line-height: 1.32;
}

.ba-comparison-head small {
  color: rgba(45, 43, 39, 0.58);
  font-size: 0.9rem;
  line-height: 1.55;
}

.ba-comparison-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ba-compare-tile {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.58);
}

.ba-compare-image {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 0.96;
  background: #d9d0c4;
}

.ba-compare-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease;
}

.ba-comparison-card:hover .ba-compare-image img {
  transform: scale(1.025);
}

.ba-compare-label {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 8px 10px;
  color: rgba(45, 43, 39, 0.58);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.ba-compare-after {
  border-color: rgba(23, 73, 70, 0.34);
  background: rgba(23, 73, 70, 0.88);
}

.ba-compare-after .ba-compare-label {
  color: rgba(255, 255, 255, 0.34);
}

.ba-compare-after.is-unlocked .ba-compare-label {
  color: rgba(255, 255, 255, 0.82);
}

.ba-compare-after.is-locked .ba-compare-image {
  background: #111916;
}

.ba-locked-shadow {
  filter: grayscale(0.25) blur(2px);
  opacity: 0.3;
  transform: scale(1.08);
}

.ba-comparison-card:hover .ba-locked-shadow {
  transform: scale(1.08);
}

.ba-compare-after.is-locked .ba-compare-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 12, 12, 0.54), rgba(10, 17, 16, 0.82)),
    rgba(12, 23, 23, 0.6);
}

.ba-locked-message {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 18px 10px;
  color: #f5f0e7;
  font-size: clamp(0.92rem, 1.35vw, 1.22rem);
  font-weight: 700;
  line-height: 1.38;
  text-align: center;
  word-break: keep-all;
  white-space: normal;
  overflow-wrap: anywhere;
}

.ba-locked-message b,
.ba-locked-message em {
  display: block;
  max-width: 100%;
  font-style: normal;
  line-height: 1.12;
  white-space: normal;
}

.ba-locked-message b {
  color: #55b7bb;
}

@media (max-width: 1024px) {
  .ba-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ba-comparison-head {
    padding: 13px 0 12px;
  }

  .ba-comparison-head strong {
    font-size: 1.12rem;
  }

  .ba-comparison-head small {
    font-size: 0.78rem;
  }

  .ba-comparison-photos {
    gap: 7px;
  }

  .ba-compare-image {
    aspect-ratio: 0.9;
  }

  .ba-compare-label {
    min-height: 38px;
    padding: 7px 6px;
    font-size: 0.68rem;
    line-height: 1.28;
  }

  .ba-locked-message {
    gap: 5px;
    padding: 12px 8px;
    font-size: 0.78rem;
  }
}
