.gallery-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: block;
    text-decoration: none;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.gallery-card-inner {
    background: #fff;
    border-radius: 17px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-date-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-card:hover .gallery-date-badge {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 1);
}

.gallery-photo-count {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: translateY(60px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-photo-count {
    transform: translateY(0);
    opacity: 1;
}

.gallery-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.gallery-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-card:hover .gallery-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-view-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(255, 255, 255, 0.95);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #667eea;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.gallery-card:hover .gallery-view-icon {
    transform: translate(-50%, -50%) scale(1);
}

.gallery-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.gallery-empty-state i {
    font-size: 4rem;
    color: #e2e8f0;
    margin-bottom: 16px;
}

.gallery-empty-state p {
    font-size: 16px;
    margin: 0;
}

@media (max-width: 768px) {
    .gallery-image-wrapper {
        height: 220px;
    }

    .gallery-title {
        font-size: 18px;
    }

    .gallery-content {
        padding: 20px;
    }
}