:root {
  --square-size: min(62vw, 62vh);
  --panel-padding: 6vw;
  --page-bg: transparent;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  scrollbar-width: none;
}

body {
  font-family: Arial, sans-serif;
  background: var(--page-bg);
}

body::-webkit-scrollbar {
  display: none;
}

.scroll-indicator {
  position: fixed;
  right: 0;
  top: 0;
  width: 10px;
  height: 45px;

  background: #1CB0F8;
  z-index: 9999;

  pointer-events: none;
}
/* PANEL 1: FEST IM HINTERGRUND */
.panel {
  width: 100%;
  height: 100vh;
}

.panel-fixed {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* ALLES DARÜBER */
.page-content {
  position: relative;
  z-index: 1;
}

/* PANEL 2: STARTET 100VH TIEFER UND BLEIBT DANN OBEN KLEBEN */
.panel-sticky-offset {
  position: relative;
  height: 100vh;
}

.panel-sticky {
  position: sticky;
  top: 0;
  z-index: 2;
  overflow: hidden;
}

/* VOLLFORMATIGE MEDIEN FÜR VIDEO / GIF */
.media-fill {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* NORMALE TRANSPARENTE SCROLLBEREICHE */
.content-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--panel-padding);
  background: transparent;
  position: relative;
  z-index: 3;
}

/* ZENTRALES QUADRAT FÜR BILDER */
.square-frame {
  width: var(--square-size);
  aspect-ratio: 1 / 1;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;

}

.rectangle-frame {  
  max-height: var(--square-size);
  max-width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.square-frame img,
.square-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rectangle-frame img {

  max-height: var(--square-size);
  max-width: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  :root {
    --square-size: min(82vw, 82vw);
    --panel-padding: 8vw;
  }
}
