.h1_homepage {width: 100%}
.hero-media-buttons {margin: 2.5% 0}
.hero-media-buttons a {text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);}
.hero-media-buttons a:hover {text-shadow: 0px 0px 10px rgba(0, 0, 0, 0);}
	
.strapmedia {width: 60%; color: #fff}
	
.bottom .col1 {padding-right: 1.25% !important; padding-bottom: 1.25% !important;}

.bottom .col1 a {
	font-size: 75% !important;
	background: none;
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	color: #fff;
	border: 1px solid #fff;
	padding: 0.75vw 1.25vw;
	background: rgba(51, 180, 180, 0.8);
}

.max-width.h1max {z-index: 9}

/* ========================================
   MEDIA SECTIONS
======================================== */
	
.media-card__title {font-size: 125% !important}

.media-section {
  margin-block: clamp(-27px, -4vw, -54px);
  padding-block: clamp(27px, 4vw, 54px);
}

.media-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: clamp(20px, 3vw, 36px);
    padding-bottom: 15px;
    border-bottom: 1px solid #d9dfe3;
}

.media-section__header h2 {
    margin: 0; color: var(--colour-subheading);
}

.media-section__count {
    flex-shrink: 0;
    font-size: 0.875rem;
    color: #626873;
}

.media-archive__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 15px;
    border-bottom: 1px solid #d9dfe3;
    color: var(--colour-subheading);
    cursor: pointer;
    list-style: none;
}

.media-archive__summary::-webkit-details-marker {
    display: none;
}

.media-archive__heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.media-archive__title {
    margin: 0;
    color: var(--colour-subheading);
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
}

.media-archive__hint {
    color: #626873;
    font-size: 0.875rem;
}

.media-archive__hint--open,
.media-archive[open] .media-archive__hint--closed {
    display: none;
}

.media-archive[open] .media-archive__hint--open {
    display: inline;
}

.media-archive__toggle {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 2px solid var(--colour-subheading);
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.media-archive__toggle svg {
    display: block;
    width: 18px;
    height: 18px;
}

.media-archive[open] .media-archive__toggle {
    transform: rotate(180deg);
}

.media-archive__grid {
    padding-top: clamp(20px, 3vw, 36px);
}

.media-archive h3 a {
    color: inherit;
    text-decoration: none;
}

.media-archive__post-link:hover,
.media-archive__post-link:focus-visible {
    text-decoration: none;
}

.media-archive__video,
.media-archive__image-link {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 4px;
    background: #e9edef;
}

.media-archive__video iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.media-archive__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ========================================
   MEDIA GRID
======================================== */

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 40px) clamp(20px, 2.5vw, 32px);
}


/* ========================================
   MEDIA CARD
======================================== */

.media-card {
    min-width: 0;
}

.media-card__thumbnail {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #e9edef;
    border-radius: 4px;
    color: inherit;
    text-decoration: none;
}

.media-card__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-card__image--carousel-cover {
    object-fit: contain;
    background: #e9edef;
}

.media-card__preview {
    position: absolute;
    inset: 0;
    display: block;
    width: 102%;
    height: 102%;
    object-fit: cover;
    background: #e9edef; transition: transform 0.3s ease;
}

.media-card__pdf-preview {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: #e9edef;
}

/*
	
.media-card__thumbnail:hover .media-card__preview {
  transform: scale(1.06); 
}
	
	
.media-card__thumbnail:hover .media-card__image {
    transform: scale(1.04);
}
*/

/* Crop any edge padding baked into a captured MP4 frame without changing
   the 16:9 card shape or affecting uploaded/provider thumbnails. */
.media-card__image--video-capture {
    transform: scale(1.1);
}

.media-card__thumbnail:hover .media-card__image--video-capture,
.media-card__thumbnail:focus-visible .media-card__image--video-capture {
    transform: scale(1.14);
}

