.MediaWrap {
    padding-top: 40px;
    padding-bottom: 60px;
}

@media(min-widdth:576px) {
    .MediaWrap {
        padding-bottom: 70px;
    }
}

@media(min-widdth:768px) {
    .MediaWrap {
        padding-top: 50px;
        padding-bottom: 90px;
    }
}

@media(min-widdth:992px) {
    .MediaWrap {
        padding-bottom: 120px;
    }
}

/* Masonry Grid */
.Gallery {
    column-count: 4;
    column-gap: 20px;
}

/* Gallery Items */
.GalleryItem {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.GalleryItem img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    transition: transform .4s ease;
}

.GalleryItem img:hover {
    transform: scale(1.05);
}

/* Responsive */
@media(max-width:1200px) {
    .Gallery {
        column-count: 3;
    }
}

@media(max-width:768px) {
    .Gallery {
        column-count: 2;
    }
}

@media(max-width:480px) {
    .Gallery {
        column-count: 1;
    }
}

/* Pagination */
.Pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.Pagination a {
    padding: 10px 16px;
    color: #1E1E1E;
    background-color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s ease;
}

.Pagination a:hover,
.Pagination a.active {
    background-color: #F58634;
    color: #fff;
}

.Pagination .NavBtn {
    display: flex;
    align-items: center;
    gap: 6px;
}

.PreviousBtn svg {
    transform: rotate(-180deg);
}

.NavBtn.disabled {
    color: #757575;
}

.NavBtn.disabled:hover {
    color: #757575;
    background-color: transparent;
}

/* =====================
   News Cards
===================== */

.MediaGrid {
    --bs-gutter-x: 30px;
    --bs-gutter-y: 30px;
}

.NewsCard {
    background: #fff;
    border: 1px solid #eee;
    transition: 0.3s;
    padding: 13px;
}

.NewsImageWrapper {
    position: relative;
}

.NewsImage {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.NewsContent {
    margin-top: 20px;
}

.NewsMeta {
    color: #000
}

.NewsCard .NewsDate {
    margin-bottom: 10px;
}

.NewsDate {
    display: flex;
    gap: 8px;
    align-items: center;
}

.Calendar {
    background: url('data:image/svg+xml,<svg width="15" height="17" viewBox="0 0 15 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.33333 7.5H5V9.16667H3.33333V7.5ZM15 3.33333V15C15 15.9167 14.25 16.6667 13.3333 16.6667H1.66667C1.22464 16.6667 0.800716 16.4911 0.488155 16.1785C0.175595 15.866 0 15.442 0 15L0.00833333 3.33333C0.00833333 2.41667 0.741667 1.66667 1.66667 1.66667H2.5V0H4.16667V1.66667H10.8333V0H12.5V1.66667H13.3333C14.25 1.66667 15 2.41667 15 3.33333ZM1.66667 5H13.3333V3.33333H1.66667V5ZM13.3333 15V6.66667H1.66667V15H13.3333ZM10 9.16667H11.6667V7.5H10V9.16667ZM6.66667 9.16667H8.33333V7.5H6.66667V9.16667Z" fill="%23000000"/></svg>');
    width: 20px;
    height: 22px;
    background-size: 20px;
}

.NewsCard .NewsTitle {
    margin-bottom: 10px;
    line-height: 1.3;
}

.NewsCard .NewsTitle a {
    font: 700 1.25rem var(--TitleFont);
    color: #000;
    display: block;

}

.NewsCard .NewsTitle a:hover {
    color: var(--PrimaryColor);
}

.NewsExcerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Limits to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;

}

/* ============== Newsletter ==================== */
.NewsletterWrapper,
.EventWrapper {
    border: 1px solid #D9D9D9;
    padding: 20px;
	tr
}

.NewsletterTitle {
    font: 600 26px var(--TitleFont);
    color: #000;
}

.EventWrapper {
    padding: 1rem;
    height: 100%;
	transition: .3s all ease-in-out;
}
.EventWrapper:hover{
	box-shadow:0 0 20px rgba(0,0,0,.15);
}

.EventTitle {
    font: 600 24px var(--TitleFont);
    color: #000;
}
.EventTitle a:hover{
	color:var(--PrimaryColor)!important;
}
.EventMedia {
    margin-bottom: 20px;
}

.EventMedia img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}