/**/
/**/
/* Projects Section */
/**/
/**/
.project-card {
    display: flex;
    gap: 3%;
    background-color: #252525;
    padding: 1.7% 3% 1.7% 1%;

    margin-bottom: 8vh;
    border-radius: 1vh;
    align-items: center;
    box-shadow: 0 0 2vh rgba(0, 0, 0, 0.5);

    max-width: 60vw;
    margin-left: auto;
    margin-right: auto;

    opacity: 0.4;
    transform: scale(0.8);

    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
    transform-origin: center center;
    pointer-events: none;
    height: clamp(12rem, 28vh, 24rem);

    position: relative;
    z-index: 1;
}

.project-card.focused {
    opacity: 1;
    transform: scale(1.6);
    z-index: 10;
    pointer-events: auto;
}

/*Touch Screens*/
@media (pointer: coarse) {
    .project-card,
    .project-card.focused {
        opacity: 1;
        transform: scale(1.0);
        pointer-events: auto;
        transition: none;
    }
}

/*Large Monitor*/
@media (min-width: 1800px) {
    .project-card {
        height: clamp(12rem, 28vh, 36rem);
    }
}

/*Vertical Phones and Square Tablets/Foldables*/
@media (max-width: 600px) and (orientation: portrait), (max-width: 900px) and (min-aspect-ratio: 4/5) and (max-aspect-ratio: 5/4) {
    .project-card,
    .project-card.focused {
        margin-bottom: 2vh;
        border-radius: 0.5vh;
        padding: 4% 4% 4% 4%;

        max-width: 98vw;

        height: clamp(12rem, 55vh, 50rem);

        flex-direction: column;
    }
}

/*Portrait Tablets*/
@media (min-width: 601px) and (max-width: 1024px) and (orientation: portrait) and (pointer: coarse) {
    .project-card,
    .project-card.focused {
        flex-direction: column;
        max-width: 90vw;
        height: clamp(16rem, 55vh, 55rem);
        padding: 3%;
        margin-bottom: 2vh;
    }
}

/*Landscape Phones*/
@media (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
    .project-card,
    .project-card.focused {
        max-width: 90vw;
        height: clamp(10rem, 65vh, 20rem);
        padding: 3% 4% 3% 4%;
    }
}

/*Landscape Tablets*/
@media (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) and (min-height: 501px) and (pointer: coarse) {
    .project-card,
    .project-card.focused {
        height: clamp(14rem, 34vh, 28rem);
        min-width: 80vw;
        max-width: 90vw;
        margin-bottom: 4vh;
    }
}

#first-project {
    margin-top: 10vh;
}

/*Vertical Phones and Square Tablets/Foldables*/
@media (max-width: 600px) and (orientation: portrait), (max-width: 900px) and (min-aspect-ratio: 4/5) and (max-aspect-ratio: 5/4) {
    #first-project {
        margin-top: 0;
    }
}

/*Portrait Tablets*/
@media (min-width: 601px) and (max-width: 1024px) and (orientation: portrait) and (pointer: coarse) {
    #first-project {
        margin-top: 0;
    }
}

#last-project {
    margin-bottom: 14vh;
}

/*Vertical Phones and Square Tablets/Foldables*/
@media (max-width: 600px) and (orientation: portrait), (max-width: 900px) and (min-aspect-ratio: 4/5) and (max-aspect-ratio: 5/4) {
    #last-project {
        margin-bottom: 0;
    }
}

/*Portrait Tablets*/
@media (min-width: 601px) and (max-width: 1024px) and (orientation: portrait) and (pointer: coarse) {
    #last-project {
        margin-bottom: 0;
    }
}

/*Landscape Tablets*/
@media (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) and (min-height: 501px) and (pointer: coarse) {
    #last-project {
        margin-bottom: 0;
    }
}
    .project-media {
    height: 100%;
    width: auto;
    flex: 0 0 auto;
    max-width: 40%;
    aspect-ratio: 16/9;

    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.5vh;
    border: 1px solid #333;
    color: #555;
    transition: all 0.3s ease;
}

/*Vertical Phones and Square Tablets/Foldables*/
@media (max-width: 600px) and (orientation: portrait){
    .project-media {
        height: auto;
        width: 100%;
        max-width: 100%;
    }
}

