.projects-hero {
    height: 200px;
    background-color: #333;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 2rem;
}

.projects-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.projects-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    margin: 0;
    text-transform: uppercase;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.project-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card__image {
    height: 240px;
    overflow: hidden;
    background: #f0f0f0;
}

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

.project-card:hover .project-card__image img {
    transform: scale(1.05);
}

.project-card__body {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

.project-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #333;
    text-transform: uppercase;
}

/* Detail Page */
.project-detail__title {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
}

.project-detail__content {
    line-height: 1.8;
    color: #444;
}

.project-showcase {
    margin: 0 auto 2rem;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    border-radius: 32px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 246, 244, 0.96));
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.06);
}

.project-showcase__frame {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: center;
    gap: 18px;
}

.project-showcase__stage {
    position: relative;
    display: block;
    width: 100%;
    border: none;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border-radius: 26px;
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.project-showcase__stage img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #fff;
    transition: transform 0.35s ease;
}

.project-showcase__stage:hover img {
    transform: scale(1.015);
}

.project-showcase__overlay {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
}

.project-showcase__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.72);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    backdrop-filter: blur(10px);
}

.project-showcase__hint {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: #111827;
    font-size: 0.84rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.project-showcase__nav {
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 999px;
    background: #8e8e8e;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, background 0.2s ease;
}

.project-showcase__nav:hover {
    transform: translateY(-1px);
    background: #757575;
}

.project-showcase__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.project-showcase__dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.18);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease;
}

.project-showcase__dot.is-active {
    width: 24px;
    background: #8e8e8e;
}

.project-showcase__caption {
    margin-top: 16px;
    text-align: center;
    color: #5f6470;
    font-size: 0.98rem;
    line-height: 1.7;
}

.project-lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1200;
}

.project-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.project-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.74);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.project-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 1180px);
    max-height: 90vh;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    align-items: center;
    gap: 14px;
}

.project-lightbox__content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.project-lightbox__content img {
    display: block;
    max-width: 100%;
    max-height: calc(90vh - 110px);
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
}

.project-lightbox__caption {
    margin: 0;
    padding: 0 10px;
    color: #fff;
    font-size: 1rem;
    line-height: 1.7;
    text-align: center;
}

.project-lightbox__close,
.project-lightbox__nav {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.92);
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.project-lightbox__close {
    position: absolute;
    top: -16px;
    right: 48px;
    z-index: 2;
    font-size: 1.8rem;
    line-height: 1;
}

.project-lightbox__nav {
    font-size: 2rem;
    line-height: 1;
}

.project-lightbox__close:hover,
.project-lightbox__nav:hover {
    transform: scale(1.05);
    background: #111827;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #000;
    font-weight: 600;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-title {
        font-size: 1.8rem;
    }

    .project-showcase {
        padding: 14px;
        border-radius: 24px;
    }

    .project-showcase__frame {
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        gap: 10px;
    }

    .project-showcase__nav {
        width: 42px;
        height: 42px;
        font-size: 1.7rem;
    }

    .project-showcase__overlay {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .project-showcase__hint {
        font-size: 0.75rem;
    }

    .project-showcase__caption {
        font-size: 0.92rem;
    }

    .project-lightbox__dialog {
        grid-template-columns: 1fr;
    }

    .project-lightbox__close {
        right: 0;
    }

    .project-lightbox__nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }

    .project-lightbox__nav--prev {
        left: 8px;
    }

    .project-lightbox__nav--next {
        right: 8px;
    }
}
