/* =========================================================
   ANDREIA SALARO — RESULTS GALLERY V10
   Fotos e vídeos separados para evitar conflito visual.
   ========================================================= */

.results-section {
  padding: 76px 0 82px !important;
}

.results-heading {
  text-align: center;
  margin-bottom: 30px;
}

.results-heading .text-small {
  display: block;
  margin-bottom: 8px;
}

.results-heading p {
  margin: 12px auto 0;
  max-width: 600px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.results-showcase {
  width: min(100%, 760px);
  margin: 0 auto;
}

.results-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(145deg, #efe3e0, #f8f0ee);
  border: 1px solid rgba(138, 99, 91, 0.12);
  box-shadow: 0 18px 44px rgba(82, 57, 52, 0.11);
  isolation: isolate;
}

.results-main-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #efe6e3;
  cursor: zoom-in;
}

.results-type-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 253, 252, 0.92);
  border: 1px solid rgba(138, 99, 91, 0.14);
  box-shadow: 0 5px 16px rgba(47, 32, 29, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--rose-dark, #8A635B);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.13em;
  font-weight: 700;
}

.results-expand {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(138, 99, 91, 0.14);
  border-radius: 50%;
  background: rgba(255, 253, 252, 0.94);
  color: #6f4e48;
  box-shadow: 0 7px 20px rgba(47, 32, 29, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.results-expand:hover {
  transform: scale(1.05);
  background: #fff;
}

.results-current-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 2px 0;
}

.results-current-copy strong {
  color: var(--text-primary);
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
}

.results-current-copy span {
  flex: 0 0 auto;
  color: var(--text-secondary);
  font-size: 12px;
}

.results-thumbnails {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  padding: 3px 2px 7px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.results-thumbnails::-webkit-scrollbar,
.results-video-carousel::-webkit-scrollbar {
  display: none;
}

.results-thumb {
  position: relative;
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: #efe6e3;
  opacity: .74;
  cursor: pointer;
  scroll-snap-align: center;
  transition: transform .2s ease, opacity .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.results-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.results-thumb:hover,
.results-thumb.is-active {
  opacity: 1;
  border-color: #a77970;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(75, 50, 45, .12);
}

.results-swipe-hint,
.results-video-swipe-hint {
  display: none;
  margin: 5px 0 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 11px;
  letter-spacing: .02em;
}

/* ---------- Galeria de vídeos separada ---------- */
.results-video-gallery {
  width: min(100%, 920px);
  margin: 56px auto 0;
  padding-top: 48px;
  border-top: 1px solid rgba(138, 99, 91, 0.12);
}

.results-video-heading {
  text-align: center;
  margin-bottom: 22px;
}

.results-video-heading .text-small {
  display: block;
  margin-bottom: 7px;
}

.results-video-heading h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--text-primary);
}

.results-video-heading p {
  max-width: 520px;
  margin: 9px auto 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.results-video-carousel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.results-video-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 14;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(138, 99, 91, 0.13);
  border-radius: 18px;
  background: #eadedb;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(82, 57, 52, .10);
  scroll-snap-align: center;
  transition: transform .22s ease, box-shadow .22s ease;
}

.results-video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(82, 57, 52, .14);
}

.results-video-card:focus-visible {
  outline: 2px solid rgba(138, 99, 91, .65);
  outline-offset: 3px;
}

.results-video-preview {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #eadedb;
  pointer-events: none;
}

.results-video-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(to top, rgba(30, 21, 19, .62), transparent);
  pointer-events: none;
}


