/* work.css — styles for works.html. Base styles in site.css. */

section {
    position: relative;
    padding-top: clamp(85px, 13.6vw, 221px);
    padding-right: 7%;
    padding-left: 10%;
    padding-bottom: clamp(85px, 13.6vw, 221px);
    text-align: center;
}

section .image-container {
    position: relative;
    max-width: 75%;
}

section img {
    max-width: 50%;
    height: auto;
    float: left;
    margin-left: 50px;
    transition: opacity 0.3s ease-in-out;
}

section img.overlay {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    max-width: 50%;
    height: auto;
    transition: opacity 0.3s ease-in-out;
}

section .image-container:hover img {
    opacity: 0;
}

section .image-container:hover img.overlay {
    opacity: 1;
}

section p {
    padding-top: 8%;
    padding-left: 45%;
    padding-right: 12%;
    margin-left: 50px;
    text-align: left;
}

.fixed-footer {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    text-align: center;
    padding-top: clamp(40px, 6vw, 100px);
}

.fixed-footer .back-to-top {
    color: white;
    margin-top: 70px;
    text-decoration: none;
    padding: 5px;
    background-color: #000000;
    transition: background-color 0.3s ease-in-out;
}

.fixed-footer .back-to-top:hover {
    background-color: #000000;
    text-decoration: underline;
}

@media only screen and (max-width: 1000px) {
    section p {
        display: none;
    }

    section img,
    section img.overlay {
        max-width: 95%;
    }

    section {
        padding-bottom: 30%;
    }

    .fixed-footer {
        position: fixed;
        bottom: 0;
        padding-top: 0;
        padding-bottom: 12px;
    }
}
