/* Tall Image Preview Block Styles */
.tall-image-preview-container {
  max-width: 400px;
  margin: 0 auto 2rem;
}

.tall-image-preview-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 2/1;
  overflow: hidden;
  /* border-radius: 8px; */
  cursor: pointer;
  transition: transform 0.3s ease;
}

.tall-image-preview-thumbnail:hover {
  transform: scale(1.01);
}

.tall-image-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.tall-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  color: black;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: inset 0 0 0 5px rgba(242, 113, 67, 1.000)
}

.tall-image-preview-thumbnail .tall-image-overlay {
  opacity: 1;
}

.tall-image-zoom-icon {
  background: rgba(242, 113, 67, 1);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.tall-image-preview-thumbnail:hover .tall-image-zoom-icon {
  transform: scale(1.2);
}

.tall-image-caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  font-style: italic;
  line-height: 1.4;
}

/* Lightbox Styles */
.tall-image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.3s, opacity 0.3s ease;
}

.tall-image-lightbox.active {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.tall-image-lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  overflow-y: auto;
  padding: 40px 20px 20px 20px;
  box-sizing: border-box;
}

.tall-image-lightbox-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  justify-content: flex-start;
}

.tall-image-lightbox-img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tall-image-lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.tall-image-lightbox-close:hover {
  background: white;
}

.tall-image-lightbox-caption {
  margin-top: 15px;
  color: white;
  font-size: 1rem;
  text-align: center;
  max-width: 600px;
  line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tall-image-preview-container {
    max-width: 300px;
  }
  
  .tall-image-lightbox-overlay {
    padding: 10px;
  }
  
  .tall-image-lightbox-img {
    max-height: calc(90vh - 40px);
  }
  
  .tall-image-lightbox-close {
    top: -10px;
    right: -10px;
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
  
  .tall-image-lightbox-caption {
    font-size: 0.9rem;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .tall-image-preview-container {
    max-width: 250px;
  }
  
  .tall-image-zoom-icon {
    width: 40px;
    height: 40px;
  }
  
  .tall-image-zoom-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* Editor specific styles */
.wp-admin .tall-image-preview-container {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  background: #f9f9f9;
}

.wp-admin .tall-image-lightbox {
  display: none !important;
}