/* =========================================================
   UFY PHONE — VISOR VERTICAL DE GALERÍA
   DÍA C — HORA 2
   ========================================================= */

html.ufy-phone-viewer-open {
  overflow: hidden;
}


/* =========================================================
   MODAL
   ========================================================= */

.ufy-phone-gallery-viewer {
  position: fixed;

  inset: 0;

  z-index: 10050;

  width: 100%;

  height: 100vh;
  height: 100dvh;

  min-height: 100svh;

  display: flex;
  flex-direction: column;

  box-sizing: border-box;

  overflow: hidden;

  background:
    #020307;

  color:
    rgba(255, 255, 255, 0.98);

  isolation: isolate;
}


.ufy-phone-gallery-viewer[hidden] {
  display: none;
}


/* =========================================================
   CABECERA
   ========================================================= */

.ufy-phone-gallery-viewer-header {
  position: relative;

  flex:
    0 0 auto;

  min-height: 62px;

  padding:
    max(
      16px,
      env(safe-area-inset-top)
    )
    16px
    10px;

  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;

  background:
    rgba(2, 3, 7, 0.98);

  border-bottom:
    1px solid
    rgba(255, 255, 255, 0.09);

  backdrop-filter:
    blur(2px);

  -webkit-backdrop-filter:
    blur(2px);
}


/* REGRESAR */

.ufy-phone-gallery-viewer-close {
  appearance: none;

  position: absolute;

  left: 16px;

  top:
    max(
      16px,
      env(safe-area-inset-top)
    );

  max-width: 38%;

  padding: 4px 0;

  border: 0;
  outline: 0;

  display: inline-flex;
  align-items: center;

  gap: 5px;

  background:
    transparent;

  color:
    rgba(255, 255, 255, 0.96);

  font:
    inherit;

  font-size: 13px;
  font-weight: 500;

  line-height: 1;

  white-space: nowrap;

  cursor: pointer;
}


.ufy-phone-gallery-viewer-close:active {
  opacity: 0.62;
}


/* TÍTULO */

.ufy-phone-gallery-viewer-title {
  max-width: 42%;

  margin: 0;

  overflow: hidden;

  color:
    rgba(255, 255, 255, 0.98);

  font-size: 17px;
  font-weight: 600;

  line-height: 1.2;

  text-align: center;

  text-overflow: ellipsis;
  white-space: nowrap;
}


/* CONTADOR */

.ufy-phone-gallery-viewer-counter {
  position: absolute;

  right: 16px;

  top:
    max(
      17px,
      env(safe-area-inset-top)
    );

  color:
    rgba(255, 255, 255, 0.58);

  font-size: 12px;
  font-weight: 500;

  line-height: 1;
}


/* =========================================================
   FLUJO VERTICAL
   ========================================================= */

.ufy-phone-gallery-viewer-feed {
  flex:
    1 1 auto;

  min-width: 0;
  min-height: 0;

  width: 100%;

  overflow-x: hidden;
  overflow-y: auto;

  display: flex;
  flex-direction: column;

  gap: 8px;

  box-sizing: border-box;

  background:
    #020307;

    scroll-behavior:
    auto;

  overscroll-behavior:
    contain;

  scrollbar-width:
    none;

  -webkit-overflow-scrolling:
    touch;
}


.ufy-phone-gallery-viewer-feed::-webkit-scrollbar {
  display: none;
}


/* =========================================================
   PUBLICACIÓN
   ========================================================= */

.ufy-phone-gallery-viewer-post {
  position: relative;

  flex:
    0 0
    calc(
      100dvh - 142px
    );

  min-height: 480px;

  width: 100%;

  display: flex;
  flex-direction: column;

  box-sizing: border-box;

  overflow: hidden;

  background:
    #05070c;
}


/* =========================================================
   IMAGEN
   ========================================================= */

.ufy-phone-gallery-viewer-media {
  position: relative;

  flex:
    1 1 auto;

  min-width: 0;
  min-height: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background:
    #05070c;
}



.ufy-phone-gallery-viewer-reel-type {
  border: 0;
  font-family: inherit;
  cursor: pointer;
  position: absolute;

  left: 12px;
  top: 12px;

  z-index: 3;

  padding:
    5px
    9px;

  border-radius:
    7px;

  background:
    #000;

  color:
    #fff;

  font-size:
    12px;

  font-weight:
    600;

  line-height:
    1;

  pointer-events:
    auto;
}

.ufy-phone-gallery-viewer-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  background:
    #05070c;

  user-select: none;
  -webkit-user-select: none;

  -webkit-user-drag: none;
}


/* =========================================================
   INFORMACIÓN DEBAJO DE LA IMAGEN
   ========================================================= */
.ufy-phone-gallery-viewer-information {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  z-index: 2;

  width: 100%;

  padding:
    6px 10px
    7px;

  box-sizing: border-box;

  background:
    rgba(5, 7, 12, 0.84);

  border-top:
    1px solid
    rgba(255, 255, 255, 0.07);

  backdrop-filter:
    blur(2px);

  -webkit-backdrop-filter:
    blur(2px);
}


