/**
 * Ad Placements Styles
 *
 * @package AFEL
 */

.afel-ad-container {
  margin-bottom: 24px;
  text-align: center;
  clear: both;
}

.afel-ad-container.afel-ad-after-main,
.afel-ad-container.afel-ad-between-tool-cards,
.afel-ad-container.afel-ad-between-post-cards {
  margin-bottom: 0;
}

.afel-ad-between-tool-cards,
.afel-ad-between-post-cards {
  width: 100%;
  height: 100%;
}

.afel-ad-between-tool-cards img,
.afel-ad-between-post-cards img {
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}

.afel-ad-container img {
  max-width: 100%;
  height: auto;
}

.afel-ad-between-paragraphs {
  margin: 2em 0;
}

.afel-ad-between-posts {
  margin: 2em 0;
  padding: 1em 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.afel-ad-lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.afel-ad-lazy-load.afel-ad-loaded {
  opacity: 1;
}

/* Responsive Ad Classes */
.ads-on-desktop,
.ads-on-tablet,
.ads-on-mobile {
  display: none;
}

/* Desktop ads */
@media (min-width: 1025px) {
  .ads-on-desktop {
    display: block;
  }
}

/* Tablet ads */
@media (min-width: 541px) and (max-width: 1024px) {
  .ads-on-tablet {
    display: block;
  }
}

/* Mobile ads */
@media (max-width: 540px) {
  .ads-on-mobile {
    display: block;
  }
}

/* Ensure responsive ad images are properly sized */
.ads-on-desktop img,
.ads-on-tablet img,
.ads-on-mobile img {
  max-width: 100%;
  height: auto;
  display: block;
}
