.page--gallery{ max-width:1360px; }
.page--gallery-show{ max-width:1560px; }

.gallery-stack{ display:grid; gap:28px; }

.gallery-hero{
  display:grid;
  gap:18px;
  padding:28px 30px;
  border-radius:24px;
  border:1px solid rgba(120,88,73,.34);
  background:
    radial-gradient(circle at top right, rgba(216,91,73,.18), transparent 30%),
    linear-gradient(135deg, rgba(24,20,22,.88), rgba(18,15,18,.96));
  box-shadow:0 18px 42px rgba(0,0,0,.18);
}

.gallery-kicker{
  display:inline-flex;
  align-items:center;
  margin-bottom:14px;
  padding:6px 11px;
  border-radius:999px;
  border:1px solid rgba(216,91,73,.30);
  background:rgba(216,91,73,.14);
  color:#ffd9c7;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.gallery-hero h2{
  margin:0 0 10px;
  font-size:clamp(2rem, 3vw, 3rem);
  line-height:1.02;
}

.gallery-hero p{
  max-width:72ch;
  margin:0;
  color:rgba(232,238,245,.78);
}

.gallery-hero__copy{
  display:grid;
  gap:10px;
}

.gallery-hero__meta,
.gallery-hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.gallery-hero__pill,
.gallery-hero__link{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:#f7efe8;
  font-size:.85rem;
  font-weight:700;
}

.gallery-hero__pill{
  color:rgba(247,239,232,.84);
}

.gallery-hero__link{
  transition:transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.gallery-hero__link:hover,
.gallery-hero__link:focus-visible{
  transform:translateY(-1px);
  border-color:rgba(216,91,73,.30);
  background:rgba(216,91,73,.14);
  color:#fff8f1;
}

.gallery-hero__link--ghost{
  background:rgba(255,255,255,.02);
}

.gallery-section{ display:grid; gap:16px; }

.gallery-section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
}

.gallery-section__head h2{
  margin:0 0 6px;
}

.gallery-section__head p{
  margin:0;
  color:rgba(232,238,245,.70);
}

.gallery-strip{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(260px,1fr);
  gap:18px;
  overflow-x:auto;
  padding-bottom:6px;
  scrollbar-width:thin;
}

.gallery-grid{
  display:grid;
  gap:18px;
  grid-template-columns:repeat(3, minmax(0,1fr));
}

.gallery-card{
  display:grid;
  overflow:hidden;
  border-radius:22px;
  border:1px solid rgba(120,88,73,.28);
  background:linear-gradient(180deg, rgba(24,20,22,.90), rgba(16,13,16,.96));
  box-shadow:0 18px 38px rgba(0,0,0,.20);
}

.gallery-card--featured{ border-color:rgba(216,91,73,.32); }

.gallery-card__media{
  position:relative;
  aspect-ratio:16/10;
  display:block;
  overflow:hidden;
  background:rgba(255,255,255,.04);
}

.gallery-card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .2s ease;
}

.gallery-card__media:hover img{
  transform:scale(1.03);
}

.gallery-card__zoom{
  position:absolute;
  right:12px;
  bottom:12px;
  padding:7px 11px;
  border-radius:999px;
  background:rgba(12,15,18,.68);
  border:1px solid rgba(255,255,255,.12);
  color:#fff3e3;
  font-size:.82rem;
  font-weight:700;
}

.gallery-card__body{
  display:grid;
  gap:12px;
  padding:18px;
}

