.gallery-header{
  background: #12121a;
}
.logo-gallery-rest{
  color: #e8e8f0;
  font-weight: 800;
}
.gallery-page{
  min-height: 70vh;
  background: linear-gradient(180deg, #12121a 0%, #1e1e2e 40%, #252536 100%);
  color: #eaeaf2;
}
.gallery-title{
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: #fff;
}
.gallery-counter{
  font-weight: 700;
  opacity: 0.9;
}
.gallery-breadcrumb{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 13px;
  color: #b8b8c8;
  margin-bottom: 18px;
  justify-content: space-between;
}
.gallery-breadcrumb-pin{
  color: var(--knight-orange, #ff6a00);
  margin-right: 2px;
}
.gallery-crumb{
  color: #e8e8f0;
  text-decoration: none;
  font-weight: 600;
}
.gallery-crumb:hover,
.gallery-crumb:focus-visible{
  color: var(--knight-orange, #ff6a00);
  text-decoration: underline;
}
.gallery-crumb-static{
  color: #fff;
  font-weight: 700;
}
.gallery-view-original{
  margin-left: auto;
  color: var(--knight-orange, #ff6a00);
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
}
.gallery-view-original:hover{
  text-decoration: underline;
  color: #ff8533;
}
.gallery-stage-wrap{
  max-width: 920px;
  margin: 0 auto;
}
.gallery-stage{
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  background: #000;
}
.gallery-main-img{
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  max-height: min(78vh, 900px);
  object-fit: contain;
  margin: 0 auto;
}
.gallery-zone{
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffdc42;
  transition: background .2s ease, color .2s ease;
  z-index: 2;
}
.gallery-zone-prev{ left: 0; }
.gallery-zone-next{ right: 0; }
.gallery-zone:hover{
  background: rgba(0,0,0,.35);
  color: #fff176;
}
.gallery-zone-disabled{
  pointer-events: none;
  color: rgba(255,220,66,.35);
}
.gallery-zone-disabled .gallery-arrow{
  opacity: 0 !important;
}
.gallery-arrow{
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 12px rgba(0,0,0,.8);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.6));
  opacity: 0;
  transition: opacity .2s ease;
}
.gallery-zone:hover .gallery-arrow{
  opacity: 1;
}
.gallery-zone-disabled .gallery-arrow{
  opacity: 0.35;
}
.gallery-arrow-muted{
  opacity: 0.35 !important;
}
.gallery-zone-hint{
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transition: opacity .2s ease;
  text-shadow: 0 1px 6px #000;
}
.gallery-zone:hover .gallery-zone-hint{
  opacity: 1;
}
.gallery-zone-disabled .gallery-zone-hint{
  opacity: 0.45;
}
/* Keyboard hint overlaid on image, bottom-right (pointer-events none) */
.gallery-kb-overlay{
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  pointer-events: none;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  color: #ff9800;
  text-shadow: 0 1px 8px rgba(0,0,0,.85), 0 0 1px #000;
  line-height: 1.35;
}
.gallery-kb-overlay kbd{
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,152,0,.5);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11px;
  color: #ffe0b2;
  font-style: normal;
}
.gallery-like-wrap{
  display: flex;
  justify-content: center;
  margin: 20px 0 8px;
}
.gallery-like-btn{
  border: 0;
  background: linear-gradient(180deg, #ff8c42, var(--knight-orange, #ff6a00));
  color: #fff;
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.gallery-comments-card{
  background: #f7f7fb;
  color: #222;
  border-radius: 12px;
  padding: 18px;
  margin-top: 12px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.gallery-comments-head{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 12px;
}
.gallery-comments-heading{
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
  flex: 1;
  text-transform: lowercase;
  color: #111;
}
.gallery-publish-btn{
  background: var(--knight-orange, #ff6a00) !important;
  color: #fff !important;
  border: 0 !important;
  font-weight: 700;
}
.gallery-latest-title{
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #111;
}
.gallery-comment-item{
  padding: 12px 0;
  border-top: 1px solid #ddd;
}
.gallery-comment-item:first-of-type{
  border-top: 0;
}
.gallery-comment-author{
  font-weight: 800;
  font-size: 14px;
}
.gallery-comment-body{
  white-space: pre-wrap;
  font-size: 14px;
  margin: 4px 0 8px;
}
.gallery-vote-btn{
  color: #555 !important;
}

@media (max-width: 576px){
  .gallery-breadcrumb{
    flex-direction: column;
    align-items: flex-start;
  }
  .gallery-view-original{
    margin-left: 0;
  }
}
