#content.photo-browse {
    width: 100%;
}

.photo-browse .filter-trigger {
    display: none;
}

#content.photo-browse #tools .photo-facet h4,
#content.photo-admin #tools .photo-facet h4 {
    font-weight: 600;
    font-size: 13px;
    clear: both;
    margin-bottom: 3px;
    text-transform: uppercase;
}

#content.photo-browse #tools .photo-facet,
#content.photo-admin #tools .photo-facet {
    max-height: 150px;
    background-color: #ffffff;
    overflow: scroll;
    padding: 8px 10px;
    font-size: 13px;
    overflow-x: hidden;
    border-top: 2px solid #333;
    margin-bottom: 5px;
}

#content.photo-browse #tools .photo-facet .term,
#content.photo-admin #tools .photo-facet .term {
    margin: 2px 0;
    vertical-align: text-bottom;
}

#content.photo-browse #tools .photo-facet .term input[type="checkbox"],
#content.photo-admin #tools .photo-facet .term input[type="checkbox"] {
    margin-right: 6px;
    vertical-align: middle;
}

#content .page-photos .browse-wrap .browse-left {
    width: 300px;
    background: #fff;
    padding: 0;
}

.page-photos .facet-wrap {
    padding: 5px 20px;
    border-bottom: 1px solid rgba(0,0,0,.1);
}

.hotspot {
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50px;
    position: absolute;
    border: 1px solid #f2f2f2;
    box-shadow: 0 0 8px 0 rgb(0 0 0 / 25%);
    z-index: 100;
    pointer-events: all;
    transform-style: preserve-3d;
}

.boxy .platform-hotspot {
    display: none;
}

.hotspot-overlay .hotspot.platform-hotspot {
    display: none;
}

.hotspot-overlay .hotspot.platform-hotspot {
    display: inline-block;
}

.hotspot.hotspot-live {
    border: 4px solid white;
    background: green;
}

.hotspot.hotspot-pending {
    border: 4px solid white;
    background: orange;
}

.osep-pager-wrap {
    text-align: center;
    margin-top: 30px;
    clear: both;
}

.osep-pager {
    display: inline-block;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.osep-pager .page-numbers {
    display: inline-block;
    color: #438bca;
    padding: 6px 12px;
    border-right: 1px solid #ccc;
}

.osep-pager .page-numbers:last-child {
    border-right: none;
}

.osep-pager .current {
    color: inherit;
    font-weight: bold;
}

.keyword-sidebar {
    display: flex;
    justify-content: center; /* centers horizontally */
    margin: 20px 0;
    padding: 10px 0;
    margin-top: auto;
}

.keyword-sidebar .keyword-ad-item {
    display: inline-block;
    text-align: center;
}

.photo-sidebar-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.photo-sidebar-content {
    flex: 1;
    overflow-y: auto;
}

/* Keep photo browse pages aligned with the shared 1440px browse shell. */
.page-photos #main {
    width: 100% !important;
    max-width: 1440px;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

.page-photos #content.photo-browse {
    width: 100%;
    max-width: 1440px;
    float: none;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-photos #content.photo-browse .browse-heading {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (max-width: 520px) {
    .page-photos #main {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Match the shared Projects, Offices, and Products facet treatment. */
@media (min-width: 521px) {
    .page-photos #content.photo-browse > .browse-wrap {
        display: flex !important;
        align-items: flex-start;
        width: 100%;
        max-width: 100%;
    }

    .page-photos #content.photo-browse > .browse-wrap > .browse-left {
        float: none !important;
        order: 1;
        flex: 0 0 300px !important;
        width: 300px !important;
        max-width: 300px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        background: transparent !important;
        overflow: visible !important;
        box-sizing: border-box;
    }

    .page-photos #content.photo-browse > .browse-wrap > .browse-right,
    .page-photos #content.photo-browse > .browse-wrap > .initial-content {
        order: 2;
        flex: 0 0 calc(100% - 300px) !important;
        min-width: 0;
        width: auto !important;
        max-width: calc(100% - 300px);
        padding: 10px 0 10px 10px !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    .page-photos #content.photo-browse > .browse-wrap > .initial-content > .initial-content {
        width: 100% !important;
        margin: 0 !important;
    }

    .page-photos #content.photo-browse > .browse-wrap > .browse-left #tools {
        float: none !important;
        width: 300px !important;
        max-width: 100%;
        padding: 0 !important;
        overflow: visible !important;
        box-sizing: border-box;
    }
}

