:root {
    --dpo-red: #A12124;
    --dpo-dark-red: #8f171b;
    --dpo-bright-red: #d51d24;
    --dpo-bg: #ffffff;
    --dpo-white: #ffffff;
    --dpo-light-gray: #efefef;
    --dpo-black: #222222;

    --dpo-subheader-top: 124px;
    --dpo-subheader-height: 54px;
}



/* ================================
   NEWS DETAIL PAGE
================================ */

.dpo-news-detail-page {
    width: 100%;
    min-height: 100vh;

    margin: 0 !important;
    padding: 0 !important;

    background: var(--dpo-bg);
    color: var(--dpo-black);

    font-family: 'Century Gothic', 'Poppins', Arial, sans-serif;

    position: relative;
    z-index: 1;
}



/* ================================
   MAIN CONTENT
================================ */

.dpo-news-detail-main {
    width: 100%;

    margin: 0;
    padding: 48px 0 75px;

    background: #ffffff;
}

.dpo-news-detail-container {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;
    padding: 0 60px;

    box-sizing: border-box;
}

/* ================================
   LARGE IMAGE GALLERY
================================ */

.dpo-news-detail-gallery {
    width: 100%;
    max-width: 1240px;

    margin: 0 auto 46px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 24px;
    align-items: stretch;
}

.dpo-news-detail-image-button {
    width: 100%;

    margin: 0;
    padding: 0;

    border: 0;
    background: transparent;

    display: block;
    overflow: hidden;

    cursor: zoom-in;
}

.dpo-news-detail-image-main {
    grid-column: 1 / -1;
}

/*
 * One uploaded image takes the full gallery width.
 */
.dpo-news-detail-image-button:only-child {
    grid-column: 1 / -1;
}

.dpo-news-detail-image-button img {
    width: 100%;
    height: 420px;

    display: block;

    object-fit: cover;
    object-position: center center;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.dpo-news-detail-image-main img,
.dpo-news-detail-image-button:only-child img {
    width: 100%;
    height: 650px;

    object-fit: contain;
    object-position: center center;

    background: #f5f5f5;
}

.dpo-news-detail-image-button:hover img {
    transform: scale(1.015);
    opacity: 0.95;
}

/* ================================
   ARTICLE
================================ */

.dpo-news-detail-article {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;
}

.dpo-news-detail-title {
    margin: 0 0 18px;

    color: #111111;

    font-size: 31px;
    font-weight: 800;
    line-height: 1.25;

    text-transform: uppercase;
}

.dpo-news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 16px;
    margin-bottom: 28px;

    font-size: 16px;
}

.dpo-news-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 18px;

    background: var(--dpo-bright-red);
    color: #ffffff;

    border-radius: 22px;

    font-weight: 700;
    text-transform: uppercase;
}

.dpo-news-date {
    color: #222222;
}

.dpo-news-date strong {
    color: #0878db;
    font-weight: 500;
}

.dpo-news-detail-body {
    margin-bottom: 26px;

    color: #111111;

    font-size: 17px;
    line-height: 1.72;
    text-align: justify;
}

.dpo-news-detail-body p {
    margin: 0 0 16px;
}

.dpo-news-detail-body img {
    max-width: 100%;
    height: auto;
}

.dpo-news-detail-body ul,
.dpo-news-detail-body ol {
    padding-left: 24px;
}

.dpo-news-detail-body li {
    margin-bottom: 8px;
}

.dpo-news-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 11px 22px;

    background: var(--dpo-red);
    color: #ffffff !important;

    border-radius: 4px;

    text-decoration: none !important;
    font-weight: 700;
}

.dpo-news-back-btn:hover,
.dpo-news-back-btn:focus {
    background: var(--dpo-dark-red);
    color: #ffffff !important;
    text-decoration: none !important;
}

/* ================================
   IMAGE MODAL
================================ */

body.dpo-news-modal-open {
    overflow: hidden;
}

.dpo-news-image-modal[hidden] {
    display: none !important;
}

.dpo-news-image-modal {
    position: fixed;
    inset: 0;

    z-index: 12000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;
}

.dpo-news-image-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.82);
}

.dpo-news-image-modal-dialog {
    width: 100%;
    max-width: 1500px;
    max-height: 92vh;

    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;
}

.dpo-news-image-modal-dialog img {
    max-width: 100%;
    max-height: 88vh;

    display: block;
    object-fit: contain;
}

.dpo-news-image-modal-close {
    position: absolute;
    top: -18px;
    right: -8px;

    width: 42px;
    height: 42px;

    border: 0;
    border-radius: 50%;

    background: var(--dpo-red);
    color: #ffffff;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;
    z-index: 3;
}


/* ================================
   RESPONSIVE: LARGE TABLETS
================================ */

@media screen and (max-width: 1200px) {
    .dpo-news-detail-container {
        padding: 0 40px;
    }
}

/* ================================
   RESPONSIVE: TABLETS
================================ */

@media screen and (max-width: 991px) {
  

    .dpo-news-detail-container {
        padding: 0 28px;
    }

    .dpo-news-detail-gallery {
        max-width: 100%;
    }

    .dpo-news-detail-image-main img,
    .dpo-news-detail-image-button:only-child img {
        height: 520px;
    }

}

/* ================================
   RESPONSIVE: MOBILE
================================ */

@media screen and (max-width: 768px) {
    :root {
        --dpo-subheader-top: 104px;
    }

   

    .dpo-news-detail-main {
        padding: 32px 0 50px;
    }

    .dpo-news-detail-container {
        padding: 0 18px;
    }

    .dpo-news-detail-gallery {
        grid-template-columns: 1fr;

        gap: 16px;
        margin-bottom: 30px;
    }

    .dpo-news-detail-image-main {
        grid-column: auto;
    }

    .dpo-news-detail-image-button img,
    .dpo-news-detail-image-main img,
    .dpo-news-detail-image-button:only-child img {
        width: 100%;
        height: auto;
        max-height: none;

        object-fit: contain;

        background: #f5f5f5;
    }

    .dpo-news-detail-title {
        font-size: 23px;
    }

    .dpo-news-meta {
        flex-direction: column;
        align-items: flex-start;

        gap: 10px;
    }

    .dpo-news-detail-body {
        font-size: 15px;
        text-align: left;
    }

}

/* ================================
   RESPONSIVE: SMALL MOBILE
================================ */

@media screen and (max-width: 575px) {
    :root {
        --dpo-subheader-top: 94px;
    }


    .dpo-news-detail-container {
        padding: 0 12px;
    }

    .dpo-news-detail-title {
        font-size: 20px;
    }

    .dpo-news-category {
        font-size: 12px;
    }

    .dpo-news-image-modal {
        padding: 14px;
    }
}