/* Single Project Page Styles */
.project-single-container {
    width: 100%;
    padding: 0 20px;
}

.main-project-image {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: cover;
    display: block;
    margin-bottom: 40px;
}

/* Title and Description Layout */
.title-and-description-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 200px;
    padding: 0 20px;
}

.entry-header {
    flex: 0 0 200px;
    text-align: left;
    margin: 0;
    padding: 0;
}

.entry-title {
    font-family: 'League Spartan', sans-serif;
    font-weight: 100;
    font-size: 2.6rem;
    width: 300px;
}

.project-description {
    flex: 1;
    font-size: 1.2rem;
    font-family: 'League Spartan', sans-serif;
    font-weight: 100;
    color: #666;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.project-description p {
    margin: 0 0 15px 0;
}

.project-description p:last-child {
    margin-bottom: 0;
    width: 80%;
    margin-left: 224px;
}

/* Project Gallery Layout - Grid 2x3 */
.entry-content {
    margin-bottom: 80px;
}

.project-gallery-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    padding: 0 20px;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    transition: transform 0.3s ease;
}


.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Related Projects Section */
.related-projects {
    padding: 60px 0;
    width: 100%;
}

.related-projects h3 {
    font-family: 'League Spartan', sans-serif;
    font-size: 2.6rem;
    font-weight: 100;
    text-align: left;
    margin: 0 0 40px 0;
    padding: 0 20px;
}

.related-projects-carousel {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
	margin-bottom: 100px;
}

.related-project-item {
    flex: 0 0 360px;
    overflow: hidden;
}

.related-project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-project-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-project-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}


.related-project-item h4 {
    padding-top: 20px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 100;
    line-height: 1.3;
    font-family: 'League Spartan', sans-serif;
}

/* Lightbox for gallery images with navigation */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
	position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: auto;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background-color 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}


@media (max-width: 768px) {
    .title-and-description-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 60px;
        padding: 0 20px;
    }

    .entry-header {
        flex: none;
        width: 100%;
        text-align: left;
    }

    .entry-title {
        font-size: 2rem;
        width: 100%;
    }

    .project-description {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .project-description p:last-child {
        margin-left: 0;
        width: 100%;
    }

    .project-gallery-carousel {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 20px;
    }

    .related-projects h3 {
        text-align: center;
        padding: 0 20px;
    }

    .related-projects-carousel {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .related-project-item {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 20px;
    }

    .related-project-thumbnail {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .related-project-item h4 {
        text-align: center;
        padding: 10px 0;
    }
}