@import url('nav.css');
@import url('footer.css');

* {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    transition: all 0.2s linear;
    text-transform: capitalize;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: #eee;
}

.aaa {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.aaa .gallery {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.card {
    flex: 1 1 calc(33.333% - 16px);
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.card img {
    width: 100%;
    /* height: 250px; */
    object-fit: cover;
    border-radius: 10px;
}

.card .figcaption {
    padding: 1rem;
}

.card .figcaption h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card .figcaption .info {
    font-size: 1.2rem;
}

.card .figcaption .info button {
    border: none;
    border-radius: 25px;
    font-size: 1.15rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s, color 0.2s;
}

.card .figcaption .info button a {
    color: inherit;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.card:hover {
    cursor: pointer;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgb(232, 214, 110);
}

.card:hover .figcaption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    color: #f5f5f5;
}

@media (max-width: 991px) {
    html {
        font-size: 55%;
    }

    .card {
        flex: 1 1 calc(50% - 16px);
    }
}

@media (max-width: 768px) {
    .card img {
        height: 200px;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .card {
        flex: 1 1 100%;
    }
}
