/* OrgNet 1.9.4 — WordPress native galleries, on single Aktuelnosti posts only. */

/* Without JavaScript, retain a usable responsive grid instead of a vertical stack. */
body.single-post .j-single-content :is(.wp-block-gallery, .gallery):not(.orgnet-gallery--enhanced) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 28px 0 !important;
}
body.single-post .j-single-content :is(.wp-block-gallery, .gallery):not(.orgnet-gallery--enhanced) > :is(figure, .gallery-item, .blocks-gallery-grid) {
  width: 100% !important;
  margin: 0 !important;
}

body.single-post .j-single-content .orgnet-gallery--enhanced {
  display: block !important;
  position: relative !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 28px 0 34px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
body.single-post .j-single-content .orgnet-gallery__viewport {
  position: relative !important;
  isolation: isolate;
  display: block !important;
  width: 100% !important;
  height: clamp(290px, 54vw, 490px) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #e1e9ee !important;
  border-radius: 14px !important;
  background: #f7f9fb !important;
  touch-action: pan-y;
}
body.single-post .j-single-content .orgnet-gallery__viewport:focus-visible {
  outline: 2px solid #159cc7;
  outline-offset: 3px;
}
body.single-post .j-single-content .orgnet-gallery__stage {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  list-style: none !important;
}
body.single-post .j-single-content .orgnet-gallery__slide {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 15px clamp(45px, 7%, 68px) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background: transparent !important;
  list-style: none !important;
  z-index: 1;
}
body.single-post .j-single-content .orgnet-gallery__slide[hidden] {
  display: none !important;
}
body.single-post .j-single-content .orgnet-gallery__slide.is-active {
  z-index: 2;
}
/* Single-layer gentle entrance: incoming photo is never composited over
   the previous one. No layout movement or forced reflow. */
@keyframes orgnet-gallery-enter {
  from { opacity: .62; }
  to { opacity: 1; }
}
body.single-post .j-single-content .orgnet-gallery__slide.is-entering {
  animation: orgnet-gallery-enter 170ms ease-out both;
}
body.single-post .j-single-content .orgnet-gallery__slide > :is(a, .gallery-icon),
body.single-post .j-single-content .orgnet-gallery__slide > .gallery-icon > a {
  display: flex !important;
  flex: 0 1 auto !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.single-post .j-single-content .orgnet-gallery__slide > .gallery-icon {
  flex: 1 1 auto !important;
}
body.single-post .j-single-content .orgnet-gallery__slide img {
  display: block !important;
  flex: 0 1 auto !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}
body.single-post .j-single-content .orgnet-gallery__slide figcaption,
body.single-post .j-single-content .orgnet-gallery__slide .gallery-caption {
  flex: 0 0 auto !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #526474 !important;
  font-size: .82rem !important;
  line-height: 1.45 !important;
  text-align: center !important;
}

/* Full-height overlay ensures arrows remain at precisely 50% of the main photo. */
body.single-post .j-single-content .orgnet-gallery__controls {
  position: absolute !important;
  z-index: 3 !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 13px !important;
  pointer-events: none !important;
}
body.single-post .j-single-content .orgnet-gallery__arrow {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  flex: 0 0 42px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,.85) !important;
  border-radius: 50% !important;
  background: rgba(11, 34, 52, .76) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  line-height: 0 !important;
  transform: none !important;
  box-shadow: 0 2px 7px rgba(11,34,52,.15) !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  transition: background-color 130ms ease, box-shadow 130ms ease;
}
body.single-post .j-single-content .orgnet-gallery__arrow svg {
  display: block !important;
  flex: 0 0 auto !important;
  width: 22px !important;
  height: 22px !important;
}
body.single-post .j-single-content .orgnet-gallery__arrow:hover {
  background: #0b5875 !important;
  box-shadow: 0 4px 12px rgba(11,34,52,.23) !important;
}
body.single-post .j-single-content .orgnet-gallery__arrow:focus-visible,
body.single-post .j-single-content .orgnet-gallery__thumbnail:focus-visible {
  outline: 2px solid #159cc7 !important;
  outline-offset: 3px !important;
}

/* Small image strip below the large photo, not dots. */
body.single-post .j-single-content .orgnet-gallery__footer {
  position: relative !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 75px !important;
  margin: 0 !important;
  padding: 12px 52px 0 !important;
}
body.single-post .j-single-content .orgnet-gallery__thumbnails {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  flex: 0 1 auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 2px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: thin;
  scrollbar-color: #cad7df transparent;
  overscroll-behavior-inline: contain;
}
body.single-post .j-single-content .orgnet-gallery__thumbnail {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: relative !important;
  display: block !important;
  flex: 0 0 88px !important;
  width: 88px !important;
  height: 58px !important;
  min-width: 88px !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 2px solid transparent !important;
  border-radius: 7px !important;
  background: #f1f6f8 !important;
  cursor: pointer !important;
  opacity: .72;
  box-shadow: none !important;
  transition: opacity 140ms ease, border-color 140ms ease;
}
body.single-post .j-single-content .orgnet-gallery__thumbnail:hover {
  opacity: 1;
}
body.single-post .j-single-content .orgnet-gallery__thumbnail.is-active {
  opacity: 1;
  border-color: #159cc7 !important;
}
body.single-post .j-single-content .orgnet-gallery__thumbnail img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  border: 0 !important;
  border-radius: 5px !important;
  box-shadow: none !important;
}
body.single-post .j-single-content .orgnet-gallery__count {
  position: absolute !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-35%) !important;
  flex: 0 0 auto !important;
  color: #607281 !important;
  font-size: .8rem !important;
  font-weight: 500 !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap !important;
}
body.single-post .j-single-content .orgnet-gallery--enhanced > br {
  display: none !important;
}
@media (max-width: 640px) {
  body.single-post .j-single-content .orgnet-gallery__viewport {
    height: clamp(220px, 68vw, 325px) !important;
    border-radius: 11px !important;
  }
  body.single-post .j-single-content .orgnet-gallery__slide {
    padding: 10px 32px !important;
  }
  body.single-post .j-single-content .orgnet-gallery__controls {
    padding: 0 6px !important;
  }
  body.single-post .j-single-content .orgnet-gallery__arrow {
    flex-basis: 36px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }
  body.single-post .j-single-content .orgnet-gallery__arrow svg {
    width: 19px !important;
    height: 19px !important;
  }
  body.single-post .j-single-content .orgnet-gallery__footer {
    min-height: 70px !important;
    padding: 10px 43px 0 5px !important;
  }
  body.single-post .j-single-content .orgnet-gallery__thumbnail {
    flex-basis: 72px !important;
    width: 72px !important;
    min-width: 72px !important;
    height: 53px !important;
    min-height: 53px !important;
  }
  body.single-post .j-single-content .orgnet-gallery__thumbnails {
    gap: 6px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.single-post .j-single-content .orgnet-gallery__slide.is-entering {
    animation: none !important;
  }
  body.single-post .j-single-content .orgnet-gallery__thumbnail,
  body.single-post .j-single-content .orgnet-gallery__arrow {
    transition: none !important;
  }
}
