/* Base */

:root {
    --bg: #222432;
    --text: #fff;
    --alt-text: #b5b5b5;
    --color0: #2a9fd6;
}
* { box-sizing: border-box; }

body {
    width: 100%;
    margin: 0;

    background-color: var(--bg);

    color: var(--text);
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
}


a {
    color: var(--color0);
}

main {
    width: 100%;
    padding: 30px 5% 5% 5%;

    display: flex;
    flex-direction: column;
    gap: 100px;
}

/* Header */

header {
    width: 100%;
    padding: 20px 5% 0 5%;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 20px;
}

h1 {
    margin: 0;
    padding: 0;
    font-weight: 600;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
}

.slash {
    font-weight: 1000;
    font-size: 2rem;
    color: var(--color0);
}

.icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon {
    fill: var(--alt-text);
    width: 22px;
    height: 22px;
    display: block;
    transition: fill 0.2s ease;
}

.icon:hover {
    fill: var(--color0);
}

@media screen and (max-width: 768px) {
    header {
        gap: 15px;
    }
    h1 {
        font-size: 2rem;
    }
    .slash {
        font-size: 1.4rem;
    }
    .icons {
        gap: 12px;
    }
    .icon {
        width: 20px;
        height: 20px;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.6rem;
    }
    .icons {
        gap: 10px;
    }
    .icon {
        width: 18px;
        height: 18px;
    }
}

/* Gallery */

.gallery {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(12, 1fr);
    margin-bottom: 50px;
}
@media screen and (max-width: 768px) {
    .gallery {
        display: flex;
        flex-direction: column;
    }
}

.gallery .item {
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: all 0.2s;
}
.gallery img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: filter 0.5s;
}
.gallery .anim {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}
.gallery .desc h4 {
    font-size: 1.3rem;
}
.gallery .desc p {
    text-align: center;
}
.gallery .desc {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    opacity: 0;
    transition: opacity 0.5s;
}

.gallery .item:hover {
    transform: scale(1.05);
    z-index: 100;
}

.gallery .item:hover .thumb:nth-child(2) {
    opacity: 0;
}
.gallery .item:hover .thumb:nth-child(1) {
    filter: brightness(50%);
}

.gallery .item:hover .anim {
    opacity: 1;
    filter: brightness(50%);
}

.gallery .item:hover .desc {
    opacity: 1;
}
