/* Mobile-only photographic collection. Desktop rules stay in records-documents.css. */
@media (max-width: 1280px) {
    html:has(body.page-home-documentsbysearchterm:not(.photo-demo-viewer-open) .docs-photo-collection-layout) {
        height: auto !important;
        min-height: 100dvh !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body.page-home-documentsbysearchterm:not(.photo-demo-viewer-open),
    body.page-home-documentsbysearchterm:not(.photo-demo-viewer-open) .app-content,
    body.page-home-documentsbysearchterm:not(.photo-demo-viewer-open) .app-content-inner {
        position: static !important;
        inset: auto !important;
        height: auto !important;
        min-height: 100dvh !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
    }

    body.page-home-documentsbysearchterm:not(.photo-demo-viewer-open) .app-content,
    body.page-home-documentsbysearchterm:not(.photo-demo-viewer-open) .app-content-inner {
        overflow: visible !important;
    }

    body.page-home-documentsbysearchterm.is-embedded:not(.photo-demo-viewer-open) .docs-search-layout.docs-photo-collection-layout,
    body.page-home-documentsbysearchterm.is-embedded:not(.photo-demo-viewer-open) .docs-photo-collection-layout .docs-search-row,
    body.page-home-documentsbysearchterm.is-embedded:not(.photo-demo-viewer-open) .docs-photo-collection-layout .docs-search-col,
    body.page-home-documentsbysearchterm.is-embedded:not(.photo-demo-viewer-open) .docs-photo-collection-layout #searchDocsContainer {
        display: block !important;
        flex: none !important;
        position: static !important;
        inset: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    body.page-home-documentsbysearchterm.is-embedded:not(.photo-demo-viewer-open) .docs-search-layout.docs-photo-collection-layout {
        min-height: 100dvh !important;
        padding: 0.72rem !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout,
    body.page-home-documentsbysearchterm .docs-photo-collection-layout .docs-search-row,
    body.page-home-documentsbysearchterm .docs-photo-collection-layout .docs-search-col,
    body.page-home-documentsbysearchterm .docs-photo-collection-layout #searchDocsContainer {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout {
        padding: 0.72rem !important;
        color: var(--x-text, #102f5f);
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        gap: 0.78rem !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo__hero {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0.68rem !important;
        align-items: stretch !important;
        padding: 0.86rem !important;
        border-radius: 22px !important;
        background:
            radial-gradient(circle at 92% 8%, rgba(35, 126, 255, 0.2), transparent 34%),
            linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(229, 241, 255, 0.88)) !important;
        box-shadow: 0 16px 38px rgba(32, 82, 153, 0.12) !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo__eyebrow {
        min-height: 32px !important;
        padding: 0.34rem 0.62rem !important;
        font-size: 0.68rem !important;
        line-height: 1 !important;
        letter-spacing: 0.05em !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo__hero h1 {
        margin: 0.52rem 0 0.34rem !important;
        font-size: 1.54rem !important;
        line-height: 1.04 !important;
        letter-spacing: 0 !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo__hero p {
        max-width: none !important;
        font-size: 0.86rem !important;
        line-height: 1.32 !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo__stats {
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0.38rem !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo__stats span {
        min-width: 0 !important;
        min-height: 46px !important;
        padding: 0.42rem 0.26rem !important;
        border-radius: 14px !important;
        font-size: 0.52rem !important;
        line-height: 1.05 !important;
        text-align: center !important;
        overflow: hidden !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo__stats strong {
        margin-bottom: 0.08rem !important;
        font-size: 1.04rem !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo__body,
    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo__content {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo__content {
        border-radius: 22px !important;
        background: rgba(255, 255, 255, 0.8) !important;
        box-shadow: 0 18px 40px rgba(35, 80, 145, 0.12) !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo__toolbar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0.58rem !important;
        padding: 0.72rem !important;
        border-bottom: 0 !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo__search input {
        min-height: 44px !important;
        height: 44px !important;
        border-radius: 16px !important;
        font-size: 0.86rem !important;
        line-height: 1.1 !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo__filter {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0.3rem !important;
        padding: 0.28rem !important;
        overflow: hidden !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo__filter button {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 34px !important;
        padding: 0 0.35rem !important;
        border-radius: 12px !important;
        font-size: 0.7rem !important;
        line-height: 1.05 !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo__cards {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0.76rem !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 0.82rem !important;
        overflow: visible !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo--list .photo-demo-card {
        display: grid !important;
        grid-template-columns: 48px minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        gap: 0.68rem 0.78rem !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 0.86rem !important;
        border-radius: 20px !important;
        overflow: hidden !important;
        background:
            radial-gradient(circle at 96% 0%, rgba(44, 132, 255, 0.2), transparent 36%),
            rgba(255, 255, 255, 0.9) !important;
        box-shadow: 0 14px 32px rgba(29, 75, 137, 0.12) !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo-list-card__icon {
        width: 48px !important;
        min-width: 48px !important;
        height: 48px !important;
        min-height: 48px !important;
        border-radius: 15px !important;
        font-size: 1.12rem !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo-list-card .photo-demo-card__body {
        min-width: 0 !important;
        padding: 0 !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo-list-card__tags {
        gap: 0.34rem !important;
        margin-bottom: 0.5rem !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo-card__tag {
        max-width: 100% !important;
        min-height: 25px !important;
        padding: 0.24rem 0.5rem !important;
        font-size: 0.62rem !important;
        line-height: 1 !important;
        letter-spacing: 0.04em !important;
        white-space: nowrap !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo--list .photo-demo-card h2 {
        margin: 0 0 0.35rem !important;
        font-size: 1.08rem !important;
        line-height: 1.12 !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo--list .photo-demo-card p {
        min-height: 0 !important;
        font-size: 0.86rem !important;
        line-height: 1.32 !important;
        -webkit-line-clamp: 3 !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo--list .photo-demo-card__meta {
        grid-column: 1 / -1 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0.42rem !important;
        margin-top: 0 !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo-card__meta span {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 32px !important;
        padding: 0.36rem 0.55rem !important;
        border-radius: 999px !important;
        font-size: 0.72rem !important;
        line-height: 1.12 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo-list-card__open {
        grid-column: 1 / -1 !important;
        min-height: 46px !important;
        padding: 0 0.72rem !important;
        border-radius: 15px !important;
        font-size: 0.9rem !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo-list-card__open i {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        border-radius: 11px !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open,
    body.photo-demo-viewer-open {
        overflow: hidden !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer {
        position: fixed !important;
        inset: 0 !important;
        z-index: 6000 !important;
        display: grid !important;
        place-items: stretch !important;
        padding: 0 !important;
        background: rgba(5, 17, 36, 0.54) !important;
        backdrop-filter: blur(16px) !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer[hidden] {
        display: none !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__dialog {
        width: 100vw !important;
        max-width: none !important;
        height: 100dvh !important;
        max-height: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: linear-gradient(180deg, #f3f8ff 0%, #e8f2ff 100%) !important;
        overflow: hidden !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__header {
        position: sticky !important;
        top: 0 !important;
        z-index: 2 !important;
        grid-template-columns: 44px minmax(0, 1fr) 44px !important;
        gap: 0.62rem !important;
        padding: calc(0.7rem + env(safe-area-inset-top)) 0.72rem 0.72rem !important;
        background: rgba(244, 249, 255, 0.96) !important;
        backdrop-filter: blur(16px) !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__back,
    body.page-home-documentsbysearchterm .photo-demo-viewer__close,
    body.page-home-documentsbysearchterm .photo-demo-viewer__tools button {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
        border-radius: 14px !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__path {
        display: block !important;
        max-width: 100% !important;
        padding: 0 !important;
        color: #2d72db !important;
        background: transparent !important;
        font-size: 0.63rem !important;
        line-height: 1.12 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__header h2 {
        margin: 0.18rem 0 0 !important;
        font-size: 1.22rem !important;
        line-height: 1.08 !important;
        letter-spacing: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.78rem !important;
        min-height: 0 !important;
        padding: 0.78rem 0.72rem calc(0.95rem + env(safe-area-inset-bottom)) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__stage {
        order: 1 !important;
        display: grid !important;
        grid-template-rows: auto minmax(260px, 54dvh) auto !important;
        min-height: 0 !important;
        border: 1px solid rgba(109, 160, 238, 0.42) !important;
        border-radius: 22px !important;
        background: rgba(255, 255, 255, 0.86) !important;
        overflow: hidden !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__tools {
        padding: 0.62rem !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__tools span {
        min-height: 42px !important;
        border-radius: 14px !important;
        font-size: 0.9rem !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__image {
        width: auto !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 0.62rem !important;
        border-radius: 18px !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__thumbs {
        min-width: 0 !important;
        padding: 0.62rem !important;
        overflow-x: auto !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__thumbs button {
        width: 72px !important;
        flex-basis: 72px !important;
        height: 54px !important;
        border-radius: 12px !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__albums,
    body.page-home-documentsbysearchterm .photo-demo-viewer__info {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        max-height: none !important;
        padding: 0.82rem !important;
        border: 1px solid rgba(109, 160, 238, 0.42) !important;
        border-radius: 22px !important;
        background: rgba(255, 255, 255, 0.86) !important;
        overflow: visible !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__info {
        order: 3 !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__albums h3,
    body.page-home-documentsbysearchterm .photo-demo-viewer__info h3 {
        margin-bottom: 0.68rem !important;
        font-size: 0.96rem !important;
    }

    body.page-home-documentsbysearchterm #photoDemoViewerAlbums {
        display: flex !important;
        gap: 0.62rem !important;
        overflow-x: auto !important;
        padding-bottom: 0.1rem !important;
    }

    body.page-home-documentsbysearchterm #photoDemoViewerAlbums button {
        grid-template-columns: 58px minmax(0, 1fr) !important;
        flex: 0 0 220px !important;
        min-width: 220px !important;
        padding: 0.52rem !important;
        border-radius: 16px !important;
    }

    body.page-home-documentsbysearchterm #photoDemoViewerAlbums span {
        height: 54px !important;
        border-radius: 12px !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__info dl {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0.2rem !important;
        margin: 0 !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__info dt {
        margin-top: 0.52rem !important;
        font-size: 0.68rem !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__info dd {
        font-size: 0.92rem !important;
        line-height: 1.22 !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer {
        align-items: stretch !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__dialog {
        min-height: 100svh !important;
        height: auto !important;
        overflow: visible !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__header {
        min-height: 68px !important;
        padding: 0.58rem 0.72rem !important;
        border-bottom: 1px solid rgba(144, 180, 230, 0.42) !important;
        box-shadow: 0 10px 26px rgba(43, 88, 154, 0.08) !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__path {
        color: #2d72db !important;
        font-size: 0.62rem !important;
        font-weight: 900 !important;
        letter-spacing: 0.03em !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__header h2 {
        margin-top: 0.08rem !important;
        font-size: 1.08rem !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0.72rem !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0.72rem 0.72rem calc(5.8rem + env(safe-area-inset-bottom, 0px)) !important;
        overflow: visible !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__stage {
        grid-template-rows: auto auto auto !important;
        gap: 0.58rem !important;
        padding: 0.72rem !important;
        border-radius: 22px !important;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(232, 242, 255, 0.9)),
            radial-gradient(circle at 12% 12%, rgba(46, 130, 255, 0.12), transparent 42%) !important;
        box-shadow: 0 16px 34px rgba(40, 82, 146, 0.12) !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__tools {
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) 44px !important;
        gap: 0.62rem !important;
        padding: 0 !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__tools button {
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        border-radius: 15px !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__tools span {
        justify-content: center !important;
        min-height: 44px !important;
        padding-inline: 0.75rem !important;
        border-radius: 15px !important;
        font-size: 0.9rem !important;
        white-space: nowrap !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__image {
        width: 100% !important;
        height: clamp(188px, 40svh, 250px) !important;
        min-height: 188px !important;
        margin: 0 !important;
        border-radius: 18px !important;
        background: #061b37 !important;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__thumbs {
        gap: 0.48rem !important;
        padding: 0.02rem 0 0 !important;
        scrollbar-width: none !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__thumbs::-webkit-scrollbar {
        display: none !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__thumbs button {
        flex: 0 0 62px !important;
        width: 62px !important;
        height: 46px !important;
        border-radius: 12px !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__albums,
    body.page-home-documentsbysearchterm .photo-demo-viewer__info {
        padding: 0.74rem !important;
        border-radius: 20px !important;
        box-shadow: 0 14px 30px rgba(40, 82, 146, 0.1) !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__albums h3,
    body.page-home-documentsbysearchterm .photo-demo-viewer__info h3 {
        margin-bottom: 0.54rem !important;
        font-size: 0.96rem !important;
    }

    body.page-home-documentsbysearchterm #photoDemoViewerAlbums {
        display: flex !important;
        gap: 0.52rem !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding-bottom: 0.1rem !important;
        scrollbar-width: none !important;
    }

    body.page-home-documentsbysearchterm #photoDemoViewerAlbums::-webkit-scrollbar {
        display: none !important;
    }

    body.page-home-documentsbysearchterm #photoDemoViewerAlbums button {
        flex: 0 0 176px !important;
        min-width: 176px !important;
        min-height: 68px !important;
        grid-template-columns: 48px minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
        gap: 0.42rem 0.56rem !important;
        padding: 0.46rem !important;
        border-radius: 16px !important;
    }

    body.page-home-documentsbysearchterm #photoDemoViewerAlbums span {
        grid-row: 1 / span 2 !important;
        width: 48px !important;
        height: 48px !important;
        border-radius: 13px !important;
    }

    body.page-home-documentsbysearchterm #photoDemoViewerAlbums strong {
        font-size: 0.76rem !important;
        line-height: 1.08 !important;
    }

    body.page-home-documentsbysearchterm #photoDemoViewerAlbums small {
        font-size: 0.72rem !important;
        line-height: 1.05 !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__info dl {
        gap: 0.48rem !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__info dt {
        margin: 0.1rem 0 -0.24rem !important;
        color: #6380a9 !important;
    }

    body.page-home-documentsbysearchterm .photo-demo-viewer__info dd {
        padding: 0.48rem 0.58rem !important;
        border-radius: 13px !important;
        background: rgba(227, 239, 255, 0.78) !important;
        font-size: 0.88rem !important;
        font-weight: 850 !important;
    }

    html[data-theme="dark"] body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo__hero,
    body.page-home-documentsbysearchterm[data-theme="dark"] .docs-photo-collection-layout .photo-demo__hero,
    body[data-theme="dark"].page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo__hero {
        background:
            radial-gradient(circle at 92% 8%, rgba(38, 143, 255, 0.26), transparent 34%),
            linear-gradient(145deg, rgba(11, 39, 76, 0.96), rgba(8, 27, 54, 0.92)) !important;
        box-shadow: 0 18px 38px rgba(0, 8, 24, 0.24) !important;
    }

    html[data-theme="dark"] body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo__content,
    html[data-theme="dark"] body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo--list .photo-demo-card,
    html[data-theme="dark"] body.page-home-documentsbysearchterm .photo-demo-viewer__dialog,
    html[data-theme="dark"] body.page-home-documentsbysearchterm .photo-demo-viewer__header,
    html[data-theme="dark"] body.page-home-documentsbysearchterm .photo-demo-viewer__stage,
    html[data-theme="dark"] body.page-home-documentsbysearchterm .photo-demo-viewer__albums,
    html[data-theme="dark"] body.page-home-documentsbysearchterm .photo-demo-viewer__info,
    body.page-home-documentsbysearchterm[data-theme="dark"] .docs-photo-collection-layout .photo-demo__content,
    body.page-home-documentsbysearchterm[data-theme="dark"] .docs-photo-collection-layout .photo-demo--list .photo-demo-card,
    body.page-home-documentsbysearchterm[data-theme="dark"] .photo-demo-viewer__dialog,
    body.page-home-documentsbysearchterm[data-theme="dark"] .photo-demo-viewer__header,
    body.page-home-documentsbysearchterm[data-theme="dark"] .photo-demo-viewer__stage,
    body.page-home-documentsbysearchterm[data-theme="dark"] .photo-demo-viewer__albums,
    body.page-home-documentsbysearchterm[data-theme="dark"] .photo-demo-viewer__info,
    body[data-theme="dark"].page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo__content,
    body[data-theme="dark"].page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo--list .photo-demo-card,
    body[data-theme="dark"].page-home-documentsbysearchterm .photo-demo-viewer__dialog,
    body[data-theme="dark"].page-home-documentsbysearchterm .photo-demo-viewer__header,
    body[data-theme="dark"].page-home-documentsbysearchterm .photo-demo-viewer__stage,
    body[data-theme="dark"].page-home-documentsbysearchterm .photo-demo-viewer__albums,
    body[data-theme="dark"].page-home-documentsbysearchterm .photo-demo-viewer__info {
        border-color: rgba(93, 157, 239, 0.42) !important;
        background: rgba(8, 31, 61, 0.94) !important;
        box-shadow: 0 18px 38px rgba(0, 8, 24, 0.28) !important;
    }

    html[data-theme="dark"] body.page-home-documentsbysearchterm .photo-demo-viewer__dialog,
    body.page-home-documentsbysearchterm[data-theme="dark"] .photo-demo-viewer__dialog,
    body[data-theme="dark"].page-home-documentsbysearchterm .photo-demo-viewer__dialog {
        background: linear-gradient(180deg, #061b37 0%, #041426 100%) !important;
    }

    html[data-theme="dark"] body.page-home-documentsbysearchterm .photo-demo-viewer__info dd,
    body.page-home-documentsbysearchterm[data-theme="dark"] .photo-demo-viewer__info dd,
    body[data-theme="dark"].page-home-documentsbysearchterm .photo-demo-viewer__info dd {
        color: #edf5ff !important;
        background: rgba(16, 50, 92, 0.88) !important;
    }

    html[data-theme="dark"] body.page-home-documentsbysearchterm #photoDemoViewerAlbums button.is-active,
    body.page-home-documentsbysearchterm[data-theme="dark"] #photoDemoViewerAlbums button.is-active,
    body[data-theme="dark"].page-home-documentsbysearchterm #photoDemoViewerAlbums button.is-active {
        border-color: rgba(105, 169, 255, 0.72) !important;
        background: rgba(21, 74, 132, 0.86) !important;
    }
}

@media (max-width: 390px) {
    body.page-home-documentsbysearchterm .docs-photo-collection-layout {
        padding: 0.52rem !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo__hero {
        padding: 0.74rem !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo__stats {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0.28rem !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo__stats span {
        min-height: 42px !important;
        padding: 0.34rem 0.18rem !important;
        border-radius: 12px !important;
        font-size: 0.48rem !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo__stats strong {
        font-size: 0.96rem !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo__filter {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body.page-home-documentsbysearchterm .docs-photo-collection-layout .photo-demo__filter button {
        min-height: 32px !important;
        padding-inline: 0.18rem !important;
        font-size: 0.66rem !important;
    }
}

@media (max-width: 1280px) {
    body.page-home-documentsbysearchterm.photo-demo-viewer-open .photo-demo-viewer {
        display: block !important;
        width: 100vw !important;
        height: 100dvh !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open .photo-demo-viewer__dialog {
        display: block !important;
        width: 100% !important;
        min-height: 100dvh !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open .photo-demo-viewer__header {
        position: sticky !important;
        top: 0 !important;
        z-index: 5 !important;
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) 44px !important;
        align-items: center !important;
        gap: 0.58rem !important;
        min-height: 64px !important;
        padding: 0.56rem 0.72rem !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open .photo-demo-viewer__header h2 {
        margin: 0.08rem 0 0 !important;
        font-size: 1.08rem !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open .photo-demo-viewer__path {
        display: block !important;
        font-size: 0.58rem !important;
        line-height: 1.05 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open .photo-demo-viewer__layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.72rem !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 0.72rem 0.72rem calc(6rem + env(safe-area-inset-bottom, 0px)) !important;
        overflow: visible !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open .photo-demo-viewer__stage,
    body.page-home-documentsbysearchterm.photo-demo-viewer-open .photo-demo-viewer__albums,
    body.page-home-documentsbysearchterm.photo-demo-viewer-open .photo-demo-viewer__info {
        position: relative !important;
        display: block !important;
        flex: 0 0 auto !important;
        order: initial !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open .photo-demo-viewer__stage {
        padding: 0.64rem !important;
        border-radius: 22px !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open .photo-demo-viewer__tools {
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) 44px !important;
        align-items: center !important;
        gap: 0.58rem !important;
        margin: 0 0 0.62rem !important;
        padding: 0 !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open .photo-demo-viewer__tools span {
        justify-content: center !important;
        min-height: 44px !important;
        height: 44px !important;
        padding: 0 0.72rem !important;
        line-height: 1 !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open .photo-demo-viewer__image {
        display: block !important;
        width: 100% !important;
        height: min(54svh, 360px) !important;
        min-height: 300px !important;
        max-height: 360px !important;
        margin: 0 !important;
        border-radius: 18px !important;
        overflow: hidden !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open .photo-demo-viewer__image img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open .photo-demo-viewer__thumbs {
        display: flex !important;
        gap: 0.48rem !important;
        margin-top: 0.62rem !important;
        padding: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open .photo-demo-viewer__thumbs::-webkit-scrollbar {
        display: none !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open .photo-demo-viewer__thumbs button {
        flex: 0 0 62px !important;
        width: 62px !important;
        height: 46px !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open .photo-demo-viewer__albums,
    body.page-home-documentsbysearchterm.photo-demo-viewer-open .photo-demo-viewer__info {
        padding: 0.76rem !important;
        border-radius: 20px !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open .photo-demo-viewer__albums h3,
    body.page-home-documentsbysearchterm.photo-demo-viewer-open .photo-demo-viewer__info h3 {
        margin: 0 0 0.58rem !important;
        font-size: 0.95rem !important;
        line-height: 1.1 !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open #photoDemoViewerAlbums {
        display: flex !important;
        align-items: stretch !important;
        gap: 0.56rem !important;
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 0 !important;
        scrollbar-width: none !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open #photoDemoViewerAlbums::-webkit-scrollbar {
        display: none !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open #photoDemoViewerAlbums button {
        display: grid !important;
        grid-template-columns: 52px minmax(0, 1fr) !important;
        grid-template-rows: 1fr 1fr !important;
        align-items: center !important;
        gap: 0.18rem 0.56rem !important;
        flex: 0 0 190px !important;
        width: 190px !important;
        min-width: 190px !important;
        min-height: 74px !important;
        height: 74px !important;
        padding: 0.5rem !important;
        overflow: hidden !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open #photoDemoViewerAlbums span {
        grid-row: 1 / 3 !important;
        display: block !important;
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open #photoDemoViewerAlbums strong,
    body.page-home-documentsbysearchterm.photo-demo-viewer-open #photoDemoViewerAlbums small {
        display: block !important;
        min-width: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        line-height: 1.05 !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open #photoDemoViewerAlbums strong {
        align-self: end !important;
        font-size: 0.77rem !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open #photoDemoViewerAlbums small {
        align-self: start !important;
        font-size: 0.7rem !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open .photo-demo-viewer__info dl {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0.44rem !important;
        margin: 0 !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open .photo-demo-viewer__info dt,
    body.page-home-documentsbysearchterm.photo-demo-viewer-open .photo-demo-viewer__info dd {
        margin: 0 !important;
        min-width: 0 !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open .photo-demo-viewer__info dt {
        margin-bottom: -0.28rem !important;
        font-size: 0.66rem !important;
    }

    body.page-home-documentsbysearchterm.photo-demo-viewer-open .photo-demo-viewer__info dd {
        padding: 0.48rem 0.6rem !important;
        border-radius: 13px !important;
        font-size: 0.88rem !important;
        line-height: 1.12 !important;
    }
}
