/* Photos and video (business.json "gallery" / "videos", service "photos" / "video", or refined-finish placeholders).
   Loaded only on pages that have the section. Polish for the refined finish lives in refined.css. */
.ap-media__line { max-width: 52ch; color: var(--ap-steel); }
.ap-media__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.ap-media__item { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; }
.ap-media__item > img, .ap-media__ph, .ap-media__video { display: block; box-sizing: border-box; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ap-media__feature { grid-column: 1 / -1; }
.ap-media__feature > .ap-media__video, .ap-media__feature > .ap-media__ph { aspect-ratio: 16 / 9; }
.ap-media__video { position: relative; padding: 0; border: 0; background: #111; cursor: pointer; overflow: hidden; }
.ap-media__video img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ap-media__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: rgba(17, 17, 17, 0.78); }
.ap-media__video:hover .ap-media__play, .ap-media__video:focus-visible .ap-media__play { color: var(--ap-graphite); }
.ap-media__video:focus-visible { outline: 3px solid var(--ap-graphite); outline-offset: 3px; }
.ap-media__frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.ap-media__ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; background: repeating-linear-gradient(135deg, var(--ap-mist) 0 14px, var(--ap-paper) 14px 28px); border: 2px dashed var(--ap-steel); color: var(--ap-graphite); font: 600 15px/1.4 var(--ap-body); text-align: center; }
.ap-media__ph .ap-media__play { position: static; transform: none; width: 56px; height: 56px; color: var(--ap-steel); }
.ap-media__item figcaption { font-size: 15px; color: var(--ap-steel); }
@media (min-width: 1024px) {
	.ap-media__grid { gap: 16px; }
	/* Home: the video takes the left half, two rows tall; four photos fill the right half. */
	.ap-media__grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.ap-media__grid--home .ap-media__feature { grid-column: span 2; grid-row: span 2; }
	/* Service: video 2 parts, two photos 1 part each, one row, photos match the video's height. */
	.ap-media__grid--service { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
	.ap-media__grid--service .ap-media__feature { grid-column: auto; }
	.ap-media__grid--service:not(:has(.ap-media__feature)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ap-media__grid--service:not(:has(.ap-media__feature)) .ap-media__item > img { aspect-ratio: 3 / 2; flex: none; }
	.ap-media__grid--home .ap-media__feature > :is(.ap-media__video, .ap-media__ph),
	.ap-media__grid--service .ap-media__item:not(.ap-media__feature) > :is(img, .ap-media__ph) { flex: 1 1 auto; aspect-ratio: auto; min-height: 0; }
}
.ap-media__video--file { cursor: default; }
.ap-media__video--file video { display: block; width: 100%; height: 100%; object-fit: cover; }
.ap-media__toggle { position: absolute; right: 12px; bottom: 12px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(17, 17, 17, 0.72); color: #fff; font: 700 15px/1 var(--ap-body); cursor: pointer; }
.ap-media__toggle:hover { background: rgba(17, 17, 17, 0.88); }
.ap-media__toggle:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
