.community-page .community-gallery-modal {
  --community-gallery-modal-aside-width: clamp(260px, 20vw, 380px);
  --community-gallery-modal-close-size: 40px;
  --community-gallery-modal-fullscreen-size: 24px;
  --community-gallery-modal-main-top-padding: 0px;
  --community-gallery-modal-scroll-cue-width: 60px;
  --community-gallery-modal-scroll-cue-height: 45px;
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100%;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  background-color: transparent;
  color: #303030;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 260ms ease,
    visibility 260ms ease;
}

.community-page .community-gallery-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.community-page .community-gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(244, 245, 247, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.community-page .community-gallery-modal__dialog {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  overflow: auto;
  outline: none;
  transform: translateY(14px);
  transition: transform 320ms ease;
}

.community-page .community-gallery-modal__panel {
  display: contents;
}

.community-page .community-gallery-modal__panel[hidden] {
  display: none;
}

.community-page .community-gallery-modal.is-open .community-gallery-modal__dialog {
  transform: translateY(0);
}

.community-page .community-gallery-modal__close {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 4;
  display: flex;
  width: var(--community-gallery-modal-close-size);
  height: var(--community-gallery-modal-close-size);
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 200ms ease;
}

.community-page .community-gallery-modal__close:hover,
.community-page .community-gallery-modal__close:focus-visible {
  transform: scale(1.08);
}

.community-page .community-gallery-modal__close img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.community-page .community-gallery-modal__main-pane {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: visible;
  scrollbar-width: thin;
  scrollbar-color: rgba(48, 48, 48, 0.24) transparent;
}

.community-page .community-gallery-modal__scroll-cue,
.community-page .community-gallery-modal__products-scroll-cue {
  display: none;
}

.community-page .community-gallery-modal__main-content {
  position: relative;
  display: grid;
  max-width: 1400px;
  min-height: 100%;
  margin: 0 auto;
  padding: 74px 20px 36px;
  align-items: start;
  gap: 34px;
}

.community-page .community-gallery-modal__main-pane::before {
  content: '';
  position: absolute;
  top: 0;
  right: -39px;
  bottom: 0;
  width: 39px;
  background: url('../../../images/community/right-shadow.png') center / 39px auto repeat-y;
  pointer-events: none;
  z-index: 1;
  display: none;
}

.community-page .community-gallery-modal__media-column,
.community-page .community-gallery-modal__article {
  min-width: 0;
}

.community-page .community-gallery-modal__main-media {
  position: relative;
  width: min(100%, 680px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 14px;
  background-color: #1a1530;
  box-shadow: 0 8px 24px rgba(17, 22, 34, 0.28);
  aspect-ratio: 1 / 1;
}

.community-page .community-gallery-modal__main-media-content {
  width: 100%;
  height: 100%;
}

.community-page .community-gallery-modal__main-image {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.community-page .community-gallery-modal__main-iframe {
  border: 0;
  background-color: #000000;
}

/* 原生全屏下改为完整展示：cover 会裁切铺满屏幕，contain 保住整图比例，四周留黑边 */
.community-page .community-gallery-modal__main-image:-webkit-full-screen {
  object-fit: contain;
  background: #000000;
}
.community-page .community-gallery-modal__main-image:fullscreen {
  -o-object-fit: contain;
     object-fit: contain;
  background: #000000;
}

/* 旧版 Safari 使用 webkit 前缀伪类 */
.community-page .community-gallery-modal__main-image:-webkit-full-screen {
  object-fit: contain;
  background: #000000;
}

.community-page .community-gallery-modal__fullscreen {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  width: var(--community-gallery-modal-fullscreen-size);
  height: var(--community-gallery-modal-fullscreen-size);
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 200ms ease;
}

.community-page .community-gallery-modal__fullscreen:hover,
.community-page .community-gallery-modal__fullscreen:focus-visible {
  transform: scale(1.08);
}

.community-page .community-gallery-modal__fullscreen img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.community-page .community-gallery-modal__thumbnails {
  position: relative;
  display: flex;
  max-width: 680px;
  margin: 8px auto 0;
  align-items: center;
  gap: 8px;
}

.community-page .community-gallery-modal__thumb-viewport {
  flex: 1 1 0%;
  min-width: 0;
  width: 0;
  overflow: hidden;
}

.community-page .community-gallery-modal__thumb-list {
  display: flex;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  /* Keep the active thumb and its glow inside the Swiper viewport. */
  padding: 20px 18px;
  overflow: visible;
}

.community-page .community-gallery-modal__thumb {
  position: relative;
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background-color: #dce1e7;
  cursor: pointer;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.community-page .community-gallery-modal__thumb:hover,
.community-page .community-gallery-modal__thumb:focus-visible,
.community-page .community-gallery-modal__thumb.is-active {
  z-index: 1;
  transform: translateY(-2px) scale(1.1);
}

.community-page .community-gallery-modal__thumb.is-active {
  z-index: 2;
  box-shadow:
    0 0 0 2px rgba(135, 48, 132, 0.45),
    0 0 18px rgba(135, 48, 132, 0.38);
  transform: translateY(-3px) scale(1.16);
}

.community-page .community-gallery-modal__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.community-page .community-gallery-modal__thumb-nav {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 0 0 26px;
  width: 26px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 200ms ease;
}

.community-page .community-gallery-modal__thumb-nav.swiper-button-disabled {
  display: flex;
  pointer-events: none;
}

.community-page .community-gallery-modal__thumb-nav--prev:hover,
.community-page .community-gallery-modal__thumb-nav--prev:focus-visible {
  transform: translateX(-2px);
}

.community-page .community-gallery-modal__thumb-nav--next:hover,
.community-page .community-gallery-modal__thumb-nav--next:focus-visible {
  transform: translateX(2px);
}

.community-page .community-gallery-modal__thumb-nav img {
  display: block;
  width: clamp(12px, 1.0417vw, 20px);
  height: clamp(19.2px, 1.6667vw, 32px);
  -o-object-fit: contain;
     object-fit: contain;
}

.community-page .community-gallery-modal__thumb-nav
  .community-gallery-modal__thumb-nav-icon--disabled {
  display: none;
}

.community-page .community-gallery-modal__thumb-nav.swiper-button-disabled
  .community-gallery-modal__thumb-nav-icon--active {
  display: none;
}

.community-page .community-gallery-modal__thumb-nav.swiper-button-disabled
  .community-gallery-modal__thumb-nav-icon--disabled {
  display: block;
}

.community-page .community-gallery-modal__thumb-nav--prev
  .community-gallery-modal__thumb-nav-icon--active {
  transform: rotate(180deg);
}

.community-page .community-gallery-modal__thumb-nav--next
  .community-gallery-modal__thumb-nav-icon--disabled {
  transform: rotate(180deg);
}

.community-page .community-gallery-modal__article {
  padding-top: 0;
}

.community-page .community-gallery-modal__author {
  display: grid;
  min-height: 58px;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-areas:
    'avatar name'
    'avatar socials'
    'avatar meta';
  align-items: center;
  -moz-column-gap: 10px;
       column-gap: 10px;
  row-gap: 8px;
}

.community-page .community-gallery-modal__avatar {
  display: block;
  grid-area: avatar;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 50%;
  background-color: #241640;
}

.community-page .community-gallery-modal__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: 78% 20%;
     object-position: 78% 20%;
  transform: scale(1.45);
}

.community-page .community-gallery-modal__author-name {
  grid-area: name;
  min-width: 0;
  overflow: hidden;
  margin: 0 8px 0 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.community-page .community-gallery-modal__socials {
  grid-area: socials;
  display: flex;
  align-items: center;
  gap: 9px;
}

.community-page .community-gallery-modal__socials a {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: transform 200ms ease;
}

.community-page .community-gallery-modal__socials a:hover,
.community-page .community-gallery-modal__socials a:focus-visible {
  transform: translateY(-2px);
}

.community-page .community-gallery-modal__socials img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.community-page .community-gallery-modal__meta {
  grid-area: meta;
  display: flex;
  width: 100%;
  min-width: 0;
  margin: 0;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  color: #484848;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

.community-page .community-gallery-modal__meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.community-page .community-gallery-modal__meta > span + span {
  margin-left: 6px;
}

.community-page .community-gallery-modal__meta img {
  display: block;
  flex: 0 0 auto;
  -o-object-fit: contain;
     object-fit: contain;
}

.community-page .community-gallery-modal__meta > span:first-child img {
  width: 18px;
  height: 18px;
}

.community-page .community-gallery-modal__meta > span:last-child img {
  width: 14px;
  height: 18px;
}

.community-page .community-gallery-modal__copy {
  margin-top: 28px;
}

.community-page .community-gallery-modal__copy h2 {
  max-width: 620px;
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.community-page .community-gallery-modal__copy p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.45;
  color: #383838;
}

.community-page .community-gallery-modal__copy p:last-child {
  margin-bottom: 0;
}

.community-page .community-gallery-modal__products {
  min-width: 0;
  min-height: 0;
  overflow: visible;
  border-top: 1px solid rgba(48, 48, 48, 0.1);
  background: linear-gradient(180deg, rgba(222, 222, 222, 0.8) 0%, rgba(232, 240, 251, 0.8) 53.79%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  scrollbar-width: thin;
  scrollbar-color: rgba(48, 48, 48, 0.24) transparent;
}

.community-page .community-gallery-modal__products h2 {
  margin: 74px 20px 28px;
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.community-page .community-gallery-modal__product-list {
  display: grid;
  max-width: 360px;
  margin: 0 auto;
  padding: 0 20px 28px;
  gap: 20px;
}

.community-page .community-gallery-modal__product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  background-color: #d8dde2;
}

.community-page .community-gallery-modal__product-card:hover,
.community-page .community-gallery-modal__product-card:focus-within {
  background: linear-gradient(
    180deg,
    rgba(162, 167, 170, 0.26) 0%,
    rgba(165, 168, 170, 0.73) 100%
  );
}

.community-page .community-gallery-modal__product-media {
  padding: 0 30px;
  box-sizing: border-box;
}

.community-page .community-gallery-modal__product-media > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 0;
  -o-object-fit: contain;
     object-fit: contain;
}

.community-page .community-gallery-modal__product-card h3 {
  margin: 0;
  padding: 0 20px 21px;
  font-size: clamp(18px, 1.25vw, 24px);
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

.community-page .community-gallery-modal__product-link {
  position: absolute;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  overflow: hidden;
  display: inline-flex;
  width: auto;
  min-height: 42px;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 14px 8px 20px;
  border: 0;
  background: url('../../../images/base/btn-bg.png') center / 100% 100% no-repeat;
  box-shadow: none;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 8px));
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.community-page .community-gallery-modal__product-card:hover .community-gallery-modal__product-link,
.community-page .community-gallery-modal__product-card:focus-within .community-gallery-modal__product-link,
.community-page .community-gallery-modal__product-link:focus-visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.community-page .community-gallery-modal__product-link img {
  display: block;
  width: 16px;
  height: 16px;
  -o-object-fit: contain;
     object-fit: contain;
}

@media (min-width: 480px) {
  .community-page .community-gallery-modal__main-content {
    padding-inline: 28px;
  }

  .community-page .community-gallery-modal__thumb {
    flex-basis: 76px;
    width: 76px;
    height: 76px;
  }
}

@media (min-width: 768px) {
  .community-page .community-gallery-modal__close {
    top: 24px;
    right: 28px;
  }

  .community-page .community-gallery-modal__main-content {
    padding: 92px 48px 46px;
  }

  .community-page .community-gallery-modal__main-image {
    -o-object-position: center;
       object-position: center;
  }

  .community-page .community-gallery-modal__author-name {
    font-size: 28px;
  }

  .community-page .community-gallery-modal__products h2 {
    margin-top: 92px;
    font-size: 34px;
  }

  .community-page .community-gallery-modal__product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
  }
}

@media (min-width: 960px) {
  .community-page .community-gallery-modal {
    --community-gallery-modal-close-size: clamp(32px, 2.5vw, 48px);
    --community-gallery-modal-fullscreen-size: clamp(28px, 2.083vw, 40px);
    --community-gallery-modal-main-top-padding: clamp(64px, 5.625vw, 108px);
    --community-gallery-modal-scroll-cue-width: clamp(40px, 3.125vw, 60px);
    --community-gallery-modal-scroll-cue-height: clamp(30px, 2.344vw, 45px);
    --community-gallery-modal-thumb-size: clamp(56px, 8vh, 86px);
  }

  .community-page .community-gallery-modal__dialog {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--community-gallery-modal-aside-width);
    overflow: hidden;
  }

  .community-page .community-gallery-modal__close {
    top: calc(
      (var(--community-gallery-modal-main-top-padding) - var(--community-gallery-modal-close-size)) / 2
    );
    right: calc(var(--community-gallery-modal-aside-width) + clamp(20px, 1.77vw, 34px));
    width: var(--community-gallery-modal-close-size);
    height: var(--community-gallery-modal-close-size);
  }

  .community-page .community-gallery-modal__main-content {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    padding: var(--community-gallery-modal-main-top-padding) 20px 40px
      clamp(36px, 4vw, 80px);
    gap: 40px;
  }

  .community-page .community-gallery-modal__main-pane,
  .community-page .community-gallery-modal__products {
    height: 100vh;
    min-height: 100vh;
  }

  .community-page .community-gallery-modal__main-pane {
    overflow: visible;
  }

  .community-page .community-gallery-modal__main-pane::before {
    display: block;
  }

  .community-page .community-gallery-modal__products {
    overflow: auto;
  }

  .community-page .community-gallery-modal__main-content {
    height: 100vh;
    min-height: 100vh;
    overflow: visible;
    align-items: start;
  }

  .community-page .community-gallery-modal__media-column {
    display: flex;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    flex-direction: column;
    justify-content: flex-start;
  }

  .community-page .community-gallery-modal__main-media {
    width: min(
      100%,
      680px,
      calc(
        100vh - var(--community-gallery-modal-main-top-padding) - 40px -
          var(--community-gallery-modal-thumb-size) - 32px
      )
    );
    max-width: 100%;
    flex: 0 1 auto;
  }

  .community-page .community-gallery-modal__thumb {
    flex-basis: var(--community-gallery-modal-thumb-size);
    width: var(--community-gallery-modal-thumb-size);
    height: var(--community-gallery-modal-thumb-size);
  }

  .community-page .community-gallery-modal__article {
    display: flex;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
  }

  .community-page .community-gallery-modal__author {
    --community-gallery-modal-author-avatar-size: clamp(44px, 3vw, 54px);
    --community-gallery-modal-author-gap: 16px;

    display: grid;
    grid-template-columns:
      var(--community-gallery-modal-author-avatar-size)
      minmax(0, max-content)
      auto;
    grid-template-areas:
      'avatar name socials'
      'avatar meta meta';
    -moz-column-gap: var(--community-gallery-modal-author-gap);
         column-gap: var(--community-gallery-modal-author-gap);
    row-gap: 8px;
  }

  .community-page .community-gallery-modal__avatar {
    grid-area: avatar;
    flex: 0 0 var(--community-gallery-modal-author-avatar-size);
    width: var(--community-gallery-modal-author-avatar-size);
    height: var(--community-gallery-modal-author-avatar-size);
  }

  .community-page .community-gallery-modal__author-name {
    grid-area: name;
    min-width: 0;
    flex: 1 1 auto;
    margin-right: 0;
    overflow: hidden;
    font-size: clamp(20px, 1.6vw, 26px);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .community-page .community-gallery-modal__socials {
    grid-area: socials;
    flex: 0 0 auto;
  }

  .community-page .community-gallery-modal__meta {
    grid-area: meta;
    flex: 1 1
      calc(
        100% - var(--community-gallery-modal-author-avatar-size) -
          var(--community-gallery-modal-author-gap)
      );
    min-width: 0;
    margin: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }

  .community-page .community-gallery-modal__copy {
    min-height: 0;
    overflow-y: auto;
    flex: 0 1 auto;
    padding: 0 20px 0 0;
    scrollbar-width: thin;
  }

  .community-page .community-gallery-modal__scroll-cue {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 64px;
    margin-top: 0;
    padding-bottom: 12px;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition:
      opacity 200ms ease,
      visibility 200ms ease;
  }

  .community-page .community-gallery-modal__scroll-cue.is-visible {
    pointer-events: auto;
    cursor: pointer;
    visibility: visible;
    opacity: 1;
  }

  .community-page .community-gallery-modal__scroll-cue img {
    display: block;
    width: var(--community-gallery-modal-scroll-cue-width);
    height: var(--community-gallery-modal-scroll-cue-height);
    -o-object-fit: contain;
       object-fit: contain;
  }

  .community-page .community-gallery-modal__products-scroll-cue {
    position: sticky;
    bottom: 0;
    z-index: 1;
    display: flex;
    height: 64px;
    justify-content: center;
    align-items: flex-end;
    margin-top: -64px;
    padding-bottom: 12px;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition:
      opacity 200ms ease,
      visibility 200ms ease;
  }

  .community-page .community-gallery-modal__products-scroll-cue.is-visible {
    pointer-events: auto;
    cursor: pointer;
    visibility: visible;
    opacity: 1;
    background: linear-gradient(180deg, rgba(246, 246, 247, 0) 0%, #f9fafa 100%);
  }

  .community-page .community-gallery-modal__products-scroll-cue img {
    display: block;
    width: 32px;
    height: 20px;
    -o-object-fit: contain;
       object-fit: contain;
  }

  .community-page .community-gallery-modal__thumbnails {
    width: 100%;
  }

  .community-page .community-gallery-modal__article {
    padding-top: 0;
  }

  .community-page .community-gallery-modal__author {
    flex-wrap: wrap;
    -moz-column-gap: var(--community-gallery-modal-author-gap);
         column-gap: var(--community-gallery-modal-author-gap);
    row-gap: 8px;
  }

  .community-page .community-gallery-modal__avatar {
    flex: 0 0 var(--community-gallery-modal-author-avatar-size);
  }

  .community-page .community-gallery-modal__author-name {
    margin-right: 0;
    font-size: clamp(20px, 1.6vw, 26px);
  }

  .community-page .community-gallery-modal__socials {
    gap: clamp(6px, 0.55vw, 8px);
  }

  .community-page .community-gallery-modal__socials a {
    width: 22px;
    height: 22px;
  }

  .community-page .community-gallery-modal__meta {
    gap: clamp(6px, 0.55vw, 8px);
    font-size: clamp(12px, 0.68vw, 13px);
  }

  .community-page .community-gallery-modal__copy {
    margin-top: 28px;
  }

  .community-page .community-gallery-modal__copy h2 {
    font-size: clamp(22px, 2.45vw, 28px);
  }

  .community-page .community-gallery-modal__copy p {
    font-size: clamp(14px, 1.06vw, 16px);
  }

  .community-page .community-gallery-modal__products {
    border-top: 0;
    border-left: 1px solid rgba(48, 48, 48, 0.12);
  }

  .community-page .community-gallery-modal__products h2 {
    margin-top: var(--community-gallery-modal-main-top-padding);
    font-size: clamp(20px, 2.25vw, 32px);
  }

  .community-page .community-gallery-modal__product-list {
    display: grid;
    grid-template-columns: 1fr;
    max-width: none;
    padding-inline: clamp(20px, 2.1vw, 40px);
    gap: 20px;
  }

  .community-page .community-gallery-modal__product-card h3 {
    font-size: clamp(18px, 1.25vw, 24px);
  }
}

@media (min-width: 1280px) {
  .community-page .community-gallery-modal__main-content {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .community-page .community-gallery-modal__thumb {
    flex-basis: var(--community-gallery-modal-thumb-size);
    width: var(--community-gallery-modal-thumb-size);
    height: var(--community-gallery-modal-thumb-size);
  }

  .community-page .community-gallery-modal__author-name {
    font-size: clamp(20px, 1.6vw, 26px);
  }

  .community-page .community-gallery-modal__socials {
    gap: 8px;
  }

  .community-page .community-gallery-modal__socials a {
    width: 24px;
    height: 24px;
  }

  .community-page .community-gallery-modal__meta {
    font-size: 13px;
  }
}

@media (min-width: 960px) and (max-width: 1679px) {
  .community-page .community-gallery-modal__article .community-gallery-modal__author-name {
    font-size: clamp(18px, calc(1.6vw - 2px), 24px);
  }

  .community-page .community-gallery-modal__article .community-gallery-modal__copy h2 {
    font-size: clamp(18px, calc(2.45vw - 4px), 24px);
  }

  .community-page .community-gallery-modal__article .community-gallery-modal__copy p {
    font-size: clamp(12px, calc(1.06vw - 2px), 14px);
    line-height: 1.35;
  }
}

@media (min-width: 1680px) {
  .community-page .community-gallery-modal__author {
    display: flex;
    flex-wrap: nowrap;
    -moz-column-gap: 16px;
         column-gap: 16px;
  }

  .community-page .community-gallery-modal__meta {
    flex: 0 1 auto;
    width: auto;
    margin-left: auto;
    white-space: nowrap;
  }
}

@media (max-width: 639px) {
  .community-page .community-gallery-modal__main-content {
    grid-template-areas:
      'author'
      'media'
      'copy'
      'scroll-cue';
    padding-bottom: 32px;
    row-gap: 24px;
  }

  .community-page .community-gallery-modal__media-column {
    grid-area: media;
  }

  .community-page .community-gallery-modal__article {
    display: contents;
  }

  .community-page .community-gallery-modal__author {
    grid-area: author;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-areas:
      'avatar name'
      'avatar socials'
      'avatar meta';
    -moz-column-gap: 10px;
         column-gap: 10px;
    row-gap: 8px;
    align-items: start;
  }

  .community-page .community-gallery-modal__avatar {
    grid-area: avatar;
  }

  .community-page .community-gallery-modal__author-name {
    grid-area: name;
    font-size: 21px;
  }

  .community-page .community-gallery-modal__socials {
    grid-area: socials;
    width: auto;
    margin: 0;
  }

  .community-page .community-gallery-modal__meta {
    grid-area: meta;
    width: 100%;
    margin: 0;
  }

  .community-page .community-gallery-modal__copy {
    grid-area: copy;
    margin-top: 0;
  }

  .community-page .community-gallery-modal__scroll-cue {
    grid-area: scroll-cue;
  }

  .community-page .community-gallery-modal__article .community-gallery-modal__copy h2 {
    font-size: 22px;
  }

  .community-page .community-gallery-modal__products h2 {
    margin: 34px 20px 20px;
    font-size: 28px;
  }

  .community-page .community-gallery-modal__product-list {
    grid-template-columns: 1fr;
    padding-inline: 20px;
    gap: 12px;
  }

  .community-page .community-gallery-modal__product-card h3 {
    padding: 0 8px 14px;
    font-size: 18px;
  }

  .community-page .community-gallery-modal__product-link {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    min-height: 34px;
    gap: 6px;
    padding: 6px 8px;
    font-size: 12px;
    transform: translate(-50%, -50%);
  }

  .community-page .community-gallery-modal__product-link img {
    width: 16px;
    height: 16px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .community-page .community-gallery-modal,
  .community-page .community-gallery-modal__dialog,
  .community-page .community-gallery-modal__close,
  .community-page .community-gallery-modal__fullscreen,
  .community-page .community-gallery-modal__thumb,
  .community-page .community-gallery-modal__thumb-nav,
  .community-page .community-gallery-modal__socials a,
  .community-page .community-gallery-modal__product-link {
    transition: none;
  }
}
