.t360-group {
  margin: 2rem 0;
  font-family: inherit;
  color: inherit;
}

.t360-group__header h2 {
  margin: 0 0 0.5rem;
}

.t360-group__description {
  margin: 0 0 1rem;
  opacity: 0.88;
}

.t360-group__buttons {
  display: grid;
  gap: 12px;
}

.t360-group--grid .t360-group__buttons {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.t360-group--single .t360-group__buttons {
  grid-template-columns: 1fr;
}

.t360-tour-btn {
  border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  background: linear-gradient(
    160deg,
    color-mix(in srgb, currentColor 5%, white),
    white
  );
  color: inherit;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  font-size: 16px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.t360-tour-btn:hover,
.t360-tour-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.13);
}

.t360-modal[hidden] {
  display: none;
}

.t360-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 12px 20px;
  overflow-y: auto;
}

.t360-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 22, 35, 0.72);
}

.t360-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1000px, calc(100vw - 24px));
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.t360-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.t360-modal__title {
  margin: 0 30px 8px 0;
}

.t360-modal__description {
  margin: 0 0 12px;
  opacity: 0.85;
}

.t360-modal__viewer {
  height: min(70vh, 560px);
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #020617;
}

.t360-modal__catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 92px));
  gap: 8px;
  justify-content: start;
  margin-top: 14px;
}

.t360-modal__catalog-btn {
  border: 1px solid rgba(226, 232, 240, 0.18);
  background-color: rgba(148, 163, 184, 0.08);
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center center;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 0;
  min-height: 0;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  overflow: hidden;
}

.t360-modal__catalog-btn:hover,
.t360-modal__catalog-btn:focus {
  border-color: rgba(226, 232, 240, 0.32);
}

.t360-modal__catalog-btn.is-active {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.22);
}

.t360-viewer-open {
  overflow: hidden;
}
