@page {
    margin: 0;
}

/* ---------------------------------------------
     PRINT STYLES
  --------------------------------------------- */
@media print {
    body {
        margin: 0;
        padding: 10mm;
        box-sizing: border-box;
        font-size: 13pt;
    }


	@page:left {
		@bottom-left {
			content: counter(page);
		}
	}


    .talent-table {
        box-shadow: none !important;
    }

    .talent-commercial {
        margin-top: 10px;
    }

    .actor-skill {
        background: white;
        text-align: none;
        font-size: 13px;
        border: none !important;
        /* font-weight: bold; */
        min-height: 0px;
    }


    .field--name-field-actors-skills {
        display: block !important;
        font-size: 12pt;
        line-height: 1.4;
        white-space: normal !important;
    }

    .field--name-field-actors-skills .field__item {
        display: inline-block;
    }

    .field--name-field-foreign-accents {
        display: block !important;
        font-size: 12pt;
        line-height: 1.4;
        white-space: normal !important;
    }

    .field--name-field-foreign-accents .field__item {
        display: inline-block;
    }


    .field--name-field-languages {
        display: block !important;
        font-size: 12pt;
        line-height: 1.4;
        white-space: normal !important;
    }

    .field--name-field-languages .field__item {
        display: inline-block;
    }

    .actor-skill {
        display: inline-block !important;
        padding: 0 !important;
        margin: 0 !important;
        background: none !important;
        border: none !important;
        font-weight: normal !important;
        white-space: nowrap;
    }

    .actor-skill::after {
        content: "," !important;
    }




    .talent-commercial p {
        margin-block-start: 2px;
        margin-block-end: 2px;
    }


    .talent-container {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 20px;
        align-items: flex-start;
    }

    .talent-table th {
        background: #f9f9f9;
        color: black;
        font-weight: bold;
        text-align: left;
        padding: 2px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .talent-table td {
        padding-top: 2px;
        padding-bottom: 2px;
    }

    .talent-commercial h3 {
        margin-block-end: 0px;
        margin-block-start: 0px;
        font-size: 1rem
    }

    .talent-image-large {
        grid-area: large;
    }

    .talent-image-small:nth-of-type(2) {
        grid-area: small1;
    }

    .talent-image-small:nth-of-type(3) {
        grid-area: small2;
    }

    .talent-images {
        flex: 0 0 40%;
        display: flex;
        flex-direction: column;
        gap: 10px;
        max-height: 300px;
    }

    #talent-audio {
        display: none;
    }

    .talent-images.print-grid-layout {
        display: grid;
        width: 100%;
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 10px;
        grid-template-areas:
            "large small1"
            "large small2";
    }

    .talent-image-wrapper {
        display: block;
    }

    .talent-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .talent-details {
        flex: 1 1 0;
        font-size: 13px;
        line-height: 1.3;
        margin: 0;
        /* prevent unintentional offset */
    }

    .talent-contact-info,
    .talent-extra-info {
        font-size: 13px;
    }

    .print-logo-container {
        display: block !important;
        text-align: center;
        margin-bottom: 20px;
    }

    .print-logo,
    .print-logo img {
        display: block;
        max-width: 150px;
        height: auto;
        border: 7px solid red;
        border-radius: 50%;
        padding: 10px;
        margin-bottom: 20px;
    }

    .print-header {
        text-align: center;
        margin-bottom: 20px;
    }

    .print-only {
        display: block !important;
        max-width: 24%;
    }

    .print-view-online {
        display: block;
        margin-top: 20px;
    }

    img[alt*="Logo"],
    img[alt*="logo"] {
        display: block !important;
        float: right;
        max-width: 100px;
        height: auto;
        margin: 0 0 20px 20px;
    }

    #block-lbf-olivero-site-branding {
        display: none;
    }

    .sidebar-grid>.site-main {
        grid-column: 1 / 15;
    }


}

/* ---------------------------------------------
     GLOBAL STYLES (Always Apply)
  --------------------------------------------- */

/* Hide screen-only elements */
.site-header,
.showreel,
.site-footer,
.menu,
.region--sidebar,
.breadcrumb,
.sidebar,
.contextual .trigger,
.social-bar,
.block-local-tasks-block,
.talent-flags,
.fa-video,
.print-button-container,
#talent-audio,
#talent-showreel {
    display: none !important;
}

/* Ensure the main content takes full width */
main,
.layout-main,
#main-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Branding/Icons */
.contact-icon {
    color: #ff211a;
}
