.t-cover[style*="-card.jpg"],
.t-cover__carrier[data-content-cover-bg$="-card.jpg"] {
  background-position: center 8% !important;
}

.hm-game-gallery,
.hm-static-gallery-record {
  box-sizing: border-box;
  padding: 42px 20px !important;
}

.hm-gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
  width: min(1200px, 100%);
  margin: 0 auto 18px;
}

.hm-gallery-kicker {
  margin: 0 0 7px;
  color: rgba(37, 43, 54, 0.58);
  font: 700 11px/1.2 Arial, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hm-gallery-heading h2 {
  margin: 0;
  color: #252b36;
  font: 700 clamp(25px, 3.2vw, 40px)/1.05 Arial, sans-serif;
  letter-spacing: -0.035em;
}

.hm-gallery-meta {
  margin: 0 0 3px;
  color: rgba(37, 43, 54, 0.62);
  font: 500 13px/1.4 Arial, sans-serif;
  white-space: nowrap;
}

.hm-game-languages {
  position: relative;
  margin-top: 22px;
  isolation: isolate;
  padding: 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--hm-accent) 58%, rgba(255, 255, 255, 0.28));
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--hm-accent) 25%, transparent) 0 22%, transparent 23%),
    linear-gradient(145deg, color-mix(in srgb, var(--hm-accent) 22%, rgba(255, 255, 255, .035)), rgba(255, 255, 255, .055));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 12px 28px rgba(12, 16, 22, 0.15);
  color: #fff;
}

.hm-game-languages::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--hm-accent), color-mix(in srgb, var(--hm-accent) 28%, transparent));
  box-shadow: 0 0 18px color-mix(in srgb, var(--hm-accent) 55%, transparent);
}

.hm-game-languages::after {
  content: "";
  position: absolute;
  top: -42px;
  right: -32px;
  width: 142px;
  height: 142px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--hm-accent) 30%, transparent);
  background: color-mix(in srgb, var(--hm-accent) 13%, transparent);
  box-shadow: 0 0 0 24px color-mix(in srgb, var(--hm-accent) 5%, transparent);
  pointer-events: none;
}

.hm-game-languages__heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
}

.hm-game-languages__heading-copy { min-width: 0; }

.hm-game-languages__icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--hm-accent) 75%, #fff 25%);
  border-radius: 12px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--hm-accent) 38%, transparent), rgba(255, 255, 255, .08));
  color: color-mix(in srgb, var(--hm-accent) 82%, #fff 18%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 7px 16px rgba(0, 0, 0, .13);
}

.hm-game-languages__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.hm-game-languages__kicker,
.hm-game-languages__title {
  display: block;
}

.hm-game-languages__kicker {
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.62);
  font: 700 9px/1.1 Arial, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hm-game-languages__title {
  color: #fff;
  font: 750 18px/1.15 Arial, sans-serif;
  letter-spacing: -.015em;
}

.hm-game-languages__count {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .075);
  color: rgba(255, 255, 255, .58);
  font: 800 8px/1 Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hm-game-languages__count strong {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0;
}

.hm-game-languages__list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 8px;
  margin-top: 15px;
}

.hm-game-languages--single .hm-game-languages__list { grid-template-columns: minmax(138px, 188px); }

.hm-game-language {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 40px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .07));
  color: #fff;
  font: 700 11px/1.1 Arial, sans-serif;
  letter-spacing: 0.015em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 5px 13px rgba(0, 0, 0, .09);
}

.hm-game-language__flag {
  display: block;
  flex: 0 0 28px;
  width: 28px;
  height: 21px;
  margin-right: 8px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .27), 0 3px 7px rgba(0, 0, 0, .24);
}

.hm-game-language__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm-game-language__code {
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 6px;
  color: rgba(255, 255, 255, .48);
  font: 800 8px/1 Arial, sans-serif;
  letter-spacing: .08em;
}

.hm-game-language[data-language-code="BR"] .hm-game-language__code { display: none; }
.hm-game-language[data-language-code="BR"] .hm-game-language__name {
  font-size: 10px;
  letter-spacing: -.015em;
}

