/* Portfolio */

#our-portfolio-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
}

#our-portfolio-container .sub-title.note {
    color: #FB5607;
}

#our-portfolio-container .works-wrapper {
    padding: 1rem 0;
}

#our-portfolio-container #works-card-wrapper {
    display: grid;
    gap: 4rem 2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 1560px;
    margin: 0 auto;
}

#works-card-wrapper .our-work {
    padding: 1rem;
    box-shadow: 0 0 60px 5px var(--oxford-blue-a4);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-radius: 10px;
    overflow: hidden;
}

#works-card-wrapper .our-work .work-title {
    font-size: 22px;
    font-weight: 800;
}

#works-card-wrapper .our-work .work-short-text {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--black-a60);
    margin-bottom: 15px;
}

#works-card-wrapper .our-work .work-view {
    font-size: 12px;
    font-weight: 700;
    line-height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#works-card-wrapper .our-work .work-view-link {
    color: var(--polynesian-blue);
    transition: color 200ms linear;
}

#works-card-wrapper .our-work .work-view-link:hover {
    color: var(--bleu-de-france);
}

#works-card-wrapper .work-preview-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    margin: 1.5rem 1rem;
    outline: 2px solid transparent;
    outline-offset: 3px;
    border-radius: 8px;
    box-shadow: 0 0 60px 5px rgba(17, 75, 138, 0.07);
    transition: box-shadow 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

#works-card-wrapper .work-preview-wrapper:hover {
    outline-color: var(--picton-blue-a20);
}

#works-card-wrapper .work-preview-wrapper::after {
    content: "\279C";
    font-size: 1rem;
    background-color: var(--white);
    color: var(--bleu-de-france);
    opacity: 0;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    box-shadow: 0 0 20px 5px var(--picton-blue-a30);
    transform: translateX(-50px);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 2;
}

#works-card-wrapper .work-preview-wrapper:hover::after {
    opacity: 1;
    transform: translateX(0);
}

#works-card-wrapper .work-preview {
    width: 100%;
}

#works-card-wrapper .work-preview.animate {
    min-height: 300px;
}

#works-card-wrapper .work-preview:not(.animate) {
    animation: faded-zoom-in 0.75s both 0.2s;
}

/* Responsive */
@media (min-width: 2000px) {
    #works-card-wrapper .our-work .work-title {
        font-size: calc(22px * 1.25);
    }

    #works-card-wrapper .our-work .work-short-text {
        font-size: calc(15px * 1.25);
    }

    #works-card-wrapper .our-work .work-view {
        font-size: calc(12px * 1.25);
        line-height: calc(25px * 1.25);
    }
}

@media (max-width: 1080px) {
    #our-portfolio-container #works-card-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    #works-card-wrapper .our-work .work-title {
        font-size: calc(22px * 0.9);
    }

    #works-card-wrapper .our-work .work-short-text {
        font-size: calc(15px * 0.9);
    }

    #works-card-wrapper .our-work .work-view {
        font-size: calc(12px * 0.9);
        line-height: calc(25px * 0.9);
    }
}

@media (max-width: 300px) {
    #our-portfolio-container {
        align-items: flex-start;
    }
}