/* GALERI: komposisi Fragments dan pengaturan gambar
   File ini dibaca sesuai urutan stylesheet pada index.html. */

.carousel-track .poster:has(img),
.carousel-track .poster.real-cover,
.carousel-track .poster.youtube-cover {
  filter: none !important;
}

#home .hero-visual-composition {
  grid-template-columns: minmax(200px,.72fr) minmax(0,1fr) !important;
  gap: clamp(10px,1.35vw,18px) !important;
  align-items: stretch !important;
}

#home .hero-portrait-small {
  aspect-ratio: auto !important;
  height: clamp(330px,33vw,410px) !important;
  min-height: 0 !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center 22% !important;
}

#about .portrait {
  aspect-ratio: auto !important;
  height: clamp(255px,30vw,335px) !important;
  min-height: 0 !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center 20% !important;
}

#home .competition-stage {
  height: clamp(270px,29vw,360px) !important;
}

#home .competition-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 42% !important;
  aspect-ratio: auto !important;
}

#gallery .art-gallery {
  column-gap: clamp(12px,1.7vw,22px) !important;
  margin-top: 28px;
}

#gallery .art-gallery > .gallery-piece {
  display: inline-block !important;
  grid-column: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  vertical-align: top !important;
  break-inside: avoid !important;
  -webkit-column-break-inside: avoid !important;
  margin: 0 0 20px !important;
}

#gallery .art-gallery > .gallery-piece .gallery-image {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
}

#gallery .art-gallery > .gallery-piece .gallery-image img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}

#gallery .art-gallery .gallery-piece figcaption {
  margin-top: 5px !important;
  padding-top: 8px !important;
}

#gallery .art-gallery .gallery-piece figcaption strong {
  font-size: 11px !important;
}

@media (max-width:970px) {
  #home .hero-visual-composition {
    grid-template-columns: minmax(160px,.68fr) minmax(0,1fr) !important;
  }
  #home .hero-portrait-small {
    height: 350px !important;
  }
  #home .competition-stage {
    height: 310px !important;
  }
  #gallery .art-gallery {
    column-count: 3 !important;
  }
}

@media (max-width:700px) {
  #home .hero-visual-composition {
    grid-template-columns: minmax(125px,.65fr) minmax(0,1fr) !important;
  }
  #home .hero-portrait-small {
    height: 295px !important;
  }
  #home .competition-stage {
    height: 238px !important;
  }
  #gallery .art-gallery {
    column-count: 2 !important;
    column-gap: 12px !important;
  }
}

@media (max-width:440px) {
  #home .hero-visual-composition {
    grid-template-columns: minmax(112px,.62fr) minmax(0,1fr) !important;
    gap: 9px !important;
  }
  #home .hero-portrait-small {
    height: 270px !important;
  }
  #home .competition-stage {
    height: 210px !important;
  }
  #gallery .art-gallery {
    column-count: 2 !important;
    column-gap: 9px !important;
  }
  #gallery .art-gallery > .gallery-piece {
    margin-bottom: 14px !important;
  }
  #gallery .art-gallery .gallery-piece figcaption strong {
    font-size: 10px !important;
  }
}

@media (max-width:335px) {
  #gallery .art-gallery {
    column-count: 1 !important;
  }
}

#gallery .art-gallery .gallery-piece[data-category="Game artwork"] .gallery-image,
#gallery .gallery-archive-grid .gallery-piece[data-category="Game artwork"] .gallery-image {
  background: #0b0b0b !important;
  border-color: #343434 !important;
}

#gallery .art-gallery .gallery-piece[data-category="Game artwork"] img,
#gallery .gallery-archive-grid .gallery-piece[data-category="Game artwork"] img {
  object-fit: contain !important;
  filter: none !important;
  height: auto !important;
  aspect-ratio: auto !important;
}

