html {
  overscroll-behavior: none;
  scroll-behavior: auto;
}

html,
body {
  overscroll-behavior-y: contain;
}

.home {
  background: transparent;
  height: 1600vh;
  overscroll-behavior: none;
}

.home:not(.friday)::after {
  content: "";
  display: block;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(30deg, #ffd5b1, #ff006c, #ffd5b1);
  background-size: 500% 500%;
  animation: move 40s infinite;
  position: fixed;
  z-index: -1;
}

@keyframes move {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.home-container {
  width: 100vw;
  height: 100vh;
  position: fixed;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: #cc456d;
}
.home-container.friday {
  background: #fff;
}

.home-container__wheel {
  min-width: 240vw;
  height: 240vw;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (orientation: portrait) {
  .home-container__wheel {
    min-width: 200vh;
    height: 200vh;
    /*border: 5px dashed;*/
    border-radius: 50%;
    display: flex;
    align-items: center;
    position: fixed;
    justify-content: center;
    top: 50%;
    right: 0;
    transform: translate(0, -50%);
  }
}

/*
.home-container__wheel::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  background: #000;
}*/

.image-wrapper {
  width: 100vw;
  height: 100vh;
  padding-left: 20vw;
  position: absolute;
  top: 50%;
  right: 0;
  box-sizing: content-box;
  transform-origin: center left;
  opacity: 0;
  pointer-events: none;
}

@media (orientation: portrait) {
  .image-wrapper {
    width: 100%;
    height: 100%;
    box-sizing: content-box;
    transform: translateY(-50%);
    padding-left: 0;
  }
}

@media (orientation: landscape) {
  .image-wrapper:nth-child(5n + 1) {
    transform: translateY(-50%);
  }
  .image-wrapper:nth-child(5n + 2) {
    transform: translateY(-50%);
  }
  .image-wrapper:nth-child(5n + 3) {
    transform: translateY(-50%);
  }
  .image-wrapper:nth-child(5n + 4) {
    transform: translateY(-50%);
  }
  .image-wrapper:nth-child(5n + 5) {
    transform: translateY(-50%);
  }
}

.image-inner {
  width: 100%;
  height: 100%;
  position: absolute;
  pointer-events: none;
  transform-origin: center left;
  position: absolute;
  top: 0;
  right: 0;
}

.beforemove {
  transition: transform 0.25s linear;
}

.image-wrapper a {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  pointer-events: auto;
}

.image-wrapper a:hover {
  text-decoration: none;
}

.image-wrapper a:hover .home-img-caption {
  opacity: 1;
  color: black;
}

.image-wrapper .home-img-caption {
  font-family: "DM Sans", "Open Sans", sans-serif;
  display: block;
  font-size: 1.125rem;
  line-height: 1.4;
  opacity: 0;
  transition: all 0.2s ease;
}

.image-wrapper img {
  max-width: 90vw;
  display: block;
}

@media (min-width: 900px) {
  .image-wrapper img {
    max-width: 40vw;
    display: block;
  }
}

@media (orientation: landscape) {
  .image-wrapper:nth-child(5n + 1) a {
    right: 40vw;
  }

  .image-wrapper:nth-child(5n + 2) a {
    right: 15vw;
    transform: translate(0, -50%);
  }

  .image-wrapper:nth-child(5n + 3) a {
    right: 0;
    transform: translate(0, -50%);
  }

  .image-wrapper:nth-child(5n + 4) a {
    right: 20vw;
  }

  .image-wrapper:nth-child(5n + 5) a {
    right: 95vw;
    transform: translate(100%, -50%);
  }
}

@media (orientation: portrait) {
  .image-wrapper a {
    right: 0;
    left: auto;
    transform: translate(0, -50%);
  }

  .image-wrapper:nth-child(5n + 1) a {
    transform: translate(-15%, -50%);
  }

  .image-wrapper:nth-child(5n + 2) a {
    transform: translate(-5%, -50%);
  }

  .image-wrapper:nth-child(5n + 3) a {
    transform: translate(-20%, -50%);
  }

  .image-wrapper:nth-child(5n + 4) a {
    transform: translate(0, -50%);
  }

  .image-wrapper:nth-child(5n + 5) a {
    transform: translate(-10%, -50%);
  }
}

.home-categories {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 2;
}

.home-categories li {
  position: absolute;
}

.home-categories a {
  font-family: "DM Sans", "Open Sans", sans-serif;
  color: #ffffff;
  font-size: 1.75rem;
  line-height: 0;
  font-weight: 500;
  pointer-events: auto;
}

.home-categories a:hover {
  color: black;
  text-decoration: none;
}

.home-categories a.active {
  color: black;
  position: relative;
}

.home-categories a.active:before {
  content: "x";
  position: absolute;
  top: 18px;
  left: -18px;
  font-size: 20px;
}

.home-container__wheel.hidden {
  opacity: 0;
}

picture {
  position: relative;
  display: block;
  transition: opacity ease 1s;
}

picture.hidden {
  opacity: 0;
}

picture.hidden + .home-img-caption {
  visibility: hidden;
}

.home-cover-image {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: #ffff00;
  content: "";
  opacity: 1;
  transition: all 0.5s ease;
}

.home-cover-image.hidden {
  opacity: 0;
}

.home-loader {
  justify-content: center;
  align-items: center;
  display: flex;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  position: fixed;
  opacity: 0;
  transition: opacity ease 0.3s;
  pointer-events: none;
  z-index: 10;
  filter: brightness(0) invert(1);
}

.friday .home-loader {
  filter: brightness(0);
}

.home-loader.active {
  opacity: 1;
}
.home-loader img {
  width: 40px;
  height: 40px;
  margin: 0 auto;
}
.friday.home {
  background: #ffffff !important;
}

.friday .home-categories a {
  color: #000000;
}

.friday .home-categories a:hover {
  color: #ff006c;
}

/* Botão flutuante de alternância (estilo simples, não intrusivo) */
.sda-home-switcher {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9999;
  font-family: inherit;
}
.sda-home-switcher .sda-switcher-btn {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  align-items: center;
}
.sda-home-switcher button {
  cursor: pointer;
  background: transparent;
  border: none;
  color: inherit;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: "DM Sans", "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}
.sda-home-switcher button[aria-current="true"] {
  background: #2b7cff;
}
.sda-home-switcher .sda-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.2);
}
@media (prefers-color-scheme: light) {
  .sda-home-switcher .sda-switcher-btn {
    background: #fff;
    color: #111;
    border-color: #e5e7eb;
  }
  .sda-home-switcher button[aria-current="true"] {
    background: #2563eb;
    color: #fff;
  }
  .sda-home-switcher .sda-divider {
    background: #e5e7eb;
  }
}