.gallery-card__topline,
.gallery-card__meta{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.gallery-card__topline{
  justify-content:flex-start;
}

.gallery-card__meta{
  justify-content:space-between;
}

.gallery-card__date,
.gallery-card__meta{
  color:rgba(232,238,245,.62);
  font-size:.9rem;
}

.gallery-card__badge,
.gallery-card__score,
.gallery-card__comment-badge{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 11px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  font-size:.84rem;
  font-weight:700;
}

.gallery-card__badge{
  color:#ffd9c7;
  border-color:rgba(216,91,73,.28);
  background:rgba(216,91,73,.12);
}

.gallery-card__score{ color:#fff1e4; }

.gallery-card__date{ margin-left:auto; }

.gallery-card__author{
  color:#fff1e4;
  font-weight:600;
}

.gallery-card__comment-badge{
  color:rgba(232,238,245,.78);
}

.gallery-card h3{
  margin:0;
  font-size:1.18rem;
}

.gallery-card h3 a{ color:#fff4e7; }

.gallery-card p{
  margin:0;
  color:rgba(232,238,245,.76);
}

.gallery-empty{
  padding:26px;
  border-radius:22px;
  border:1px dashed rgba(255,255,255,.16);
  background:rgba(255,255,255,.03);
}

.gallery-empty h3{
  margin:0 0 8px;
}

.gallery-empty p{
  margin:0;
  color:rgba(232,238,245,.72);
}

.gallery-archive-grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(4, minmax(0,1fr));
}

.gallery-archive-card{
  display:grid;
  gap:6px;
  padding:18px;
  border-radius:22px;
  border:1px solid rgba(120,88,73,.24);
  background:linear-gradient(180deg, rgba(24,20,22,.84), rgba(18,15,18,.94));
  box-shadow:0 14px 34px rgba(0,0,0,.16);
}

.gallery-archive-card strong{
  font-size:1.06rem;
  color:#fff4e7;
}

.gallery-archive-card span,
.gallery-archive-card small{
  color:rgba(232,238,245,.70);
}

.gallery-collection-links{
  display:grid;
  gap:18px;
  grid-template-columns:repeat(2, minmax(0,1fr));
}

.gallery-collection-entry{
  display:grid;
  gap:16px;
  padding:22px;
  border-radius:24px;
  border:1px solid rgba(120,88,73,.24);
  background:linear-gradient(180deg, rgba(24,20,22,.84), rgba(18,15,18,.94));
  box-shadow:0 14px 34px rgba(0,0,0,.16);
}

.gallery-collection-entry__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.gallery-collection-entry__head h3{
  margin:0 0 6px;
  font-size:1.15rem;
  color:#fff4e7;
}

.gallery-collection-entry__head p{
  margin:0;
  color:rgba(232,238,245,.68);
}

.gallery-collection-entry__head span{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:rgba(232,238,245,.72);
  font-size:.86rem;
  font-weight:700;
}

.gallery-collection-entry strong{
  color:#ffe6d8;
  font-size:1rem;
}

.gallery-tag-grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(3, minmax(0,1fr));
}

.gallery-tag-card{
  display:grid;
  gap:14px;
  padding:18px;
  border-radius:22px;
  border:1px solid rgba(120,88,73,.24);
  background:linear-gradient(180deg, rgba(24,20,22,.84), rgba(18,15,18,.94));
  box-shadow:0 14px 34px rgba(0,0,0,.16);
}

.gallery-tag-card__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.gallery-tag-card__head strong{
  color:#fff4e7;
  font-size:1rem;
}

.gallery-tag-card__head span{
  color:rgba(232,238,245,.68);
  font-size:.88rem;
  text-align:right;
}

.gallery-tag-card__previews{
  display:grid;
  gap:10px;
  grid-template-columns:repeat(3, minmax(0,1fr));
}

.gallery-tag-card__previews img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  display:block;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
}

.gallery-show{
  display:grid;
  gap:28px;
}

.gallery-show__top{
  display:grid;
  gap:28px;
  grid-template-columns:minmax(0,1.65fr) minmax(320px,430px);
  align-items:start;
}

.gallery-show__main{
  display:grid;
  gap:24px;
  align-content:start;
}

