/* selected work section */
.selected-work-section {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: solid .5px #44474D;
}

.selected-work-section .selected-work-wrapper {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    border-top: solid .5px #44474D;
    position: relative;
}

.selected-work-wrapper::before,
.selected-work-wrapper::after {
    content: '';
    width: 24px;
    height: 30px;
    background: url('/assets/img/artwork/decorations/sparkle.svg?v=1') no-repeat center/contain;
    position: absolute;
    top: -15px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.selected-work-wrapper::before {
    left: -12px;
}

.selected-work-wrapper::after {
    right: -12px;
}

@media screen and (max-width: 1024px) {

    .selected-work-wrapper::before,
    .selected-work-wrapper::after {
        opacity: 1;
    }
}

.selected-work-wrapper .selected-project {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    border-bottom: solid .5px #44474D;
    background: #0F0F0F;
    transition: background-color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    z-index: 0;
}

.selected-work-wrapper .selected-project:hover,
.selected-work-wrapper .selected-project:focus-visible,
.selected-work-wrapper .selected-project:focus-within {
    background: #131313;
    z-index: 20;
}

@media screen and (max-width: 1024px) {
    .selected-project {
        width: 100%;
        flex-direction: column !important;
        justify-content: flex-start;
        gap: 25px !important;
    }
}

.selected-work-wrapper .selected-project:last-child {
    border-bottom: none;
}

.selected-project .project-details {
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 25px 0px 25px 25px;
}

@media screen and (max-width: 1024px) {
    .selected-project .project-details {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 25px 25px 0px 25px;
    }
}

.project-details .project-order {
    font-family: var(--font-secondary);
    font-weight: normal;
    font-size: 24px;
    color: #8E949B;
}

.project-details .project-year {
    font-family: var(--font-secondary);
    font-weight: normal;
    font-size: 24px;
    color: #8E949B;
}

.selected-project .project-info {
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 25px 0px;
}

@media screen and (max-width: 1024px) {
    .selected-project .project-info {
        padding: 0px 25px;
    }
}

.project-info .project-title {
    font-family: var(--font-primary);
    font-weight: normal;
    font-size: 24px;
    color: #D5DFEF;
    text-align: left;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 0;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.project-title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    font-size: 0px;
    color: #8E949B;
    line-height: 1em;
    height: 1em;
    vertical-align: middle;
    align-self: center;
    margin-right: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.selected-project:hover .project-title i,
.selected-project:focus-visible .project-title i,
.selected-project:focus-within .project-title i {
    opacity: 1;
    font-size: 16px;
    margin-right: 25px;
    transform: translateX(0);
}

.project-info .project-desc {
    font-family: var(--font-secondary);
    font-weight: normal;
    font-size: 16px;
    color: #B6BECC;
    line-height: 1.5;
    text-align: left;
    max-width: 600px;
}

.selected-project .project-image-wrapper {
    width: auto;
    max-width: calc(400px + 50px);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: solid .5px #44474D;
    padding: 25px;
    position: relative;
    overflow: visible;
}

@media screen and (max-width: 1024px) {
    .selected-project {
        flex-direction: column;
        gap: 0;
    }

    .selected-project .project-image-wrapper {
        border-left: none;
        max-width: 100% !important;
        width: 100%;
    }

    .selected-project .project-details,
    .selected-project .project-info {
        width: 100%;
    }
}

.selected-project:first-child .project-image-wrapper::before,
.selected-project:first-child .project-image-wrapper::after {
    content: '';
    width: 24px;
    height: 30px;
    background: url('/assets/img/artwork/decorations/sparkle.svg?v=1') no-repeat center/contain;
    position: absolute;
    top: -15px;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.selected-project:first-child .project-image-wrapper::before {
    left: -12px;
}

.selected-project:first-child .project-image-wrapper::after {
    right: -12px;
}

@media screen and (max-width: 1024px) {

    .selected-project:first-child .project-image-wrapper::before,
    .selected-project:first-child .project-image-wrapper::after {
        opacity: 0;
    }
}

.selected-project:last-child .project-image-wrapper::before,
.selected-project:last-child .project-image-wrapper::after {
    content: '';
    width: 24px;
    height: 30px;
    background: url('/assets/img/artwork/decorations/sparkle.svg?v=1') no-repeat center/contain;
    position: absolute;
    bottom: -15px;
    z-index: 100;
}

.selected-project:last-child .project-image-wrapper::before {
    left: -12px;
}

.selected-project:last-child .project-image-wrapper::after {
    right: -12px;
}

.project-image-wrapper .project-banner {
    width: auto;
    max-width: 400px;
    height: 100%;
}

@media screen and (max-width: 1024px) {
    .project-image-wrapper .project-banner {
        width: 100%;
        max-width: 100% !important;
        height: 100%;
    }
}