/* ==========================================================
   TKF Tony Family v0.2.5
   Language-density + media cleanup
   ========================================================== */


/* Preserve semantic H1, remove giant visual title. */

.tkf-tony-suppress-page-title
#brx-content > h1:first-child {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* Local navigation now becomes the quiet page-orientation layer. */

.tkf-tony-suppress-page-title
.tkf-tony-nav {
    margin-top: 18px !important;
}


/* ==========================================================
   Pictures of Tony
   ========================================================== */

.tkf-tony-pictures {
    width:
        min(1100px, calc(100% - 32px));

    margin:
        clamp(48px, 7vw, 82px)
        auto
        clamp(38px, 5vw, 62px);
}

.tkf-tony-pictures h2 {
    margin:
        0
        0
        clamp(22px, 3vw, 32px);

    color: #2d2d2d;

    font-size:
        clamp(1.65rem, 2.7vw, 2.25rem);

    line-height: 1.15;
}

.tkf-tony-pictures__grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap:
        clamp(14px, 2vw, 24px);
}

.tkf-tony-pictures__item {
    margin: 0;
    overflow: hidden;
    background: #eee;
}

.tkf-tony-pictures__item a {
    display: block;
}

.tkf-tony-pictures__item img {
    display: block;

    width: 100%;

    aspect-ratio: 4 / 3;

    object-fit: cover;
    object-position: center 28%;

    transition:
        transform 180ms ease;
}

.tkf-tony-pictures__item a:hover img,
.tkf-tony-pictures__item a:focus-visible img {
    transform: scale(1.015);
}


/*
 * Keep secondary Vimeo visually separated after
 * the living-Tony gallery on Media Resources.
 */

.tkf-tony-pictures
+
.tkf-tony-media-secondary {
    margin-top:
        clamp(38px, 5vw, 58px);
}


@media (max-width: 800px) {

    .tkf-tony-pictures__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 520px) {

    .tkf-tony-pictures__grid {
        grid-template-columns: 1fr;
    }

}
