/* Popup container */
.popup-details {
  display: none;
  position: absolute;
  width: 480px;
  background: #000;
  color: #fff;
  border-radius: 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  z-index: 99999; /* raise above icons */
  overflow: hidden;
}

/* Popup image wrapper */
.popup-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay gradient for text */
.popup-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  color: #fff;
}

/* Title */
#popup-title {
  font-size: 16px;
  font-weight: 400;
  margin: 0 0 8px; /* keep spacing from first sheet */
  padding: 4px 0;  /* keep padding from first sheet */
  display: block;
  color: #fff;
  border-bottom:1px dashed #ccc;
}

/* Description */
#popup-desc,
.popup-overlay div {
  font-size: 15px;
  margin: 0 0 8px;
  color: #fff;
}

/* Date */
#popup-date,
.popup-overlay span {
  font-size: 15px;
  font-weight: 400;
  color: #ffd700;
}
.info-icon {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 13px;
  font-style: italic;
  background: #ff0000;   /* red square background */
  color: #ffffff;        /* white "i" text */
  text-align: center;
  cursor: pointer;
  line-height: 19px;
  height: 19px;
  width: 18px;
  display: none;         /* hidden by default */
}

.info-icon::before {
  content: "i";
  font-style: italic;
}

/* Show icon only when hovering over the post column */
.post-column:hover .info-icon {
  display: inline-block;
}

/* Still hide completely on mobile */
@media (max-width: 768px) {
  .info-icon {
    display: none !important;
  }
}
