/* ARSA_INTERFACE — intentionally minimal; your glass system does the beauty. */

.arsa-interface {
  position: fixed;
  inset: 0;
  z-index: 990;
  pointer-events: none; /* surfaces re-enable */
}

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

.arsa-interface__surface {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.arsa-interface__surface[data-type^="callout"] {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
  pointer-events:none;
}

.arsa-interface__surface:not([data-type^="callout"]) {
  z-index: 2;
}

/* Drawer anchors itself right by default. */
.arsa-interface__surface[data-type^="drawer"] {

}

.arsa-interface__panel {
  max-width: min(92vw, 820px);
  max-height: min(92vh, 900px);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.arsa-interface__panel[data-mode="callout"] {
  position: absolute !important;
  pointer-events: auto;
}

.arsa-interface__panel[data-mode="callout"] > * {
  pointer-events:none;
}

.arsa-interface__panel.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.arsa-interface__panel[data-mode^="drawer"] {
  position: absolute !important;
  top: 0;
  max-width: 92vw;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0 !important;
  transition: transform .4s ease-in;
}

.arsa-interface__panel[data-mode="drawer-left"] {
  left: 0;
  transform: translateX(-100%);
}

.arsa-interface__panel[data-mode="drawer-right"] {
  right: 0;
  transform: translateX(100%);
}

.arsa-interface__panel[data-mode^="drawer"].--is-open {
  transform: translateX(0) !important;
  transition: transform .4s ease-out;
}

.arsa-interface__panel:focus-visible {
  outline: none;
  box-shadow: none;
}

/*
.arsa-interface__panel[data-mode="drawer-right"].--is-closing {
  transform: translateX(100%) !important;
  transition: transform .4s ease-out;
}
.arsa-interface__panel[data-mode="drawer-left"].--is-closing {
  transform: translateX(-100%) !important;
  transition: transform .4s ease-out;
}*/

.arsa-interface__panel.--dark-glass { /* modifier hook if you want */ }

.arsa-interface__navbtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
}

.arsa-interface__iframe {
  height: 80vh;
  width: min(90vw,1000px);
}

.arsa-interface__panel[data-mode^="drawer"] .arsa-interface__iframe {
  height: 100%;
  opacity: 1;
  transition: opacity 0.7s ease;
}

.arsa-interface__panel[data-mode^="drawer"] .arsa-interface__iframe.--is-loading {
  opacity: 0;
}

.arsa-interface__panel[data-mode^="drawer"]:has(.arsa-interface__iframe) {
  
  overflow: hidden;
  
}

.arsa-interface__panel:has(.--is-loading):after {
  content: url(https://arsamatoria.de/wp-content/uploads/2026/01/Dual-Ring@1x-4.0s-205px-205px.webp);
  /*background: url("https://arsamatoria.de/wp-content/uploads/2025/11/ARSAMATORIA-LOGO.svg") no-repeat left center / contain;*/
  background:
    radial-gradient(
      circle,
      rgba(0,0,0,.35) 0%,
      rgba(0,0,0,0) 70%
    ),
    url("https://arsamatoria.de/wp-content/uploads/2025/11/ARSAMATORIA-LOGO.svg")
      center center / contain no-repeat;
  position: absolute;
  top: 50%;
  left:50%;
  padding: 50px;
  transform: translateX(-50%) translateY(-50%);
}


.arsa-interface__navbtn.is-left { left: 18px; }
.arsa-interface__navbtn.is-right { right: 18px; }

.arsa-interface__navbtn.is-hidden { display: none; }

.arsa-interface__panel[data-mode="gallery"] {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
}

.arsa-gallery {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.arsa-gallery__close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  z-index: 3;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.arsa-gallery__close svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arsa-gallery__title {
  padding: 18px 20px 8px;
}

.arsa-gallery__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arsa-gallery__media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.arsa-gallery__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  position: absolute;
  inset: 0;
}


.arsa-gallery__media iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.arsa-gallery__meta {
  flex: 0 0 auto;
  max-height: 30vh;
  overflow: auto;
  padding: 10px 20px 20px;
}

.arsa-gallery__loading,
.arsa-gallery__error,
.arsa-gallery__fallback {
  padding: 20px;
}

.arsa-gallery__stage .arsa-interface__navbtn {
  z-index: 2;
  pointer-events: auto;
}
