/* rem and em do NOT depend on html font-size in media queries! Instead, 1rem = 1em = 16px */
@media (max-width: 1400px) {
  
}
/**************************/
/* BELOW 1344px (Smaller desktops) */
/**************************/

@media (max-width: 1344px) {
  
}

/**************************/
/* BELOW 1200px (Landscape Tablets) */
/**************************/

@media (max-width: 1200px) {
  html {
    /* 9px / 16px  */
    font-size: 56.25%;
  }
  
  
}

/**************************/
/* BELOW 944px (Tablets) */
/**************************/

@media (max-width: 944px) {
  html {
    /* 8px / 16px = 0.5 = 50% */
    font-size: 50%;
  }

  /* MOBILE NAVIGATION */
  .btn-mobile-nav {
    display: block;
    z-index: 9999;
  }

  .main-nav-list li {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
  }
  
  h1 {
    font-size: 7rem;
    font-weight: 700;
  }

  h2 {
    font-size: 6rem;
    font-weight: 700;
  }

  h3 {
    font-size: 5rem;
    font-weight: 600;
  }
  h4 {
    font-size: 4rem;
    font-weight: 600;
  }
  h5 {
    font-size: 3rem;
    font-weight: 500;
  }
  h6 {
    font-size: 2rem;
    font-weight: 400;
  }
  .h7 {
    font-size: 1.8rem;
    font-weight: 400;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100dvh;

    background-color: #405a50;

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 9998;
  }

  .nav-open .main-nav {
    display: flex;

    animation: nav-open 0.3s ease-out;
  }

  @keyframes nav-open {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  .main-nav-list {
    flex-direction: column;
    gap: 4.8rem;
  }

  .nav-open .icon-mobile-nav[name="close-outline"] {
    display: block;
  }

  .nav-open .icon-mobile-nav[name="menu-outline"] {
    display: none;
  }
  .footer-main {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 3rem;
    padding: 4rem 3rem 3rem;
  }

  .footer-bank-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .footer-qr {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 1rem;
  }
  
}

/**************************/
/* BELOW 704px (Smaller tablets) */
/**************************/

@media (max-width: 704px) {
  

  .nav-col {
    grid-row: 1;
    grid-column: span 2;
    margin-bottom: 3.2rem;
  }

   .section-intro {
    position: relative;
    min-height: 55rem;
  }

  .intro-illustration {
    width: 100%;
    height: 55rem;
    object-fit: cover;

    /* Keeps more of the church visible when the wide image is cropped */
    object-position: 58% center;
  }

  .hero-text,
  .intro-text {
    right: 2rem;
    bottom: 2rem;

    width: calc(100% - 4rem);
    padding: 2.4rem;

    text-align: center;

    background-color: rgba(255, 250, 240, 0.82);
    backdrop-filter: blur(2px);
    border-radius: 0.8rem;
  }

  .hero-text-heading, 
  .intro-text-heading {
    max-width: none;
    margin-bottom: 1.4rem;
    font-size: 2.8rem;
    line-height: 1.2;
  }

  .hero-text-content,
  .intro-text-content {
    margin-bottom: 1rem;
    font-size: 1.6rem;
  }

  .hero-text-default,
  .intro-text-default {
    font-size: 2rem;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
    row-gap: 3rem;
    padding: 4rem 3rem 3rem;
  }

  /* Contacts takes the full left column height */
  .footer-container:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  /* Address top-right */
  .footer-container:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  /* Service times below address */
  .footer-container:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .footer-address,
  .footer-contact {
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .footer-container.bank {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .section-oorons {
    display:grid;
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

/**************************/
/* BELOW 544px (Phones) */
/**************************/

@media (max-width: 544px) {
  .section-preke {
    grid-template-columns: 1fr;
    padding: 3rem 2rem;
    row-gap: 4rem;
  }

  .preke-heading {
    grid-column: 1;
  }

  .social-icon,
  .preke-aflaai-icon,
  .video-icon {
    width: 12rem;
    height: 12rem;
    margin: 0 auto;
  }
   .footer-main {
    grid-template-columns: minmax(0, 1fr);
    padding: 3rem 2rem;
    row-gap: 3rem;
    justify-items: center;
  }

  .footer-container,
  .footer-container:nth-child(1),
  .footer-container:nth-child(2),
  .footer-container:nth-child(3),
  .footer-container.bank {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    min-width: 0;
  }

  .footer-address,
  .footer-contact,
  .footer-bank {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .footer-bank > h5 {
    text-align: center;
  }

  .footer-bank-content {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .footer-bank-content > div:not(.footer-qr) {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .footer-qr {
    justify-self: center;
    margin: 1rem auto 0;
  }

  .footer-qr img {
    width: 12rem;
    height: 12rem;
  }
}

/* @media (max-width: 362px) {
   .address-col h3 {
    font-size: 4rem;
    font-weight: 800;
  }
} */

/* 
- Font sizes (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

- Spacing system (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
*/

/**************************/
/* Fixing Safari flexbox gap */
/**************************/