.ufy-phone-gallery-viewer-post[data-reel-id] > .ufy-phone-gallery-viewer-information {
  position: relative;
  flex: 0 0 auto;
}

.ufy-phone-gallery-viewer-primary-row {
  display: flex;
  align-items: center;

  gap: 10px;

  min-width: 0;
}


/* =========================================================
   USUARIO
   ========================================================= */

.ufy-phone-gallery-viewer-identity {
  flex:
    1 1 auto;

  min-width: 0;

  display: flex;
  align-items: center;

  gap: 8px;
}


.ufy-phone-gallery-viewer-avatar {
  flex:
    0 0 34px;

  width: 34px;
  height: 34px;

  border-radius: 50%;

  overflow: hidden;

  display: grid;
  place-items: center;

  box-sizing: border-box;

  background:
    rgba(255, 255, 255, 0.09);

  border:
    1px solid
    rgba(255, 255, 255, 0.12);

  color:
    rgba(255, 255, 255, 0.96);

  font-size: 13px;
  font-weight: 700;
}


.ufy-phone-gallery-viewer-avatar img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}


.ufy-phone-gallery-viewer-identity-text {
  flex:
    1 1 auto;

  min-width: 0;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr);

  grid-template-rows:
    auto auto auto;

  align-items: baseline;

  column-gap: 4px;
  row-gap: 4px;

  overflow: hidden;

  white-space: nowrap;
}


.ufy-phone-gallery-viewer-name {
  flex:
    0 1 auto;

  max-width: 100%;

  overflow: hidden;

  color:
    rgba(255, 255, 255, 0.96);

  font-size: 12px;
  font-weight: 600;

  line-height: 1;

  text-overflow: ellipsis;
  white-space: nowrap;
}


.ufy-phone-gallery-viewer-inline-caption {

      grid-column:
    1 / -1;
  flex:
    1 1 auto;

  min-width: 0;

  overflow: hidden;

  color:
    rgba(255, 255, 255, 0.60);

  font-size: 10px;
  font-weight: 400;

  line-height: 1;

  text-overflow: ellipsis;
  white-space: nowrap;
}



.ufy-phone-gallery-viewer-relative-time {
  grid-column:
    1 / -1;

  display: block;

  min-width: 0;

  overflow: hidden;

  color:
    rgba(255, 255, 255, 0.46);

  font-size: 9px;
  font-weight: 450;

  line-height: 1;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.ufy-phone-gallery-viewer-secondary {
  overflow: hidden;

  color:
    rgba(255, 255, 255, 0.52);

  font-size: 10px;
  font-weight: 400;

  line-height: 1.1;

  text-overflow: ellipsis;
  white-space: nowrap;
}


/* =========================================================
   LIKES Y COMENTARIOS
   ========================================================= */

.ufy-phone-gallery-viewer-actions {
  flex:
    0 0 auto;

  display: flex;
  align-items: center;

  gap: 9px;
}


.ufy-phone-gallery-viewer-action {
  appearance: none;

  min-width: 0;

  padding: 3px 0;

  border: 0;
  outline: 0;

  display: inline-flex;
  align-items: center;

  gap: 4px;

  background:
    transparent;

  color:
    rgba(255, 255, 255, 0.90);

  font:
    inherit;

  cursor: pointer;
}


.ufy-phone-gallery-viewer-action:active {
  opacity: 0.62;
}


.ufy-phone-gallery-viewer-action-icon {
  min-width: 18px;

  font-size: 23px;
  font-weight: 300;

  line-height: 0.8;

  text-align: center;
}


.ufy-phone-gallery-viewer-action.is-like
.ufy-phone-gallery-viewer-action-icon,
.ufy-phone-gallery-viewer-action.is-comment
.ufy-phone-gallery-viewer-action-icon,
.ufy-phone-gallery-viewer-action.is-save
.ufy-phone-gallery-viewer-action-icon {
  position: relative;

  display: block;

  width: 28px;
  height: 28px;
  min-width: 28px;

  border: 0;

  background:
    transparent;
}


.ufy-phone-gallery-viewer-like-image,
.ufy-phone-gallery-viewer-comment-image,
.ufy-phone-gallery-viewer-save-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit:
    contain;

  pointer-events:
    none;

  user-select:
    none;

  -webkit-user-select:
    none;
}


.ufy-phone-gallery-viewer-action.is-save.is-active
.ufy-phone-gallery-viewer-save-image {
  filter:
    drop-shadow(
      0 2px 7px
      rgba(157, 77, 255, 0.42)
    );
}


/* COMPARTIR */

.ufy-phone-gallery-viewer-action.is-share
.ufy-phone-gallery-viewer-action-icon {
  position: relative;

  width: 18px;
  height: 19px;

  min-width: 18px;

  color:
    rgba(255, 255, 255, 0.90);

  font-size: 0;

  background:
    linear-gradient(
      currentColor,
      currentColor
    )
    center 1px /
    2px 11px
    no-repeat;
}


