.scroll-container {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.horizontal-scroll {
  display: flex;
  height: 100vh;
  width: max-content;
}

.img-mask {
  flex-shrink: 0;
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.img-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scroll-container--small .img-mask {
  width: 70vw;
}

.img-mask--small img {
  height: 75%;
}

/* ====== Hover overlay estilo "Rastro Luminoso" ====== */

.img-mask::after {
  content: "";
  position: absolute;
  top: 0;
  right: -40vw;
  width: 30vw;
  height: 100%;
  background-color: var(--mask-color);
  transform: translateX(100%);
  transition: transform 0.25s ease-out; /* 🔥 volta rápida */
  z-index: 2;
}

.img-mask:hover::after {
  transform: translateX(0);
  right: 0;
  transition-duration: 0.4s; /* 🔥 ida mais lenta */
  transition-timing-function: ease;
}

/* Escurece levemente a imagem ao hover */
.img-mask img {
  transition: transform 0.5s ease, filter 0.8s ease;
}

.img-mask--small:hover img {
  transform: scale(1);
  filter: brightness(0.8);
}

/* Texto sobreposto */
.img-mask .artist,
.img-mask .caption,
.img-mask .sub,
.img-mask .location {
  position: absolute;
  top: 8%;
  left: 70.8vw;
  color: black;
  opacity: 0;
  transform: translateX(900px);
  transition:
    transform 0.01s ease-out,
    opacity 0.2s ease-out; /* 🔥 volta rápida */
  z-index: 3;
}

.img-mask .caption {
  top: 45%;
  text-transform: none;
}

.img-mask .sub {
  top: 75%;
  text-transform: none;
  font-size: 1rem;
}

.img-mask .location {
  top: 94%;
  text-transform: none;
  font-size: 1rem;
}

.img-mask:hover .artist,
.img-mask:hover .caption,
.img-mask:hover .sub,
.img-mask:hover .location {
  opacity: 1;
  transform: translateX(0);
  transition-duration: 0.4s; /* ida mais lenta */
  transition-timing-function: ease;
}

.collab-card {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.collab-card img {
  width: 100%;
  height: 78vh;
  object-fit: cover;
  transition: transform 0.8s ease;
}

/* Overlay branco */
.collab-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  opacity: 0;
  transition: all 0.4s ease;
  display: flex;
  padding: 1rem;
}

.collab-card:hover img {
  transform: scale(1.05);
}

.collab-card:hover .overlay {
  opacity: 0.8;
}

/* Conteúdo interno */
.overlay-content {
  color: black;
  text-align: left;
  font-family: "Roc", sans-serif;
  font-weight: 500;
}

.overlay-content .description {
  font-size: 24px;
  margin-bottom: 0.5rem;
  font-family: "Roc", sans-serif;
  font-weight: 500;
}

.overlay-content .description .title {
  font-size: 24px;
}

.overlay-content .dates {
  font-family: "Roc Regular", sans-serif;
  font-size: 28px !important;
  font-weight: 400 !important;
}

.desc > p {
  font-size: 24px;
  font-family: "Roc", sans-serif;
  font-weight: 500;
  margin-top: -25px;
}

.btn.btn-primary {
  background-color: transparent;
  border: none;
  color: black;
  font-weight: 500;
}

.btn.btn-primary:active {
  background-color: transparent;
  border: none;
  color: black;
  font-weight: 500;
}

.img-title {
  font-size: 24px;
  font-family: "Roc", sans-serif;
  font-weight: 500;
}

.artist {
  font-size: 42px;
  font-weight: 500;
}

.caption {
  font-size: 42px;
  font-weight: 400;
}

.sub {
  font-size: 16px;
  font-weight: 400;
}

@media (max-width: 1600px) {
  .artist {
    font-size: 36px;
  }

  .caption {
    font-size: 36px;
  }
}

@media (max-width: 1300px) {
  .artist {
    font-size: 32px;
  }

  .caption {
    font-size: 32px;
  }
}

.section-title {
  font-family: "Roc", sans-serif;
  font-size: 24px !important;
  font-weight: 500;
}

.roc {
  font-family: 'Roc', sans-serif;
  font-weight: 500;
  font-size: 24px;
}

/* =====================================
   External exhibitions – estado fixo
   ===================================== */

/* remove qualquer lógica de hover */
.img-mask--external:hover .artist,
.img-mask--external:hover .caption,
.img-mask--external:hover .sub,
.img-mask--external:hover .location {
  opacity: 1;
  transform: none;
}

/* FORÇA estado visível por padrão */
.img-mask.img-mask--external .artist,
.img-mask.img-mask--external .caption,
.img-mask.img-mask--external .sub,
.img-mask.img-mask--external .location {
  position: static;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* remove overlay */
.img-mask--external::after {
  display: none !important;
}

/* remove hover da imagem */
.img-mask--external:hover img {
  transform: none;
  filter: none;
}

.external-info {
  position: absolute;
  left: 2.5vw;
  bottom: 5vh;
  z-index: 5;
  max-width: 40vw;
}

.external-info .artist, .external-info .title, .external-info .dates {
  font-size: 42px;
}

@media (max-width: 991.98px) {
  .mobile-home {
    padding: 100px 10px 24px;
  }

  .mobile-section {
    margin-bottom: 2rem;
  }

  .mobile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }

  .mobile-nav-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }

  .mobile-nav-btn {
    border: none;
    background: transparent;
    color: black;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
  }

  .mobile-track {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .mobile-track::-webkit-scrollbar {
    display: none;
  }

  .mobile-exhibition-card {
    text-decoration: none;
    color: black;
    min-width: 100%;
    scroll-snap-align: start;
  }

  .mobile-exhibition-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
  }

  .mobile-card-content {
    padding-top: 8px;
  }

  .mobile-card-title {
    font-family: "Roc", sans-serif;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: -6px;
    margin-top: -5px;
  }

  .mobile-card-subtitle {
    font-family: "Roc", sans-serif;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 18px;
    line-height: 1;
    margin-top: 5px;
  }

  .mobile-card-meta {
    margin-bottom: 0;
    font-size: 12px !important;
  }

  .mobile-card-location {
    font-family: "Roc Regular", sans-serif;
    font-size: 12px !important;
    line-height: 1;
  }

  .mobile-collab-section .section-title {
    margin-bottom: 12px;
  }

  .mobile-collab-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-collab-card {
    text-decoration: none;
    color: black;
    display: block;
  }

  .mobile-collab-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
  }

  .mobile-collab-content {
    padding-top: 6px;
    line-height: 1.1;
  }

  .mobile-collab-title {
    font-family: "Roc", sans-serif;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: -2px;
    line-height: 1;
  }

  .mobile-collab-location {
    font-family: "Roc Regular", sans-serif;
    font-size: 12px;
    margin-top: 5px;
  }
}