/* About Us — page-specific rules on top of kw.css */

/* Studio cover: shown whole, never cropped */
.ab-cover { margin: 32px 0 0; background: var(--se-stone); }
.ab-cover img {
    width: 100%; height: auto;
    background: center / cover no-repeat;
    animation: ab-in 1.4s .15s var(--se-ease) both;
}
@keyframes ab-in { from { opacity: 0; } to { opacity: 1; } }

/* Studio film (video.js): pulled up over the bottom quarter of the cover. The cover is always 16:9,
   so a quarter of its height is 14.0625% of its width (percentage margins resolve against the page width). */
.ab-film { position: relative; z-index: 1; margin-top: -14.0625%; padding: 0 var(--se-gutter); }
.ab-film__frame { overflow: hidden; border-radius: 4px; background: #1d150f; box-shadow: 0 14px 36px rgba(23, 17, 12, .22); }
/* Size the player ourselves: video.js 5's generated fluid padding-top rule comes out empty here,
   which collapsed the player to 0px tall (sound, no picture). All three sources are 16:9. */
.ab-film .video-js { width: 100%; height: auto; aspect-ratio: 16 / 9; padding-top: 0 !important; background: #1d150f; font-family: var(--se-sans); }
.ab-film .video-js .vjs-big-play-button {
    top: 50%; left: 50%;
    width: 64px; height: 64px;
    margin: -32px 0 0 -32px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 50%;
    background: rgba(23, 17, 12, .35);
    line-height: 62px;
}
.ab-film .video-js:hover .vjs-big-play-button { background: var(--se-accent); border-color: var(--se-accent); }
.ab-film .video-js .vjs-control-bar { background: rgba(23, 17, 12, .72); }
.ab-film .video-js .vjs-play-progress,
.ab-film .video-js .vjs-volume-level { background: var(--se-accent); }

/* Chapters: a narrow, centred reading column */
.ab-chapter { text-align: center; }
.ab-chapter .se-section__head { margin-bottom: 26px; }
.ab-chapter .se-section__head::after {
    content: '';
    display: block;
    width: 36px; height: 1px;
    margin: 20px auto 0;
    background: var(--se-accent);
}
.ab-chapter__body {
    max-width: 34em;
    margin: 0 auto;
    font-family: var(--se-serif);
    font-size: 16px;
    line-height: 1.55;
}
.ab-chapter__body p { margin-bottom: .6em; }

/* Favourite things */
.ab-loves {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 760px;
    margin: 8px auto 0;
}
.ab-love { margin: 0; text-align: center; }
.ab-love__media {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 50%;
    background: var(--se-stone);
    box-shadow: 0 0 0 4px var(--se-bg), 0 0 0 5px var(--se-line);
}
.ab-love__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    background: center / cover no-repeat;
    transition: transform 1s var(--se-ease);
}
.ab-love:hover .ab-love__media img { transform: scale(1.04); }
.ab-love__name {
    margin-top: 14px;
    font-family: var(--se-serif); font-weight: 700;
    font-size: 15px;
    font-style: normal;
    line-height: 1.2;
    text-transform: capitalize;
    letter-spacing: .012em;
    color: var(--se-title-ink);
}

/* Closing photographs */
.ab-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--se-gap);
    margin-top: 64px;
    padding: 0 var(--se-gap);
}
.ab-gallery__frame { margin: 0; overflow: hidden; background: var(--se-stone); }
.ab-gallery__frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    background: center / cover no-repeat;
}

@media (min-width: 768px) {
    .ab-cover { margin: 48px var(--se-gutter) 0; }
    /* Sized here, not by --se-gutter padding: on wide screens that padding squeezed the player down to 320px */
    .ab-film { width: 80%; max-width: 1040px; margin: calc((100% - 2 * 40px) * -.140625) auto 0; padding: 0; }
    .ab-chapter__body { font-size: 17px; }
    .ab-loves { gap: 32px; margin-top: 16px; }
    .ab-love__name { font-size: 15px; }
    .ab-gallery { gap: var(--se-gap); margin-top: 96px; padding: 0 var(--se-gutter); }
    .ab-gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ab-gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ab-gallery--2 .ab-gallery__frame,
    .ab-gallery--3 .ab-gallery__frame { aspect-ratio: 4 / 5; }
}

@media (min-width: 1100px) {
    .ab-cover { max-width: 1320px; margin: 56px auto 0; }
    .ab-film { margin-top: calc(min(100%, 1320px) * -.140625); }
    .ab-chapter__body { font-size: 18px; }
    .ab-gallery { max-width: 1320px; margin-left: auto; margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .ab-cover img { animation: none; }
}
