/* WORK START */

/* One cover
.work__cover {
    position: relative;
    width: 100%;
    max-height: 600px;
    border-radius: 28px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 40px;
}

.work__cover:hover {
    box-shadow: 0 8px 10px 0 rgba(0, 0, 0, 0.5);
    scale: 1.002;
}

.work__cover--media {
    display: flex;
    justify-content: center;
    margin: 5% auto 0 auto;
    width: 50%;
    height: 100%;
    filter: drop-shadow(rgba(0, 0, 0, 0.1) 15px 15px 15px);
} */


/* WORK COVER START */

.work__cover {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 28px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 40px;
}


.work__cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset transparent;
    /* border-color: #0071E3; */
    border-radius: 28px;
    pointer-events: none;
    z-index: 10; /* Ensure it's above everything else */
    transition: all 0.2s ease;
}

.work__cover:hover::after {
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
    /* border-color: #0071E3; */
}

.work__cover--media--wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.work__cover--media {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 50%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.work__cover--media--center {
    z-index: 3;
}

.work__cover--media--left {
    left: -2%;
    z-index: 2;
    transform: translateY(-50%) scale(0.7);
}

.work__cover--media--right {
    right: -2%;
    z-index: 2;
    transform: translateY(-50%) scale(0.7);
}


/* Round open button at the bottom right of the cover */
.work__cover--open--button {
    position: absolute;
    right: 32px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #0071E3;
    padding: 16px;
    z-index: 5;
}


.work__cover--text {
    position: absolute;
    left: 32px;
    bottom: 24px;
    z-index: 2;
    color: #FEFEFE;
    z-index: 5;
}


.work__cover--heading {
    font-size: 16px;
    margin-bottom: 12px;
    color: #FEFEFE;
    opacity: 0.7;
    z-index: 5;
}


.work__cover--title {
    font-size: 32px;
    font-weight: 700;
    margin: 4px 0;
    color: #ffffff;
    z-index: 5;
}

/* WORK COVER END */


/* WORK MODAL START */

.work__heading {
    margin-top: 120px;
    margin-bottom: 16px;
    font-size: 40px;
    font-weight: 700;
    max-width: 900px;
}

.work__title {
    margin-top: 32px;
    margin-bottom: 8px;
    font-size: 32px;
    font-weight: 700;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.work__subtitle {
    margin-bottom: 14px;
    font-size: 20px;
    line-height: 140%;
    color: #767676;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.work__chip--wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 32px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.work__chip {
    display: inline-block;
    padding: 3px 7px 3px 7px;
    outline: #dbdbdb 1px solid;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    color: #767676;
}

.work__description {

    font-size: 20px;
    line-height: 140%;
    color: #767676;
    max-width: 900px;
    margin: 0 auto;
}

.work__project--block {
    max-width: 900px;
    margin: 72px auto 0;
}

.work__project--block--image,
.work__project--block--video {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: auto 0;
    border-radius: 0.5rem;
}

.work__project--block--video {
    cursor: pointer;
}

.work__project--block--video--slideshow,
.work__project--block--image--slideshow {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: auto 0;
    border-radius: 0;
}

.work__project--block--reviews {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 900px;
}

.work__project--block--reviews--card {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 1px solid #e7e7e7;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.work__project--block--reviews--card:hover {
    transform: translateY(-1px);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 8px;
}

.work__project--caption {
    display: block;
    max-width: 900px;
    margin: auto;
    width: 100%;
    margin-top: 16px;
    text-align: center;
    font-size: 18px;
    line-height: 140%;
    color: #767676;
}

.work__project--caption--highlight {
    color: #000000;
    font-weight: 600;
}

/* WORK MODAL END */

@media (max-width: 1230px) {
    .work__title {
        font-size: 32px;
    }

    .work__cover {
        height: 650px;
    }


    .work__heading {
        font-size: 24px;
    }

    .work__description {
        font-size: 20px;
        line-height: 140%;
        color: #767676;
        max-width: 900px;
        margin: 0;
    }

    .work__project--caption {
        font-size: 18px;
    }
}

@media (max-width: 1000px) {
    .work__cover {
        height: 550px;
    }
}

@media (max-width: 768px) {

    /* On smaller screens, switch to 2 columns */
    .work__project--block--reviews {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

    .work__cover--gradient {
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 50%;
        background: linear-gradient(to top, rgba(0, 0, 0, 1), transparent);
        pointer-events: none;
        z-index: 4;
    }

    .work__cover {
        height: 450px;
        margin-bottom: 40px;
    }

    .work__cover--text {
        position: absolute;
        bottom: 16px;
        left: 20px;
        z-index: 5;
        color: #FEFEFE;
        margin-right: 64px;
    }

    .work__cover--heading {
        margin-bottom: 6px;
        font-size: 12px;
    }

    .work__cover--title {
        font-size: 24px;
    }

    .work__cover--open--button {
        position: absolute;
        right: 20px;
        bottom: 20px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background-color: #0071E3;
        padding: 12px;
        z-index: 5;
    }


    .work__cover--media {
        display: flex;
        justify-content: center;
        margin: 0 auto 0 auto;
        width: 80%;
        height: auto;
        filter: drop-shadow(rgba(0, 0, 0, 0.1) 15px 15px 15px);
    }

    .work__cover--media--center {
        z-index: 3;
    }

    .work__cover--media--left {
        display: none;
    }

    .work__cover--media--right {
        display: none;
    }

}

@media (max-width: 660px) {

    .work__cover {
        height: 400px;
    }

    .work__cover--media {
        top: 50%;
    }

    .work__cover--gradient {
        height: 30%;
    }

    .work__title {
        font-size: 24px;
    }

    /* On very small screens, switch to 1 column */
    .work__project--block--reviews {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }

    .work__heading {
        margin-top: 64px;
    }

}


@media (max-width: 560px) {

    .work__cover--media {
        top: 45%;
    }

    .work__cover {
        height: 350px;
    }

    .work__cover--gradient {
        height: 40%;
    }

}

@media (max-width: 480px) {}

/* WORK END */