#content.photo-browse #tools .photo-facet {
    display: flex !important;
    flex-direction: column !important;
    max-height: none !important;
    min-height: 0;
    padding: 0 10px 8px 0 !important;
    margin: 0 0 14px !important;
    border: 0 !important;
    border-top: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #333 !important;
    font-size: 14px !important;
    overflow: visible !important;
    box-sizing: border-box;
}

#content.photo-browse #tools .photo-facet h4 {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex: 0 0 auto;
    gap: 10px;
    padding: 0 0 6px 8px !important;
    margin: 0 !important;
    border: 0 !important;
    clear: both;
    color: #333 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

#content.photo-browse #tools .photo-facet > .facet-options {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 220px !important;
    padding: 0 0 2px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

#content.photo-browse #tools .photo-facet .facets.locations {
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    font-size: inherit !important;
    overflow: visible !important;
}

#content.photo-browse #tools .photo-facet .term {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    padding: 3px 8px !important;
    margin: 0 !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    box-sizing: border-box;
}

#content.photo-browse #tools .photo-facet .term:hover {
    background: rgba(255, 255, 255, .55) !important;
    color: #333 !important;
    text-decoration: none !important;
}

#content.photo-browse #tools .photo-facet .term.selected-item {
    border-color: #d4d4d8 !important;
    background: rgba(255, 255, 255, .78) !important;
    color: #333 !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04) !important;
}

#content.photo-browse #tools .photo-facet .term input[type="checkbox"],
#content.photo-browse #tools .photo-facet .term input.os-facet {
    -webkit-appearance: none;
    appearance: none !important;
    display: inline-grid !important;
    place-content: center !important;
    flex: 0 0 auto !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    border: 1px solid #a1a1aa !important;
    border-radius: 5px !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05) !important;
    cursor: pointer !important;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
    vertical-align: middle !important;
}

#content.photo-browse #tools .photo-facet .term input[type="checkbox"]:hover,
#content.photo-browse #tools .photo-facet .term input.os-facet:hover {
    border-color: #333 !important;
}

#content.photo-browse #tools .photo-facet .term input[type="checkbox"]:focus-visible,
#content.photo-browse #tools .photo-facet .term input.os-facet:focus-visible {
    outline: none !important;
    border-color: #333 !important;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, .14) !important;
}

#content.photo-browse #tools .photo-facet .term input[type="checkbox"]:checked,
#content.photo-browse #tools .photo-facet .term input.os-facet:checked {
    border-color: #333 !important;
    background-color: #333 !important;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M3.5 8.25 6.5 11 12.5 5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 14px 14px !important;
}

#content.photo-browse #tools .photo-facet .term label,
#content.photo-browse #tools .photo-facet .term a {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    flex: 1 1 auto !important;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

#content.photo-browse #tools .photo-facet .term-name {
    flex: 1 1 auto;
    min-width: 0;
}

#content.photo-browse #tools .photo-facet .term-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-width: 36px !important;
    padding: 3px 6px !important;
    border-radius: 999px !important;
    background: #f1f1f1 !important;
    color: #333 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-align: center !important;
}

#content.photo-browse #tools .photo-facet p {
    margin: 3px 0;
    color: #333;
    font-size: 14px;
    line-height: 1.25;
}

#content.photo-browse #tools .photo-facet .facets.locations > .level-1:not(.term) {
    padding-left: 0 !important;
}

#content.photo-browse #tools .photo-facet .facets.locations > .level-2:not(.term) {
    padding-left: 16px !important;
}

#content.photo-browse #tools .photo-facet .facets.locations > .level-3:not(.term) {
    padding-left: 32px !important;
}