/*Portrait Tablets*/
@media (min-width: 601px) and (max-width: 1024px) and (orientation: portrait) and (pointer: coarse) {
    .project-media {
        width: auto;
        height: auto;
        max-width: 90%;
        max-height: 30vh;
    }
}

/*Square Tablets/Foldables*/
@media (max-width: 900px) and (min-aspect-ratio: 4/5) and (max-aspect-ratio: 5/4) and (pointer:coarse) {
    .project-media {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 25vh;
    }
}

.project-media a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.project-media:has(a):hover {
    transform: scale(1.02);
    filter: brightness(75%);
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5vh;
}

.project-info {
    flex: 1;

    align-self: stretch;

    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 1vh;
    padding-bottom: 0.5vh;

    overflow: hidden;
}

.project-info a {
    text-decoration: none;
}

.project-info h3 {
    margin: 0;
    font-size: clamp(1.2rem, 2vh, 1.6rem);
    color: #A94F2A;
    transition: all 0.3s ease;
}

.project-info a:hover h3 {
    filter: brightness(75%);
}

.project-info p {
    margin: 0;
    font-size: clamp(0.6rem, 1.4vh, 1.1rem);
    line-height: 1.5;
    color: #ccc;
}

/*Large Monitor*/
@media (min-width: 1800px) {
    .project-info h3 {
        font-size: clamp(1.3rem, 3.8vh, 2.8rem);
    }

    .project-info p {
        font-size: clamp(0.55rem, 1.3vh, 1.2rem);
    }
}

/*4K+ Monitor*/
@media (min-width: 3400px) {
    .project-info h3 {
        font-size: clamp(2.8rem, 7.5vh, 4.75rem);
    }

    .project-info p {
        font-size: clamp(0.7rem, 1.6vh, 1.75rem);
    }
}

/*Compact Desktop Windows*/
@media (min-width: 1025px) and (max-height: 950px) and (pointer: fine) {
    .project-info {
        gap: 0.75vh;
    }
    .project-info p {
        font-size: clamp(0.5rem, 1.2vh, 0.95rem); /*was clamp(0.6rem, 1.4vh, 1.1rem) - ~15% smaller*/
    }
}

/*Landscape Phones*/
@media (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
    .project-info{
        padding-bottom: 1vh;
    }

    .project-info h3 {
        font-size: clamp(1.3rem, 3.2vh, 1.6rem);
    }

    .project-info p {
        font-size: clamp(0.6rem, 3.2vh, 1.2rem);
    }
}

/*Landscape Tablets*/
@media (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) and (min-height: 501px) and (pointer: coarse) {
    .project-info {
        padding-bottom: 1vh;
    }

    .project-info h3 {
        font-size: clamp(1.3rem, 3.2vh, 1.6rem);
    }

    .project-info p {
        font-size: clamp(0.2rem, 2.8vh, 0.9rem);
    }
}

    .button.project-button {
    position: relative;
    margin-top: auto;

    padding: 1em 2.6em;
    font-size: clamp(0.3rem, 1.2vh, 0.6rem);
    border-radius: 0.6vh;

    box-shadow: 0 0.5vh 0 #ccac00;
}

/*Large Monitor*/
@media (min-width: 1800px) {
    .button.project-button {
        font-size: clamp(0.4rem, 1.2vh, 1.2rem);
    }
}

/*4K+ Monitor*/
@media (min-width: 3400px) {
    .button.project-button {
        font-size: clamp(0.5rem, 1.3vh, 1.2rem);
    }
}

/*Portrait Tablets*/
@media (min-width: 601px) and (max-width: 1024px) and (orientation: portrait) and (pointer: coarse) {
    .button.project-button {
        font-size: clamp(0.5rem, 1.4vh, 0.8rem);
    }
}

/*Landscape Phones*/
@media (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
    .button.project-button {
        font-size: clamp(0.6rem, 1.8vh, 0.8rem);
        padding: clamp(0.4rem, 0.8vh, 0.6rem) clamp(0.9rem, 1.5vw, 1.4rem);
        box-shadow: 0 1vh 0 #ccac00;
    }
}

.button.project-button:hover {
    transform: translateY(0.2vh);
    box-shadow: 0 0.3vh 0 #ccac00;
}

.button.project-button:active {
    box-shadow: 0 0 0 #ccac00;
}
