/* screensize 384px */
@media (min-width: 24em) {
  /* index */
  .heading-primary,
  .heading-subpage {
    font-size: 3.318rem;
  }
}
/* screensize 500px */

@media (min-width: 31em) {
  /* index */
  .btn-hero {
    font-size: 1.92rem;
  }
  .heading-primary,
  .heading-subpage {
    font-size: 3.981rem;
  }

  .heading-secondary {
    font-size: 3.981rem;
  }

  .heading-tertiary,
  .container-text-subpage ol li::marker {
    font-size: 2.765rem;
  }
  .text-main,
  .section-list strong {
    font-size: 2.304rem;
    line-height: 1.65;
  }

  .form label {
    font-size: 1.92rem;
  }
  .side-text {
    font-size: 1.536rem;
  }
  .subsection-list-item {
    font-size: 1.92rem;
  }
  .privacy-policy-note {
    font-size: 1.28rem;
  }
  .btn-submit {
    font-size: 1.92rem;
  }
  .icon-hamburger,
  .icon-close {
    width: 4.8rem;
    height: 4.8rem;
  }

  /* galleries menu */
  .thumb-text {
    font-size: 1.92rem;
  }
}
/* screensize 688px */
@media (min-width: 43em) {
  /* index */
  .btn-hero {
    margin-top: 6.4rem;
  }
  .text-main,
  .section-list strong {
    font-size: 1.92rem;
    line-height: 1.6;
  }
  .subsection-container {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    align-items: start;
    justify-items: center;
    margin-bottom: 6.4rem;
  }
  .text-wrapper {
    grid-column: 1/2;
  }

  .img-section {
    grid-column: 2/3;
    aspect-ratio: 2/3;
  }

  .subsection-container:nth-child(even) {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    align-items: start;
    justify-items: center;
    column-gap: 3.2rem;
  }

  .subsection-container:nth-child(even) .text-wrapper {
    grid-column: 2/3;
    text-align: start;
  }
  .subsection-container:nth-child(even) .text-wrapper .heading-secondary {
    text-align: start;
  }
  .subsection-container:nth-child(even) picture {
    grid-column: 1/2;
    grid-row: 1/2;
  }

  .form-heading {
    flex-direction: row-reverse;
    align-items: flex-start;
  }

  .form-heading .text-wrapper {
    width: 100%;
  }

  .footer-links-social ul {
    gap: 1.6rem;
  }

  .footer-social-item {
    width: 3.8rem;
    height: 3.8rem;
  }
  /* galleries menu */
  .gallery-container {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-container .heading-designs,
  .gallery-container .heading-gardens {
    grid-column: 1/-1;
  }

  .gallery-container,
  .gallery-heading {
    grid-column: 1/-1;
  }
  .previous-link {
    align-self: end;
    grid-column: 1/-1;
  }
}

/* screensize (≥1024px) */
@media (min-width: 64em) {
  /* index */
  .site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.6rem 5%;
    background-color: #f2f1ef;
    position: relative;
    top: 0;
    z-index: 200;
  }

  .site-logo {
    position: relative;
    z-index: 1;
  }

  .btn-mobile-nav {
    display: none;
  }

  .navigation {
    position: relative;
    transform: none !important;
    transition: none;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 3.2rem;
    height: auto;
    width: auto;
    z-index: 1;
  }

  .nav-list {
    flex-direction: row;
    gap: 3.2rem;
    margin: 0;
    font-size: 1.92rem;
  }

  .nav-links-social {
    display: none;
  }

  #navbar {
    display: flex !important;
  }

  .section-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-container .heading-secondary {
    grid-column: 1/-1;
  }

  .btn-hero {
    margin-bottom: 4.8rem;
  }
  .heading-primary,
  .heading-subpage {
    font-size: 4.777rem;
    margin-bottom: 4.8rem;
  }

  .heading-secondary {
    font-size: 3.981rem;
  }

  .text-main,
  .section-list strong {
    font-size: 1.92rem;
    line-height: 1.6;
  }

  .img-section {
    aspect-ratio: 1/1;
  }
  .heading-tertiary,
  .container-text-subpage ol li::marker {
    font-size: 3.318rem;
  }

  .form-section {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 3.2rem;
  }
  .form textarea {
    min-height: 19.2rem;
  }
  /* galleries menu */
  .gallery-container {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .thumb-text {
    font-size: 1.536rem;
    letter-spacing: -0.05rem;
  }

  .footer-container {
    margin: 0 5%;
  }
}
/* 1200px */
@media (min-width: 75em) {
  /* index */

  main {
    max-width: 62.5em;
    margin: 2.5% auto;
  }
}
