
.project-doc {
    background-color: white;
    padding-left: 30px;
    padding-right: 30px;
}

/* Professional Photo Gallery Styles */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.gallery-item,
.gallery-item-more {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover,
.gallery-item-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
}

.gallery-thumbnail picture,
.gallery-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    color: white;
    font-size: 24px;
    opacity: 0;
}

.gallery-item:hover .gallery-overlay,
.gallery-item-more:hover .gallery-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.gallery-overlay i {
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i,
.gallery-item-more:hover .gallery-overlay i {
    transform: scale(1.2);
}

.gallery-overlay-more {
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 1;
}

.gallery-item-more:hover .gallery-overlay-more {
    background-color: rgba(0, 0, 0, 0.75);
}

.more-images-text {
    text-align: center;
    font-weight: 600;
    font-size: 18px;
}

.more-images-text i {
    display: block;
    font-size: 28px;
    margin-bottom: 5px;
}

.more-images-text span {
    display: block;
    font-size: 14px;
}

.gallery-show-more {
    position: relative;
}

/* First image larger on single column for projects with 1-3 images */
.project-gallery:has(.gallery-item:nth-child(1):nth-last-child(1)) {
    grid-template-columns: 1fr;
}

.project-gallery:has(.gallery-item:nth-child(1):nth-last-child(2)),
.project-gallery:has(.gallery-item:nth-child(1):nth-last-child(3)) {
    grid-template-columns: 1fr;
}

.project-gallery .gallery-item:first-child:nth-last-child(2),
.project-gallery .gallery-item:first-child:nth-last-child(3) {
    grid-column: 1 / -1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-gallery {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .gallery-thumbnail {
        padding-bottom: 60%; /* 5:3 aspect ratio on mobile */
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .project-gallery {
        gap: 10px;
    }
}
