.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* 카드 */
.card {
    position: relative;
    height: 500px;
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;
}

/* 이미지 */
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.card:hover img {
    transform: scale(1.1);
}

/* 오버레이 */
.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

/* 텍스트 */
.card-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
}

.subject {
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 15px;
    border-radius: 100px;
    font-size: 12px;
}

.title {
    font-size: 22px;
}
