@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@200;300;400;500;600&display=swap');

:root {
    --container: 90%;
    --gap: 2.3vw;
    --edge: 0.57vw;}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  background: var(--bg);
}

.visually_hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 90%;
  margin-inline: auto;
}

.section_gallery
{
  margin-bottom: 5.2vw;
}




.cards_grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(4, 1fr);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
}

.card_size_lg {
  grid-column: span 2;
}

.card_media {
  margin: 0;
}

.card_image {
  width: 100%;
  height: 30vw;
  object-fit: cover;
  background: #eee;
  cursor: pointer;
}

.card_caption {
  font-weight: 300;
  font-family: Geologica, Arial, sans-serif;
  font-size: 1.4vw;
  color: black;
}

.actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2.1vw;
  margin-bottom: 5.2vw;
}

.btn {
  appearance: none;
  border: 1px solid black;
  background: var(--btn-bg);
  color: black;
  font-size: 1vw;
  font-weight: 300;
  font-family: 'Geologica', serif;
  width: calc((100% - (var(--gap) * 3)) / 4);
  height: 3.1vw;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.btn:hover {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
}

.btn:active {
  transform: translateY(1px);
}

@media (max-width: 767px) {
  .container {
    width: 90%;
  }

    .cards_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5.5vw;
    }



  .card_image {
    height: 65vw;
    object-fit: cover;
  }

  .card_caption {
    font-size: 4vw;
    line-height: 1.25;
    margin-top: 6px;
  }

  .actions {
    margin: 5.5vw 0 16.7vw;
  }

  .section_gallery
  {
    margin-bottom: 12.8vw;
  }

  .btn {
      width: 100%;
      height: 40px;
      font-size: 3.5vw;
  }
    .page{
        padding: 0;
    }
  .section{
      padding-top: 0;
      padding-bottom: 0;
  }

}

@media (min-width: 768px) and (max-width: 1024px) {

  .section_gallery
  {
      margin-bottom: 10.4vw;
  }

  .container {
    width: calc(100% - 40px);
    margin-inline: auto;
  }


  .cards_grid {
      display: grid;
      gap: var(--gap);
      grid-template-columns: repeat(4, 1fr);
  }

  .card_image {
    height: 30vw;
  }
    .card_image {
        height: 33vw;
    }

  .card_caption {
      font-size: 1.8vw;
  }

  .btn {
      width: calc(50% - (var(--gap) / 2));
      appearance: none;
      border: 1px solid var(--text);
      background: #fff;
      font-weight: 300;
      font-family: Geologica, Arial, sans-serif;
      cursor: pointer;
      transition: all .18s
      ease;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-main);
      text-transform: uppercase;
      grid-column: 2/2;
      height: 4vw;
      font-size: 1.3vw;
  }
}
