/* Reset styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.container{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: 'Vibur', cursive;
    font-size: 2em;
    color: #666;
   }

   .fa{
     margin-left: 20px;
     color: #ffc834;
   }


   .gallery {
    --g: 6px; /* the gap */
    
    display: grid;
    width: 400px; /* the size */
    aspect-ratio: 1;
    grid: auto-flow 1fr/repeat(3,1fr);
    gap: var(--g);
  }
  .gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale();
    cursor: pointer;
    transition: .5s;
    align-items: center;
  }
  .gallery img:hover {
    filter: grayscale(0);
  }
  .gallery img:nth-child(2) {
    grid-area: 1/2/span 2/span 2;
    clip-path: polygon(0 0,100% 0,100% 100%,calc(50% + var(--g)/4) 100%,0 calc(50% - var(--g)/4))
  }
  .gallery img:nth-child(3) {
    grid-area: 2/1/span 2/span 2;
    clip-path: polygon(0 0,calc(50% - var(--g)/4) 0,100% calc(50% + var(--g)/4),100% 100%,0 100%);
  }
  



/* Global styles */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI,
        Helvetica Neue, Helvetica, Arial, sans-serif;
    color: #333;
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
}

.title {
    display: flex;
    justify-content: center;
    letter-spacing: -0.02em;
    margin: 1rem;
    font-size: 1.5rem;
}

/* Card styles */
.card {
    margin: 1rem;
    flex-basis: 45%;
    padding: 1.5rem;
    text-align: left;
    text-decoration: none;
    border: 1px solid #eaeaed;
    border-radius: 10px;
    font-size: 1.6rem;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.cardDescription {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}
.card:hover {
    border: 1px solid #333;
}

/* Grid styles */
.grid {
    margin: 5%;
}

/* Modal styles */
.glass-modal-wrapper {
    padding: 2%;
    position: relative;
    margin: 5vh auto;
    width: 30vw;
    height: 75vh;
    border: none;
    background: inherit;
    border-radius: 5px;
    z-index: 1;
}

.glass-modal-wrapper::before {
    content: "";
    background: inherit;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

/* Avatar styles */
.avatar {
    border-radius: 50%;
}

/* Link styles */
a {
    text-decoration: none;
    color: black;
}

/* Media queries */
@media only screen and (max-width: 380px) {
    * {
        font-size: 2.5rem;
    }
}

@media only screen and (max-width: 1254px) {
    .title {
        font-size: 1rem;
    }
    .grid {
        margin: 40px 10px;
    }

    .card {
        margin: 5px 10px;
    }

    .glass-modal-wrapper {
        margin: 0;
        width: 100vw;
        height: 100vh;
    }
}
