/* Cieplice.org: discreet floating controls ON the slider, not a bar below it.
   Loaded after vol12.css and organy.css so it also overrides the old mobile rule. */
.home-page .home-hero.has-slider-controls {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}
.home-page .home-hero .hero-controls {
  position: absolute;
  z-index: 5;
  top: auto;
  bottom: .4rem;
  left: auto;
  right: .45rem;
  width: auto;
  max-width: none;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .15rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.home-page .home-hero .hero-controls button {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(12, 22, 35, .19);
  box-shadow: none;
  color: rgba(255, 255, 255, .96);
  opacity: .78;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .65);
  transition: opacity .18s ease, background-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.home-page .home-hero .hero-controls button:hover,
.home-page .home-hero .hero-controls button:focus-visible {
  opacity: 1;
  background: rgba(12, 22, 35, .48);
}
.home-page .home-hero .hero-controls button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .95);
  outline-offset: 2px;
}
/* No solid panel or large fraction label over the painting. */
.home-page .home-hero .hero-counter { display: none; }
/* A tiny, reliable CSS pause/play icon, regardless of browser emoji fonts. */
.home-page .home-hero .hero-controls button:nth-of-type(2) {
  font-size: 0;
  text-shadow: none;
}
.home-page .home-hero .hero-controls button:nth-of-type(2)::before {
  content: '';
  display: block;
  box-sizing: border-box;
  width: 11px;
  height: 12px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}
.home-page .home-hero .hero-controls button:nth-of-type(2)[aria-pressed='true']::before {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
  border-right: 0;
  transform: translateX(1px);
}
@media (max-width: 700px) {
  /* On phones only the tiny, translucent pause/play icon remains.
     Swipe left/right over the photo to change slides. */
  .home-page .home-hero .hero-controls {
    top: auto;
    bottom: .25rem;
    left: auto;
    right: .3rem;
    width: auto;
    max-width: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }
  .home-page .home-hero .hero-controls button:first-of-type,
  .home-page .home-hero .hero-controls button:nth-of-type(3) {
    display: none;
  }
  .home-page .home-hero .hero-controls button:nth-of-type(2) {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    background: rgba(12, 22, 35, .16);
    opacity: .72;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .home-hero .hero-controls button { transition: none; }
}


/* Cieplice.org, 2026-10-15 — make the banner bigger on narrow screens,
   and separate the burgundy adoption notice from the painting.
   The notice is a normal block ABOVE the slider, never a floating overlay. */
.home-page .organ-ribbon {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0;
  transform: none;
}
.home-page .home-hero {
  position: relative;
  z-index: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  clear: both;
  aspect-ratio: 2048 / 585;
  min-height: 0;
}
.home-page .home-hero > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 700px) {
  .home-page .organ-ribbon { margin-bottom: 0; }
  .home-page .home-hero {
    aspect-ratio: auto;
    height: clamp(205px, 52vw, 300px);
    min-height: 205px;
    max-height: 300px;
    overflow: hidden;
  }
  .home-page .home-hero > img {
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
  }
}

/* Ribbon and image touch exactly. No negative margins or overlay. */
.home-page > .organ-ribbon { margin:0; border-bottom:0; }
.home-page #main-content { padding-top:0; margin-top:0; }
.home-page #main-content > .home-hero { margin-top:0; border-top:0; }
