/* Fotoglobus: bez cieni i rozmyć, które musiałyby być liczone w każdej klatce. */
html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #000;
}

/* Podpis: dyskretny i widoczny, jak .foto-caption na innych stronach. */
.globe-title {
  position: fixed;
  right: 3vw;
  bottom: 3vh;
  z-index: 1;
  max-width: 240px;
  margin: 0;
  text-align: right;
  color: rgba(255, 255, 255, 0.5);
  font: 400 12px/1.4 -apple-system, "Helvetica Neue", Arial, sans-serif;
  pointer-events: none;
}

.globe {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.globe.is-ready { opacity: 1; }
.globe.is-dragging { cursor: grabbing; }

.globe-slot {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  cursor: zoom-in;
  will-change: transform, opacity;
  transform: scale(0);
}
.globe-slot img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.globe-slot:focus { outline: none; }
.globe-slot:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

/* Chmurka z instrukcją: przepuszcza kliknięcia, znika po pierwszym ruchu.
   Materiał taki sam jak bąble menu (.nav-island w style.css), kształt
   kropli nadaje fotoglobus.js. Różnice wymusza rozmiar: poświata jest owalna,
   bo cień wewnętrzny bąbla nie sięgnąłby do brzegu tak dużej kropli, a szkło
   lekko przyciemnia tło, żeby dłuższy tekst dało się czytać na jasnych zdjęciach. */
.globe-hint {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 8;
  width: min(480px, 86vw);
  box-sizing: border-box;
  padding: 56px 80px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse farthest-side, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0.34) 100%),
    rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(5px) saturate(1.4) brightness(0.72);
  backdrop-filter: url(#lensDistort) blur(0.5px) saturate(1.4) brightness(0.72);
  color: #fff;
  font: 500 16px/1.45 -apple-system, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.85),
    0 0 16px rgba(0, 0, 0, 0.6),
    0 1px 3px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}
html.reduced-fx .globe-hint {
  -webkit-backdrop-filter: blur(8px) saturate(1.2) brightness(0.72);
  backdrop-filter: blur(8px) saturate(1.2) brightness(0.72);
}
.globe-hint::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 72% 20%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 40%);
  mix-blend-mode: screen;
}
.globe-hint > span { position: relative; }
.globe-hint.is-on { opacity: 1; }
@media (max-width: 600px) {
  .globe-hint { padding: 56px 64px; }
}

/* Powrót do listy par: to samo szkło co chmurka, kształt nadaje fotoglobus.js. */
.globe-back {
  position: fixed;
  left: 3vw;
  bottom: 3vh;
  z-index: 8;
  box-sizing: border-box;
  padding: 24px 40px;
  background:
    radial-gradient(ellipse farthest-side, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0.34) 100%),
    rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(5px) saturate(1.4) brightness(0.72);
  backdrop-filter: url(#lensDistort) blur(0.5px) saturate(1.4) brightness(0.72);
  color: #fff;
  font: 500 15px/1.2 -apple-system, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.85),
    0 0 16px rgba(0, 0, 0, 0.6),
    0 1px 3px rgba(0, 0, 0, 0.9);
}
html.reduced-fx .globe-back {
  -webkit-backdrop-filter: blur(8px) saturate(1.2) brightness(0.72);
  backdrop-filter: blur(8px) saturate(1.2) brightness(0.72);
}
.globe-back:hover { background-color: rgba(255, 255, 255, 0.18); }
.globe-back:focus { outline: none; }
.globe-back:focus-visible { background-color: rgba(255, 255, 255, 0.3); }
.globe-hint-touch { display: none; }
@media (hover: none) {
  .globe-hint-mouse { display: none; }
  .globe-hint-touch { display: inline; }
}

.globe-viewer {
  position: fixed;
  inset: 0;
  z-index: 3000;
}
.globe-viewer[hidden] { display: none; }

.globe-backdrop {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  cursor: zoom-out;
  will-change: opacity;
}

.globe-big {
  position: absolute;
  overflow: hidden;
  transform-origin: 0 0;
  cursor: zoom-out;
  will-change: transform, opacity;
}
.globe-big img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.globe-big .globe-full {
  opacity: 0;
  transition: opacity 0.18s ease;
}
.globe-big .globe-full.is-on { opacity: 1; }

.globe-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  padding: 0 0 4px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: 500 30px/1 Quicksand, sans-serif;
  cursor: pointer;
  opacity: 0;
  transition: background 0.2s ease;
}
.globe-arrow:hover { background: rgba(255, 255, 255, 0.26); }
.globe-arrow:focus { outline: none; }
.globe-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.globe-arrow:disabled { visibility: hidden; }

@media (max-width: 700px) {
  .globe-arrow {
    width: 38px;
    height: 38px;
    margin-top: -19px;
    font-size: 24px;
  }
}
