.aegon-case .line-copy {
  width: clamp(370px, 70svh, 760px);
}

.aegon-case .line-copy:not(.line-light) { background: #262626; }
.aegon-case .line-copy h2 {
  margin-bottom: clamp(22px, 3.4vh, 38px);
  font-size: clamp(1.6rem, 2.6vw, 2.8rem);
}

.aegon-case .line-image { width: min(94vw, calc(100svh * var(--image-ratio))); }
.aegon-case .aegon-cover { width: min(57vw, 110svh); }
.aegon-cover img { object-fit: cover; }
.aegon-case .aegon-intro { width: clamp(370px, 43vw, 680px); }
.aegon-intro h1 { margin-bottom: 20px; font-size: clamp(2.2rem, 3.5vw, 3.5rem); }
.aegon-intro h1 + p { font-weight: 700; }

.aegon-logo {
  display: block;
  width: min(168px, 70%);
  height: auto;
  margin: 0 auto clamp(20px, 3vh, 34px);
}

.aegon-video-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 21px; }
.aegon-video-actions .line-watch { margin: 0; }

.aegon-gallery {
  display: grid;
  width: min(94vw, 144svh);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  align-content: center;
  gap: 8px;
  padding: 74px clamp(16px, 2vw, 35px) 76px;
  background: #ececee;
}

.aegon-tile {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  margin: 0;
  background: #fff;
}

.aegon-case .aegon-tile img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.aegon-case .aegon-tile .line-expand {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 34px;
  height: 34px;
  margin: 0;
}

.aegon-tile .line-expand svg { width: 17px; height: 17px; }
.aegon-portraits { grid-auto-rows: auto; background: #1a1a1a; }
.aegon-portraits .aegon-tile { background: transparent; }
.aegon-case .aegon-portraits img { aspect-ratio: 2500 / 1667; }

.aegon-comparison {
  display: grid;
  width: min(94vw, 125svh);
  padding: 74px clamp(16px, 2vw, 35px) 76px;
  place-items: center;
  background: #ececee;
}

.aegon-reveal {
  --split: 50%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, calc(max(150px, 100svh - 200px) * 2500 / 1667));
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.aegon-reveal figure { display: contents; }
.aegon-case .aegon-reveal img {
  display: block;
  grid-area: 1 / 1 / 2 / -1;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.aegon-reveal-before img { z-index: 1; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.aegon-reveal figcaption {
  display: flex;
  grid-row: 2;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  color: #242428;
  font-size: .85rem;
}
.aegon-reveal-before figcaption { grid-column: 1; flex-direction: row-reverse; justify-content: flex-end; }
.aegon-reveal-after figcaption { grid-column: 2; justify-content: flex-end; }
.aegon-case .aegon-reveal .line-expand {
  position: static;
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  margin: 0;
}
.aegon-reveal .line-expand svg { width: 17px; height: 17px; }
.aegon-reveal :focus-visible { outline-color: #242428; }

.aegon-reveal-control {
  position: relative;
  z-index: 2;
  grid-area: 1 / 1 / 2 / -1;
  pointer-events: none;
}

.aegon-reveal-range {
  position: absolute;
  inset: 50% 0 auto;
  width: 100%;
  height: 56px;
  margin: 0;
  appearance: none;
  background: transparent;
  opacity: 0;
  cursor: ew-resize;
  pointer-events: auto;
  touch-action: none;
  transform: translateY(-50%);
}

.aegon-reveal-range::-webkit-slider-runnable-track { height: 100%; }
.aegon-reveal-range::-moz-range-track { height: 100%; }
.aegon-reveal-range::-webkit-slider-thumb { width: 1px; height: 100%; appearance: none; }
.aegon-reveal-range::-moz-range-thumb { width: 1px; height: 100%; border: 0; }

.aegon-reveal-divider { position: absolute; inset: 0; }
.aegon-reveal-divider::before {
  position: absolute;
  inset: 0 auto 0 var(--split);
  width: 2px;
  background: var(--line-pink);
  box-shadow: 0 0 5px #0008;
  transform: translateX(-50%);
  content: "";
}

.aegon-reveal-handle {
  position: absolute;
  top: 50%;
  left: clamp(22px, var(--split), calc(100% - 22px));
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line-pink);
  border-radius: 50%;
  color: #fff;
  background: #0c0b10dc;
  box-shadow: 0 2px 9px #0008;
  transform: translate(-50%, -50%);
}
.aegon-reveal-range:focus-visible + .aegon-reveal-divider .aegon-reveal-handle {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.aegon-case .line-copy.aegon-quote {
  width: min(100vw, 140svh);
  background:
    linear-gradient(rgb(11 14 20 / 78%), rgb(11 14 20 / 82%)),
    #262626 url('aegon-assets/Aegon_Asset_Management_image_A.jpg') center / cover;
}

.aegon-quote blockquote { margin: 0; }
.aegon-quote blockquote p { font-size: clamp(1.1rem, 1.8vw, 1.65rem); }

@media (max-width: 680px) {
  .aegon-case .line-copy, .aegon-case .line-image, .aegon-gallery, .aegon-comparison { width: 100vw; }
  .aegon-case .line-image img { width: 100%; }
  .aegon-gallery {
    grid-auto-rows: auto;
    gap: 5px;
    padding-inline: 8px;
  }
  .aegon-tile img { aspect-ratio: 3 / 2; }
  .aegon-case .aegon-tile .line-expand { width: 30px; height: 30px; right: 4px; bottom: 4px; }
  .aegon-portraits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aegon-comparison { padding-inline: 8px; }
}