.results-video-card-label {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

/* ---------- Fullscreen lightbox ---------- */
.results-lightbox.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100dvh;
  padding: max(20px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: rgba(20, 14, 13, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

.results-lightbox.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.results-lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(92vw, 980px);
  height: min(88dvh, 900px);
}

.results-lightbox .lightbox-image,
.results-lightbox-video {
  display: block;
  max-width: 100%;
  max-height: calc(88dvh - 70px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.42);
  transform: none;
  background: #0d0908;
}

.results-lightbox .lightbox-image[hidden],
.results-lightbox-video[hidden],
.results-lightbox .lightbox-nav[hidden] {
  display: none !important;
}

.results-lightbox-video {
  width: min(100%, 540px);
  max-height: calc(88dvh - 70px);
}

.results-lightbox-video::-webkit-media-controls,
.results-lightbox-video::-webkit-media-controls-panel,
.results-lightbox-video::-webkit-media-controls-start-playback-button {
  display: flex !important;
  opacity: 1 !important;
  -webkit-appearance: media-controls-panel !important;
}

.results-lightbox .lightbox-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 100002;
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
  color: #fff;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 100001;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  padding: 0 0 4px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
  color: #fff;
  font: 300 38px/1 Arial, sans-serif;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }

.results-lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 760px;
  padding-top: 14px;
  color: #fff;
}

.results-lightbox-caption strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 500;
}

.results-lightbox-caption span {
  flex: 0 0 auto;
  color: rgba(255,255,255,.68);
  font-size: 12px;
}

@media (max-width: 767px) {
  .results-section {
    padding: 58px 0 62px !important;
  }

  .results-heading {
    margin-bottom: 22px;
  }

  .results-heading p {
    max-width: 330px;
    margin-top: 9px;
    font-size: 14px;
    line-height: 1.5;
  }

  .results-showcase {
    width: 100%;
  }

  .results-stage {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    box-shadow: 0 13px 32px rgba(82, 57, 52, .10);
  }

  .results-type-badge {
    left: 10px;
    top: 10px;
    min-height: 27px;
    padding-inline: 10px;
    font-size: 9px;
  }

  .results-expand {
    right: 10px;
    top: 10px;
    width: 42px;
    height: 42px;
  }

  .results-current-copy {
    gap: 12px;
    padding-top: 12px;
  }

  .results-current-copy strong {
    font-size: 18px;
  }

  .results-current-copy span {
    font-size: 10px;
    text-align: right;
  }

  .results-thumbnails {
    gap: 8px;
    margin-top: 11px;
    margin-inline: -2px;
    width: calc(100% + 4px);
    padding-bottom: 6px;
  }

  .results-thumb {
    flex-basis: 62px;
    width: 62px;
    height: 62px;
    border-radius: 10px;
  }

  .results-swipe-hint,
  .results-video-swipe-hint {
    display: block;
  }

  .results-video-gallery {
    width: 100%;
    margin-top: 42px;
    padding-top: 38px;
  }

  .results-video-heading {
    margin-bottom: 18px;
  }

  .results-video-heading h3 {
    font-size: 28px;
  }

  .results-video-heading p {
    max-width: 320px;
    font-size: 13px;
  }

  .results-video-carousel {
    display: flex;
    gap: 12px;
    width: calc(100% + 20px);
    margin-right: -20px;
    padding: 2px 20px 8px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .results-video-card {
    flex: 0 0 min(74vw, 280px);
    width: min(74vw, 280px);
    aspect-ratio: 9 / 14;
    border-radius: 16px;
  }

  .results-lightbox.lightbox-modal {
    padding: 62px 12px 24px;
  }

  .results-lightbox-content {
    width: 100%;
    height: calc(100dvh - 92px);
  }

  .results-lightbox .lightbox-image,
  .results-lightbox-video {
    max-width: 100%;
    max-height: calc(100dvh - 155px);
    border-radius: 9px;
  }

  .results-lightbox-video {
    width: 100%;
  }

  .lightbox-nav {
    top: auto;
    bottom: max(22px, env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
    transform: none;
    font-size: 32px;
  }

  .lightbox-prev { left: 18px; }
  .lightbox-next { right: 18px; }

  .results-lightbox-caption {
    position: absolute;
    left: 50%;
    bottom: max(27px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: calc(100% - 126px);
    padding: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    text-align: center;
  }

  .results-lightbox-caption strong {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 15px;
  }

  .results-lightbox-caption span {
    font-size: 10px;
  }
}

@media (max-width: 359px) {
  .results-current-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .results-current-copy span {
    text-align: left;
  }

  .results-thumb {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
  }

  .results-video-card {
    flex-basis: 76vw;
    width: 76vw;
  }
}