#gallery .gallery-piece figcaption strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#gallery .art-gallery > .pusaka-pair-group {
  display: inline-block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 20px !important;
  vertical-align: top !important;
  break-inside: avoid !important;
  -webkit-column-break-inside: avoid !important;
  overflow: hidden;
}

#gallery .art-gallery > .pusaka-pair-group::before {
  content: 'PUSAKA / MISSION MANCALA';
  display: block;
  margin: 0 0 9px;
  font: 9px/1.4 monospace;
  letter-spacing: .13em;
  color: #aaa;
}

#gallery .art-gallery .pusaka-pair-group .gallery-piece {
  display: inline-block !important;
  vertical-align: top !important;
  width: calc(50% - 5px) !important;
  max-width: calc(50% - 5px) !important;
  margin: 0 !important;
  padding: 0 !important;
  break-inside: avoid !important;
}

#gallery .art-gallery .pusaka-pair-group .gallery-piece:first-of-type {
  margin-right: 10px !important;
}

#gallery .art-gallery .pusaka-pair-group .gallery-image {
  align-items: center !important;
  justify-content: center !important;
}

#gallery .art-gallery .pusaka-pair-group .gallery-image img {
  filter: none !important;
}

#gallery .art-gallery .pusaka-pair-group .gallery-piece figcaption {
  display: none !important;
}

#gallery .art-gallery .pusaka-pair-group .pusaka-pair-caption {
  border-top: 1px solid #333;
  margin-top: 9px;
  padding: 8px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #e5e5e5;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width:700px) {
  #gallery .art-gallery .pusaka-pair-group .gallery-image {
    padding: 3px !important;
  }
  #gallery .art-gallery .pusaka-pair-group .pusaka-pair-caption {
    font-size: 10px;
  }
  #gallery .art-gallery > .pusaka-pair-group::before {
    font-size: 8px;
    letter-spacing: .08em;
  }
  #gallery .art-gallery .pusaka-pair-group .gallery-piece:first-of-type {
    margin-right: 6px !important;
  }
  #gallery .art-gallery .pusaka-pair-group .gallery-piece {
    width: calc(50% - 3px) !important;
    max-width: calc(50% - 3px) !important;
  }
}

#gallery .art-gallery .pusaka-pair-group .gallery-image {
  aspect-ratio: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  display: block !important;
  line-height: 0 !important;
  overflow: visible !important;
}

#gallery .art-gallery .pusaka-pair-group .gallery-image img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 1 / 2 !important;
  object-fit: contain !important;
  object-position: center !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

#gallery .art-gallery .pusaka-pair-group .gallery-piece {
  overflow: visible !important;
}

#gallery .art-gallery .pusaka-pair-group .gallery-image:hover img {
  transform: none !important;
}

#gallery .art-gallery {
  column-count: initial !important;
}

#gallery .art-gallery > .visual-group {
  min-width: 0;
  display: block;
  break-inside: auto;
  margin: 0;
  padding: 0;
}

#gallery .art-gallery > .visual-group-films {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(10px,1.4vw,18px);
  align-items: start;
}

#gallery .visual-group-films > .gallery-piece {
  display: block !important;
  grid-column: auto !important;
  width: 100% !important;
  min-width: 0;
  max-width: 100% !important;
  margin: 0 !important;
}

#gallery .art-gallery > .visual-group-toys {
  column-count: 4;
  column-gap: clamp(10px,1.4vw,18px);
}

#gallery .visual-group-toys > .gallery-piece {
  display: inline-block !important;
  width: 100% !important;
  min-width: 0;
  max-width: 100% !important;
  vertical-align: top;
  grid-column: auto !important;
  margin: 0 0 18px !important;
  break-inside: avoid !important;
  -webkit-column-break-inside: avoid !important;
}

#gallery .art-gallery > .visual-group-art {
  display: flex !important;
  align-items: flex-start;
  justify-content: flex-start;
}

