/* Portfolio Section Styles */
.portfolio-section {
    background-color: #f8f9fa;
    padding: 50px 0;
}

.portfolio-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
}


.portfolio-section h1 {
    font-size: 2.5rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 40px;
    text-align: center;
}

.portfolio-light,
.portfolio-dark {
    display: flex;
    align-items: flex-start;
    padding: 20px 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    
}

.portfolio-light {
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd; /* Light grey border */
    border-radius: 8px;
}
.portfolio-dark {
    background-color: #dfdfdf;
    border: 1px solid #ddd; /* Light grey border */
    border-radius: 8px;
    padding: 20px;
}

.portfolio-pics {
    display: flex;
    justify-content: space-between;  /* Ensure the images are evenly spaced */
    gap: 10px;
}

.portfolio-thumbnail img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
    border-radius: 4px;
    
}

.portfolio-hidden-images a img {
    display: none; /* Hide extra images, only visible in Fancybox */
}


.landscape-img {
    display: flex;
    flex-direction: column;
}
.portfolio-img:hover {
    transform: scale(1.05);
}

.portfolio-text {
    padding: 15px 20px;
    text-align: left;
}

.portfolio-text h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.portfolio-text p {
    font-size: 1rem;
    line-height: 1.6;
}

.portfolio-dark .portfolio-text h2,
.portfolio-dark .portfolio-text p {
    color: #4f4f4f;
}

/* Portfolio Thumbnail */
.portfolio-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.portfolio-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

/* Overlay */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    color: #fff;
    font-size: 18px;
    text-align: center;
    transition: opacity 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-overlay .overlay-text {
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hover Effect */
.portfolio-thumbnail:hover img {
    transform: scale(1.05);
}

.portfolio-thumbnail:hover .portfolio-overlay {
    opacity: 1;
}


/* Fancybox Thumbnail Styles */
.fancybox__thumbs {
    background-color: rgba(0, 0, 0, 0.8);
}

.fancybox__thumb {
    border: 2px solid #fff;
    transition: border-color 0.3s ease;
}

.fancybox__thumb:hover {
    border-color: #007bff;
}

.read-more-content {
    display: none;
}
.read-more-btn {
    background-color: #6CA23E;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.read-more-btn:hover {
    background-color: #578830;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-light,
    .portfolio-dark {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .portfolio-text {
        padding: 20px 0;
    }

    .portfolio-pics {
        justify-content: center;
    }

    .portfolio-img {
        margin-bottom: 10px;
        max-width: 90%; /* Larger images on smaller screens */
    }
}
