/* Grid Layout */
.pg-wrapper-64b14535 {
    position: relative;
    width: 100%;
}
.pg-grid-64b14535 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Card Styling */
.pg-card-64b14535 {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 350px;
    width: 100%; /* Ensure it spans the full column width */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateZ(0); /* Hardware accel */
}

.pg-card-img-64b14535 {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover; /* Ensures image covers the area */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pg-overlay-64b14535 {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pg-content-64b14535 {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pg-title-64b14535 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.pg-btn-64b14535 {
    background: #fff;
    color: #222;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

/* Hover Effects */
.pg-card-64b14535:hover .pg-card-img-64b14535 {
    transform: scale(1.08);
}
.pg-card-64b14535:hover .pg-overlay-64b14535 {
    opacity: 1;
}
.pg-card-64b14535:hover .pg-content-64b14535 {
    opacity: 1;
    transform: translateY(0);
}
.pg-card-64b14535:hover .pg-btn-64b14535 {
    opacity: 1;
    transform: translateY(0);
}

/* Project Modal */
.pg-modal-64b14535 {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 15, 15, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 40px;
}
.pg-modal-64b14535.is-active {
    opacity: 1;
    visibility: visible;
}

.pg-modal-header-64b14535 {
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}
.pg-modal-title-64b14535 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}
.pg-modal-close-64b14535 {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.pg-modal-gallery-64b14535 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 1200px;
    max-height: 80vh;
    overflow-y: auto;
    margin-top: 40px;
}
.pg-modal-thumb-64b14535 {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.pg-modal-thumb-64b14535:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

/* Fullscreen Lightbox */
.pg-fs-lightbox-64b14535 {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.pg-fs-lightbox-64b14535.is-active {
    opacity: 1;
    visibility: visible;
}
.pg-fs-img-64b14535 {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.4s ease;
}
.pg-fs-lightbox-64b14535.is-active .pg-fs-img-64b14535 {
    transform: scale(1);
}

.pg-fs-nav-64b14535 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.pg-fs-nav-64b14535:hover { background: rgba(255,255,255,0.2); }
.pg-fs-prev-64b14535 { left: 20px; }
.pg-fs-next-64b14535 { right: 20px; }
.pg-fs-close-64b14535 {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none; color: #fff;
    font-size: 2rem; cursor: pointer;
}

@media (max-width: 768px) {
    .pg-grid-64b14535 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .pg-grid-64b14535 { grid-template-columns: 1fr; }
    .pg-modal-header-64b14535 { left: 20px; right: 20px; }
}
