.gallery-section {
    padding: 30px 0;
}

.gallery-heading {
    text-align: center;
    font-size: 35px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #d72262;
}

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

.gallery-box {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-inner {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 10px;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    display: flex;
}

.thumb-wrapper {
    width: 100%;
    height: 87%;
    overflow: hidden;
    border-radius: 8px;
}

.thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-box:hover .thumb-wrapper img {
    transform: scale(1.05);
}

.gallery-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 15px 5px;
    font-size: 16px;
    font-weight: 600;
    color: #0D4E91;
    text-align: center;
    border-top: 1px solid #eee;
}

.gallery-episode {
    color: #d72262;
}

.border-left {
    border-left: 1px solid #aaa;
    padding-left: 8px;
}

.gallery-box:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-heading {
        font-size: 24px;
    }

    .gallery-section {
        padding: 30px 0;
    }
}