.ufy-phone-gallery-viewer-action.is-share
.ufy-phone-gallery-viewer-action-icon::before {
  content: "";

  position: absolute;

  left: 3px;
  bottom: 0;

  width: 12px;
  height: 10px;

  box-sizing: border-box;

  border:
    2px solid
    currentColor;

  border-top: 0;

  border-radius:
    0 0 3px 3px;
}


.ufy-phone-gallery-viewer-action.is-share
.ufy-phone-gallery-viewer-action-icon::after {
  content: "";

  position: absolute;

  left: 50%;
  top: 0;

  width: 7px;
  height: 7px;

  border-left:
    2px solid
    currentColor;

  border-top:
    2px solid
    currentColor;

  transform:
    translateX(-50%)
    rotate(45deg);

  transform-origin:
    center;
}


.ufy-phone-gallery-viewer-action-count {
  font-size: 11px;
  font-weight: 500;

  line-height: 1;
}


/* MÁS OPCIONES */

.ufy-phone-gallery-viewer-more {
  appearance: none;

  flex:
    0 0 auto;

  padding: 4px 0 4px 3px;

  border: 0;
  outline: 0;

  background:
    transparent;

  color:
    rgba(255, 255, 255, 0.78);

  font:
    inherit;

  font-size: 13px;
  font-weight: 700;

  line-height: 1;

  letter-spacing: 0.03em;

  cursor: pointer;
}


.ufy-phone-gallery-viewer-more:active {
  opacity: 0.58;
}

/* =========================================================
   ADS CRISTIANOS — CARRUSEL VERSIÓN 4
   DÍA C — HORA 3
   ========================================================= */

.ufy-phone-gallery-viewer-ad {
  position: absolute;

  left: 50%;
  bottom: 54px;

  z-index: 3;

  width:
    min(
      310px,
      78%
    );

  transform:
    translateX(-50%);

  touch-action:
    pan-y;
}


/* VENTANA */

.ufy-phone-gallery-viewer-ad-viewport {
  width: 100%;

  overflow: hidden;

  box-sizing: border-box;

  border:
    1px solid
    rgba(255, 255, 255, 0.12);

  border-radius: 13px;

  background:
    rgba(5, 7, 12, 0.84);

  box-shadow:
    0 8px 22px
    rgba(0, 0, 0, 0.26);

  backdrop-filter:
    blur(2px);

  -webkit-backdrop-filter:
    blur(2px);
}


/* TRACK */

.ufy-phone-gallery-viewer-ad-track {
  display: flex;

  width: 100%;

  transform:
    translateX(0);

  transition:
    transform 220ms ease;

  will-change:
    transform;
}


/* ANUNCIO */

.ufy-phone-gallery-viewer-ad-slide {
  flex:
    0 0 100%;

  width: 100%;
  min-width: 0;

  min-height: 58px;

  padding:
    7px 9px;

  display: flex;
  align-items: center;

  gap: 8px;

  box-sizing: border-box;

  overflow: hidden;

  color:
    rgba(255, 255, 255, 0.96);

  text-decoration: none;
}


/* MULTIMEDIA */

.ufy-phone-gallery-viewer-ad-media {
  flex:
    0 0 42px;

  width: 42px;
  height: 42px;

  overflow: hidden;

  border-radius: 9px;

  background:
    rgba(255, 255, 255, 0.06);
}


.ufy-phone-gallery-viewer-ad-media img,
.ufy-phone-gallery-viewer-ad-media video {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* TEXTO */

.ufy-phone-gallery-viewer-ad-text {
  flex:
    1 1 auto;

  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 2px;
}


.ufy-phone-gallery-viewer-ad-text small {
  color:
    rgba(190, 133, 255, 0.92);

  font-size: 9px;
  font-weight: 600;

  line-height: 1;

  letter-spacing:
    0.02em;
}


.ufy-phone-gallery-viewer-ad-text strong {
  overflow: hidden;

  color:
    rgba(255, 255, 255, 0.94);

  font-size: 11px;
  font-weight: 500;

  line-height: 1.2;

  text-overflow: ellipsis;
  white-space: nowrap;
}


/* BOTÓN VER */

.ufy-phone-gallery-viewer-ad-view {
  flex:
    0 0 auto;

  padding:
    5px 8px;

  border:
    1px solid
    rgba(175, 104, 255, 0.52);

  border-radius:
    999px;

  color:
    rgba(220, 188, 255, 0.96);

  font-size: 10px;
  font-weight: 600;

  line-height: 1;
}


/* PUNTOS */

.ufy-phone-gallery-viewer-ad-dots {
  min-height: 10px;

  padding-top: 4px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 4px;
}


.ufy-phone-gallery-viewer-ad-dot {
  appearance: none;

  width: 5px;
  height: 5px;

  padding: 0;

  border: 0;
  outline: 0;

  border-radius: 50%;

  background:
    rgba(255, 255, 255, 0.25);

  cursor: pointer;
}


.ufy-phone-gallery-viewer-ad-dot.is-active {
  background:
    #a75cff;

  box-shadow:
    0 0 6px
    rgba(167, 92, 255, 0.48);
}
