.rayden360 {
  margin: 18px 0;
}

.rayden360__open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dedede;
  border-radius: 999px;
  padding: 10px 16px;
  color: #111;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: box-shadow .2s ease, transform .2s ease;
}

.rayden360__open:hover,
.rayden360__open:focus-visible {
  box-shadow: 0 5px 18px rgba(0, 0, 0, .12);
  transform: translateY(-1px);
}

.rayden360__open span {
  font-size: 20px;
  line-height: 1;
}

.rayden360-gallery-thumb {
  position: relative;
}

.rayden360-gallery-thumb .rayden360-gallery-preview {
  cursor: pointer;
}

.rayden360-gallery-badge {
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  padding: 1px 5px;
  border-radius: 8px;
  color: #111;
  background: rgba(255, 255, 255, .9);
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}

.rayden360__dialog[hidden] {
  display: none;
}

.rayden360__dialog {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.rayden360__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
}

.rayden360__panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 800px);
  height: min(92vh, 800px);
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
}

.rayden360__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.rayden360__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #111;
  background: rgba(255, 255, 255, .95);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.rayden360-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .rayden360__dialog {
    padding: 8px;
  }

  .rayden360__panel {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
}
