/* Hero section */ 
.project-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.project-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

.project-hero-content {
    z-index: 10;
}

.project-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

.project-hero-content p {
    font-size: 1.25rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

/* main description section */
.project-details-section {
    padding: 5rem 0;
}

.project-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.project-description h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.project-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.project-info-box {
    background-color: #f3f4f6;
    padding: 2rem;
    border-radius: 0.5rem;
}

.project-info-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1rem;
}

.project-info-item {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.project-info-item strong {
    font-weight: 600;
    color: #111827;
}

.project-info-item span {
    color: #4b5563;
}

/* Gallery section */ 
.gallery-section {
    padding: 0 0 5rem 0;
}

.gallery-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.interactive-gallery {
    max-width: 800px;
    margin: 0 auto;
}

.main-image-container {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    background-color: #f9fafb;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    cursor: pointer;
}

.gallery-caption {
    text-align: center;
    padding: 1rem;
    font-size: 0.95rem;
    color: #4b5563;
    font-style: italic;
    min-height: 40px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem 1.25rem;
    z-index: 10;
    transition: background-color 0.3s ease;
    user-select: none;
}

.gallery-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.gallery-nav.next {
    right: 10px;
    border-radius: 0 50px 50px 0;
}

.gallery-nav.prev {
    left: 10px;
    border-radius: 50px 0 0 50px;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.thumbnail {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.375rem;
    cursor: pointer;
    border: 3px solid transparent;
    opacity: 0.6;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.thumbnail:hover {
    opacity: 1;
}

.thumbnail.active {
    opacity: 1;
    border-color: #0d76b7;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    font-weight: 300;
    line-height: 1;
    z-index: 1001;
}

