.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 2.3vw, 1.875rem);
}

.community-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #0b1a2e;
}

.community-card:hover,
.community-card:focus-within {
  border-color: var(--gold);
}

.community-photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  text-align: start;
  cursor: zoom-in;
}

.community-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0.8rem 0.8rem 0 0;
}

.community-caption {
  display: grid;
  gap: 0.18rem;
  padding: 0.85rem clamp(0.85rem, 2vw, 1.25rem) 1rem;
}

.community-name,
.community-view-info h2 {
  color: #ffcc5f;
  font: 600 clamp(1.22rem, 2vw, 1.65rem)/1.2 Cinzel, Georgia, serif;
}

.community-place,
.community-view-info p {
  color: var(--silver);
  font-size: 0.85rem;
}

.community-invite {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.8rem;
  min-height: 100%;
  padding: clamp(1.45rem, 3vw, 2.5rem);
  background: radial-gradient(ellipse at 50% 23%, #193453 0%, #0b1a2e 67%);
  text-align: center;
}

.community-invite img {
  display: block;
  width: min(66%, 10.5rem);
  height: auto;
}

.community-invite h3 {
  margin: 0;
  color: #ffcc5f;
  font: 600 clamp(1.38rem, 2.25vw, 2rem)/1.16 Cinzel, Georgia, serif;
  text-wrap: balance;
}

.community-invite p {
  max-width: 28ch;
  margin: 0;
  color: var(--silver);
  font-size: 0.9rem;
}

#community-photo-dialog {
  width: min(1040px, calc(100% - 1.5rem));
  max-width: none;
  max-height: calc(100dvh - 1.5rem);
}

.community-view {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 0.8fr);
  align-items: start;
  gap: clamp(1rem, 3vw, 2.25rem);
  padding: clamp(0.85rem, 2.5vw, 1.5rem);
}

.community-close {
  position: absolute;
  z-index: 1;
  inset-block-start: 0.8rem;
  inset-inline-end: 0.8rem;
}

.community-view-image {
  position: sticky;
  top: 0.5rem;
  display: grid;
  place-items: center;
  min-width: 0;
  background: #071326;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  overflow: hidden;
}

.community-view-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(75dvh, 720px);
  object-fit: contain;
}

.community-view-info {
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding-top: 2rem;
}

.community-view-info h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.community-view-info p {
  margin: 0.35rem 0 0;
}

.community-photo-navigation {
  position: absolute;
  inset: 50% 0.65rem auto;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.community-photo-navigation button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: #0b1a2ee8;
  color: #ffdc85;
  font: 500 1.8rem/1 Arial, sans-serif;
  pointer-events: auto;
}

.community-photo-navigation button:hover {
  border-color: var(--gold);
}

@media (max-width: 700px) {
  .community-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(83%, 20rem);
    overflow-x: auto;
    margin-inline: -0.25rem;
    padding: 0.3rem 0.25rem 0.75rem;
    scroll-padding-inline: 0.25rem;
    scroll-snap-type: x mandatory;
    scrollbar-color: #b18c46 #0b1a2e;
  }

  .community-card {
    scroll-snap-align: start;
  }

  .community-view {
    grid-template-columns: minmax(0, 1fr);
  }

  .community-view-image img {
    max-height: 65dvh;
  }

  .community-view-image {
    position: relative;
    top: 0;
  }

  .community-view-info {
    padding-top: 0;
  }
}

#communaute [hidden],
.community-panel [hidden],
#community-photo-dialog [hidden],
#community-more[hidden] {
  display: none;
}

.community-heading-copy {
  display: grid;
  gap: 0.65rem;
}

.community-heading-links,
.community-card-actions,
.community-view-actions,
.community-queue,
.community-review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.1rem;
}

.community-card-actions,
.community-view-actions {
  justify-content: space-between;
}

.community-card-actions {
  margin-top: auto;
  padding: 0.1rem clamp(0.85rem, 2vw, 1.25rem) 0.6rem;
}

.community-view-actions {
  justify-content: flex-end;
  margin-top: -0.55rem;
}

.community-link,
.community-comment-editor summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #ffcf6b;
  font: 650 0.86rem/1.4 Montserrat, Arial, sans-serif;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}

.community-link:hover,
.community-comment-editor summary:hover {
  color: #ffe5a9;
}

.community-link:disabled {
  opacity: 0.6;
}

.community-like {
  display: inline-flex;
  flex: none;
  gap: 0.4rem;
  align-items: center;
  justify-content: flex-end;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.15rem 0 0.4rem;
  border: 0;
  background: transparent;
  color: var(--silver);
  font-size: 0.83rem;
  font-weight: 650;
}

.community-like span:first-child {
  font-size: 1.12rem;
  filter: grayscale(1) brightness(1.45);
}

.community-like:hover,
.community-like[aria-pressed="true"] {
  color: #ffcf6b;
}

.community-like:hover span:first-child,
.community-like[aria-pressed="true"] span:first-child {
  filter: none;
}