@media (max-width: 560px) {
  .hm-game-languages { padding: 16px; }
  .hm-game-languages__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-game-languages--single .hm-game-languages__list { grid-template-columns: minmax(0, 188px); }
  .hm-game-languages__count span { display: none; }
  .hm-game-language { min-height: 38px; padding: 6px 7px; font-size: 10px; }
  .hm-game-language__flag { flex-basis: 25px; width: 25px; height: 19px; margin-right: 7px; }
}

/* Gallery v2: one scroll surface, one interaction controller, no scroll snapping. */
.hm-gallery-help {
  margin: 0 0 3px;
  color: rgba(37, 43, 54, 0.58);
  font: 600 12px/1.4 Arial, sans-serif;
  white-space: nowrap;
}

.hm-gallery-shell {
  position: relative;
  box-sizing: border-box;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.hm-gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: stretch;
  gap: 18px;
  box-sizing: border-box;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 20px 20px 17px;
  border: 1px solid rgba(55, 66, 84, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 38px rgba(40, 52, 73, 0.08);
  cursor: grab;
  overscroll-behavior: contain;
  scroll-behavior: auto;
  scroll-snap-type: none;
  scrollbar-color: rgba(66, 77, 94, 0.5) rgba(66, 77, 94, 0.08);
  scrollbar-width: auto;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}

.hm-gallery-track::-webkit-scrollbar { height: 10px; }
.hm-gallery-track::-webkit-scrollbar-track {
  margin-inline: 18px;
  border-radius: 999px;
  background: rgba(66, 77, 94, 0.08);
}
.hm-gallery-track::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(66, 77, 94, 0.48);
  background-clip: padding-box;
}
.hm-gallery-track:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--hm-accent, #d88768) 78%, #fff 22%);
  outline-offset: 4px;
}
.hm-gallery-track.is-dragging {
  cursor: grabbing;
}

.hm-gallery-item {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #e8ebef;
  box-shadow: 0 8px 18px rgba(40, 52, 73, 0.12);
}

.hm-gallery-open {
  position: relative;
  display: block;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  appearance: none;
}

.hm-gallery-open::after {
  content: "+";
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(11, 14, 20, 0.72);
  color: #fff;
  font: 400 24px/1 Arial, sans-serif;
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  backdrop-filter: blur(5px);
}
.hm-gallery-open:hover::after,
.hm-gallery-open:focus-visible::after { opacity: 1; transform: scale(1); }
.hm-gallery-open:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }

.hm-gallery-open img {
  display: block;
  width: auto;
  max-width: none;
  height: clamp(210px, 17vw, 260px);
  margin: 0;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

.hm-gallery-item figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(11, 14, 20, 0.78);
  color: #fff;
  font: 700 10px/1 Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(5px);
}

