/* Fullscreen wrapper that covers the entire viewport */
.fullscreen-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999999999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  touch-action: pan-x; /* Allow horizontal swipe only */
}

/* Image inside the fullscreen wrapper */
.fullscreen-wrapper img {
  max-width: 94vw;
  max-height: 98vh;
  object-fit: contain;
  box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

/* Zoomed image layout */
.fullscreen-wrapper img.zoomed {
  height: 100vh;
  width: auto;
  max-width: none;
  max-height: none;
}


/* Desktop-only cursor styling */
@media (hover: hover) and (pointer: fine) {
  .fullscreen-image {
    cursor: zoom-in;
  }

  .fullscreen-image.zoomed {
    cursor: zoom-out;
  }
  
    .desktop-zoomed {
    cursor: zoom-out;
  }
}


/* Subtle hover zoom ONLY for normal Twitter images */
.zoomable-twitter:not(.fullscreen-image):not(.desktop-zoomed) {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: zoom-in;
}

.zoomable-twitter:not(.fullscreen-image):not(.desktop-zoomed):hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
