.psl-gallery-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 20px 0;
}

.psl-gallery-wrapper[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.psl-gallery-wrapper[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.psl-gallery-wrapper[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.psl-gallery-item {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.psl-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.psl-gallery-title {
    padding: 15px 15px 0;
    margin: 0 0 10px;
    font-size: 18px;
}

.psl-gallery-title a {
    color: #333;
    text-decoration: none;
}

.psl-gallery-title a:hover {
    color: #0073aa;
}

.psl-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    padding: 0 15px 15px;
}

.psl-gallery-thumb {
    position: relative;
    cursor: pointer;
    aspect-ratio: 1;
    overflow: hidden;
}

.psl-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.psl-gallery-thumb:hover img {
    transform: scale(1.05);
}

.psl-more-images {
    position: relative;
}

.psl-more-images::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.psl-image-count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    z-index: 2;
}

.psl-gallery-excerpt {
    padding: 15px;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #eaeaea;
}

/* Lightbox styles */
.psl-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.psl-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.psl-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.psl-lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.psl-lightbox-caption {
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

.psl-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
}

.psl-lightbox-prev,
.psl-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 15px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 20px;
}

.psl-lightbox-prev {
    left: 20px;
}

.psl-lightbox-next {
    right: 20px;
}

.psl-lightbox-prev:hover,
.psl-lightbox-next:hover {
    background: rgba(0,0,0,0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .psl-gallery-wrapper {
        grid-template-columns: 1fr !important;
    }
    
    .psl-lightbox-prev,
    .psl-lightbox-next {
        font-size: 20px;
        width: 35px;
        height: 35px;
        line-height: 35px;
    }
}