.go-gallery-page {
  --go-gallery-primary: #c7f000;
  --go-gallery-secondary: #2800f0;
  --go-gallery-text: #111111;
  --go-gallery-muted: #6b7280;
  --go-gallery-surface: rgba(255, 255, 255, 0.62);
  --go-gallery-surface-soft: rgba(17, 17, 17, 0.05);
  --go-gallery-border: rgba(17, 17, 17, 0.08);
  --go-gallery-border-strong: rgba(17, 17, 17, 0.14);
  --go-gallery-shadow: 0 18px 36px rgba(17, 24, 39, 0.1);
  color: var(--go-gallery-text);
  background: transparent;
}

html.dark .go-gallery-page,
body.dark .go-gallery-page,
body.dark-mode .go-gallery-page,
body.is-dark-theme .go-gallery-page,
body.newsx-dark-mode .go-gallery-page,
[data-theme="dark"] .go-gallery-page,
html[class*="dark"] .go-gallery-page,
body[class*="dark"] .go-gallery-page {
  --go-gallery-text: #f5f7fa;
  --go-gallery-muted: #a8b0bd;
  --go-gallery-surface: rgba(15, 15, 18, 0.58);
  --go-gallery-surface-soft: rgba(255, 255, 255, 0.06);
  --go-gallery-border: rgba(255, 255, 255, 0.09);
  --go-gallery-border-strong: rgba(255, 255, 255, 0.16);
  --go-gallery-shadow: 0 20px 42px rgba(0, 0, 0, 0.26);
}

.go-gallery-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(22px, 3vw, 36px) 0 72px;
}

.go-gallery-page a {
  color: inherit;
  text-decoration: none;
}

.go-gallery-page h1,
.go-gallery-page h2,
.go-gallery-page h3 {
  margin: 0;
  color: var(--go-gallery-text);
  font-family: "Sora", "Inter", system-ui, sans-serif;
  letter-spacing: 0;
}

.go-gallery-hero {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 30px) 0 22px;
  border-bottom: 1px solid var(--go-gallery-border);
}

.go-gallery-hero__copy {
  display: grid;
  gap: 10px;
  max-width: 780px;
}

.go-gallery-kicker,
.go-gallery-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--go-gallery-primary);
  color: #111111;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.go-gallery-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.95;
}

.go-gallery-hero p,
.go-gallery-intro,
.go-gallery-meta {
  color: var(--go-gallery-muted);
  font-family: "Inter", system-ui, sans-serif;
}

.go-gallery-hero p {
  max-width: 62ch;
  margin: 0;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.6;
}

.go-gallery-count {
  color: var(--go-gallery-muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.go-gallery-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 820px;
}

.go-gallery-search input {
  min-width: 0;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--go-gallery-border);
  border-radius: 18px;
  background: var(--go-gallery-surface);
  color: var(--go-gallery-text);
  font: 500 15px/1.2 "Inter", system-ui, sans-serif;
  outline: none;
}

.go-gallery-search input::placeholder {
  color: var(--go-gallery-muted);
}

.go-gallery-search input:focus-visible {
  border-color: var(--go-gallery-secondary);
  box-shadow: 0 0 0 3px rgba(40, 0, 240, 0.18);
}

.go-gallery-search button,
.go-gallery-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--go-gallery-secondary);
  border-radius: 999px;
  background: var(--go-gallery-secondary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.go-gallery-search button:hover,
.go-gallery-search button:focus-visible,
.go-gallery-button:hover,
.go-gallery-button:focus-visible {
  border-color: var(--go-gallery-primary);
  background: var(--go-gallery-primary);
  color: #111111;
  transform: translateY(-1px);
}

.go-gallery-filterbar,
.go-gallery-tags,
.go-gallery-topic-cloud__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.go-gallery-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--go-gallery-surface-soft);
  color: var(--go-gallery-text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.go-gallery-chip em {
  color: var(--go-gallery-muted);
  font-style: normal;
  font-size: 11px;
}

.go-gallery-chip:hover,
.go-gallery-chip:focus-visible {
  border-color: var(--go-gallery-secondary);
  color: var(--go-gallery-secondary);
  outline: none;
}

.go-gallery-chip.is-active {
  background: var(--go-gallery-secondary);
  color: #ffffff;
}

html.dark .go-gallery-chip.is-active,
body.dark .go-gallery-chip.is-active,
body.dark-mode .go-gallery-chip.is-active,
body.is-dark-theme .go-gallery-chip.is-active,
body.newsx-dark-mode .go-gallery-chip.is-active,
[data-theme="dark"] .go-gallery-chip.is-active,
html[class*="dark"] .go-gallery-chip.is-active,
body[class*="dark"] .go-gallery-chip.is-active {
  background: var(--go-gallery-primary);
  color: #111111;
}

.go-gallery-chip.is-active em {
  color: currentColor;
  opacity: 0.72;
}

.go-gallery-chip--clear {
  border-color: var(--go-gallery-border);
}

.go-gallery-intro {
  margin: 22px 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--go-gallery-border);
  font-size: 15px;
  line-height: 1.7;
}

