/*
 Theme Name: Improvise For Real
 Author: Web Orchard
 Template: jupiterx
 Version: 0.0.0
*/

body:not(.admin-bar) {
  --wp-admin--admin-bar--height: 0px;
}

p:first-child:last-child {
  margin: 0;
}

.jupiterx-site {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--wp-admin--admin-bar--height));

  > footer {
    margin-top: auto;
  }
}

.home-slider {
  .swiper-slide {
    height: auto !important;
    aspect-ratio: 3.3
  }

  .swiper-slide-contents {
    max-width: 1300px !important;
    margin: auto;
    flex: 1;
  }
  .elementor-button {
    padding: 0;

    &::after {
      font-family: 'FontAwesome', sans-serif;
      transform: translateY(-2px);
      display: inline-block;
      content: '\f054';
      margin-left: 1ch;
      font-size: 15px;
    }
  }
}

.text-slider {
  .swiper {
    width: 100% !important;
  }

  .elementor-swiper-button-prev {
    left: -1.5rem !important;
  }

  .elementor-swiper-button-next {
    right: -1.5rem !important;
  }
}

.product-carousel {
  --n: 3;
  --space: 2rem;
  scroll-snap-type: x mandatory;
  overflow-x: scroll !important;
  gap: var(--space) !important;

  > div {
    scroll-snap-align: start;
    flex: 0 0 calc(100% / var(--n) - (var(--n) - 1) * var(--space) / var(--n)) !important;
  }
}

.elementor-widget-raven-post-meta {
  ul {
    margin: 0 !important;
    gap: 1rem;
  }
  li {
    margin: 0 !important;
  }
  li + li::before {
    content: '/';
    margin-right: 1rem;
  }
}


.jupiterx-site:has(.member-header) {
  --sidebar-width: 240px;

  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  position: relative;

  & > header {
    position: sticky;
    top: 0;
    align-self: start;
  }

  .member-header {
    min-height: 100vh;
  }

  & > footer {
    display: none;
  }
}

.past-purchases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;

  img {
    aspect-ratio: 1.66875;
    height: auto;
    display: block;
    object-fit: cover;
    width: 100%;
  }
}