.media-card__thumbnail::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
}
	
	.media-card__thumbnail:hover::after {background: rgba(0, 0, 0, 0);}

.media-card__play {
    z-index: 2;
}

/* Thumbnail placeholder */

.media-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #626873;
    font-size: 0.875rem;
}


/* ========================================
   PLAY BUTTON
======================================== */

.media-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.media-card__play svg {
    display: block;
    width: clamp(42px, 5vw, 60px);
    height: auto;
    transition: transform 0.2s ease;
}

	
.media-card__thumbnail:hover .media-card__play svg,
.media-card__thumbnail:focus-visible .media-card__play svg {
    transform: scale(1.1);
}

.media-card__thumbnail:focus-visible {
    outline: 3px solid #103f5b;
    outline-offset: 3px;
}

/* ========================================
   ACCESSIBLE MEDIA MODAL
======================================== */

.media-modal[hidden] {
    display: none;
}

.media-modal {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(12px, 3vw, 40px);
}

.media-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
}

.media-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 1100px);
    max-height: 100%;
    overflow: auto;
    padding: clamp(12px, 2vw, 24px);
    background: #fff;
    color: #202a32;
    border-radius: 6px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
}

.media-modal__header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-bottom: 8px;
}

.media-modal__fullscreen {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #9aa5ad;
    border-radius: 50%;
    background: transparent;
    color: #202a32;
    cursor: pointer;
}

.media-modal__fullscreen svg {
    display: block;
    width: 20px;
    height: 20px;
}