#gallery .art-gallery .visual-group-art > .pusaka-pair-group {
  display: block !important;
  width: min(100%,340px) !important;
  max-width: 340px !important;
  margin: 0 !important;
  padding: 0 !important;
  break-inside: avoid;
}

#gallery .art-gallery .visual-group-art > .pusaka-pair-group::before {
  content: none !important;
  display: none !important;
}

#gallery .visual-group .gallery-piece .gallery-image {
  aspect-ratio: auto !important;
  height: auto !important;
  max-height: none !important;
}

#gallery .visual-group .gallery-piece .gallery-image img {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  transform: none !important;
}

#gallery .visual-group .gallery-piece figcaption strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width:850px) {
  #gallery .art-gallery > .visual-group-toys {
    column-count: 3;
  }
}

@media (max-width:650px) {
  #gallery .art-gallery > .visual-group-films {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  #gallery .art-gallery > .visual-group-toys {
    column-count: 2;
  }
  #gallery .art-gallery > .visual-group + .visual-group {
    margin-top: 24px;
    padding-top: 24px;
  }
  #gallery .art-gallery .visual-group-art > .pusaka-pair-group {
    max-width: 310px !important;
  }
}

@media (max-width:380px) {
  #gallery .art-gallery > .visual-group-films {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  #gallery .art-gallery .visual-group-art > .pusaka-pair-group {
    max-width: 280px !important;
  }
}

#gallery .gallery-archive-grid > .gallery-piece[data-category="Game artwork"] {
  display: inline-block !important;
  width: min(100%,165px) !important;
  max-width: 165px !important;
  margin-right: 0 !important;
  vertical-align: top !important;
  break-inside: avoid !important;
}

#gallery .gallery-archive-grid > .gallery-piece[data-category="Game artwork"] .gallery-image {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  overflow: visible !important;
  border: 0 !important;
  padding: 0 !important;
}

#gallery .gallery-archive-grid > .gallery-piece[data-category="Game artwork"] .gallery-image img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  display: block !important;
}

@media (max-width:650px) {
  #gallery .gallery-archive-grid > .gallery-piece[data-category="Game artwork"] {
    width: min(100%,152px) !important;
    max-width: 152px !important;
  }
}

@media (max-width:380px) {
  #gallery .gallery-archive-grid > .gallery-piece[data-category="Game artwork"] {
    width: min(100%,137px) !important;
    max-width: 137px !important;
  }
}

#gallery .art-gallery {
  display: flex !important;
  flex-direction: column !important;
}

#gallery .art-gallery > .visual-group,
#gallery .art-gallery > .visual-group-films,
#gallery .art-gallery > .visual-group-toys,
#gallery .art-gallery > .visual-group-art {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  column-count: auto !important;
  grid-template-columns: none !important;
}

#gallery .art-gallery > .visual-group + .visual-group {
  border-top: 1px solid rgba(240,237,231,.035) !important;
  margin-top: clamp(22px,3.5vw,38px) !important;
  padding-top: clamp(22px,3.5vw,38px) !important;
}

#gallery .visual-group .inline-curated-films {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(10px,1.4vw,18px);
  align-items: start;
}

#gallery .visual-group .inline-curated-films > .gallery-piece {
  display: block !important;
  grid-column: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
}

#gallery .visual-group .inline-curated-toys {
  display: block;
  column-count: 4;
  column-gap: clamp(10px,1.4vw,18px);
}

#gallery .visual-group .inline-curated-toys > .gallery-piece {
  display: inline-block !important;
  width: 100% !important;
  max-width: 100% !important;
  grid-column: auto !important;
  vertical-align: top;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 18px !important;
}

#gallery .inline-curated-art > .pusaka-pair-group::before {
  content: none !important;
  display: none !important;
}

#gallery .gallery-inline-control {
  flex-wrap: wrap;
}

#gallery .gallery-inline-control .archive-toggle {
  border: 0;
  color: #d4d2cf;
  font-size: 11px;
}

