section {
    margin-top: calc(60px + 30px);
    margin-bottom: 50px;
}

h1 {
    font-size: 20px;
    font-weight: 400;
    color: rgb(233 76 59);
    line-height: 1.2;
}
h2 {
    margin: 20px 0 10px 0;
    line-height: 1.4;
}
h3 {
    font-weight: 400;
    line-height: 1.4;
    font-size: 20px;
    margin-bottom: 50px;
}

div.container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    height: auto;
    margin-top: 25px;
    & div.content {
        width: calc(25% - 15px);
        aspect-ratio: 1/1;
        background-color: #f7f7f7;
        border-radius: 17px;
        overflow: hidden;
        display: flex;
        cursor: pointer;
    }
    & div.content:hover img{
        transform: scale(1.05);
        opacity: 0.8;
    }
}

div.content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out; 

}

section.image-viewer {
    position: fixed;
    margin: 0 !important;
    top: 0 !important;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    & button.close {
        position: absolute;
        top: 12px;
        right: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #fff;
        height: 36px;
        width: 36px;
        border: 0;
        outline: 0;
        border-radius: 50px;
        cursor: pointer;
        & svg {
            width: 18px;
            height: 18px;
            fill: #353535;
            overflow: visible;
            display: flex;
        }
        &:hover {
            opacity: 0.7;
        }
    }
    & div.viewer {
        position: absolute;
        bottom: 0;
        width: calc(100% - 220px);
        height: calc(100% - 60px);
        background-color: #fff;
        border-radius: 17px 17px 0 0;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        & img {
            width: calc(100% - 60px);
            height: calc(100% - 30px);
            object-fit: contain;
            background-color: #e7e7e7;
        }
    }
    &.active {
        display: flex;
    }
}

@media only screen and (max-width: 1040px) {
    div.container div.content {
        width: calc(33.33% - 14px);
    }
}