.article-detail-page {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 36px clamp(34px, 5vw, 78px) 54px !important;
}

.article-detail-page .entry-title {
    margin-top: 0;
}

.article-detail-page .entry-content img {
    height: auto;
    max-width: 100%;
}

.article-gallery-section {
    margin-top: 38px;
}

.article-gallery-title {
    background: linear-gradient(to right, #007dbb, #fff 260px) 0 100% / 100% 3px no-repeat;
    margin-bottom: 18px;
    padding-bottom: 7px;
    width: 100%;
}

.article-gallery-title h3 {
    margin: 0;
}

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

.article-gallery-card {
    aspect-ratio: 13 / 8;
    background: #eef2f5;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(18, 43, 64, .12);
    display: block;
    overflow: hidden;
    position: relative;
}

.article-gallery-card img {
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
    width: 100%;
}

.article-gallery-zoom {
    align-items: center;
    background: rgba(0, 125, 187, .72);
    color: #fff;
    display: flex;
    font-size: 22px;
    inset: 0;
    justify-content: center;
    opacity: 0;
    position: absolute;
    transition: opacity .2s ease;
}

.article-gallery-card:hover img,
.article-gallery-card:focus img {
    transform: scale(1.035);
}

.article-gallery-card:hover .article-gallery-zoom,
.article-gallery-card:focus .article-gallery-zoom {
    opacity: 1;
}

/* The site header uses a very high z-index; keep the lightbox above it. */
.mfp-bg {
    z-index: 100000;
}

.mfp-wrap {
    z-index: 100001;
}

@media (min-width: 992px) {
    .article-detail-page > .content-area.col-md-8 {
        padding-right: 30px !important;
    }

    .article-detail-page > .widget-area.col-md-4 {
        padding-left: 30px;
    }
}

@media (max-width: 991px) {
    .article-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .article-detail-page {
        padding: 28px 22px 44px !important;
    }

    .article-gallery {
        grid-template-columns: 1fr;
    }
}