#gallery .gallery-inline-control .archive-toggle:hover,
#gallery .gallery-inline-control .archive-toggle:focus-visible {
  border-color: white;
}

#gallery .gallery-inline-extra[hidden] {
  display: none !important;
}

#gallery .gallery-inline-extra {
  margin-top: clamp(16px,2.2vw,26px);
  padding-top: clamp(12px,1.5vw,18px);
  border-top: 0;
  min-width: 0;
}

@keyframes inlineGalleryReveal {
  from {
    opacity: .3;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion:reduce) {
  #gallery .gallery-inline-extra {
    animation: none;
  }
}

#gallery .gallery-inline-extra-films {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(10px,1.4vw,18px);
  align-items: start;
}

#gallery .gallery-inline-extra-toys {
  display: block;
  column-count: 4;
  column-gap: clamp(10px,1.4vw,18px);
}

#gallery .gallery-inline-extra-art {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(8px,1vw,12px);
}

#gallery .gallery-inline-extra > .gallery-piece {
  min-width: 0;
  max-width: 100%;
  grid-column: auto !important;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  vertical-align: top;
}

#gallery .gallery-inline-extra-films > .gallery-piece,
#gallery .gallery-inline-extra-toys > .gallery-piece {
  display: inline-block !important;
  width: 100% !important;
  margin: 0 0 18px !important;
}

#gallery .gallery-inline-extra-art > .gallery-piece {
  flex: 0 0 min(165px,calc((100% - 12px)/2));
  width: min(165px,calc((100% - 12px)/2)) !important;
  max-width: 165px !important;
  margin: 0 !important;
}

#gallery .gallery-inline-extra .gallery-image {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

#gallery .gallery-inline-extra .gallery-image img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  max-height: none !important;
  transform: none !important;
}

#gallery .gallery-inline-extra .gallery-piece figcaption strong,
#gallery .inline-curated .gallery-piece figcaption strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width:850px) {
  #gallery .visual-group .inline-curated-toys,
  #gallery .gallery-inline-extra-toys {
    column-count: 3;
  }
}

@media (max-width:650px) {
  #gallery .visual-group .inline-curated-films,
  #gallery .gallery-inline-extra-films {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  #gallery .visual-group .inline-curated-toys,
  #gallery .gallery-inline-extra-toys {
    column-count: 2;
  }
  #gallery .visual-group .inline-curated-art > .pusaka-pair-group {
    max-width: 310px !important;
  }
  #gallery .gallery-inline-extra-art > .gallery-piece {
    flex-basis: min(152px,calc((100% - 8px)/2));
    width: min(152px,calc((100% - 8px)/2)) !important;
    max-width: 152px !important;
  }
}

@media (max-width:380px) {
  #gallery .visual-group .inline-curated-art > .pusaka-pair-group {
    max-width: 280px !important;
  }
  #gallery .gallery-inline-extra-art > .gallery-piece {
    flex-basis: min(137px,calc((100% - 8px)/2));
    width: min(137px,calc((100% - 8px)/2)) !important;
    max-width: 137px !important;
  }
  #gallery .gallery-inline-control .gallery-archive-count {
    font-size: 9px;
  }
}

#gallery .gallery-inline-extra-art .gallery-image img {
  aspect-ratio: 1/2 !important;
}

#gallery .art-gallery .gallery-inline-extra-art .gallery-piece[data-category="Game artwork"] .gallery-image img {
  aspect-ratio: 1/2 !important;
}

#gallery .art-gallery {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  align-items: stretch !important;
}

#gallery .art-gallery > .visual-group {
  width: 100% !important;
  max-width: none !important;
  margin-inline: auto !important;
}

#gallery .art-gallery figcaption,
#gallery .art-gallery .pusaka-pair-caption {
  display: none !important;
}

