.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2em;
    margin-top: 6em;
}

.main-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
}

.image-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-image {
    width: 100%;
    max-width: 400px;
    margin-bottom: 1em;
}

.buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.buttonServ, .buttonServ:visited {
    background-color: #f0f0f0;
    border: none;
    padding: 1em;
    margin-bottom: 0.5em;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    color: black;
    display: block;
    width: 100%;
    transition: 0.3s;
}

#active {
    background-color: #cc1717;
    color: white;
}

.buttonServ:hover, .buttonServ:active {
    background-color: #ec1f1f;
    color: white;
    transition: 0.3s;
}

.text-section {
    flex: 2;
    margin-left: 3em;
}

.text-section h1 {
    font-size: 2em;
    margin-bottom: 0.5em;
}

.text-section p {
    font-size: 1em;
    line-height: 1.5em;
}

.text-section ul{
    margin-top: 0.5em;
}

.text-section li {
    font-size: 1em;
    margin-top: 0.2em;
    margin-left: 2em;
}

.gallery-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin-top: 2em;
}

.gallery-image {
    width: 30%;
    max-width: 240px;
    margin: 0.5em;
    height: auto;
    aspect-ratio: 1/1; /* Forces the images to have a square aspect ratio */
    object-fit: cover; /* Ensures the image scales properly to fit its container */
    transition: 0.3s ease;
}

.gallery-image:hover {
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s ease;
}

@media(max-width: 1280px){
    .container{
        margin-top: 7em;
    }
    .main-content{
        width: 90%;
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        align-items: center;
    }

    .text-section {
        margin-left: 0;
        text-align: center;
    }

    .gallery-image {
        width: 45%;
    }
}

@media (max-width: 480px) {
    .gallery-image {
        width: 90%;
    }
}