/* 🔥 News Gallery */
.news-gallery-img {
    cursor: pointer;
    transition: 0.3s;
    object-fit: cover;
    height: 250px; /* 🔥 เพิ่มความสูง */
    width: 100%;
    object-fit: cover;
}

.news-gallery-img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* 🔥 News Modal */
.news-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;

    justify-content: center;
    align-items: center;
}

.news-modal-wrapper {
    position: relative;
}

.news-modal-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
}

.news-close {
    position: absolute;
    top: -15px;
    right: -15px;

    background: #000;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

/* card */
.hospital-news-card {
    transition: all 0.3s ease;
}

.hospital-news-card:hover {
    transform: translateY(-5px);
}

.hospital-news-card:hover .hospital-news-img {
    transform: scale(1.05);
}

/* title */
.hospital-news-card-title {
    font-size: 1.05rem;
}
/* รูป */
.hospital-news-img {
    height: 220px;
    object-fit: cover;
    transition: 0.3s;
}
/* ปุ่ม */
.hospital-news-btn {
    font-size: 0.9rem;
}

/* pagination */
.hospital-news-pagination .pagination {
    gap: 5px;
}

.main-news-image {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
}

.thumbnail-img {
    height: 90px;
    width: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0.7;
}

.thumbnail-img:hover {
    opacity: 1;
    transform: scale(1.03);
}

.thumbnail-img.active {
    border: 3px solid #0d6efd !important;
    opacity: 1;
}

.content {
    color: #444;
}

.content p {
    margin-bottom: 1rem;
}

.modal-content img {
    max-height: 85vh;
    object-fit: contain;
}

@media (max-width: 768px) {
    .main-news-image {
        height: 260px;
    }

    .thumbnail-img {
        height: 70px;
    }
}
