/* Fit the submitted square logo without altering the original image file. */
.logo-frame {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 118px;
    aspect-ratio: 1094 / 900;
    overflow: hidden;
    background: #fff;
}

.logo-frame .publisher-logo {
    position: absolute;
    display: block;
    width: 114.62523%;
    max-width: none;
    height: auto;
    left: -7.31261%;
    top: -20.55556%;
    object-fit: contain;
    margin: 0;
}

.site-header .header-inner { height: 112px; }
.footer-intro .logo-frame { width: 154px; }
.admin-header { height: 104px; }
.admin-header .logo-frame { width: 110px; }
.admin-nav { min-height: calc(100vh - 104px); }
.login-box .logo-frame { width: 205px; margin: 0 auto 28px; }

@media (max-width: 900px) {
    .site-header .header-inner { height: 100px; }
    .site-header .logo-frame { width: 104px; }
}

@media (max-width: 760px) {
    .admin-header { height: 92px; }
    .admin-header .logo-frame { width: 94px; }
    .admin-nav { min-height: auto; }
}

@media (max-width: 620px) {
    .site-header .header-inner { height: 92px; }
    .site-header .logo-frame { width: 96px; }
    .footer-intro .logo-frame { width: 144px; }
}

@media print {
    .site-header { display: none !important; }
}

/* Keep the submitted logo fixed while the article photograph moves beneath it. */
.image-wrap,
.story-image,
.poster-canvas,
.article-hero,
.mini-card > a:first-child { position: relative; }
.mini-card > a:first-child { display: block; }
.image-wrap::after,
.story-image::after,
.poster-canvas::after,
.article-hero:has(> img[data-kind])::after,
.mini-card > a:first-child::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 3%;
    right: 3%;
    width: clamp(34px, 17%, 126px);
    aspect-ratio: 1094 / 900;
    background: #fff url("assets/rashtriya-headlines-logo.jpeg") 50% 52.2% / 114.62523% auto no-repeat;
    border: 1px solid #ffffffc9;
    box-shadow: 0 2px 12px #0003;
    pointer-events: none;
}

.category-cover{margin:0 auto 28px;max-width:840px;background:#fff;border:1px solid #dedbd4}.category-cover>img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}.category-cover>figcaption{padding:7px 12px;color:#657184;font-size:13px;line-height:1.5}@media(max-width:620px){.category-cover{margin-bottom:22px}.category-cover>figcaption{font-size:12px}}

/* New editorial image files already contain the supplied publisher logo. */
.image-wrap:has(img[data-logo-embedded="true"])::after,
.story-image:has(img[data-logo-embedded="true"])::after,
.poster-canvas:has(img[data-logo-embedded="true"])::after,
.article-hero:has(> img[data-logo-embedded="true"])::after,
.mini-card > a:has(img[data-logo-embedded="true"])::after { content: none; }

/* Embedded publisher marks must stay inside the visible image frame. */
img[data-logo-embedded="true"] { aspect-ratio: 3 / 2; height: auto; object-fit: contain; }
.image-wrap:has(img[data-logo-embedded="true"]),
.story-image:has(img[data-logo-embedded="true"]) {
    aspect-ratio: 3 / 2 !important;
    height: auto !important;
    min-height: 0 !important;
    align-self: start;
}
img[data-logo-embedded="true"] {
    aspect-ratio: 3 / 2 !important;
    height: auto !important;
    object-fit: contain !important;
    transform: none !important;
}
