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

body {
    background-color: black;
    color: #f0f0f0;
    margin: 0 auto;
    font-family: 'Montserrat';
}

::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

*::-webkit-scrollbar {
    display: none;
}

.gallery {
    padding-inline: 5vw;
    padding-top: 74px;
}

.works-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery .name{
    text-align: center;
    font-size: clamp(24px, 3vw, 50px);
    font-weight: 700;
}

.gallery .instagram{
    max-width: 85%;
    margin-inline: auto;
    margin-top: 2vw;
    padding-block: 1vw;
    display: flex;
    align-items: center;
    gap: 1.2vw;
}

.gallery .photo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4.5vw;
    height: 4.5vw;
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    background-color: white;
}

.gallery .text_link {
    font-size: clamp(16px, 1.5vw, 40px);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    font-weight: 700;
    min-width: max-content;
}

.photo img  {
    width: 2.2vw;
    min-width: 24px;
}

.works {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2vw;
    padding: 2vw;
    max-width: 80vw;
}

.work {
    position: relative;
    width: 100%;
    min-width: 175px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.work img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 0.8;
    object-fit: cover;
    display: block;
}

.work::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.work:hover::after {
    opacity: 1;
}

@media (max-width: 1000px) {
    .works {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 730px) {
    .works {
        grid-template-columns: repeat(2, 1fr);
        max-width: 96vw;
    }

    .gallery .instagram {
        max-width: 85%;
        margin-inline: 1.5vw;
    }
}