/* 展览卡片共享样式 */

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

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (min-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 18px;
    }
}

@media (min-width: 1600px) {
    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }
}

.gallery-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: none;
    border-color: #d1d5db;
}

.gallery-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gallery-images {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f5f5f7;
    overflow: hidden;
}

.gallery-grid-3 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    height: 100%;
}

.gallery-grid-3 .gallery-img-item:first-child {
    grid-row: 1 / -1;
}

.gallery-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    height: 100%;
}

.gallery-grid-1 {
    height: 100%;
}

.gallery-img-item {
    overflow: hidden;
}

.gallery-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-img-item img {
    transform: scale(1.05);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.gallery-placeholder i {
    font-size: 3rem;
    color: #d1d1d6;
}

.gallery-info {
    padding: 12px;
}

.gallery-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6e6e73;
    background: #f5f5f7;
    border-radius: 4px;
    margin-bottom: 6px;
}

.gallery-title-text {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gallery-meta-item {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 11px;
}

.gallery-meta-label {
    color: #86868b;
    flex-shrink: 0;
}

.gallery-meta-value {
    color: #424245;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .gallery-grid {
        gap: 8px;
    }

    .gallery-card {
        border-radius: 10px;
    }

    .gallery-info {
        padding: 8px 10px;
    }

    .gallery-title-text {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .gallery-meta-item {
        font-size: 9px;
    }

    .gallery-badge {
        font-size: 8px;
        padding: 2px 5px;
        margin-bottom: 4px;
    }
}
