/* Custom Instagram-inspired gallery: zero external widget dependencies. */
.visual-layout-2026 .instagram-native-card.rae-social-card {
  min-height: 0;
  height: 552px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  border: 1px solid #385361;
  background: linear-gradient(150deg, #152d3b 0%, #0b1e2c 100%);
  box-shadow: 0 18px 48px rgba(0,0,0,.12);
}
.rae-social-card .ig-native-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 27px;
  padding: 0 2px;
}
.rae-social-card .ig-native-heading,
.rae-social-card .ig-native-topbar > a {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .105em;
  line-height: 1.4;
  white-space: nowrap;
}
.rae-social-card .ig-native-heading { display: inline-flex; align-items: center; gap: 10px; color: #f0f2eb; }
.rae-social-card .ig-native-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #dfcf95; box-shadow: 0 0 0 4px rgba(224,208,149,.13); }
.rae-social-card .ig-native-topbar > a { color: #e8daa2; }
.rae-social-card .ig-native-topbar > a:hover { color: #fff; }
.rae-social-card .ig-native-topbar > a span { margin-left: 5px; font-size: 14px; }
.rae-social-profile {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 3px 1px 4px;
}
.rae-social-avatar {
  width: 49px;
  height: 49px;
  flex: none;
  object-fit: cover;
  object-position: center 25%;
  border: 2px solid #e6d59a;
  border-radius: 50%;
  padding: 2px;
  background: #1c3c4c;
}
.rae-social-profile-copy { display: flex; flex: 1 1 auto; flex-direction: column; gap: 5px; min-width: 0; }
.rae-social-profile-copy strong { color: #f6f3eb; font-size: clamp(13px, 1.15vw, 17px); font-weight: 800; letter-spacing: -.025em; }
.rae-social-profile-copy > span { color: #9eb9c1; font-size: 9px; font-weight: 750; letter-spacing: .1em; }
.rae-social-follow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  border: 1px solid #b9af84;
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  color: #e8dca5;
  transition: background .2s, color .2s;
}
.rae-social-follow:hover { background: #e8dca5; color: #10222d; }
.rae-social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  flex: 1 1 auto;
  min-height: 0;
  gap: 8px;
}
.rae-social-tile { display: block; position: relative; overflow: hidden; min-width: 0; min-height: 0; border-radius: 7px; background: #203846; }
.rae-social-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2,11,20,.72) 0%, rgba(2,11,20,0) 48%); pointer-events: none; }
.rae-social-tile img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.rae-social-tile:nth-child(2) img,.rae-social-tile:nth-child(3) img,.rae-social-tile:nth-child(4) img,.rae-social-tile:nth-child(5) img { object-position: center 30%; }
.rae-social-tile:hover img,.rae-social-tile:focus-visible img { transform: scale(1.07); filter: brightness(1.09); }
.rae-social-tile > span { position: absolute; z-index: 1; bottom: 11px; left: 10px; right: 5px; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .075em; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.rae-social-tile:focus-visible,.rae-social-follow:focus-visible,.rae-social-footer:focus-visible { outline: 2px solid #e6d59a; outline-offset: 3px; }
.rae-social-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 1px 2px; min-height: 30px; color: #e8dca5; font-size: 9px; font-weight: 800; letter-spacing: .1em; border-top: 1px solid #395360; }
.rae-social-footer:hover { color: #fff; }
.rae-social-footer > span:last-child { font-size: 19px; line-height: 1; }
@media (max-width: 1120px) {
  .visual-layout-2026 .instagram-native-card.rae-social-card { height: 480px; }
  .rae-social-card .ig-native-heading,.rae-social-card .ig-native-topbar > a { font-size: 8px; }
}
@media (max-width: 760px) {
  .visual-layout-2026 .instagram-native-card.rae-social-card { height: auto; padding: 13px; gap: 10px; }
  .rae-social-grid { flex: none; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .rae-social-tile { aspect-ratio: 1 / 1; }
  .rae-social-profile { min-height: 49px; }
  .rae-social-avatar { width: 43px; height: 43px; }
  .rae-social-profile-copy strong { font-size: 15px; }
  .rae-social-profile-copy > span { font-size: 8px; }
  .rae-social-follow { font-size: 9px; padding: 9px 12px; }
  .rae-social-footer { padding: 10px 2px 1px; }
}
@media (max-width: 370px) {
  .rae-social-card .ig-native-heading,.rae-social-card .ig-native-topbar > a { font-size: 7px; letter-spacing: .035em; }
  .rae-social-card .ig-native-heading { gap: 7px; }
  .rae-social-tile > span { font-size: 7px; left: 6px; bottom: 8px; letter-spacing: .02em; }
  .rae-social-follow { padding: 8px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .rae-social-tile img,.rae-social-follow { transition: none; }
}
