/* Shared styles for all project pages */

.project-details {
    padding: 60px 20px;
}

.project-header {
    text-align: center;
    margin-bottom: 40px;
}

.back-button-container {
    text-align: center;
    margin-bottom: 30px;
}

.back-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ffffff;
    color: #000;
    text-decoration: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.2s ease;
    text-transform: uppercase;
}

.back-button:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}

.project-title {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #ffffff;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
    text-align: center;
}

.project-info-item {
    font-size: 24px;
    color: #ffffff;
    line-height: 1.6;
}

.project-info-label {
    font-weight: bold;
}

.gallery-section {
    margin-top: 60px;
}

.gallery-title {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    color: #ffffff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 1;
    background-color: #f5f5f5;
}

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

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

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.overlay.active {
    display: flex;
}

.overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    cursor: default;
    width: auto;
    height: auto;
}

.overlay-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
}

.overlay-close:hover {
    opacity: 0.7;
}

.overlay-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    padding: 20px;
    user-select: none;
    transition: opacity 0.2s ease;
}

.overlay-nav:hover {
    opacity: 0.7;
}

.overlay-nav-left {
    left: 20px;
}

.overlay-nav-right {
    right: 20px;
}

.overlay-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

@media screen and (max-width: 768px) {
    .overlay-nav {
        font-size: 30px;
        padding: 10px;
    }
    
    .overlay-nav-left {
        left: 10px;
    }
    
    .overlay-nav-right {
        right: 10px;
    }
    
    .overlay {
        padding: 60px 20px 20px 20px;
        box-sizing: border-box;
    }
    
    .overlay img {
        max-width: calc(100vw - 80px);
        max-height: calc(100vh - 100px);
        width: auto;
        height: auto;
        object-fit: contain;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .project-title {
        font-size: 24px;
    }
}