#content.photo-browse #tools .photo-facet .facets.locations > .level-2.term {
    padding-left: 24px !important;
}

#content.photo-browse #tools .photo-facet .facets.locations > .level-3.term {
    padding-left: 40px !important;
}

#content.photo-browse #tools .photo-facet .term a:hover {
    color: #333 !important;
    text-decoration: none !important;
}

#content.photo-browse #tools .photo-facet .term a.selected {
    position: static !important;
    font-weight: 600 !important;
}

#content.photo-browse #tools .photo-facet .term a.selected::after {
    content: none !important;
    display: none !important;
}

/* Use the same title color for every card shown on the Photos page. */
.page-photos #linky .boxy .boxy-title > a,
.page-photos .collection-card .card-link,
.page-photos .collection-card .card-link > a {
    color: #333 !important;
}

.page-photos #linky .boxy .boxy-title > a:hover,
.page-photos #linky .boxy .boxy-title > a:focus,
.page-photos .collection-card:hover .card-link,
.page-photos .collection-card:hover .card-link > a {
    color: #428bca !important;
}

/* Match desktop photo-browse cards to the shared Similar Images treatment. */
@media only screen and (min-width: 481px) and (min-device-width: 481px) {
    .page-photos #content.photo-browse #linky.linky-standard {
        position: relative;
        width: 100%;
    }

    .page-photos #content.photo-browse #linky.linky-standard > .boxy.boxy-standard {
        box-sizing: border-box;
        float: none;
        width: calc((100% - 48px) / 4);
        margin: 0 0 16px;
        background-color: transparent;
        border: 0;
        border-radius: 4px;
        -webkit-box-shadow: none;
        box-shadow: none;
    }

    .page-photos #content.photo-browse #linky.linky-standard.is-photo-grid-awaiting-layout > .boxy.boxy-standard {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .page-photos #content.photo-browse #linky.linky-standard.is-photo-grid-ready > .boxy.boxy-standard {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .page-photos #content.photo-browse #linky.linky-standard > .boxy.boxy-standard > .boxy-image-link {
        display: block;
        overflow: hidden;
        border-radius: 4px;
    }

    .page-photos #content.photo-browse #linky.linky-standard > .boxy.boxy-standard > .boxy-image-link > .listing-image {
        display: block;
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
        border-radius: 4px !important;
    }

    .page-photos #content.photo-browse #linky.linky-standard > .boxy.boxy-standard > .highslide-caption {
        display: none !important;
    }

    .page-photos #content.photo-browse #linky.linky-standard > .boxy.boxy-standard > .boxy-title {
        display: block;
        height: auto;
        margin: 0;
        padding: 0;
        overflow: visible;
        background: transparent;
        text-overflow: clip;
        white-space: normal;
        -webkit-line-clamp: unset;
        line-clamp: unset;
    }

    .page-photos #content.photo-browse #linky.linky-standard > .boxy.boxy-standard > .boxy-title > a {
        display: block;
        margin: 0;
        padding: 10px;
        color: #333;
        font-size: 14px;
        font-weight: 500;
        line-height: 17px;
        text-decoration: none;
        white-space: normal;
    }

    .page-photos #content.photo-browse #linky.linky-standard > .boxy.boxy-standard > .boxy-title > a:hover,
    .page-photos #content.photo-browse #linky.linky-standard > .boxy.boxy-standard > .boxy-title > a:focus {
        color: #428bca;
        text-decoration: none;
    }
}

@media only screen and (max-device-width: 480px) {
    #content.photo-browse .browse-left #tools .photo-facet,
    #content.photo-admin .browse-left #tools .photo-facet {
        max-height: none;
        border: none;
        border-bottom: 1px solid #ccc;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-left-radius: 3px;
        border-bottom-right-radius: 3px;
        padding: 5px;
    }

    #content.photo-browse #tools .photo-facet h4,
    #content.photo-admin #tools .photo-facet h4 {
        margin-bottom: 0;
        border-bottom: 2px solid #333;
        margin-top: 10px;
    }
}
