.pages-toggle-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  background-color: rgb(234, 234, 234);
  border-top-left-radius: var(--regular-border-radius);
  border-top-right-radius: var(--regular-border-radius);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image .3s;
}
.pages-toggle-wrapper.active--left {
  background-image: var(--background-left);
}
.pages-toggle-wrapper.active--right {
  background-image: var(--background-right);
}

.pages-toggle {
  display: flex;
  align-items: center;
  backdrop-filter: var(--blur);
  padding: .15em;
  border-radius: 9999px;
  background-color: var(--color-header);
  justify-content: stretch;
  border: 1px solid rgba(255,255,255,.3);
  margin: 1rem;
}
.pages-toggle.sticky {
  position: fixed;
  top: calc(var(--header-height) + 1rem);
  right: var(--site-padding-sides);
  z-index: 100;
  padding: .1em;
  background-color: #DBDBDB66;
  border: 1px solid #dbdbdbb2;
  animation: pages-toggle-fadein .3s ease forwards;
  margin: 0;
}

@keyframes pages-toggle-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.pages-toggle-inner {
  overflow: hidden;
  position: relative;
  display: flex;
  border-radius: 9999px;
}

.pages-toggle-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  text-align: center;
  z-index: 1;
  cursor: pointer;
  color: rgba(255,255,255,.7);
  transition: color .25s;
  padding: .5em;
}
.pages-toggle-label.active {
  color: rgba(255,255,255,1);
}
@media (hover: hover) {
  .pages-toggle-label:hover {
    color: rgba(255,255,255,1);
  }
}
.pages-toggle.sticky .pages-toggle-label {
  width: 3rem;
  font-weight: var(--font-weight-header);
  font-size: var(--font-size);
  line-height: var(--line-height-regular);
  padding: .25em .5em .2em .5em;
}


.pages-toggle-left-label:not(.active) .pages-toggle-label-abrevation {
  color: var(--color-left);
}
.pages-toggle-right-label:not(.active) .pages-toggle-label-abrevation {
  color: var(--color-right);
}
.pages-toggle.sticky .pages-toggle-label-text,
.pages-toggle-label-abrevation {
  display: none;
}
.pages-toggle.sticky .pages-toggle-label-abrevation {
  display: inline;
}



@media (max-width: 1924px) {

  .pages-toggle-label-text {
    font-size: var(--font-size-regular);
    line-height: var(--line-height-regular);
  }
  .pages-toggle-label {
    padding: .4em;
  }

}

@media (max-width: 720px) {
  
  .pages-toggle-wrapper {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
  .pages-toggle-label-text {
    font-size: var(--font-size);
  }
  .pages-toggle-label {
    padding: .3em;
  }

}




.pages-toggle-state {
  position: absolute;
  width: 50%;
  height: 100%;
  left: 0;
  transition: left .25s ease, background-color .25s ease, border-radius .25s ease;
}
.active--left .pages-toggle-state {
  left: 0;
  background-color: var(--color-left, grey);
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
}
.active--right .pages-toggle-state {
  left: 50%;
  background-color: var(--color-right, grey);
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
}


/* CONTENT CONTAINERS */

.pages-toggle-content {
  display: none;
}
.pages-toggle-content.active {
  display: block;
}