#gallery .visual-group .inline-curated-films,
#gallery .visual-group .gallery-inline-extra-films {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: clamp(9px,1.25vw,16px) !important;
  justify-content: center !important;
  align-items: start !important;
  margin-inline: auto !important;
}

#gallery .visual-group .inline-curated-films > figure,
#gallery .visual-group .gallery-inline-extra-films > figure {
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  grid-column: auto !important;
}

#gallery .visual-group .inline-curated-toys,
#gallery .visual-group .gallery-inline-extra-toys {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
  column-count: auto !important;
  gap: clamp(9px,1.25vw,16px) !important;
  margin: 0 !important;
}

#gallery .gallery-justified-row {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: flex-start !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  gap: var(--justified-gap,14px) !important;
}

#gallery .gallery-justified-row > figure.gallery-piece {
  flex: 0 0 auto !important;
  display: block !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  break-inside: avoid !important;
}

#gallery .gallery-justified-row .gallery-image {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  overflow: visible !important;
}

#gallery .gallery-justified-row .gallery-image img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  transform: none !important;
}

#gallery .visual-group .inline-curated-art {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  margin-inline: auto !important;
}

#gallery .visual-group .inline-curated-art > .pusaka-pair-group {
  display: flex !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: clamp(9px,1.25vw,16px) !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

#gallery .visual-group .inline-curated-art .pusaka-pair-group > figure.gallery-piece {
  width: var(--pusaka-gallery-card) !important;
  max-width: var(--pusaka-gallery-card) !important;
  flex: 0 0 var(--pusaka-gallery-card) !important;
  margin: 0 !important;
  padding: 0 !important;
}

#gallery .visual-group .inline-curated-art .pusaka-pair-group > figure.gallery-piece:first-of-type {
  margin-right: 0 !important;
}

#gallery .visual-group .gallery-inline-extra-art {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: clamp(9px,1.25vw,16px) !important;
  margin-inline: auto !important;
  width: 100% !important;
}

#gallery .visual-group .gallery-inline-extra-art > figure.gallery-piece {
  flex: 0 0 var(--pusaka-gallery-card) !important;
  width: var(--pusaka-gallery-card) !important;
  max-width: var(--pusaka-gallery-card) !important;
  margin: 0 !important;
}

#gallery .gallery-inline-control {
  display: flex !important;
  width: 100% !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  margin: clamp(30px,4vw,52px) auto 0 !important;
  padding: 12px 0 0 !important;
  gap: 8px !important;
}

#gallery .gallery-inline-control .archive-toggle {
  display: inline-flex !important;
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important;
  white-space: normal;
}

#gallery .gallery-inline-control .gallery-archive-count {
  font-size: 10px;
  color: #777;
}

@media (max-width:700px) {
  #gallery .visual-group .inline-curated-films,
  #gallery .visual-group .gallery-inline-extra-films {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
  #gallery .visual-group .inline-curated-films > figure:last-child:nth-child(odd),
  #gallery .visual-group .gallery-inline-extra-films > figure:last-child:nth-child(odd) {
    grid-column: 1/-1 !important;
    max-width: min(100%,400px) !important;
    justify-self: center !important;
  }
}

@media (max-width:430px) {
  #gallery {
    --pusaka-gallery-card: clamp(125px,36vw,145px);
  }
}

#gallery .art-gallery .visual-group .gallery-inline-extra[hidden] {
  display: none !important;
}

*,*::before,*::after {
  transition-timing-function: ease-in-out !important;
  animation-timing-function: ease-in-out !important;
}

#gallery .gallery-inline-extra {
  animation: none !important;
}

#gallery .gallery-inline-control .archive-toggle {
  padding: 10px 22px !important;
  min-width: 92px;
  text-transform: lowercase;
  letter-spacing: .075em;
  border-bottom: 1px solid rgba(237,234,228,.45) !important;
  transition: color .28s ease-in-out,border-color .28s ease-in-out,background-color .28s ease-in-out !important;
}