.hm-gallery-item.has-error {
  min-width: 260px;
  background: repeating-linear-gradient(135deg, #eceff3 0 12px, #e2e6eb 12px 24px);
}

.hm-gallery-scroll-button {
  top: calc(50% - 5px);
  width: 44px;
  height: 44px;
}
.hm-gallery-scroll-button--previous { left: 10px; }
.hm-gallery-scroll-button--next { right: 10px; }
.hm-gallery-scroll-button:disabled {
  opacity: 0.32;
  pointer-events: none;
}

.hm-gallery-lightbox__figure {
  display: grid;
  max-width: 92vw;
  max-height: 92vh;
  margin: 0;
  place-items: center;
}
.hm-gallery-lightbox .hm-gallery-lightbox__image {
  position: static;
  width: auto;
  height: auto;
  max-width: min(1400px, 92vw);
  max-height: 86vh;
  object-fit: contain;
  transform: none;
}
.hm-gallery-lightbox__counter {
  margin-top: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: 700 12px/1 Arial, sans-serif;
  letter-spacing: 0.08em;
}

.hm-archive-gallery--portrait .hm-gallery-open img {
  height: clamp(320px, 29vw, 410px);
}

.hm-game-gallery .t156__wrapper,
.hm-static-gallery-grid {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  scroll-behavior: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 22px;
  overscroll-behavior-inline: contain;
  scrollbar-color: rgba(70, 78, 92, 0.38) transparent;
  scrollbar-width: thin;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 22px !important;
  border: 1px solid rgba(55, 66, 84, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 38px rgba(40, 52, 73, 0.07);
}

.hm-game-gallery .t156__wrapper.is-dragging,
.hm-static-gallery-grid.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.hm-game-gallery .t156__wrapper img,
.hm-static-gallery-grid img {
  -webkit-user-drag: none;
}

.hm-game-gallery .t156__item,
.hm-static-gallery-item {
  position: relative;
  display: block !important;
  flex: 0 0 auto !important;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  box-sizing: border-box;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 10px;
  background: #ececec;
  box-shadow: 0 7px 16px rgba(40, 52, 73, 0.1);
}

.hm-archive-gallery__item figcaption {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 2;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(11, 14, 20, 0.78);
  color: #fff;
  font: 700 10px/1 Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(5px);
}

.hm-game-gallery .t156__item img,
.hm-static-gallery-item img {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: clamp(190px, 16vw, 250px) !important;
  margin: 0 !important;
  object-fit: contain !important;
  cursor: zoom-in;
}

.hm-gallery-scroll-shell {
  position: relative;
  box-sizing: border-box;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.hm-gallery-scroll-button {
  position: absolute;
  top: 50%;
  z-index: 8;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(50, 58, 72, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(35, 43, 56, 0.18);
  color: #303744;
  font: 700 25px/1 Arial, sans-serif;
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.hm-gallery-scroll-button--previous { left: 8px; }
.hm-gallery-scroll-button--next { right: 8px; }
.hm-gallery-scroll-button:hover { transform: translateY(-50%) scale(1.06); }
.hm-gallery-scroll-button:disabled { opacity: 0.32; pointer-events: none; }

.hm-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483500;
  display: grid;
  place-items: center;
  padding: 32px 72px;
  box-sizing: border-box;
  background: rgba(12, 14, 18, 0.9);
  backdrop-filter: blur(5px);
}

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

.hm-gallery-lightbox__image {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: auto;
  height: auto;
  max-width: min(1400px, 92vw);
  max-height: 90vh;
  object-fit: contain;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.5);
}

.hm-gallery-lightbox__close,
.hm-gallery-lightbox__arrow {
  position: fixed;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #222832;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.hm-gallery-lightbox__close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font: 400 30px/1 Arial, sans-serif;
}

.hm-gallery-lightbox__arrow {
  top: 50%;
  width: 48px;
  height: 48px;
  font: 700 28px/1 Arial, sans-serif;
  transform: translateY(-50%);
}

.hm-gallery-lightbox__arrow--previous { left: 18px; }
.hm-gallery-lightbox__arrow--next { right: 18px; }
.hm-gallery-lightbox__arrow[hidden] { display: none !important; }

.hm-static-gallery-record .t604,
.hm-static-gallery-record .t-slds {
  display: none !important;
}

@media (max-width: 700px) {
  .hm-game-gallery,
  .hm-static-gallery-record {
    padding: 26px 14px !important;
  }

  .hm-gallery-heading {
    display: block;
    margin-bottom: 14px;
  }

  .hm-gallery-meta {
    margin-top: 9px;
    white-space: normal;
  }

  .hm-gallery-help {
    margin-top: 9px;
    white-space: normal;
  }

  .hm-gallery-track {
    gap: 10px;
    padding: 12px 12px 10px;
    border-radius: 14px;
  }

  .hm-gallery-open img {
    height: 190px;
  }

  .hm-archive-gallery--portrait .hm-gallery-open img {
    height: 300px;
  }

  .hm-game-gallery .t156__wrapper,
  .hm-static-gallery-grid {
    gap: 10px;
    padding: 12px !important;
    border-radius: 14px;
    scroll-padding-inline: 12px;
  }

  .hm-game-gallery .t156__item img,
  .hm-static-gallery-item img {
    height: 190px !important;
  }

  .hm-gallery-scroll-button {
    width: 36px;
    height: 36px;
    font-size: 21px;
  }

  .hm-gallery-lightbox { padding: 56px 12px 20px; }
  .hm-gallery-lightbox__image {
    max-width: 96vw;
    max-height: 84vh;
  }
  .hm-gallery-lightbox__close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
  .hm-gallery-lightbox__arrow {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.86);
  }
  .hm-gallery-lightbox__arrow--previous { left: 8px; }
  .hm-gallery-lightbox__arrow--next { right: 8px; }
}

@media (max-width: 430px) {
  .hm-gallery-open img {
    height: 165px;
  }

  .hm-archive-gallery--portrait .hm-gallery-open img {
    height: 260px;
  }

  .hm-game-gallery .t156__item img,
  .hm-static-gallery-item img {
    height: 165px !important;
  }
}

.hm-archive-gallery--portrait .t156__item img {
  height: clamp(300px, 28vw, 390px) !important;
}

/* Keep the game artwork independent from translated copy height. */
@media (min-width: 961px) {
  .hm-game-redesign .hm-game-card {
    align-items: start;
  }

  .hm-game-redesign .hm-game-visual {
    align-self: start;
    aspect-ratio: 3 / 4;
    min-height: 0;
  }

  .hm-game-redesign .hm-game-visual img {
    height: 100%;
    min-height: 0;
  }
}

@media (max-width: 430px) {
  .hm-archive-gallery--portrait .t156__item img {
    height: 260px !important;
  }
}

/* Gallery v4: a compact, project-themed workspace within the game section. */
#hm-archive-gallery.hm-archive-gallery {
  position: relative;
  isolation: isolate;
  width: min(1200px, 100%);
  margin: 20px auto 0 !important;
  padding: 26px !important;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--hm-accent, #d88768) 44%, rgba(255, 255, 255, .18));
  border-radius: 14px;
  background:
    radial-gradient(circle at 96% 0%, color-mix(in srgb, var(--hm-accent, #d88768) 22%, transparent) 0 8%, transparent 34%),
    var(--hm-panel, #34445a) !important;
  box-shadow: 0 14px 30px rgba(15, 20, 30, .2), inset 0 1px 0 rgba(255, 255, 255, .08);
  color: #fff;
}

.hm-archive-gallery::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -90px;
  bottom: -110px;
  width: 250px;
  height: 250px;
  border: 1px solid color-mix(in srgb, var(--hm-accent, #d88768) 28%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 34px color-mix(in srgb, var(--hm-accent, #d88768) 7%, transparent);
  pointer-events: none;
}

.hm-archive-gallery .hm-gallery-heading {
  position: relative;
  z-index: 2;
  align-items: center;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
}

.hm-gallery-title-group,
.hm-gallery-toolbar {
  display: flex;
  align-items: center;
}

.hm-gallery-title-group { gap: 13px; }
.hm-gallery-toolbar { gap: 10px; }

.hm-gallery-heading-icon {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--hm-accent, #d88768) 64%, #fff 16%);
  border-radius: 12px;
  background: color-mix(in srgb, var(--hm-accent, #d88768) 24%, rgba(255, 255, 255, .06));
  color: color-mix(in srgb, var(--hm-accent, #d88768) 76%, #fff 24%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.hm-gallery-heading-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.hm-archive-gallery .hm-gallery-kicker {
  margin-bottom: 5px;
  color: color-mix(in srgb, var(--hm-accent, #d88768) 76%, #fff 24%);
  font-size: 10px;
}

.hm-archive-gallery .hm-gallery-heading h2 {
  color: #fff;
  font-size: clamp(25px, 3vw, 35px);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .18);
}

.hm-archive-gallery .hm-gallery-help {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  white-space: nowrap;
}

.hm-gallery-position {
  display: grid;
  min-width: 66px;
  min-height: 34px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--hm-accent, #d88768) 50%, rgba(255, 255, 255, .14));
  border-radius: 999px;
  background: color-mix(in srgb, var(--hm-accent, #d88768) 18%, rgba(0, 0, 0, .08));
  color: #fff;
  font: 700 11px/1 Arial, sans-serif;
  letter-spacing: .08em;
}

.hm-archive-gallery .hm-gallery-shell { width: 100%; }

.hm-archive-gallery .hm-gallery-track {
  gap: 12px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--hm-accent, #d88768) 30%, rgba(255, 255, 255, .12));
  border-radius: 12px;
  background: color-mix(in srgb, var(--hm-panel, #34445a) 74%, #0d1219 26%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 10px 28px rgba(0, 0, 0, .12);
  scrollbar-width: none;
}

.hm-archive-gallery .hm-gallery-track::-webkit-scrollbar { display: none; }

.hm-archive-gallery .hm-gallery-item {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  background: color-mix(in srgb, var(--hm-surface, #172231) 82%, #fff 18%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.hm-archive-gallery .hm-gallery-open img {
  height: clamp(235px, 21vw, 300px);
}

.hm-archive-gallery .hm-gallery-item:hover {
  border-color: color-mix(in srgb, var(--hm-accent, #d88768) 72%, #fff 28%);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .3), 0 0 0 1px color-mix(in srgb, var(--hm-accent, #d88768) 30%, transparent);
  transform: translateY(-2px);
}

.hm-archive-gallery .hm-gallery-item figcaption {
  right: 9px;
  bottom: 9px;
  border-color: color-mix(in srgb, var(--hm-accent, #d88768) 54%, rgba(255, 255, 255, .22));
  background: color-mix(in srgb, var(--hm-panel, #34445a) 76%, rgba(0, 0, 0, .5));
}

.hm-archive-gallery .hm-gallery-open::after {
  content: "↗";
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-color: color-mix(in srgb, var(--hm-accent, #d88768) 68%, #fff 32%);
  background: color-mix(in srgb, var(--hm-panel, #34445a) 78%, rgba(0, 0, 0, .5));
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
  font-size: 17px;
}

.hm-archive-gallery .hm-gallery-scroll-button {
  width: 42px;
  height: 42px;
  border-color: color-mix(in srgb, var(--hm-accent, #d88768) 70%, #fff 30%);
  background: color-mix(in srgb, var(--hm-accent, #d88768) 84%, var(--hm-panel, #34445a) 16%);
  color: #fff;
  box-shadow: 0 9px 24px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.hm-archive-gallery .hm-gallery-scroll-button--previous { left: 18px; }
.hm-archive-gallery .hm-gallery-scroll-button--next { right: 18px; }
.hm-archive-gallery .hm-gallery-scroll-button:hover { background: color-mix(in srgb, var(--hm-accent, #d88768) 90%, #fff 10%); }

.hm-gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 0 2px;
}

.hm-gallery-open-hint {
  color: rgba(255, 255, 255, .64);
  font: 600 11px/1.4 Arial, sans-serif;
}

.hm-gallery-progress {
  flex: 0 1 270px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .11);
}

.hm-gallery-progress > span {
  display: block;
  width: max(9%, calc(var(--hm-gallery-progress, 0) * 100%));
  height: 100%;
  border-radius: inherit;
  background: var(--hm-accent, #d88768);
  box-shadow: 0 0 14px color-mix(in srgb, var(--hm-accent, #d88768) 58%, transparent);
  transition: width .12s linear;
}

@media (max-width: 700px) {
  #hm-archive-gallery.hm-archive-gallery {
    margin-top: 14px !important;
    padding: 18px 14px 14px !important;
    border-radius: 12px;
  }

  .hm-archive-gallery .hm-gallery-heading {
    display: block;
    margin-bottom: 14px;
  }

  .hm-gallery-heading-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .hm-gallery-toolbar {
    justify-content: space-between;
    margin-top: 13px;
  }

  .hm-archive-gallery .hm-gallery-help {
    width: fit-content;
    min-height: 0;
    padding: 7px 10px;
    white-space: normal;
  }

  .hm-archive-gallery .hm-gallery-track {
    gap: 9px;
    padding: 9px;
  }

  .hm-archive-gallery .hm-gallery-open img { height: 205px; }
  .hm-archive-gallery--portrait .hm-gallery-open img { height: 285px; }
  .hm-archive-gallery .hm-gallery-scroll-button--previous { left: 13px; }
  .hm-archive-gallery .hm-gallery-scroll-button--next { right: 13px; }

  .hm-gallery-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    margin-top: 11px;
  }

  .hm-gallery-progress {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 430px) {
  .hm-archive-gallery .hm-gallery-open img { height: 180px; }
  .hm-archive-gallery--portrait .hm-gallery-open img { height: 255px; }
}