.community-like:disabled {
  opacity: 0.65;
}

#community-add-photo {
  margin-top: 0.45rem;
}

.community-more {
  display: block;
  margin: 1.6rem auto 0;
}

.community-status {
  color: #e1e8f0;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.community-status:empty {
  display: none;
}

.community-thread {
  min-width: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.community-thread h3 {
  margin: 0 0 0.5rem;
  color: #ffcc5f;
  font-size: 1rem;
}

#community-comments {
  display: grid;
}

.community-comment {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: #fff;
  overflow-wrap: anywhere;
}

.community-comment strong {
  font-size: 0.82rem;
}

.community-comment p,
.community-view-info > div p {
  overflow-wrap: anywhere;
}

.community-comment-editor {
  margin-top: 0.25rem;
}

.community-comment-editor summary::before {
  content: "+";
  margin-inline-end: 0.4rem;
  font-size: 1rem;
}

.community-comment-editor[open] summary::before {
  content: "−";
}

#community-product {
  justify-self: start;
}

dialog.community-panel {
  width: min(39rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
}

.community-panel-body {
  position: relative;
  padding: clamp(1rem, 4vw, 1.8rem);
}

.community-panel h2 {
  margin: 0 3rem 1rem 0;
  color: #ffcc5f;
  font: 600 clamp(1.5rem, 4vw, 2.15rem)/1.15 Cinzel, Georgia, serif;
}

.community-sign-in {
  display: inline-flex;
  align-items: center;
}

.community-form {
  display: grid;
  gap: 0.8rem;
}

.community-form label {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.community-form label.community-consent {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.65rem;
  font-weight: 450;
}

.community-form input[type="checkbox"] {
  accent-color: #2173fa;
  width: 1rem;
  height: 1rem;
  margin: 0.2rem 0;
}

.community-form input:not([type="checkbox"]),
.community-form select,
.community-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border: 1px solid #546984;
  border-radius: 0.45rem;
  background: #091728;
  color: #fff;
  font: inherit;
}

.community-form textarea {
  resize: vertical;
}

.community-form input::file-selector-button {
  margin-inline-end: 0.65rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid #4086ff;
  border-radius: 0.3rem;
  color: #fff;
  background: #06328c;
  font: inherit;
  cursor: pointer;
}

.community-form p {
  margin: 0;
  color: var(--silver);
  font-size: 0.83rem;
}

.community-form label span,
.community-caption,
.community-review-copy {
  overflow-wrap: anywhere;
}

.community-upload-preview {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 10rem;
  border-radius: 0.45rem;
}

.community-queue {
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.community-queue .community-link[aria-pressed="true"] {
  color: #fff;
  text-decoration-thickness: 2px;
}

.community-purchase-form {
  margin: 1rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.community-review-entry {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.community-review-entry img {
  width: clamp(4rem, 15vw, 7rem);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0.4rem;
}

.community-review-copy {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
}

.community-review-copy p {
  margin: 0.3rem 0;
  color: var(--silver);
}

#vote-comment-moderation {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  min-height:44px;
  margin-inline-start:auto;
  padding:.35rem .8rem;
  border:1px solid #59677b;
  border-radius:.4rem;
  background:#eef1f5;
  color:#102641;
  text-decoration:none;
}
#vote-comment-moderation:hover { background:#dfe6ee; }
.community-review-copy blockquote { margin:0.4rem 0; padding-inline-start:0.75rem; border-inline-start:2px solid #ae8c41; }
.community-review-copy blockquote small { display:block; }
@media (max-width:600px) { #vote-comment-moderation { margin-inline-start:0; } }

.community-review-actions {
  margin-top: 0.65rem;
}

#community-all-title,
#community-return {
  display: none;
}

.community-all-page #community-title,
.community-all-page #community-all-link,
.community-all-page .shop-header .nav > :not(#community-return, #shop-language),
.community-all-page main > :not(#communaute),
.community-all-page .wrap > footer,
.community-all-page #validation {
  display: none;
}

.community-all-page #community-all-title {
  display: block;
  margin: 0;
  color: #ffcc5f;
  font: 600 clamp(1.9rem, 4.4vw, 3rem)/1.13 Cinzel, Georgia, serif;
}

.community-all-page #community-return {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffcc5f;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.community-all-page #communaute {
  border-top: 0;
}

@media (max-width: 700px) {
  .community-all-page .community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    overflow: visible;
  }
}

@media (max-width: 520px) {
  .community-all-page .community-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .community-all-page .shop-header {
    flex-wrap: wrap;
  }
}


/* The same moderated thread can accompany a film or song without repeating its player. */
#community-photo-dialog[data-media] { width: min(37rem, calc(100% - 1.5rem)); }
#community-photo-dialog[data-media] .community-view { grid-template-columns: minmax(0, 1fr); }
#community-photo-dialog[data-media] .community-view-image,
#community-photo-dialog[data-media] .community-view-actions { display: none; }
.media-comment-link:not([hidden]) { display: inline-flex; align-items: center; margin-block: .5rem; }
