/*
==============================================================================
This code snippet added by Nason Bimbe to remove login instruction if there is a URI . Used Gemini.
25/08/2026
======================================================================
*/

/* Hide .item-access if a .value.uri element exists on the page */
body:has(.value.uri) .item-access {
  display: none !important;
}

/*
==============================================================================
This code snippet added by Nason Bimbe to remove Attribution notice for items submitted using 
the public form . Used Gemini.
25/08/2026
======================================================================
*/

/* 1. Hide the "Click here to view the collected data" link */
a[href*="/collecting/item/"] {
  display: none !important;
}

/* 2. Hide the "This item was submitted on..." paragraph directly preceding the link */
p:has(+ a[href*="/collecting/item/"]) {
  display: none !important;
}

/*
==============================================================================
This code snippet to sort out
the issue of Zooming reported on row 10 of the feedback sheet. Used Gemini.
24/08/2026
======================================================================
*/

/* 1. Prevent global horizontal overflow */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

/* 2. Contain main content and layout containers */
main,
#content,
.content,
#page-content {
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* 3. Fix 100vw or fixed width elements */
.full-width,
[style*="width: 100vw"],
[style*="width:100vw"] {
    max-width: 100% !important;
    width: 100% !important;
}

/* 4. Ensure child elements, tables, and embeds don't protrude */
table,
im g,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
}

/*
=============================================================
*/


.breadcrumbs-parent ol {
    margin: 0;
    padding: 0;
}

.breadcrumbs-parent ol li {
    display: inline;
}

.breadcrumbs-parent ol li::before {
    content: "> ";
}

.breadcrumbs-parent ol li:first-child:before {
    display: none;
}

body.guest.login div#content div.block.block-group,
body.guest.guest-register div#content div.block.block-group {
    margin-top: 64px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 0 16px rgba(64, 64, 64, 0.5);
}

body.guest div#page-actions {
    margin-top: 12px;
}

body.guest.login div.single-sign-on-login {
    margin-top: 12px;
}

div#content div.blocks div.blocks--container div.wrap.w rap--xs {
    width: 100%;
    max-width: 1366px;
}

div.item-access__text a {
    text-decoration: underline;
}

div.item- access__text a:hover,
div.item-access__text a:focus {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: none;
}

div.metadata div.media-embeds div.media-render.file {
    display: none;
}

@media (min-width: 1366px) {
    body.guest.login div#content,
    body.guest.guest-register div#content {
        display: block;
        margin: 0 auto;
        padding: 1em 0;
        width: 100%;
        max-width: 1366px;
    }

    .breadcrumbs-parent {
        display: block;
        margin: 0 auto;
        width: 100%;
        max-width: 1366px;
    }

    div#content div#content {
        display: block;
        margin: 0 auto;
        width: 100%;
        max-width: 1366px;
    }

    div#content div#content p {
        padding: 1em 0;
    }

    .block-browsePreview .preview-block {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 1366px;
    }

    .item.browse .blocks > .wrap--xl {
        padding-left: 0;
        padding-right: 0;
    }

    .item.browse .blocks > .wrap--xl > .item-set-items {
        margin: 0 auto;
        width: 100%;
        max-width: 1366px;
    }

    .search-results-wrapper .search-resu lts {
        flex-basis: auto;
        width: 100%;
        max-width: 1366px;
    }
}

/*
==============================================================================
This code snippet added by Jonathan to remove white horizontal white bars that appear besides the page page title on the People page . Used Gemini. Ticket  287695 
04/09/2026
======================================================================
*/

.page-layout-grid .block.block-pageTitle {
  width: calc(100% + 2 * 16px);
  margin-left: -16px;
  margin-right: -16px;
}

@media (min-width: 768px) {
  .page-layout-grid .block.block-pageTitle {
    margin-left: calc((-99vw + 100%) / 2);
    margin-right: calc((-99vw + 100%) / 2);
    width: 99vw;
    max-width: 99vw;
  }
}

/*
==============================================================================
This code snippet added by Jonathan to remove the local login box for guests. Used Gemini. Ticket  287682 
04/09/2026
======================================================================
*/

/* Hide the local email/password login - SSO only */
.block-login #loginform,
.block-login p.forgot-password {
    display: none;
}