.media-modal__close {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #9aa5ad;
    border-radius: 50%;
    background: transparent;
    color: #202a32;
    font: inherit;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.media-modal__close:focus-visible,
.media-modal__fullscreen:focus-visible,
.media-modal__dialog:focus-visible {
    outline: 3px solid #103f5b;
    outline-offset: 3px;
}

.media-modal:fullscreen,
.media-modal.media-modal--fullscreen {
    padding: 0;
    background: #000;
}

.media-modal:fullscreen .media-modal__backdrop,
.media-modal.media-modal--fullscreen .media-modal__backdrop {
    display: none;
}

.media-modal:fullscreen .media-modal__dialog,
.media-modal.media-modal--fullscreen .media-modal__dialog {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    padding: 16px 24px;
    border-radius: 0;
    box-shadow: none;
	box-sizing:border-box;
}

.media-modal:fullscreen .media-modal__header,
.media-modal.media-modal--fullscreen .media-modal__header {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    min-height: 44px;
    margin: 0 0 8px;
}

.media-modal:fullscreen .media-modal__details,
.media-modal.media-modal--fullscreen .media-modal__details,
.media-modal:fullscreen .media-pdf-carousel__count,
.media-modal.media-modal--fullscreen .media-pdf-carousel__count {
    display: none;
}

.media-modal:fullscreen .media-modal__content,
.media-modal.media-modal--fullscreen .media-modal__content {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
}

.media-modal:fullscreen .media-modal__content:not(.media-modal__content--pdf):not(.media-modal__content--carousel) .media-modal__player,
.media-modal.media-modal--fullscreen .media-modal__content:not(.media-modal__content--pdf):not(.media-modal__content--carousel) .media-modal__player {
    width: min(100%, calc((100vh - 100px) * 16 / 9));
    height: min(100%, calc(100vh - 100px));
    aspect-ratio: 16 / 9;
}

.media-modal:fullscreen .media-pdf-carousel,
.media-modal.media-modal--fullscreen .media-pdf-carousel {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.media-modal:fullscreen .media-pdf-carousel__stage,
.media-modal.media-modal--fullscreen .media-pdf-carousel__stage {
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    padding-block: 8px;
}

.media-modal:fullscreen .media-pdf-carousel__toolbar,
.media-modal.media-modal--fullscreen .media-pdf-carousel__toolbar {
    grid-row: 2;
    position: relative;
    z-index: 2;
    min-height: 42px;
    margin: 8px 0 0;
}

.media-modal:fullscreen .media-pdf-carousel__page-frame,
.media-modal.media-modal--fullscreen .media-pdf-carousel__page-frame,
.media-modal:fullscreen .media-gallery-carousel__image,
.media-modal.media-modal--fullscreen .media-gallery-carousel__image {
    max-height: calc(100vh - 150px);
}

.media-modal:fullscreen .media-gallery-carousel__image,
.media-modal.media-modal--fullscreen .media-gallery-carousel__image {
    max-width: calc(100vw - 64px);
}

.media-modal__content {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.media-modal__content--pdf {
    aspect-ratio: auto;
    height: auto;
    background: transparent;
}

.media-modal__content--carousel {
    aspect-ratio: auto;
    height: auto;
    background: transparent;
}

.media-pdf-carousel__toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.media-pdf-carousel__button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #9aa5ad;
    border-radius: 50%;
    background: #fff;
    color: #103f5b;
    font: inherit;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.media-pdf-carousel__button:disabled {
    opacity: 0.4;
    cursor: default;
}

.media-pdf-carousel__count {
    min-width: 0;
    color: #202a32;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.media-pdf-carousel__stage {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 180px;
    max-height: 60vh;
    overflow: hidden;
    padding: 12px 0;
    background: #e9edef;
    border-radius: 4px;
}

.media-pdf-carousel__track {
    display: flex;
    align-items: center;
    column-gap: min(2rem, 4vw);
    width: max-content;
    height: 100%;
    flex: 0 0 auto;
    transition: transform 0.4s ease;
    will-change: transform;
}

.media-pdf-carousel__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    flex: 0 0 auto;
}

.media-pdf-carousel__page-frame {
    display: block;
    max-width: 100%;
    max-height: 56vh;
    overflow: hidden;
    background: #e9edef;
    opacity: 0.42;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.38);
    transition: opacity 0.35s ease, box-shadow 0.35s ease;
}

.media-pdf-carousel__page {
    display: block;
    max-width: none;
    max-height: none;
    background: #fff;
}

.media-gallery-carousel__image {
    display: block;
    width: auto;
    height: auto;
    max-width: min(48vw, 700px);
    max-height: 56vh;
    object-fit: contain;
}

.media-pdf-carousel__slide.is-active .media-pdf-carousel__page-frame {
    opacity: 1;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.48);
}

.media-pdf-carousel__status {
    position: absolute;
    inset: auto 12px 12px;
    margin: 0;
    color: #39454e;
    text-align: center;
    font-size: 0.8rem;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .media-pdf-carousel__track {
        transition: none;
    }
}

.media-modal__details {
    padding: 4px 4px 8px;
}

.media-modal__player {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
    background: #000;
}

.media-modal__message {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 20px;
    color: #fff;
    text-align: center;
}


/* ========================================
   CARD METADATA
======================================== */

.media-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--colour-body);
}

.media-card__type {
    font-weight: 700;
    color: var(--colour-heading);
}

.media-card__year {
    padding-left: 12px;
    border-left: 1px solid #d9dfe3; color: #626873;
}


/* ========================================
   CARD TITLE & DESCRIPTION
======================================== */

.media-card__title {
    margin: 8px 0 0;
    font-size: clamp(1.05rem, 1.2vw, 1.25rem);
    line-height: 1.35;
    font-weight: 700;
}

.media-card__description {
    margin: 8px 0 0;
    color: #626873;
    font-size: 0.95rem;
    line-height: 1.6;
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 900px) {
    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .media-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .media-section__header {
        align-items: flex-start;
        gap: 12px;
    }

    .media-section__count {
        padding-top: 5px;
        white-space: nowrap;
    }

}

@media (prefers-reduced-motion: reduce) {
    .media-card__image,
    .media-card__play svg {
        transition: none;
    }
}