/* Golden M sneakers 360° on the home page (after the carousel), look "Слънце · подиум". Script: /shoe-360.js.
   The section is 340vh tall (phones 310vh); its screen-sized .s360-pin is held in place while the visitor scrolls
   through it (position: fixed, switched by the script, because html + body both have overflow-x hidden on this site).
   19.11 (owner): it was 400vh = 3 screens held in place, a quick scroll felt stopped there -> 260/220vh, which the
   owner found a little too fast -> 300/270vh, then "a little slower still" -> 340vh (2.4 screens held) / phones 310vh (2.1).
   margin-top -1px: the carousel ends on a fractional pixel and phones drew a thin light line between the two dark
   blocks; this block now overlaps the carousel by one pixel, so no line can show. */
.s360 { position: relative; height: 340vh; margin-top: -1px; background: #0c0c0c; color: #f4efe6; isolation: isolate; }
.s360-pin { position: absolute; left: 0; right: 0; top: 0; height: calc(100vh - var(--s360-top, 0px)); height: calc(100svh - var(--s360-top, 0px)); overflow: hidden; background: #0c0c0c; z-index: 1; }
.s360-pin.is-fixed { position: fixed; top: var(--s360-top, 0px); }
.s360-pin.is-end { top: auto; bottom: 0; }

/* the dark podium of the carousel: soft coloured glow behind the shoe and a dark vignette */
.s360-amb { position: absolute; top: -10%; right: -10%; bottom: -10%; left: -10%; pointer-events: none;
  background: radial-gradient(ellipse 38% 34% at 50% 46%, rgba(150, 105, 255, .20), transparent 70%),
              radial-gradient(ellipse 30% 26% at 62% 58%, rgba(214, 200, 174, .16), transparent 70%),
              radial-gradient(ellipse 26% 24% at 38% 40%, rgba(110, 150, 255, .12), transparent 70%);
  filter: blur(10px); animation: s360-drift 14s ease-in-out infinite alternate; }
.s360:not(.is-on) .s360-amb { animation-play-state: paused; }
/* 18.11 tones b / c (less purple): the violet and blue glow behind the shoe muted, the warm one kept */
.s360[data-tone="b"] .s360-amb, .s360[data-tone="c"] .s360-amb {
  background: radial-gradient(ellipse 38% 34% at 50% 46%, rgba(165, 145, 215, .12), transparent 70%),
              radial-gradient(ellipse 30% 26% at 62% 58%, rgba(214, 200, 174, .16), transparent 70%),
              radial-gradient(ellipse 26% 24% at 38% 40%, rgba(150, 165, 215, .07), transparent 70%); }
.s360-vig { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 62% at 50% 48%, transparent 0%, rgba(8,8,8,.55) 72%, #0a0a0a 100%), linear-gradient(to bottom, #0c0c0c 0%, transparent 16%, transparent 82%, #0a0a0a 100%); }
@keyframes s360-drift { to { transform: translate(2%, -2%) scale(1.06); } }

.s360-cv { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; }
.s360-cv.is-link { cursor: pointer; }
.s360-ld { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #a39b8d; font: 400 12px/1 var(--font-sans, 'Montserrat', sans-serif); letter-spacing: 3px; text-transform: uppercase; z-index: 3; }

.s360-copy { position: absolute; z-index: 2; max-width: min(420px, 30vw); opacity: 0; will-change: transform, opacity; pointer-events: none; }
.s360-k { font: 500 11px/1.4 var(--font-sans, 'Montserrat', sans-serif); letter-spacing: 5px; color: var(--gold, #d6c8ae); margin-bottom: 14px; text-transform: uppercase; }
.s360-copy h2 { font: 400 clamp(30px, 3.7vw, 54px)/1.08 var(--font-serif, 'Bodoni Moda', serif); color: #f4efe6; margin: 0; text-wrap: balance; }
.s360-copy h2 em { color: var(--gold, #d6c8ae); font-style: italic; }
.s360-rule { width: 60px; border-top: 1px solid var(--gold, #d6c8ae); margin-top: 18px; }
#s360-c1 { left: 6vw; top: 50%; }
#s360-c2 { right: 6vw; top: 50%; text-align: right; }
#s360-c2 .s360-rule { margin-left: auto; }
#s360-c3 { left: 50%; bottom: 6vh; text-align: center; max-width: 820px; width: 90vw; }
.s360-btn { display: inline-block; margin-top: 22px; padding: 14px 34px; border: 1px solid var(--gold, #d6c8ae); color: var(--gold, #d6c8ae); background: rgba(10,10,10,.35);
  font: 500 12px/1 var(--font-sans, 'Montserrat', sans-serif); letter-spacing: 3px; text-transform: uppercase; text-decoration: none; pointer-events: auto; transition: background .25s, color .25s;
  touch-action: manipulation; }
/* 17.11: the hover colour only for a real mouse (on phones a "hover" can take the first tap) */
.s360-btn:focus-visible { background: var(--gold, #d6c8ae); color: #111; }
@media (hover: hover) and (pointer: fine) { .s360-btn:hover { background: var(--gold, #d6c8ae); color: #111; } }
.s360-btn:focus-visible { outline: 2px solid #f4efe6; outline-offset: 3px; }

@media (max-width: 700px) {
  .s360 { height: 310vh; }
  /* phone: the first text above the shoe on the left, the second one under the shoe on the right */
  .s360-copy { max-width: none; }
  #s360-c1 { left: max(7vw, 16px); right: max(7vw, 16px); top: max(7vh, 44px); text-align: left; }
  #s360-c2 { left: max(7vw, 16px); right: max(7vw, 16px); top: auto; bottom: 9vh; text-align: right; }
  #s360-c3 { bottom: 7vh; }
  .s360-copy h2 { font-size: clamp(28px, 8.4vw, 40px); }
}
@media (prefers-reduced-motion: reduce) { .s360-amb { animation: none; } }
