/* Architecture project gallery + lightbox (mir.no-inspired) */

.project-items {
    width: 100%;
    margin: 0;
    padding: 1.5rem 0 0 0;
}

.image-wrapper,
.row-image-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    margin: 0 0 1.5rem 0;
}

.image-wrapper {
    min-height: 50vh;
}

.image-wrapper:last-of-type,
.row-image-wrapper:last-of-type {
    margin-bottom: 1.5rem;
}

.row-image-wrapper .image-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.image-large {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
    cursor: pointer;
    margin: 0;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-image {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    cursor: default;
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

.lightbox-nav {
    position: absolute;
    bottom: 5rem;
    transform: translateX(0);
    background: transparent;
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    font-size: 2rem;
    color: #B8936D;
    user-select: none;
    padding: 0;
    line-height: 1;
}

.lightbox-nav:hover {
    background: transparent;
    color: #8B6F54;
    transform: translateX(0) scale(1.2);
}

.lightbox-nav.prev {
    left: calc(50% - 4rem);
}

.lightbox-nav.next {
    right: calc(50% - 4rem);
}

.lightbox-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    color: #2C2C2C;
    border: 1px solid #B8936D;
    z-index: 10000;
    cursor: default;
}

@media (max-width: 768px) {
    .lightbox-nav {
        bottom: 4rem;
        font-size: 1.75rem;
    }

    .lightbox-nav.prev {
        left: calc(50% - 3rem);
    }

    .lightbox-nav.next {
        right: calc(50% - 3rem);
    }
}

.hero-image-section {
    position: relative;
    width: 100%;
    max-height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.hero-image-section img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.75;
}

.project-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    z-index: 10;
    padding: 1.5rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.75) 60%, transparent 100%);
    backdrop-filter: blur(5px);
}

.project-info-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.project-info-main {
    flex: 1;
}

.category-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: #B8936D;
    color: white;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-info-overlay h1 {
    font-size: 1.75rem;
    margin: 0 0 0.25rem 0;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.project-info-overlay .subtitle {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    opacity: 0.8;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.project-info-overlay .meta-info {
    display: flex;
    gap: 2.5rem;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.meta-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-info-item .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
    font-weight: 600;
}

.meta-info-item span:last-child {
    font-weight: 500;
}

.description-section {
    background: #f8f8f8;
    padding: 6rem 1.5rem;
    margin: 0;
}

.description-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.description-block {
    display: flex;
    flex-direction: column;
}

.description-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #333;
}

.description-content .project-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #111;
    line-height: 1.2;
}

.description-content .project-desc {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 2rem;
}

.description-content .additional-info {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.description-content .meta-detail {
    font-size: 0.875rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

@media (max-width: 968px) {
    .description-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .description-section {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-image-section {
        max-height: none;
        background: transparent;
        display: block;
    }

    .hero-image-section img {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: cover;
        opacity: 1;
    }

    .project-info-overlay {
        position: static;
        background: var(--color-bg);
        padding: 1.5rem;
    }

    .project-info-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .category-badge {
        background: var(--color-accent);
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }

    .project-info-overlay h1 {
        font-size: 1.75rem;
        color: var(--color-text-primary);
        text-shadow: none;
        margin-bottom: 0.25rem;
    }

    .project-info-overlay .subtitle {
        font-size: 0.9rem;
        color: var(--color-text-secondary);
        opacity: 0.7;
        margin-bottom: 0.75rem;
    }

    .project-info-overlay .meta-info {
        color: var(--color-text-secondary);
        margin-top: 0;
        font-size: 0.8rem;
        gap: 1.5rem;
    }

    .meta-info-item .label {
        color: var(--color-text-secondary);
    }

    .meta-info-item span:last-child {
        color: var(--color-text-primary);
    }

    .image-wrapper,
    .row-image-wrapper {
        padding: 0 1.5rem;
        margin: 0 0 1.5rem 0;
        min-height: auto;
    }

    .image-wrapper:last-of-type,
    .row-image-wrapper:last-of-type {
        margin-bottom: 1.5rem;
    }

    .row-image-wrapper .image-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .image-large {
        max-height: 70vh;
    }
}

@media (min-width: 481px) and (max-width: 768px) and (orientation: landscape) {
    .hero-image-section {
        display: flex;
        flex-direction: row;
        max-height: 70vh;
        background: transparent;
    }

    .hero-image-section img {
        width: 55%;
        height: 70vh;
        object-fit: cover;
        opacity: 1;
    }

    .project-info-overlay {
        position: static;
        width: 45%;
        background: var(--color-bg);
        padding: 2rem 1.5rem;
        display: flex;
        align-items: center;
        overflow-y: auto;
    }

    .project-info-content {
        width: 100%;
    }

    .project-info-overlay h1 {
        font-size: 1.5rem;
    }

    .project-info-overlay .subtitle {
        font-size: 0.85rem;
    }
}
