.pg-89edb359-wrapper {
    width: 100%;
}
.pg-89edb359-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pg-89edb359-subgrid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.pg-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}
.pg-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.pg-item:hover img {
    transform: scale(1.05);
}
.pg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    padding: 10px;
}
.pg-last-desktop .pg-overlay {
    display: flex;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .pg-89edb359-subgrid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pg-hide-mobile {
        display: none !important;
    }
    .pg-last-desktop .pg-overlay {
        display: none;
    }
    .pg-last-mobile .pg-overlay {
        display: flex;
    }
}

/* Custom Lightbox Styles */
.pg-lightbox-89edb359 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
body.admin-bar .pg-lightbox-89edb359 {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100% - var(--wp-admin--admin-bar--height, 32px));
}
@media screen and (max-width: 782px) {
    body.admin-bar .pg-lightbox-89edb359 {
        top: 46px;
        height: calc(100% - 46px);
    }
}
.pg-lightbox-89edb359.active {
    opacity: 1;
    visibility: visible;
}
.pg-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pg-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.pg-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}
.pg-lightbox-prev, .pg-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
    padding: 20px;
}
.pg-lightbox-prev { left: -60px; }
.pg-lightbox-next { right: -60px; }
@media (max-width: 767px) {
    .pg-lightbox-prev { left: -10px; }
    .pg-lightbox-next { right: -10px; }
    .pg-lightbox-close { top: -30px; right: 10px; }
}