.gallery-show__lead{
  display:grid;
  gap:12px;
  padding:24px 28px;
  border-radius:24px;
  border:1px solid rgba(120,88,73,.24);
  background:
    radial-gradient(circle at top right, rgba(216,91,73,.12), transparent 34%),
    linear-gradient(180deg, rgba(24,20,22,.82), rgba(18,15,18,.92));
  box-shadow:0 16px 36px rgba(0,0,0,.16);
}

.gallery-show__lead-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.gallery-show__lead-badge,
.gallery-show__viewer-badge{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:rgba(232,238,245,.74);
  font-size:.84rem;
  font-weight:700;
}

.gallery-show__lead-text{
  margin:0;
  color:rgba(232,238,245,.76);
  line-height:1.7;
}

.gallery-show__lead-text strong{
  color:#fff4e7;
}

.gallery-show__lead-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.gallery-show__lead-chip{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(216,91,73,.22);
  background:rgba(216,91,73,.10);
  color:#ffe1d1;
  font-size:.84rem;
  font-weight:700;
}

.gallery-show__viewer-shell{
  display:grid;
  gap:18px;
  padding:20px;
  border-radius:28px;
  border:1px solid rgba(120,88,73,.28);
  background:
    radial-gradient(circle at top right, rgba(88,101,242,.10), transparent 28%),
    linear-gradient(180deg, rgba(24,20,22,.88), rgba(16,13,16,.96));
  box-shadow:0 22px 52px rgba(0,0,0,.22);
}

.gallery-show__viewer-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.gallery-show__viewer-title{
  color:#fff4e7;
  font-size:1rem;
  font-weight:700;
}

.gallery-show__viewer{
  display:grid;
  gap:14px;
}

.gallery-show__media{
  position:relative;
  overflow:hidden;
  border-radius:26px;
  border:1px solid rgba(120,88,73,.32);
  background:rgba(255,255,255,.03);
  box-shadow:0 22px 46px rgba(0,0,0,.20);
}

.gallery-show__media img{
  width:100%;
  height:auto;
  display:block;
}

.gallery-show__carousel .carousel-inner,
.gallery-show__carousel .carousel-item{
  background:rgba(255,255,255,.03);
}

.gallery-show__carousel .carousel-control-prev,
.gallery-show__carousel .carousel-control-next{
  width:64px;
  opacity:.9;
}

.gallery-show__carousel .carousel-control-prev-icon,
.gallery-show__carousel .carousel-control-next-icon{
  background-color:rgba(14,18,24,.72);
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  background-size:48% 48%;
  width:46px;
  height:46px;
}

.gallery-show__carousel .carousel-control-prev:hover,
.gallery-show__carousel .carousel-control-prev:focus-visible,
.gallery-show__carousel .carousel-control-next:hover,
.gallery-show__carousel .carousel-control-next:focus-visible{
  opacity:1;
}

.gallery-show__toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.gallery-show__toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 16px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  background:rgba(255,255,255,.04);
  color:#fff0e1;
  font-size:.92rem;
  font-weight:700;
  cursor:pointer;
  transition:transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.gallery-show__toggle:hover,
.gallery-show__toggle:focus-visible{
  transform:translateY(-1px);
  background:rgba(255,255,255,.08);
  border-color:rgba(224,187,134,.26);
  color:#fff7ef;
}

.gallery-show__status{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  color:rgba(232,238,245,.72);
  font-size:.9rem;
  font-weight:700;
}

.gallery-show__thumbs{
  display:grid;
  gap:12px;
  grid-template-columns:repeat(auto-fit, minmax(110px, 1fr));
}

.gallery-show__thumb{
  padding:0;
  overflow:hidden;
  cursor:pointer;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  transition:border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.gallery-show__thumb:hover{
  transform:translateY(-2px);
  border-color:rgba(145,185,255,.36);
}

.gallery-show__thumb.is-active{
  border-color:rgba(88,101,242,.72);
  box-shadow:0 14px 28px rgba(88,101,242,.18);
}

.gallery-show__thumb img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  display:block;
}

