/* ============================================================
   Фотогалерея-глобус — стили компонента
   Файл: assets/stylesheets/photo-globe.css

   Ничего в остальных стилях сайта не меняет: все правила
   ограничены классами photo-globe-*. Свой шрифт не подключает —
   наследует то, что уже задано в styles.css (Open Sans/Montserrat).
   Цвета нейтральные и полупрозрачные, поэтому виджет одинаково
   хорошо смотрится на любом тёмном фоне секции call-to-action.
============================================================ */

.photo-globe-wrap{
  max-width: 720px;
  margin: 1rem auto 0;
}

.photo-globe-hint{
  color: rgba(255,255,255,.62);
  font-size: .92rem;
  text-align: center;
  margin: .9rem 0 0;
}

.photo-globe-stage{
  position: relative;
  width: min(74vw, 420px);
  height: min(74vw, 420px);
  margin: 0 auto;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.photo-globe-stage.is-dragging{ cursor: grabbing; }

.photo-globe-glow{
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle, rgba(217,143,61,.22), transparent 65%);
  filter: blur(6px);
  pointer-events: none;
  animation: photoGlobePulse 6s ease-in-out infinite;
}
@keyframes photoGlobePulse{ 0%,100%{ opacity:.7 } 50%{ opacity:1 } }

.photo-globe-orbit{
  position: absolute;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  pointer-events: none;
}
.photo-globe-orbit--a{ inset: 6%;  transform: rotateX(78deg); }
.photo-globe-orbit--b{ inset: 14%; transform: rotateX(78deg) rotate(35deg); opacity: .6; }

.photo-globe{
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.photo-globe-thumb{
  position: absolute;
  left: 50%;
  top: 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}
.photo-globe-thumb__inner{
  display: block;
  padding: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 2px;
  background: rgba(0,0,0,.2);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,.35);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.photo-globe-thumb__inner:hover,
.photo-globe-thumb__inner:focus-visible{
  transform: scale(1.14);
  border-color: #d98f3d;
  box-shadow: 0 3px 10px rgba(0,0,0,.35), 0 0 0 4px rgba(217,143,61,.28);
  outline: none;
}
.photo-globe-thumb__inner img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Полноэкранный просмотр */
.photo-globe-lightbox{
  position: fixed;
  inset: 0;
  background: rgba(10,9,7,.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 99999; /* выше фиксированной шапки сайта */
  padding: 2rem;
}
.photo-globe-lightbox.is-open{ opacity: 1; pointer-events: auto; }

.photo-globe-lightbox__figure{
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
}
.photo-globe-lightbox__figure img{
  max-width: 88vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.photo-globe-lightbox__figure figcaption{
  color: rgba(255,255,255,.7);
  font-size: .9rem;
}

.photo-globe-lightbox__close,
.photo-globe-lightbox__nav{
  position: fixed;
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .18s, color .18s;
}
.photo-globe-lightbox__close:hover,
.photo-globe-lightbox__nav:hover{
  border-color: #d98f3d;
  color: #d98f3d;
}
.photo-globe-lightbox__close{ top: 1.5rem; right: 1.5rem; }
.photo-globe-lightbox__nav--prev{ left: 1.5rem; top: 50%; transform: translateY(-50%); }
.photo-globe-lightbox__nav--next{ right: 1.5rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 560px){
  .photo-globe-lightbox__nav{ display: none; }
}

@media (prefers-reduced-motion: reduce){
  .photo-globe-glow{ animation: none; }
}