#gallery .gallery-inline-control .archive-toggle:hover,
#gallery .gallery-inline-control .archive-toggle:focus-visible {
  color: #fff !important;
  background-color: #ffffff09 !important;
  border-bottom-color: rgba(255,255,255,.95) !important;
}

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

#gallery .gallery-inline-control {
  justify-content: center !important;
}

#gallery .gallery-inline-control #archive-toggle {
  background: #f5f5f3 !important;
  color: #141414 !important;
  border: 1px solid #f5f5f3 !important;
  border-radius: 2px !important;
  min-width: 110px !important;
  padding: 11px 23px !important;
  font: 500 12px/1.45 Arial,sans-serif !important;
  text-transform: lowercase !important;
  letter-spacing: .1em !important;
  cursor: pointer;
  transition: background-color .3s ease-in-out,color .3s ease-in-out,
    box-shadow .3s ease-in-out,transform .3s ease-in-out !important;
}

#gallery .gallery-inline-control #archive-toggle:hover {
  background: #dededc !important;
  color: #090909 !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 16px #0004;
}

#gallery .gallery-inline-control #archive-toggle:focus-visible {
  outline: 2px solid white;
  outline-offset: 4px;
}

html, body, #gallery, #gallery .art-gallery, #gallery .gallery-inline-control {
  overflow-anchor: none;
}

@media (prefers-reduced-motion:reduce) {
  #gallery .gallery-inline-control #archive-toggle {
    transition: none !important;
    transform: none !important;
  }
}

#gallery {
  --pusaka-gallery-card: clamp(96px, 11vw, 145px) !important;
}

#gallery .visual-group .inline-curated-art > .pusaka-pair-group,
#gallery .visual-group .gallery-inline-extra-art {
  justify-content: center !important;
}

#gallery .visual-group .inline-curated-art .pusaka-pair-group > figure.gallery-piece,
#gallery .visual-group .inline-curated-art .pusaka-pair-group > figure.gallery-piece:first-of-type,
#gallery .visual-group .gallery-inline-extra-art > figure.gallery-piece {
  width: var(--pusaka-gallery-card) !important;
  max-width: var(--pusaka-gallery-card) !important;
  flex: 0 0 var(--pusaka-gallery-card) !important;
  margin: 0 !important;
  padding: 0 !important;
}

#gallery .visual-group .inline-curated-art .pusaka-pair-group .gallery-image,
#gallery .visual-group .gallery-inline-extra-art .gallery-image {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  overflow: visible !important;
}

#gallery .visual-group .inline-curated-art .pusaka-pair-group img,
#gallery .visual-group .gallery-inline-extra-art img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1/2 !important;
  object-fit: contain !important;
}

@media (min-width:721px) {
  #gallery .visual-group .gallery-inline-extra-films {
    width: 66.2% !important;
    margin-inline: auto !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
}

@media (max-width:720px) {
  #gallery .visual-group .gallery-inline-extra-films {
    width: 100% !important;
    margin-inline: auto !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
  #gallery {
    --pusaka-gallery-card: clamp(86px,24vw,110px) !important;
  }
}

.project-detail-page .project-image-grid[data-project="Mission Mancala"] {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 16px !important;
  column-count: auto !important;
}

.project-detail-page .project-image-grid[data-project="Mission Mancala"] > .project-image-button {
  display: block !important;
  flex: 0 0 clamp(104px,13vw,154px) !important;
  width: clamp(104px,13vw,154px) !important;
  max-width: 154px !important;
  margin: 0 !important;
  break-inside: avoid !important;
}

.project-detail-page .project-image-grid[data-project="Mission Mancala"] .project-image-button img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1/2 !important;
  object-fit: contain !important;
}