.go-gallery-intro > *:first-child {
  margin-top: 0;
}

.go-gallery-intro > *:last-child {
  margin-bottom: 0;
}

.go-gallery-featured {
  margin-top: 26px;
}

.go-gallery-featured-media,
.go-gallery-card-gallery {
  position: relative;
  margin: 0;
}

.go-gallery-page .go-gs-gallery.go-post-gallery {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.go-gallery-page .go-gallery-card-gallery.go-post-gallery {
  display: grid;
  gap: 8px;
}

.go-gallery-featured-media {
  min-height: clamp(340px, 48vw, 620px);
  overflow: hidden;
  border-radius: 22px;
  background: #050505;
}

.go-gallery-featured-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(5, 5, 5, 0.78), rgba(5, 5, 5, 0.28) 54%, rgba(5, 5, 5, 0.08));
  pointer-events: none;
}

.go-gallery-featured-media .go-gallery-main-image,
.go-gallery-card-media .go-gallery-main-image {
  position: absolute;
  inset: 0;
  margin: 0 !important;
}

.go-gallery-featured-media img,
.go-gallery-card-media img,
.go-gallery-thumb-item img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  background: #0f0f12;
}

.go-gallery-featured-content {
  position: absolute;
  left: clamp(18px, 4vw, 46px);
  bottom: clamp(18px, 4vw, 44px);
  z-index: 2;
  display: grid;
  gap: 12px;
  max-width: min(620px, calc(100% - 36px));
  color: #ffffff;
}

.go-gallery-featured-content h2 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  text-wrap: balance;
}

.go-gallery-featured-content .go-gallery-meta {
  color: rgba(255, 255, 255, 0.82);
}

.go-gallery-section {
  margin-top: 34px;
}

.go-gallery-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.go-gallery-section-head h2,
.go-gallery-topic-cloud h2,
.go-gallery-empty h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.go-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 24px);
}

.go-gallery-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 20px;
  background: transparent;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.go-gallery-card:hover,
.go-gallery-card:focus-within {
  border-color: var(--go-gallery-border);
  box-shadow: var(--go-gallery-shadow);
  transform: translateY(-2px);
}

.go-gallery-card-gallery {
  display: grid;
  gap: 8px;
}

.go-gallery-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 20px;
  background: #050505;
}

.go-gallery-card.is-wide .go-gallery-card-media {
  aspect-ratio: 16 / 8.6;
}

.go-gallery-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0), rgba(5, 5, 5, 0.54));
  pointer-events: none;
}

.go-gallery-card-body {
  display: grid;
  gap: 9px;
  padding: 0 4px 4px;
}

.go-gallery-card-body h3 {
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
  line-height: 1.12;
}

.go-gallery-card-body h3 a:hover,
.go-gallery-card-body h3 a:focus-visible,
.go-gallery-featured-content h2 a:hover,
.go-gallery-featured-content h2 a:focus-visible {
  color: var(--go-gallery-primary);
  outline: none;
}

.go-gallery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.go-gallery-meta span + span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 12px;
  border-radius: 999px;
  background: var(--go-gallery-primary);
  vertical-align: 0.12em;
}

.go-gallery-tags .go-gallery-chip {
  min-height: 26px;
  padding-inline: 9px;
  color: var(--go-gallery-muted);
  font-size: 11px;
}

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

.go-gallery-thumb-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0 !important;
  border-radius: 14px;
  background: #0f0f12;
}

.go-gallery-hidden-item,
.go-gallery-page .go-gallery-hidden-item {
  display: none !important;
}

.go-gallery-page .go-post-gallery__item::after {
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.96)' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='m20 20-4.35-4.35'/%3E%3C/svg%3E") center/17px 17px no-repeat,
    rgba(5, 5, 5, 0.7);
}

.go-gallery-thumbs .go-post-gallery__item::after {
  display: none;
}

.go-gallery-page .go-post-gallery__image,
.go-gallery-page .go-post-gallery .go-gs-gallery-item img {
  border-radius: inherit;
  box-shadow: none;
}

.go-gallery-page .go-post-gallery__item:hover .go-post-image-can-zoom,
.go-gallery-page .go-gs-gallery-item:hover img.go-post-image-can-zoom {
  transform: scale(1.025);
  box-shadow: none;
}

.go-gallery-topic-cloud {
  display: grid;
  gap: 12px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--go-gallery-border);
}

