/* Let the two parts of the Japanese title wrap as phrases. */
.gallery-name > span, #featured-title > span { white-space: nowrap; }
#featured-title { overflow-wrap: normal; word-break: keep-all; }

a[href^="https://www.instagram.com/"], a[href^="https://www.youtube.com/"] {
  --social-gap: 8px;
}
a[href^="https://www.instagram.com/"]::after,
a[href^="https://www.youtube.com/"]::after {
  content: "";
  display: inline-block;
  flex: none;
  margin-inline-start: var(--social-gap, 8px);
  vertical-align: middle;
}
a[href^="https://www.instagram.com/"]::after {
  width: 29px; height: 29px;
  background: url("media/instagram-black.svg") center / contain no-repeat;
}
.join-actions a[href^="https://www.instagram.com/"]::after {
  background-image: url("media/instagram-white.svg");
}
a[href^="https://www.youtube.com/"]::after {
  width: 18px; height: 18px;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' stroke='black' stroke-width='1.7' fill='none'/%3E%3Cpath d='M10 7.5v9l7-4.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
a[href^="https://www.instagram.com/"] { --social-gap: 15px; }
.join .join-actions a[href^="https://www.instagram.com/"] { padding-block: 15px; }
footer .bottom nav { gap: 6px 24px; }
footer .bottom nav a { display: inline-flex; align-items: center; min-height: 59px; white-space: nowrap; }
@media (max-width: 650px) {
  #featured-title { font-size: clamp(26px, 7.5vw, 35px); }
  footer .bottom nav { gap: 0 19px; }
}
@media (max-width: 440px) {
  .gallery-name { display: inline-block; font-size: 12px; line-height: 1.3; text-align: start; }
  .gallery-name > span { display: block; }
  .mast nav { gap: 9px; }
  .hero-actions { column-gap: 13px; }
}
@media (forced-colors: active) {
  a[href^="https://www.youtube.com/"]::after {
    forced-color-adjust: none; background-color: LinkText;
  }
}

@media (max-width: 355px) {
  .mast .edge { gap: 5px; }
  .mast .brand { font-size: 22px; }
  .mast nav { gap: 6px; }
  .mast nav .featured-tab { gap: 3px; }
  .mast .gallery-name { font-size: 11px; }
  .mast nav a:last-child { padding-inline: 7px; }
}

footer .bottom nav { font-size: 13px; }
footer a[href^="https://www.youtube.com/"]::after { width: 22px; height: 22px; }
@media (max-width: 355px) {
  #invite-title { font-size: 25px; text-wrap: initial; }
}
