.photo-album-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.photo-album-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two-column layout */
    column-gap: 20px; /* Smaller side-by-side gap */
    row-gap: 20px; /* Vertical gap remains 20px */
    justify-items: center;
}

.photo-album-item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-album-thumbnail {
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: center center;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.photo-album-thumbnail:hover {
    transform: scale(1.05);
}

.photo-album-delete {
    position: absolute;
    top: -10px;
    right: -10px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: none;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}

/* Show delete button in Elementor edit mode */
.elementor-editor-active .photo-album-delete {
    display: block;
}

/* Lightbox Styles */
.photo-album-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.photo-album-lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.photo-album-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .photo-album-grid {
        grid-template-columns: 1fr; /* Switch to single column on small screens */
        column-gap: 0; /* No horizontal gap in single column */
        row-gap: 20px;
    }

    .photo-album-thumbnail {
        width: 120px;
        height: 120px;
    }
}