/* calendly iframe force height 100%*/
.calendly-inline-widget iframe {
  height: 100% !important;
}


/* Workaround for hiding hover icons while maintaining link functionality.
 * The theme uses hover functionality to include links on featured images.
 * This CSS ensures the icons are invisible on hover, but the clickable area remains.
 * Applied specifically to '.post_featured' elements with hover effects. */
.post_featured.hover_icon:hover .icons a, .post_featured.hover_icons:hover .icons a {
  opacity: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
}

/* LearnDash: Customizing the pricing table for mobile and hiding "Current Status" for non-enrolled users. */
body .ld-course-status.ld-course-status-not-enrolled .ld-course-status-segment.ld-course-status-seg-status {
  display: none;
}

/* Customize eael gallery image to fix it square box correctly*/

.pixefy-eael-custom-gallery .gallery-item-thumbnail-wrap {
  aspect-ratio: 1/1;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.pixefy-eael-custom-gallery .gallery-item-thumbnail-wrap img{
  object-fit: contain !important;
}


@media (max-width: 479px) {
  /* Modify content_wrap width in mobile in all the theme*/
  body .content_wrap, body .content_container {
    width: 100% !important;
    box-sizing: border-box;
    padding-right: 20px;
    padding-left: 20px;
  }
  
  /* Modify coursers grid enrolled button width in mobile*/
  body .learndash-course-grid .items-wrapper .grid-1 .ribbon {
    top: 10px;
    right: 10px;
    padding: 7px 7px;
  }
}

@media (max-width: 640px) {
  body .learndash-wrapper .ld-course-status.ld-course-status-not-enrolled > * {
    padding: 0.5em 0;
    border-right: 2px solid #bec5cb;
    border-bottom: 0;
  }
  
  body .learndash-wrapper .ld-course-status.ld-course-status-not-enrolled {
    flex-direction: row;
    padding: 0.5em 0;
  }
  
  body .learndash-wrapper .ld-course-status.ld-course-status-not-enrolled .ld-course-status-label {
    margin-bottom: 0.5em;
  }
  
  body .learndash-wrapper .ld-course-status.ld-course-status-not-enrolled .ld-course-status-price {
    font-size: 24px;
  }
  
  body .learndash-wrapper .ld-course-status.ld-course-status-not-enrolled .ld-course-status-action .ld-text {
    margin-top: 0.2em;
  }
  
  .learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-name {
    width: 100%;
  }
}

/* Modifies LearnDash course grid to display two courses per row on mobile devices */
@media only screen and (max-width: 767.98px) {
  .learndash-course-grid .items-wrapper.grid {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-gap: 20px !important;
  }
}
