/* IORI Projects Manual Widget Styles */

.iori-projects-manual-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Projects Grid - Desktop */
.iori-projects-manual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
    margin-bottom: 60px;
    justify-content: center;
    align-items: start;
}

.iori-projects-manual-right-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Large Project (first item - left) */
.iori-project-manual-large {
    width: 690px;
    height: 80vh;
    grid-row: span 2;
}

.iori-project-manual-large .iori-project-manual-image {
    height: 80vh;
}

/* Small Project */
.iori-project-manual-small {
    width: 603px;
    height: calc(40vh - 12px);
}

.iori-project-manual-small .iori-project-manual-image {
    height: calc(40vh - 12px);
}

/* Project Card */
.iori-project-manual {
    position: relative;
    overflow: hidden;
    box-shadow: 13px 13px 16px rgba(0, 0, 0, 0.25);
    background: #39424A;
}

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

/* Project Image */
.iori-project-manual-image {
    overflow: hidden;
    background: #39424A;
    position: relative;
}

.iori-project-manual-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.iori-project-manual:hover .iori-project-manual-image img {
    transform: scale(1.05);
}

/* Project Content */
.iori-project-manual-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Project Title */
.iori-project-manual-title {
    font-family: 'Montserrat', sans-serif;
    font-size: x-large;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
    margin: 0 0 8px 0;
}

/* Project Link/More */
.iori-project-manual-more {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    color: #F3A623;
    display: inline-block;
    transition: transform 0.3s ease;
}

.iori-project-manual:hover .iori-project-manual-more {
    transform: translateX(5px);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    /* Hide desktop grid on mobile, show mobile slider */
    .iori-projects-manual-grid {
        display: none;
    }
    
    .iori-projects-manual-button {
        margin-top: calc(1.6rem + 44px);
    }

    .iori-project-manual-image img {
        width: 100vw;
        height: 80vw;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .iori-projects-manual-button {
        margin-top: calc(1.6rem + 44px);
    }

    .iori-project-manual-image img {
        width: 100vw;
        height: 80vw;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .iori-projects-manual-container {
        width: 100%;
    }
}
