/* Projects Archive Layout */
.st-projects-archive {
    margin: 4rem auto;
    flex-grow: 1;
    max-width: 1200px;
    font-family: Arial, sans-serif;
}

.st-projects-list,.st-projects-loop {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding-left: 0;
    list-style: none;
}

.st-projects-list li {
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.st-projects-list li:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.st-projects-list li .image-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 4px;
}

.st-projects-list li .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Single Project Layout */
/* General Container */
.st-project-single.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    border-top: 1px solid #eee;
}

/* Title */
.project-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111;
}

h1.project-title {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111;
}

/* Meta */
.project-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.project-meta .icon-svg {
    width: 1.25rem; /* 20px */
    height: 1.25rem;
    flex-shrink: 0;
}

.location-text {
    font-weight: 500;
}

.project-header {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.project-info {
    flex: 1 1 55%;
}

.project-featured-image {
    flex: 1 1 40%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.project-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
    .project-header {
        flex-direction: column;
    }

    .project-featured-image,
    .project-info {
        flex: 1 1 100%;
    }
}

/* Description Section */
.project-description {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.project-description h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Gallery Grid */
.wysiwyg-gallery .gallery {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.wysiwyg-gallery figure {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.wysiwyg-gallery figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4/3;
    transition: transform 0.3s ease;
}

.wysiwyg-gallery figure:hover img {
    transform: scale(1.05);
}

/* Gallery Columns */
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }
.gallery-columns-7 { grid-template-columns: repeat(7, 1fr); }
.gallery-columns-8 { grid-template-columns: repeat(8, 1fr); }
.gallery-columns-9 { grid-template-columns: repeat(9, 1fr); }

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .wysiwyg-gallery .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .wysiwyg-gallery .gallery {
        grid-template-columns: 1fr;
    }

    .project-description,
    .project-video {
        padding: 1rem;
    }
}

/* Video Section */
.project-video {
    margin-top: 2rem;
}

.project-video h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
}

.breadcrumb a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #0073aa;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-home svg.icon-home {
    width: 1rem;
    height: 1rem;
    stroke: #0073aa;
}

/* Project Navigation */
.project-navigation {
    margin: 3rem 0;
    padding-top: 2rem;
}

.project-nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    width: 100%;
    max-width: 40%;
    transition: transform 0.2s ease;
}

.nav-card div {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.nav-card.nav-prev{
    flex-direction: row-reverse;
    text-align: right;
}
.nav-card.nav-next{
    flex-direction: row;
    text-align: left;
}

.nav-card.nav-prev div{
    align-items: end;
}

.nav-card:hover {
    transform: translateY(-2px);
}

.nav-card img {
    width: auto;
    max-height: 150px;
    border-radius: 6px;
}

.nav-label {
    font-size: 0.85rem;
    color: #666;
}

.nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-card {
        max-width: 100%;
    }
}

/* project CTA */
.project-cta {
    background-color: #fff7f7;
    padding: 3rem 1.5rem;
    margin-top: 4rem;
    border-radius: 12px;
    text-align: center;
}

.cta-inner {
    max-width: 720px;
    margin: 0 auto;
}

.project-cta h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #111827;
}

.project-cta p {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: var(--e-global-color-primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 3rem;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--e-global-color-primary);
    color: white;
}