.beautiful-gallery {
    display: flex;
    margin: 0 -10px;
    list-style: none;
    padding: 0;
}

.beautiful-gallery--row {
    flex-direction: row;
}

.beautiful-gallery--column {
    flex-direction: column;
    align-items: center;
}

.beautiful-gallery__item {
    margin: 10px;
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(40% - 20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.beautiful-gallery--column .beautiful-gallery__item {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
    max-width: 500px;
}

.beautiful-gallery__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.beautiful-gallery__image-wrapper {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    min-height: 150px;
}

.beautiful-gallery--column .beautiful-gallery__image-wrapper {
    min-height: auto;
    height: auto !important;
}

.beautiful-gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.beautiful-gallery--column .beautiful-gallery__image {
    height: auto;
    object-fit: contain;
}

.beautiful-gallery__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #6c757d;
    font-size: 14px;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.beautiful-gallery__item:hover .beautiful-gallery__image {
    transform: scale(1.05);
}

.beautiful-gallery__title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-align: center;
    padding: 0 10px 10px;
}

.beautiful-gallery-error {
    color: #dc3232;
    text-align: center;
    padding: 20px;
    background: #fbeaea;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .beautiful-gallery__item {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .beautiful-gallery__item {
        flex: 1 1 calc(100% - 20px);
        max-width: calc(100% - 20px);
    }
}