.side-ad {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: none;
  background: none !important;
}

/* Right / Left positions */
.side-ad.right { right: 20px; }
.side-ad.left { left: 20px; }

/* Container — fully transparent */
.ad-container {
  text-align: center;
  background: transparent !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Image — show full, no crop */
.ad-img {
  width: 320px;
  height: auto;
  max-height: 90vh;
  border-radius: 16px;
  object-fit: contain;
  background: transparent !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  animation: fadeInZoom 0.6s ease-in-out;
  transition: transform 0.3s ease;
}

.ad-img:hover { transform: scale(1.05); }

/* Close button below image */
.close-btn {
  margin-top: 8px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 18px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}

.close-btn:hover { background: #333; }

/* Animation */
@keyframes fadeInZoom {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive (for mobile) */
@media (max-width: 700px) {
  .ad-img {
    width: 200px;
  }
  .side-ad.right { right: 10px; }
  .side-ad.left { left: 10px; }
  .close-btn {
    padding: 5px 12px;
    font-size: 12px;
  }
}
