/* The upper three pieces meet the lower pair at the Úspechy/Videogaléria seam. */
html body .hero .hero-copy .hero-actions:has(.hero-video-gallery) {
  --hero-piece-height: 94px;
  --hero-piece-alpha: .38;
  /* Keep the last line above the deepest lower puzzle socket. */
  --hero-piece-label-inset: 26px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, var(--hero-piece-height)) !important;
  width: calc(var(--hero-piece) * 4) !important;
  margin-left: calc(100% - var(--hero-piece) * 3) !important;
}
html body .hero .hero-copy .hero-actions:has(.hero-video-gallery) > a {
  grid-row: 1 !important;
  --detach-x: 0px;
  --detach-y: 0px;
  --detach-angle: 0deg;
}
html body .hero .hero-copy .hero-actions:has(.hero-video-gallery) > a:nth-child(1) {
  grid-column: 1 !important;
  --puzzle-bg: rgba(190, 42, 43, var(--hero-piece-alpha));
  --detach-x: calc(-1 * var(--detach-distance));
  --detach-angle: -.6deg;
}
html body .hero .hero-copy .hero-actions:has(.hero-video-gallery) > a:nth-child(2) {
  grid-column: 2 !important;
  --puzzle-bg: rgba(194, 129, 20, var(--hero-piece-alpha));
  --detach-y: calc(-1 * var(--detach-distance));
}
html body .hero .hero-copy .hero-actions:has(.hero-video-gallery) > a:nth-child(3) {
  grid-column: 3 !important;
  --puzzle-bg: rgba(26, 137, 98, var(--hero-piece-alpha));
  --detach-x: calc(var(--detach-distance) * .6);
  --detach-y: calc(-1 * var(--detach-distance));
  --detach-angle: .6deg;
}
html body .hero .hero-copy .hero-actions:has(.hero-video-gallery) > a.hero-weather-chip {
  grid-column: 4 !important;
  grid-row: 2 !important;
  --puzzle-bg: rgba(93, 118, 144, var(--hero-piece-alpha));
  --detach-x: var(--detach-distance);
  --detach-angle: .6deg;
}
html body .hero .hero-copy .hero-actions:has(.hero-video-gallery) > a.button.hero-video-gallery {
  grid-column: 3 !important;
  grid-row: 2 !important;
  --puzzle-bg: rgba(12, 91, 103, var(--hero-piece-alpha));
  --detach-x: calc(-.6 * var(--detach-distance));
  --detach-y: var(--detach-distance);
  --detach-angle: -.6deg;
}
html body .hero .hero-copy .hero-actions:has(.hero-video-gallery) > a.button {
  align-items: flex-end !important;
  padding: 5px 4px var(--hero-piece-label-inset) !important;
  text-shadow: 0 1px 3px #000, 0 0 5px #0009;
}
html body .hero .hero-copy .hero-actions .hero-puzzle-shape:has(.hero-piece-art) > path {
  fill: transparent !important;
}
html body .hero .hero-copy .hero-actions .hero-piece-art {
  opacity: .56;
  transition: opacity 180ms ease;
}
html body .hero .hero-copy .hero-actions > a:focus-visible .hero-piece-art {
  opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
  html body .hero .hero-copy .hero-actions > a:hover .hero-piece-art {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body .hero .hero-copy .hero-actions .hero-piece-art { transition: none; }
}
html body .hero .hero-copy .hero-actions .hero-weather-chip {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-content: end !important;
  justify-items: center !important;
  gap: 3px !important;
  padding: 5px 3px var(--hero-piece-label-inset) !important;
  text-shadow: 0 1px 3px #000, 0 0 5px #0009;
}
html body .hero .hero-copy .hero-actions .hero-weather-label {
  grid-area: 2 / 1 !important;
}
html body .hero .hero-copy .hero-actions .hero-weather-chip #heroWeatherTemp {
  grid-area: 1 / 1 !important;
  text-shadow: 0 1px 3px #000, 0 0 5px #0009;
}
@media (max-width: 1100px) {
  html body .hero .hero-copy .hero-actions:has(.hero-video-gallery) {
    --hero-piece-height: 90px;
    width: min(calc(100% - 24px), 580px) !important;
    margin-left: 12px !important;
  }
}
@media (max-width: 680px) {
  body:not([data-detail]):not([data-public]) .site-header .brand-logo {
    left: var(--hero-mobile-logo-offset, 0px) !important;
  }
}
@media (max-width: 600px) {
  html body .hero .hero-copy .hero-actions:has(.hero-video-gallery) {
    --hero-piece-height: 56px;
    --hero-piece-label-inset: 16px;
    width: calc(100% - 16px) !important;
    margin: 24px 8px 10px !important;
  }
  html body .hero .hero-copy .hero-actions:has(.hero-video-gallery) > a.button {
    font-size: clamp(9px, 2.7vw, 11px) !important;
    padding-inline: 4px !important;
    overflow-wrap: anywhere;
  }
  html body .hero .hero-copy .hero-actions:has(.hero-video-gallery) > a.hero-weather-chip {
    gap: 2px !important;
  }
  html body .hero .hero-copy .hero-actions:has(.hero-video-gallery) #heroWeatherTemp {
    font-size: clamp(12px, 3.5vw, 16px) !important;
  }
}