.gallery-show__aside{
  display:grid;
  gap:18px;
  align-content:start;
}

.gallery-show__aside-card{
  display:grid;
  gap:18px;
  padding:24px;
  border-radius:26px;
  border:1px solid rgba(120,88,73,.28);
  background:linear-gradient(180deg, rgba(24,20,22,.90), rgba(16,13,16,.96));
  box-shadow:0 18px 42px rgba(0,0,0,.18);
}

.gallery-show__aside-card--intro{
  background:
    radial-gradient(circle at top right, rgba(216,91,73,.14), transparent 34%),
    linear-gradient(180deg, rgba(24,20,22,.92), rgba(16,13,16,.98));
}

.gallery-show__aside-summary{
  margin:0;
  color:rgba(232,238,245,.76);
  line-height:1.7;
}

.gallery-show__section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.gallery-show__section-head h2,
.gallery-show__section-head h3{
  margin:0;
  font-size:1.1rem;
  color:#fff4e7;
}

.gallery-show__section-head span{
  color:rgba(232,238,245,.62);
  font-size:.88rem;
}

.gallery-show__stats{
  display:grid;
  gap:14px;
  grid-template-columns:repeat(3, minmax(0,1fr));
}

.gallery-stat{
  display:grid;
  gap:4px;
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
}

.gallery-stat strong{
  font-size:1.1rem;
  color:#fff4e7;
}

.gallery-stat span{
  color:rgba(232,238,245,.66);
  font-size:.9rem;
}

.gallery-info-list{
  display:grid;
  gap:12px;
  grid-template-columns:repeat(2, minmax(0,1fr));
}

.gallery-info-list div{
  display:grid;
  gap:8px;
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
}

.gallery-info-list span{
  color:rgba(232,238,245,.62);
  font-size:.84rem;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.gallery-info-list strong{
  color:#fff4e7;
  text-align:left;
}

.gallery-caption{
  padding:18px;
  border-radius:20px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  color:rgba(232,238,245,.82);
  line-height:1.7;
  overflow-wrap:anywhere;
}

.gallery-caption--under-media{
  min-height:84px;
}

.gallery-caption__eyebrow{
  display:inline-flex;
  align-items:center;
  width:max-content;
  min-height:30px;
  margin-bottom:10px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:#ffe1d1;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.gallery-caption__body > :last-child{
  margin-bottom:0;
}

.gallery-actions{
  display:grid;
  gap:12px;
}

.gallery-actions .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:46px;
}

.gallery-comments__actions{
  display:flex;
  justify-content:flex-end;
  margin-top:4px;
}

.gallery-comments__cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:auto;
  min-width:280px;
  max-width:100%;
  min-height:46px;
  padding:0 16px;
  border-radius:12px;
  border:1px solid var(--discord-border);
  background:linear-gradient(180deg, var(--discord), var(--discord-dark));
  color:#fff;
  font-weight:700;
  box-shadow:0 12px 24px rgba(88,101,242,.22);
}

.gallery-comments__cta:hover{
  color:#fff;
  filter:brightness(1.08);
}

.gallery-comments__cta:active{
  filter:brightness(.96);
}

.gallery-comments__cta svg{
  width:18px;
  height:18px;
  display:inline-block;
}

.gallery-pagination{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:4px;
}

.gallery-pagination__status{
  color:rgba(232,238,245,.72);
  font-weight:600;
}

.btn.is-disabled{
  pointer-events:none;
  opacity:.45;
}

.gallery-comments{
  display:grid;
  gap:14px;
}

.gallery-comments__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.gallery-comments__head h3{
  margin:0;
  font-size:1.05rem;
  color:#fff4e7;
}

.gallery-comments__head span{
  color:rgba(232,238,245,.66);
  font-size:.92rem;
}

.gallery-comments__list{
  display:grid;
  gap:12px;
}

