/* Approved iPad layout. Phone and mouse-only desktop layouts stay outside this query. */
@media (hover: none) and (pointer: coarse) and (min-width: 600px) and (max-width: 1440px) and (min-height: 500px) {
    html, body { width: 100%; max-width: 100%; overflow-x: clip; }
    .header { top: 0; left: 0; width: 100%; background: linear-gradient(#10212be6, #10212b85); }
    .header > .container { max-width: none; width: 100%; padding-inline: 40px; }
    .header-menu { height: 96px; flex-direction: row; align-items: center; border-bottom: 1px solid #ffffff30; }
    .header-menu .logo { flex: 0 0 auto; }
    .header-menu .logo svg { display: block; width: 205px; height: auto; }
    .header-menu .menu { justify-content: flex-end; }
    .header-menu .menu ul { padding: 0; margin: 0; flex-wrap: nowrap; gap: 24px; }
    .header-menu .menu ul li { padding: 0; margin: 0; font-size: 15px; line-height: 20px; }
    .header-menu .menu a { white-space: nowrap; }
    .photo.photo-with-video { width: 100%; height: auto; min-height: 100svh; background: #172c36; }
    .photo.photo-with-video > .container {
        width: 100%; max-width: none; height: auto; min-height: 100svh;
        display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        align-items: center; gap: 48px; padding: 136px 40px 60px;
    }
    .photo-slider-new::after {
        content: ""; position: absolute; inset: 0;
        background: linear-gradient(105deg, #071a29dc, #102c3bb3);
    }
    .photo.photo-with-video .photo-slider { width: auto; min-width: 0; }
    .photo.photo-with-video .photo-slider-title {
        font-size: clamp(34px, 3.8vw, 46px); line-height: 1.14; letter-spacing: -.5px;
        font-weight: 750; overflow-wrap: normal;
    }
    .photo.photo-with-video .photo-slider-subtitle { width: 100%; max-width: 600px; font-size: 20px; line-height: 1.5; margin: 22px 0 28px; }
    .photo.photo-with-video .photo-slider-button { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
    .photo.photo-with-video .photo-button,
    .photo.photo-with-video .photo-slider-button > .brief-link {
        display: inline-flex; align-items: center; justify-content: center;
        width: auto; min-height: 48px; margin: 0; padding: 12px 18px;
        border: 1px solid #ffffffba; border-radius: 28px; font-size: 15px; line-height: 22px;
    }
    .photo.photo-with-video .photo-button { color: #17333f; background: #fff; }
    .photo.photo-with-video .video-block {
        position: relative; inset: auto; width: 100%; max-width: none; min-width: 0;
        align-self: center; transform: none; border-radius: 6px; overflow: hidden; box-shadow: 0 20px 60px #0004;
    }
    .photo.photo-with-video .video-preview-title { padding: 15px; font-size: 19px; }
    .photo.photo-with-video .video-block-button { position: absolute; inset: auto auto 14px 40px; }
    .photo.photo-with-video .video-block-button svg { width: 32px; height: 32px; }
    .photo.photo-with-video .about-body-anim,
    .photo.photo-with-video .clients-anim { animation: none; }

    body .lg-outer.iu-portfolio {
        --iu-head: calc(60px + env(safe-area-inset-top, 0px));
        --iu-thumbs: calc(100px + env(safe-area-inset-bottom, 0px));
        --iu-controls: 58px; --iu-side: 0px;
    }
    body .lg-outer.iu-portfolio .lg-actions .lg-prev,
    body .lg-outer.iu-portfolio .lg-actions .lg-next { bottom: calc(var(--iu-thumbs) + 7px); }
}
@media (hover: none) and (pointer: coarse) and (min-width: 600px) and (max-width: 1440px) and (min-height: 500px) and (orientation: portrait) {
    .header > .container { padding-inline: 36px; }
    .header-menu { height: 132px; flex-direction: column; justify-content: center; gap: 20px; }
    .header-menu .menu { justify-content: center; }
    .header-menu .menu ul { gap: clamp(12px, 3vw, 30px); }
    .header-menu .menu ul li { font-size: clamp(14px, 1.95vw, 16px); }
    .photo.photo-with-video > .container {
        display: flex; flex-direction: column; align-items: stretch; justify-content: center;
        padding: 170px 56px 54px; gap: 34px;
    }
    .photo.photo-with-video .photo-slider-title { font-size: clamp(36px, 5.6vw, 46px); max-width: 690px; }
    .photo.photo-with-video .photo-slider-subtitle { max-width: 640px; font-size: 21px; margin: 20px 0 24px; }
    .photo.photo-with-video .video-block { width: min(100%, 560px); align-self: center; }
    .photo.photo-with-video .video-block-button { left: calc(50% - 16px); }
}
@media (hover: none) and (pointer: coarse) and (min-width: 600px) and (max-width: 1440px) and (min-height: 500px) and (orientation: landscape) {
    body .lg-outer.iu-portfolio {
        --iu-head: calc(52px + env(safe-area-inset-top, 0px));
        --iu-thumbs: calc(86px + env(safe-area-inset-bottom, 0px));
        --iu-controls: 0px;
        --iu-side: max(60px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    }
    body .lg-outer.iu-portfolio .lg-thumb-outer { display: block; }
    body .lg-outer.iu-portfolio .lg-thumb { padding: 14px 0; }
    body .lg-outer.iu-portfolio .lg-actions .lg-prev,
    body .lg-outer.iu-portfolio .lg-actions .lg-next {
        top: calc((100% - var(--iu-thumbs) + var(--iu-head)) / 2 - 22px); bottom: auto;
    }
    body .lg-outer.iu-portfolio .lg-actions .lg-prev { left: calc(var(--iu-side) - 52px); }
    body .lg-outer.iu-portfolio .lg-actions .lg-next { right: calc(var(--iu-side) - 52px); }
}
