.gallery-grid-23c71b87 {
    column-count: 3;
    column-gap: 15px;
    width: 100%;
}
.gallery-empty-message-23c71b87 {
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
    border: 1px dashed #ccc;
    color: #666;
    font-size: 14px;
    width: 100%;
}
.gallery-item-23c71b87 {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
    break-inside: avoid;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-img-23c71b87 {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-item-23c71b87:hover .gallery-img-23c71b87 {
    transform: scale(1.03);
}

/* Lightbox overlay styles */
.pg-lightbox-23c71b87 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.96);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    user-select: none;
}
body.admin-bar .pg-lightbox-23c71b87 {
    top: var(--wp-admin--admin-bar--height, 32px);
}
@media screen and (max-width: 782px) {
    body.admin-bar .pg-lightbox-23c71b87 {
        top: 46px;
    }
}
.pg-lightbox-23c71b87.active {
    opacity: 1;
}
.pg-lightbox-content-23c71b87 {
    position: relative;
    width: 100%;
    max-width: 85%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.pg-lightbox-img-23c71b87 {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}
.pg-lightbox-meta-23c71b87 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 15px;
    gap: 20px;
}
.pg-lightbox-title-23c71b87 {
    color: #fff;
    font-size: 15px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}
.pg-lightbox-toolbar-23c71b87 {
    display: flex;
    gap: 10px;
}
.pg-lightbox-toolbar-btn-23c71b87 {
    background: #ffffff;
    border: none;
    outline: none;
    padding: 10px 20px;
    border-radius: 25px;
    color: #111111;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.pg-lightbox-toolbar-btn-23c71b87:hover {
    background-color: #f1f1f1;
    transform: scale(1.03);
}
.pg-lightbox-close-23c71b87 {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, opacity 0.2s;
    z-index: 10;
}
.pg-lightbox-close-23c71b87:hover {
    background: rgba(0,0,0,0.8);
}
.pg-lightbox-nav-23c71b87 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 5;
}
.pg-lightbox-nav-23c71b87:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-50%) scale(1.05);
}
.pg-lightbox-prev-23c71b87 { left: 24px; }
.pg-lightbox-next-23c71b87 { right: 24px; }

/* Mobile Optimizations */
@media (max-width: 767px) {
    .pg-lightbox-close-23c71b87 {
        top: 15px;
        right: 15px;
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
    
    /* Move arrows to the bottom for easy one-hand thumb access and no image blocking */
    .pg-lightbox-nav-23c71b87 {
        top: auto;
        bottom: 25px;
        transform: none;
        width: 46px;
        height: 46px;
        font-size: 20px;
        background: rgba(255, 255, 255, 0.2);
    }
    .pg-lightbox-nav-23c71b87:hover {
        transform: scale(1.05);
    }
    .pg-lightbox-prev-23c71b87 {
        left: calc(50% - 65px);
    }
    .pg-lightbox-next-23c71b87 {
        right: calc(50% - 65px);
    }
    
    .pg-lightbox-content-23c71b87 {
        max-width: 95%;
        max-height: 75%;
    }
    .pg-lightbox-img-23c71b87 {
        max-height: 52vh;
    }
    .pg-lightbox-meta-23c71b87 {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        margin-top: 10px;
    }
    .pg-btn-text-23c71b87 {
        display: none; /* Icon only on mobile to save space */
    }
    .pg-lightbox-toolbar-btn-23c71b87 {
        padding: 10px 18px;
    }
}
