body.amv-gallery-page { padding-top: 0 !important; }
body.amv-gallery-page.amv-uses-amv-header #header { display: none !important; }
body.amv-gallery-page #content { padding: 0; }
body.amv-gallery-page .am-site-header { height: 95px !important; background: rgba(7,17,32,.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid #ffffff40; }
/* The header plugin sets the site-wide side gutters (13% / 5% / 24px); only the height differs here. */
body.amv-gallery-page .am-site-header-inner { min-height: 95px; }
/* Logo sizes follow the Locations page rather than the plugin's smaller defaults. */
body.amv-gallery-page .am-site-logo, body.amv-gallery-page .am-site-logo img { width: 284px; }
body.amv-gallery-page .am-site-menu > li > a, body.amv-gallery-page .am-site-phone { color: #fff !important; }
body.amv-gallery-page .am-site-menu .sub-menu a { color: #080808 !important; }
.amv-gallery, .amv-gallery * { box-sizing: border-box; }
/* Same side gutters as the header and the Locations page. */
.amv-gallery { --amv-gutter: 13%; background: #f8fafc; color: #080808; font-family: 'Inter', Arial, sans-serif; }
.amv-gallery__container { padding-inline: var(--amv-gutter); }
.amv-gallery h1, .amv-gallery h2 { font-family: 'Space Grotesk', 'Inter', sans-serif !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: -1px !important; }
.amv-gallery h1::before, .amv-gallery h1::after, .amv-gallery h2::before, .amv-gallery h2::after { display: none !important; }
/* Copy sits centred in the space below the 95px header. */
.amv-gallery__hero { display: flex; align-items: center; padding-top: 95px; height: 680px; background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,35,50,.75) 38%, rgba(89,89,89,.35) 66%, rgba(255,255,255,0) 100%), url('../images/gallery-hero.png') center / cover no-repeat; }
.amv-gallery__hero-copy { width: 100%; }
.amv-gallery__hero h1 { color: #fff !important; font-size: 44px !important; line-height: 1.15 !important; margin: 0 0 22px !important; }
.amv-gallery__hero p { color: #fff; font-size: 20px; line-height: 26px; margin: 0; }
.amv-gallery__collection { padding-top: 120px; padding-bottom: 90px; scroll-margin-top: 24px; }
.amv-gallery__filters { display: flex; align-items: stretch; justify-content: center; width: fit-content; max-width: 100%; margin: 0 auto 44px; padding: 8px; border: 1px solid #e1e6eb; border-radius: 18px; }
.amv-gallery__filters a { display: flex; align-items: center; justify-content: center; min-height: 68px; padding: 16px; border-radius: 15px; color: #080808; font-size: 16px; font-weight: 700; line-height: 20px; white-space: nowrap; text-decoration: none; }
.amv-gallery__filters a:first-child { min-width: 129px; margin-right: 16px; }
.amv-gallery .amv-gallery__filters a:hover, .amv-gallery .amv-gallery__filters a:focus { text-decoration: none !important; }
.amv-gallery__filters a[aria-current], .amv-gallery__filters a:hover { background: #2bade0; color: #fff; }
.amv-gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px 24px; }
.amv-gallery__card { margin: 0; min-height: 296px; }
.amv-gallery__photo { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 384 / 231; background: #e5e9ee; }
.amv-gallery__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.amv-gallery__photo:hover img { transform: scale(1.025); }
.amv-gallery__card figcaption { margin-top: 24px; font-size: 14px; line-height: 20px; font-weight: 400; }
.amv-gallery__pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 52px; }
.amv-gallery__pagination a, .amv-gallery__pagination span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; margin: 0; border: 0; border-radius: 50%; background: transparent; color: #080808; font-size: 20px; text-decoration: none; }
.amv-gallery__pagination .current { background: #27aae1; color: #fff; }
.amv-gallery__pagination [aria-disabled] { color: #999; }
.amv-gallery__empty { text-align: center; padding: 60px 0; }
.amv-gallery__cta { position: relative; isolation: isolate; overflow: hidden; height: 216px; margin-bottom: 20px; border-radius: 16px; background: linear-gradient(165deg, #fafcff, #dfe7ff); box-shadow: 0 0 5px #07112012; }
.amv-gallery__cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: #2bade0; clip-path: polygon(50% 0,100% 0,100% 100%,58.7% 100%); }
.amv-gallery__cta-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.amv-gallery__cta h2 { margin: 0 !important; color: #050505 !important; font-size: 44px !important; line-height: 1.2 !important; }
.amv-gallery__cta a { display: inline-flex; justify-content: center; align-items: center; gap: 8px; width: 337px; height: 86px; border-radius: 14px; background: linear-gradient(110deg, #f9fcff, #dfe7ff); color: #27aae1; font-size: 26px; font-weight: 600; text-decoration: none; }
.amv-gallery .amv-gallery__cta a:hover, .amv-gallery .amv-gallery__cta a:focus { text-decoration: none !important; }
.amv-gallery__cta a img { display: block; flex: 0 0 32px; width: 32px; height: 32px; object-fit: contain; }
.amv-gallery a:focus-visible, .amv-gallery button:focus-visible { outline: 3px solid #1580ad; outline-offset: 5px; }
.amv-gallery__lightbox { width: min(1100px, calc(100% - 32px)); max-height: 90vh; padding: 48px 20px 20px; border: 0; border-radius: 16px; background: #071120; color: #fff; }
.amv-gallery__lightbox::backdrop { background: #000c; }
.amv-gallery__lightbox img { display: block; width: 100%; max-height: 70vh; object-fit: contain; }
.amv-gallery__lightbox p { margin: 16px 0 0; color: #fff; }
.amv-gallery__lightbox button { position: absolute; right: 12px; top: 4px; padding: 0; width: 40px; height: 40px; border: 0; background: none; color: #fff; font-size: 32px; }
@media (max-width: 1440px) { .amv-gallery { --amv-gutter: 5%; } }
@media (max-width: 1180px) { body.amv-gallery-page .am-site-logo, body.amv-gallery-page .am-site-logo img { width: 230px; } }
@media (max-width: 900px) { .amv-gallery { --amv-gutter: 24px; } }
@media (max-width: 480px) { body.amv-gallery-page .am-site-logo, body.amv-gallery-page .am-site-logo img { width: 200px; } }
@media (max-width: 1000px) {
    .amv-gallery__filters { flex-wrap: wrap; }
    .amv-gallery__filters a { min-height: 52px; }
    .amv-gallery__filters a:first-child { margin-right: 0; min-width: 90px; }
    .amv-gallery__grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 36px 24px; }
    .amv-gallery__card { min-height: 0; }
    .amv-gallery__cta-inner { gap: 30px; }
    .amv-gallery__cta h2 { font-size: 34px !important; }
    .amv-gallery__cta a { width: 280px; flex-shrink: 0; }
}
@media (max-width: 600px) {
    .amv-gallery__hero { height: 520px; background-position: 58% center; }
    .amv-gallery__hero h1 { font-size: 34px !important; max-width: 330px; }
    .amv-gallery__hero p { font-size: 18px; line-height: 26px; }
    .amv-gallery__desktop-break { display: none; }
    .amv-gallery__collection { padding-top: 48px; padding-bottom: 48px; }
    .amv-gallery__filters { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin-bottom: 32px; padding: 6px; }
    .amv-gallery__filters a { font-size: 12px; padding: 10px 5px; min-width: 0 !important; white-space: normal; text-align: center; }
    .amv-gallery__grid { grid-template-columns: 1fr; gap: 32px; }
    .amv-gallery__card figcaption { margin-top: 16px; }
    .amv-gallery__pagination { margin-top: 32px; }
    .amv-gallery__cta { height: auto; padding: 40px 0; }
    .amv-gallery__cta::before { clip-path: polygon(0 60%,100% 45%,100% 100%,0 100%); }
    .amv-gallery__cta-inner { flex-direction: column; gap: 32px; }
    .amv-gallery__cta h2 { font-size: 30px !important; text-align: center; }
    .amv-gallery__cta a { height: 70px; width: min(100%,337px); font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { .amv-gallery__photo img { transition: none; } }