.go-gallery-pagination {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.go-gallery-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.go-gallery-pagination .page-numbers a,
.go-gallery-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--go-gallery-border);
  border-radius: 999px;
  background: var(--go-gallery-surface-soft);
  color: var(--go-gallery-text);
  font-size: 13px;
  font-weight: 800;
}

.go-gallery-pagination .page-numbers a:hover,
.go-gallery-pagination .page-numbers a:focus-visible {
  border-color: var(--go-gallery-secondary);
  background: var(--go-gallery-secondary);
  color: #ffffff;
  outline: none;
}

.go-gallery-pagination .page-numbers .current {
  border-color: var(--go-gallery-primary);
  background: var(--go-gallery-primary);
  color: #111111;
}

.go-gallery-empty {
  display: grid;
  gap: 10px;
  margin-top: 30px;
  padding: 24px 0;
  border-top: 1px solid var(--go-gallery-border);
}

.go-gallery-empty p {
  margin: 0;
  color: var(--go-gallery-muted);
}

@media (min-width: 1024px) {
  .go-gallery-card:nth-child(4n + 2) .go-gallery-card-media {
    aspect-ratio: 4 / 5;
  }

  .go-gallery-card:nth-child(4n + 3) {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
    align-items: start;
  }

  .go-gallery-card:nth-child(4n + 3) .go-gallery-card-media {
    aspect-ratio: 4 / 5;
  }
}

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

  .go-gallery-featured-media::before {
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.2), rgba(5, 5, 5, 0.78));
  }
}

@media (max-width: 767px) {
  .go-gallery-shell {
    width: min(100% - 24px, 1180px);
    padding-bottom: 54px;
  }

  .go-gallery-hero {
    gap: 14px;
    padding-top: 18px;
  }

  .go-gallery-hero h1 {
    font-size: clamp(2.2rem, 13vw, 3.2rem);
  }

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

  .go-gallery-search button {
    width: 100%;
  }

  .go-gallery-filterbar {
    flex-wrap: nowrap;
    margin-inline: -12px;
    padding: 0 12px 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .go-gallery-filterbar::-webkit-scrollbar {
    display: none;
  }

  .go-gallery-chip {
    flex: 0 0 auto;
  }

  .go-gallery-featured-media {
    min-height: min(470px, 118vw);
    border-radius: 18px;
  }

  .go-gallery-featured-content {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }

  .go-gallery-featured-content h2 {
    font-size: clamp(1.65rem, 8vw, 2.5rem);
  }

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

  .go-gallery-card,
  .go-gallery-card:hover,
  .go-gallery-card:focus-within {
    border-color: transparent;
    box-shadow: none;
    transform: none;
  }

  .go-gallery-card-media,
  .go-gallery-card.is-wide .go-gallery-card-media {
    aspect-ratio: 16 / 10;
    border-radius: 18px;
  }

  .go-gallery-thumbs {
    gap: 6px;
  }

  .go-gallery-pagination {
    justify-content: flex-start;
  }

  .go-gallery-pagination .page-numbers {
    justify-content: flex-start;
  }
}

/* Galerias: use the shared editorial artwork instead of a flat page shell. */
.go-gallery-page {
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(247, 249, 252, 0.72) 0%, rgba(247, 249, 252, 0.54) 45%, rgba(247, 249, 252, 0.78) 100%),
    url("../images/editorial-backgrounds/editorial-games-light.png") center top / cover no-repeat !important;
  background-image:
    linear-gradient(180deg, rgba(247, 249, 252, 0.72) 0%, rgba(247, 249, 252, 0.54) 45%, rgba(247, 249, 252, 0.78) 100%),
    url("../images/editorial-backgrounds/editorial-games-light.png") !important;
}

html.dark .go-gallery-page,
body.dark .go-gallery-page,
body.dark-mode .go-gallery-page,
body.is-dark-theme .go-gallery-page,
body.newsx-dark-mode .go-gallery-page,
[data-theme="dark"] .go-gallery-page,
html[class*="dark"] .go-gallery-page,
body[class*="dark"] .go-gallery-page {
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.72) 0%, rgba(5, 5, 5, 0.48) 45%, rgba(5, 5, 5, 0.8) 100%),
    url("../images/editorial-backgrounds/editorial-games-dark.png") center top / cover no-repeat !important;
  background-image:
    linear-gradient(180deg, rgba(5, 5, 5, 0.72) 0%, rgba(5, 5, 5, 0.48) 45%, rgba(5, 5, 5, 0.8) 100%),
    url("../images/editorial-backgrounds/editorial-games-dark.png") !important;
}

body:has(.go-gallery-page) :is(#page, #content, .site, .site-content, .content-area, .site-main) {
  background: transparent !important;
  background-image: none !important;
}