.gallery-comments__list--wide{
  grid-template-columns:repeat(3, minmax(0,1fr));
  align-items:start;
}

.gallery-comment{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:14px;
  align-items:flex-start;
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
}

.gallery-comment__avatar{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid rgba(216,91,73,.24);
  background:rgba(216,91,73,.10);
  color:#ffd8c5;
  font-size:.94rem;
  font-weight:800;
  letter-spacing:.03em;
}

.gallery-comment__body{
  display:grid;
  gap:8px;
  min-width:0;
}

.gallery-comment__meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.gallery-comment__meta strong{
  color:#fff4e7;
  font-size:.98rem;
}

.gallery-comment__meta span{
  color:rgba(232,238,245,.6);
  font-size:.84rem;
}

.gallery-comment p{
  margin:0;
  color:rgba(232,238,245,.82);
  line-height:1.6;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  line-clamp:7;
  -webkit-line-clamp:7;
  overflow:hidden;
  max-height:11.2em;
  overflow-wrap:anywhere;
}

.gallery-comment.is-expanded p{
  display:block;
  line-clamp:none;
  -webkit-line-clamp:unset;
  overflow:visible;
  max-height:none;
}

.gallery-comment__toggle{
  align-self:flex-start;
  padding:0;
  border:0;
  background:none;
  color:#cfd8ff;
  font-size:.88rem;
  font-weight:700;
  line-height:1.4;
  cursor:pointer;
  transition:color .18s ease, opacity .18s ease;
}

.gallery-comment__toggle:hover,
.gallery-comment__toggle:focus-visible{
  color:#fff;
  text-decoration:underline;
}

.gallery-comment__toggle[hidden]{
  display:none !important;
}

.gallery-comments__empty{
  padding:14px 16px;
  border-radius:18px;
  border:1px dashed rgba(255,255,255,.12);
  color:rgba(232,238,245,.64);
}

@media (max-width: 1199px){
  .gallery-comments__list--wide{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 991px){
  .gallery-grid,
  .gallery-archive-grid,
  .gallery-collection-links,
  .gallery-tag-grid,
  .gallery-show__top,
  .gallery-show__stats{
    grid-template-columns:1fr;
  }

  .gallery-info-list{
    grid-template-columns:1fr;
  }

  .gallery-comments__list--wide{
    grid-template-columns:1fr;
  }
}

@media (max-width: 767px){
  .gallery-show__lead,
  .gallery-show__viewer-shell,
  .gallery-show__aside-card{
    padding:20px;
  }

  .gallery-show__lead-top,
  .gallery-show__viewer-header{
    align-items:flex-start;
  }

  .gallery-show__toolbar{
    align-items:stretch;
  }

  .gallery-show__toggle,
  .gallery-show__status{
    width:100%;
    justify-content:center;
  }

  .gallery-show__carousel .carousel-control-prev,
  .gallery-show__carousel .carousel-control-next{
    width:52px;
  }

  .gallery-hero{
    padding:22px 20px;
  }

  .gallery-comments__head,
  .gallery-comment__meta{
    flex-direction:column;
    align-items:flex-start;
  }

  .gallery-comment{
    grid-template-columns:1fr;
  }

  .gallery-comment p{
    line-clamp:5;
    -webkit-line-clamp:5;
    max-height:8em;
  }

  .gallery-comment.is-expanded p{
    max-height:none;
  }

  .gallery-comments__actions{
    justify-content:stretch;
  }

  .gallery-comments__cta{
    width:100%;
    min-width:0;
  }

  .gallery-collection-entry__head,
  .gallery-tag-card__head{
    flex-direction:column;
    align-items:flex-start;
  }

  .gallery-pagination{
    flex-direction:column;
    align-items:flex-start;
  }

  .gallery-section__head{
    flex-direction:column;
    align-items:flex-start;
  }

  .gallery-strip{
    grid-auto-columns:minmax(220px,82vw);
  }
}
