/* Graphic Portfolio Page Styles */
.filter-container {
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 10px 0;
}
.filter-container::-webkit-scrollbar {
    display: none;
}
.filter-pill {
    display: inline-block;
    padding: 10px 30px;
    margin: 5px;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    background: #fff;
    color: #515264;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Work Sans', sans-serif;
    outline: none;
}
.filter-pill:hover, .filter-pill.active {
    background: linear-gradient(45deg, #6600d3 0%, #3b38eb 100%);
    color: #fff;
    border-color: transparent;
}
.portfolio-column {
    display: none;
}
.portfolio-column.show {
    display: block;
    animation: fadeIn 0.5s;
}

.g-portfolio-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
}
.g-portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.g-portfolio-img {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    justify-content: center;
    align-items: center;
}
.g-portfolio-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; 
    transition: transform 0.5s ease;
}
.g-portfolio-card:hover .g-portfolio-img img {
    transform: scale(1.05);
}
.g-portfolio-desc {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #eee;
    background: #fff;
    position: relative;
    z-index: 2;
}
.g-portfolio-desc h5 {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    color: #333;
    margin: 0;
    font-weight: 600;
    text-transform: capitalize;
}
.g-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(102, 0, 211, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}
.g-portfolio-card:hover .g-overlay {
    opacity: 1;
}
.g-overlay i {
    color: #6600d3;
    font-size: 20px;
    background: #fff;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.g-portfolio-card:hover .g-overlay i {
    transform: translateY(0);
}

/* Lightbox */
.g-lightbox-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInModal 0.3s forwards;
}
@keyframes fadeInModal {
    from {opacity: 0;} 
    to {opacity: 1;}
}
.g-lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    object-fit: contain;
}
.g-close-btn {
    position: absolute;
    top: 20px; right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
    z-index: 100;
}
.g-close-btn:hover {
    color: #3b38eb;
    transform: rotate(90deg);
}
@keyframes zoomIn {
    from {transform:scale(0.8); opacity: 0;} 
    to {transform:scale(1); opacity: 1;}
}

@media screen and (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.load-more-btn {
    display: none; /* controlled by JS */
    background: linear-gradient(45deg, #6600d3 0%, #3b38eb 100%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    margin-top: 20px;
}
.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 56, 235, 0.4);
}
