#s-works {
    margin: 0;
    padding: 95px 125px 0 125px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    height: calc(100vh - 95px);
    background: linear-gradient(180deg, #F5E9CE 14.9%, #FFA102 100%);
    min-height: 650px;
    max-height: max-content;
}

#s-works-content {
    width: fill-available;
    width: -moz-available;
    width: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    flex: 1;
    max-width: 1330px;
}

.header1 {
    color: #450E14;
    leading-trim: both;
    text-edge: cap;
    font-family: Montserrat, sans-serif;
    font-size: 38px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-top: 0;
    margin-right: 0;
    margin-left: 25px;
    margin-bottom: 50px;
    padding: 0;
}

#s-works-palette {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 0;
    padding: 0;
}

.s-works-palette-item {
    display: flex;
    padding: 25px;
    align-items: flex-start;
    gap: 20px;
    flex: 1 0 0;
    border-radius: 51px;
    border: 2px solid #450E14;
    background: #F5E9CE;
    cursor: pointer;
}

.s-works-palette-item>img {
    width: 150px;
    height: 150px;
    aspect-ratio: 1/1;
    border-radius: 26px;
}

.s-works-palette-item-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    flex: 1 0 0;
    align-self: stretch;
}

.s-works-palette-item-content-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    align-self: stretch;
    justify-content: start;
}

.s-works-palette-item-content-text>h2 {
    color: #450E14;
    font-family: Geologica, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0;
    padding: 0;
}

.s-works-palette-item-content-text>p {
    align-self: stretch;
    color: #450E14;
    font-family: Geologica, sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 0;
    padding: 0;
}

.s-works-palette-item-content-btn>a {
    border-radius: 18px;
    background: #BC2D29;
    color: #F5E9CE;
    font-family: Geologica, sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
    width: auto;
    height: 32px;
    margin: 0;
    padding: 0 12px 0 16px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.wiggly-line {
    overflow: hidden;
    width: 100%;
    height: 14px;
    position: relative;
}

.wiggly-wiggle {
    margin-left: -50%;
    height: 14px;
    width: 200%;
    background-image: url('/images/wiggle.svg');
    background-repeat: repeat-x;
    background-size: 200px 14px;
    animation: wiggle-scroll 10s linear infinite;
}

@keyframes wiggle-scroll {
    0% { transform: translateX(-180px); }
    100% { transform: translateX(0); }
}


@media (max-width: 500px) {
    #s-works {
        padding: 50px 25px 25px 25px;
        height: max-content;
    }

    .header1 {
        font-size: 36px;
        margin-left: 10px;
        margin-bottom: 35px;
    }

    #s-works-palette {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    .s-works-palette-item-content-btn {
        margin-top: 15px;
        width: 100%;
    }

    .s-works-palette-item {
        padding: 15px;
        gap: 15px;
        border-radius: 33px;
    }

    .s-works-palette-item>img {
        width: 73px;
        height: 73px;
        border-radius: 18px;
    }


}