@import "../variables.css";
* {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    user-select: none;
    text-decoration: none;
}

html {
    font-size: 62.5%;
    background-color: var(--bg-color1);
}

#back-wrapper {
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: center;
    bottom: 10vh;
    z-index: 10;
}

#back {
    background-color: var(--color1);
    width: max-content;
    height: max-content;
    border-radius: 100%;
    justify-content: center;
    color: thistle;
}

#back img {
    width: 3rem;
    height: 3rem;
    object-fit: cover;
    padding: 1rem;
    transform: rotate(90deg);
    filter: invert(100%);
    border-radius: 100%;
}

#back:active {
    animation: pulse 950ms;
}

@keyframes pulse {
    from {
        box-shadow: var(--color1) 0 0 0;
    }
    to {
        box-shadow: rgba(var(--color1o), 0) 0 0 0 5rem;
    }
}

#sources {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    /* min-height: 500px; */
    color: white;
}

#sources h1 {
    font-size: 2.5rem;
}

.headline-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 6vh;
}

.headline-wrapper h1 {
    text-align: center;
    font-size: 4rem;
    width: 100%;
    color: white;
}

.content-wrapper {
    margin-top: 8vh;
    display: flex;
    width: 100%;
    justify-content: center;
}

.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, 20rem);
    gap: 5vh;
    width: 80%;
    justify-content: center;
}

.img-wrapper {
    height: 20rem;
    width: 20rem;
    overflow: hidden;
    position: relative;
    border-radius: 2rem;
    box-shadow: 0rem 0rem 3rem rgba(255, 255, 255, 0.2);
    transition: transform 0.5s;
}

.img-wrapper:hover {
    transform: scale(1.1);
}

.img-wrapper img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    opacity: 1;
}

.img-wrapper p {
    position: absolute;
    bottom: 5%;
    right: 0%;
    padding: 1% 5% 1% 2%;
    font-size: 1rem;
    background-color: var(--bg-color2);
    border-radius: 0.5rem 0rem 0rem 0.5rem;
    color: white;
}

.img-wrapper a {
    color: var(--color1);
    font-weight: 700;
}

@media (min-width: 640px) {
    #sources h1 {
        font-size: 3rem;
    }
    .content-wrapper {
        margin-top: 15vh;
    }
    .grid-wrapper {
        grid-template-columns: repeat(auto-fit, 20rem);
        gap: 10vw;
    }
    .img-wrapper {
        height: 20rem;
        width: 20rem;
    }
    .img-wrapper p {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    #sources h1 {
        font-size: 3rem;
    }
    .content-wrapper {
        margin-top: 15vh;
    }
    .grid-wrapper {
        grid-template-columns: repeat(auto-fit, 26.5rem);
        gap: 10vw;
    }
    .img-wrapper {
        height: 26.5rem;
        width: 26.5rem;
    }
    .img-wrapper p {
        font-size: 1.3rem;
    }
}

@media (min-width: 1024px) {
    #sources h1 {
        font-size: 4.5rem;
    }
    .content-wrapper {
        margin-top: 15vh;
    }
    .grid-wrapper {
        grid-template-columns: repeat(auto-fit, 35rem);
        gap: 10vw;
    }
    .img-wrapper {
        height: 35rem;
        width: 35rem;
    }
    .img-wrapper p {
        font-size: 1.8rem;
    }
}

@media (min-width: 1280px) {
    #sources h1 {
        font-size: 5rem;
    }
    .content-wrapper {
        margin-top: 15vh;
    }
    .grid-wrapper {
        grid-template-columns: repeat(auto-fit, 40rem);
        gap: 10vw;
    }
    .img-wrapper {
        height: 40rem;
        width: 40rem;
    }
    .img-wrapper p {
        font-size: 1.9rem;
    }
}