/* Larger desktop and mobile navigation tabs */
.nav {
    max-width: 1400px;
    padding-top: 9px;
    padding-bottom: 9px;
}

.links {
    gap: 5px;
    font-size: 14px;
    font-weight: 750;
}

.links > a,
.nav-dropdown > summary {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 11px;
    border-radius: 8px;
    transition: background .2s ease, color .2s ease;
}

.links > a:hover,
.nav-dropdown > summary:hover,
.nav-dropdown[open] > summary {
    background: #edf3f9;
    color: #b17812;
}

/* Dr. Manish Kumar profile photo */
.editor-avatar {
    width: 172px;
    height: 172px;
    overflow: hidden;
    background: #eaf3f9;
}

.editor-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
}

/* Gallery page */
.gallery-page {
    padding: 65px 6%;
    background: linear-gradient(180deg, #fff 0, #f7f9fc 100%);
    min-height: 70vh;
}

.gallery-wrap {
    max-width: 1180px;
    margin: auto;
}

.gallery-intro {
    max-width: 780px;
    color: #5b6777;
    margin-bottom: 30px;
}

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

.gallery-item {
    margin: 0;
    padding: 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 8px 24px #17335417;
}

.gallery-item a {
    display: block;
    overflow: hidden;
    border-radius: 9px;
    background: #edf3f9;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 430px;
    object-fit: contain;
    transition: transform .25s ease;
}

.gallery-item a:hover img {
    transform: scale(1.025);
}

.gallery-item figcaption {
    padding: 14px 4px 3px;
    color: #082d60;
    font-weight: 750;
    text-align: center;
}

@media (max-width: 900px) {
    .links > a,
    .nav-dropdown > summary {
        min-height: 50px;
        padding: 12px 14px;
    }

    .dropdown-menu a {
        display: flex;
        align-items: center;
        min-height: 46px;
        padding: 11px 14px;
    }

    .publication-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .gallery-page {
        padding: 42px 5%;
    }

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

    .gallery-item img {
        height: auto;
        max-height: 520px;
    }

    .editor-avatar {
        width: 145px;
        height: 145px;
    }
}
