/* ==========================================================================
   DigiGron — Responsive overrides (Tailwind sm/md/lg breakpoints)
   ========================================================================== */

/* Grids that stack on mobile ------------------------------------------------ */
/* .grid.md\:grid-cols-2,
.grid.md\:grid-cols-3,
.grid.md\:grid-cols-4,
.grid.md\:grid-cols-5,
.grid.lg\:grid-cols-2,
.grid.lg\:grid-cols-3,
.grid.lg\:grid-cols-4,
.grid.lg\:grid-cols-5,
.grid.lg\:grid-cols-12,
.grid.sm\:grid-cols-2 {
  grid-template-columns: minmax(0, 1fr);
} */

/* sm ≥ 640px */
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* md ≥ 768px */
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .md\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .md\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .md\:flex {
    display: flex;
  }

  .md\:inline-flex {
    display: inline-flex;
  }

  .md\:hidden {
    display: none !important;
  }

  .md\:flex-row {
    flex-direction: row;
  }

  .md\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }

  .md\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }

  .md\:text-7xl {
    font-size: 4.5rem;
    line-height: 1;
  }

  .md\:text-8xl {
    font-size: 6rem;
    line-height: 1;
  }

  .md\:p-14 {
    padding: 3.5rem;
  }

  .md\:p-20 {
    padding: 5rem;
  }

  .md\:p-10 {
    padding: 2.5rem;
  }

  .md\:justify-self-end {
    justify-self: end;
  }
}

/* lg ≥ 1024px */
@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lg\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .lg\:grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .lg\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .lg\:col-span-3 {
    grid-column: span 3 / span 3;
  }

  .lg\:col-span-5 {
    grid-column: span 5 / span 5;
  }

  .lg\:col-span-7 {
    grid-column: span 7 / span 7;
  }

  .lg\:order-1 {
    order: 1;
  }

  .lg\:order-2 {
    order: 2;
  }

  .lg\:pl-12 {
    padding-left: 3rem;
  }

  .lg\:pr-12 {
    padding-right: 3rem;
  }

  .lg\:sticky {
    position: sticky;
  }

  .lg\:top-24 {
    top: 6rem;
  }
}

/* Header mobile menu shown only when JS toggles it */
.site-header nav.primary-nav,
.site-header .header-cta {
  display: none;
}

@media (min-width: 768px) {
  .site-header nav.primary-nav {
    display: flex;
  }

  .site-header .header-cta {
    display: inline-flex;
  }

  .site-header .menu-btn {
    display: none !important;
  }
}


@media (max-width: 600px) {

  .profile-menu {
    position: relative;
  }


  .profile-btn {
    padding: 7px 10px;
    gap: 6px;
    border-radius: 40px;
  }


  .profile-btn img {
    width: 34px;
    height: 34px;
  }


  #userName {
    display: none;
  }


  .profile-dropdown {

    position: fixed;

    top: 70px;

    right: 10px;

    left: 10px;

    width: auto;

    max-width: 360px;

    margin: auto;

    border-radius: 18px;

    box-shadow: 
      0 15px 40px rgba(0,0,0,0.25);

  }


  .profile-header {

    padding: 22px 15px;

  }


  .profile-header img {

    width: 75px;

    height: 75px;

  }


  .profile-header h3 {

    font-size: 18px;

    margin-top: 10px;

  }


  .profile-header p {

    font-size: 13px;

    padding: 0 10px;

  }


  .profile-dropdown a,
  .profile-dropdown button {

    padding: 13px 18px;

    font-size: 14px;

  }

}


/* Extra small mobile devices */

@media (max-width: 380px) {


  .profile-btn {

    padding: 6px 8px;

  }


  .profile-btn img {

    width: 30px;

    height: 30px;

  }


  .profile-dropdown {

    top: 65px;

    left: 8px;

    right: 8px;

  }


  .profile-header img {

    width: 65px;

    height: 65px;

  }


  .profile-header h3 {

    font-size: 16px;

  }


}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}