@media (max-width:600px) {
  .project-detail-page .project-image-grid[data-project="Mission Mancala"] > .project-image-button {
    flex-basis: clamp(90px,25vw,118px) !important;
    width: clamp(90px,25vw,118px) !important;
    max-width: 118px !important;
  }
}

#gallery figure[data-category="Game artwork"] .gallery-zoom {
  display: none !important;
}

.project-detail-page #project-image-grid[data-project="Mission Mancala"] {
  display: block !important;
  column-count: auto !important;
  width: 100% !important;
}

.project-detail-page #project-image-grid[data-project="Mission Mancala"] .mission-visual-section {
  display: block;
  padding: 0;
  margin: 0 0 38px;
  border: 0;
}

.mission-visual-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0 16px;
}

.mission-visual-heading h4 {
  margin: 0;
  font: 500 12px/1.3 Arial,sans-serif;
  letter-spacing: .14em;
  color: #e9e9e9;
}

.mission-visual-heading span {
  font: 10px/1.4 monospace;
  color: #8c8c8c;
  white-space: nowrap;
}

.project-detail-page #project-image-grid[data-project="Mission Mancala"] .mission-screens-grid {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px 15px;
}

.project-detail-page #project-image-grid[data-project="Mission Mancala"] .mission-screens-grid .project-image-button {
  display: block !important;
  flex: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.project-detail-page #project-image-grid[data-project="Mission Mancala"] .mission-screens-grid .project-image-button img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: contain !important;
  border: 1px solid #353535;
  background: #080808;
}

.project-detail-page #project-image-grid[data-project="Mission Mancala"] .mission-pusaka-grid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: start;
  gap: 20px;
}

.project-detail-page #project-image-grid[data-project="Mission Mancala"] .mission-pusaka-grid .project-image-button {
  display: block !important;
  width: clamp(95px,12vw,145px) !important;
  flex: 0 0 clamp(95px,12vw,145px) !important;
  max-width: 145px !important;
  margin: 0 !important;
}

.project-detail-page #project-image-grid[data-project="Mission Mancala"] .mission-pusaka-grid .project-image-button img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1/2 !important;
  object-fit: contain !important;
}

@media (max-width:600px) {
  .project-detail-page #project-image-grid[data-project="Mission Mancala"] .mission-screens-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-detail-page #project-image-grid[data-project="Mission Mancala"] .mission-pusaka-grid .project-image-button {
    width: clamp(88px,26vw,116px) !important;
    flex-basis: clamp(88px,26vw,116px) !important;
  }
}

#gallery .visual-group .inline-curated-art {
  flex-direction: column !important;
  align-items: center !important;
  gap: clamp(18px,2.6vw,29px) !important;
}

#gallery .mission-scenes-row {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: clamp(9px,1.25vw,16px) !important;
  align-items: start !important;
  justify-items: stretch !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

#gallery .mission-scenes-row .mission-gameplay-figure {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  grid-column: auto !important;
}

#gallery .mission-scenes-row .mission-gameplay-figure .gallery-image {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  border: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
}

#gallery .mission-scenes-row .mission-gameplay-figure .gallery-image img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16/9 !important;
  object-fit: contain !important;
  max-width: none !important;
  filter: none !important;
}

#gallery .visual-group .gallery-inline-extra-art > .mission-scenes-row {
  flex: 0 0 100% !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  margin-bottom: clamp(14px,2vw,24px) !important;
}

@media (max-width:720px) {
  #gallery .mission-scenes-row,
  #gallery .visual-group .gallery-inline-extra-art > .mission-scenes-row {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
  #gallery .mission-scenes-curated > figure:last-child:nth-child(odd) {
    grid-column: 1/-1 !important;
    width: min(100%,400px) !important;
    justify-self: center !important;
  }
}

@media (max-width:450px) {
  #gallery .mission-scenes-row,
  #gallery .visual-group .gallery-inline-extra-art > .mission-scenes-row {
    gap: 8px !important;
  }
}
