.photo-admin-link {
    display: grid;
    justify-items: end;
    border-bottom: 1px solid var(--line);
    background: #0b0b0b;
    padding: 8px 12px;
}

.photo-admin-link a {
    border: 1px solid var(--line);
    background: #111;
    padding: 7px 9px;
    color: #fff;
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.photo-admin-link a:hover {
    border-color: var(--primary-accent);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
}

.photo-tag-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    padding: 0 2px;
}

.photo-tag-filter > span {
    margin-right: 3px;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.photo-tag-filter a {
    border: 1px solid var(--line);
    padding: 6px 9px;
    color: var(--ink);
    font-size: .76rem;
    font-weight: 800;
}

.photo-tag-filter a:hover,
.photo-tag-filter a:focus-visible,
.photo-tag-filter a.is-active {
    border-color: var(--primary-accent);
    background: var(--primary-accent);
    color: #fff;
}

.photo-tag-filter small { font-size: .68rem; opacity: .75; }

.photo-grid-ad {
    grid-column: 1 / -1;
}

.photo-page-marker {
    grid-column: 1 / -1;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.photo-infinite-sentinel {
    display: block;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.photo-tile {
    position: relative;
    display: grid;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #101010;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.photo-tile:hover,
.photo-tile:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px var(--primary-accent), 0 0 22px color-mix(in srgb, var(--primary-accent) 55%, transparent);
    background: #171717;
}

.photo-tile-media {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 3px 3px 0 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .04), transparent),
        #0a0a0a;
}

.photo-tile-media img,
.photo-placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.photo-tile-media img {
    object-fit: cover;
}

.photo-placeholder {
    position: relative;
}

.photo-placeholder::before,
.photo-placeholder::after {
    content: "";
    position: absolute;
    border: 1px solid #343434;
    background: #151515;
}

.photo-placeholder::before {
    inset: 24% 20% 28% 24%;
    transform: rotate(-7deg);
}

.photo-placeholder::after {
    inset: 30% 24% 22% 18%;
    transform: rotate(5deg);
}

.photo-tile-copy {
    display: grid;
    align-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 48px;
    border-top: 1px solid #202020;
    padding: 6px 10px 8px;
}

.photo-tile-copy strong,
.photo-tile-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.photo-tile-copy strong {
    display: -webkit-box;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.18;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.photo-tile-copy span {
    color: var(--muted);
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.photo-recent-grid .photo-tile-media {
    aspect-ratio: 4 / 3;
}

.photo-detail {
    display: grid;
    gap: 0;
    background: #0f0f0f;
}

.photo-detail.is-loading {
    cursor: progress;
}

.photo-view {
    --photo-nav-width: 0px;
    display: grid;
    position: relative;
    place-items: center;
    margin: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px;
}

.photo-image-stage {
    display: grid;
    position: relative;
    place-items: center;
    max-width: 100%;
}

.photo-image-stage img {
    display: block;
    max-width: 100%;
    max-height: min(72vh, 760px);
    width: auto;
    height: auto;
    border: 1px solid #303030;
    border-radius: 4px;
    background: #050505;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
}

.photo-nav-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: min(28%, 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, .72);
    cursor: pointer;
    opacity: .4;
}

.photo-nav-zone .icon {
    position: relative;
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .86));
    flex-shrink: 0;
}

.photo-nav-zone .icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(20, 20, 20, .85);
    transform: translate(-50%, -50%) scale(.8);
    opacity: 0;
    transition: background .15s ease, opacity .15s ease, transform .15s ease;
    z-index: -1;
}

.photo-nav-prev {
    left: 0;
}

.photo-nav-next {
    right: 0;
}

.photo-nav-zone:hover,
.photo-nav-zone:focus-visible {
    opacity: 1;
}

.photo-nav-zone:hover .icon::before,
.photo-nav-zone:focus-visible .icon::before {
    background: rgba(40, 40, 40, .95);
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.photo-nav-zone:disabled {
    display: none;
}

.photo-detail-heading {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 14px 16px 0;
    text-align: center;
}

.photo-detail-heading h1 {
    margin: 0;
    color: #fff;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: clamp(1.3rem, 5vw, 1.9rem);
    font-weight: 900;
    line-height: 1.05;
}

.photo-detail-eyebrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid #202020;
    padding: 12px 16px 0;
}

.photo-detail-eyebrow .eyebrow {
    margin: 0;
}

.photo-detail-eyebrow .photo-admin-link {
    border-bottom: 0;
    background: none;
    padding: 0;
}

.photo-detail-copy {
    display: grid;
    justify-self: stretch;
    gap: 8px;
    width: 100%;
    padding: 8px 16px 10px;
}

.photo-detail-copy [data-photo-tour-date][hidden],
.photo-detail-copy [data-photo-photographer][hidden],
.photo-detail-copy [data-photo-uploaded][hidden],
.photo-license[hidden] {
    display: none !important;
}

.photo-detail-title {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.3;
}

.photo-photographer,
.photo-tour-date,
.photo-detail-meta {
    margin: 0;
    line-height: 1.45;
}

.photo-photographer {
    display: flex;
    align-items: flex-start;
    color: var(--muted);
}

.photo-photographer .icon {
    margin-top: 1px;
    color: var(--moremuted);
}

.photo-photographer-copy {
    min-width: 0;
    overflow-wrap: anywhere;
}

.photo-tour-date {
    display: flex;
    align-items: flex-start;
    color: var(--muted);
}

.photo-tour-date .icon {
    margin-top: 1px;
    color: var(--moremuted);
}

.photo-tour-date-copy {
    min-width: 0;
    overflow-wrap: anywhere;
}

.photo-detail-meta {
    display: flex;
    align-items: flex-start;
    color: var(--moremuted);
}

.photo-detail-meta .icon {
    margin-top: 1px;
}

.photo-detail-meta-copy {
    min-width: 0;
    overflow-wrap: anywhere;
}

.photo-caption p {
    margin: 0 0 10px;
}

.photo-caption p:last-child {
    margin-bottom: 0;
}

.photo-nav-hint {
    margin: 10px 0 0;
    color: #666;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.photo-share {
    display: flex;
    gap: 7px;
    align-items: center;
    overflow-x: auto;
    padding: 4px 16px 12px;
}

.photo-share .tinyDeets {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.photo-share a {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: #0b0b0b;
    padding: 7px 9px;
    color: #fff;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.photo-share a:hover {
    border-color: var(--primary-accent);
    background: #171717;
}

.photo-license {
    display: block;
    padding: 0 16px 18px;
    color: var(--moremuted);
}

.photo-license-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.photo-license-copy > span {
    display: block;
    margin: 0;
    line-height: 1.5;
}

.photo-license-name {
    color: var(--muted);
}

.photo-license-name strong {
    font-weight: 800;
}

.photo-film-panel {
    border-top: 1px solid var(--line);
    background: var(--bg-raised);
}

.photo-film-strip {
    display: flex;
    gap: 7px;
    align-items: stretch;
    overflow-x: auto;
    padding: 12px;
    background: #090909;
}

.photo-film-strip a,
.photo-film-strip .is-current {
    position: relative;
    flex: 1 0 82px;
    min-width: 82px;
    max-width: 150px;
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid #303030;
    border-radius: 4px;
    background: #111;
}

.photo-film-strip a:hover {
    border-color: var(--primary-accent);
}

.photo-film-strip img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-film-strip .is-current {
    border-color: #fff;
}

.photo-film-strip .is-current img {
    filter: brightness(.34);
}

.photo-film-strip strong {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: .62rem;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 759px) {
    .photo-film-strip > :first-child,
    .photo-film-strip > :last-child {
        display: none;
    }
}

.photo-back-link {
    display: grid;
    justify-items: center;
    padding: 0 16px 16px;
}

.photo-pagination-bar {
    position: sticky;
    bottom: 0;
    z-index: 29;
    margin-top: 16px;
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, .7);
    padding: 10px;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .photo-pagination-bar {
        background: rgba(13, 13, 13, .4);
        border-top: 1px solid rgba(255, 255, 255, .08);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
        -webkit-backdrop-filter: blur(10px) saturate(150%);
        backdrop-filter: blur(10px) saturate(150%);
    }
}

.photo-pagination-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.photo-pagination-side {
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 0;
}

.photo-pagination-side-left {
    justify-content: flex-start;
}

.photo-pagination-side-right {
    justify-content: flex-end;
}

.photo-pagination-current {
    color: #fff;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.photo-pagination-button {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    position: relative;
    width: auto;
    min-width: 0;
    padding: 10px;
    font-size: .68rem;
    white-space: nowrap;
    opacity: .99;
}

.photo-pagination-button .icon {
    flex: 0 0 auto;
}

.photo-infinite-button {
    cursor: pointer;
}

.photo-infinite-button[aria-pressed="true"] {
    border-color: var(--primary-active);
    background: var(--primary-active);
    color: #0d0d0d;
}

.photo-infinite-button:hover .gda-tooltip,
.photo-infinite-button:focus-visible .gda-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.photo-infinite-button .gda-tooltip--wide {
    width: min(280px, calc(100vw - 24px));
    line-height: 1.25;
    white-space: normal;
}

.photo-pagination-status {
    min-height: 0;
    margin: 0;
    text-align: center;
}

.photo-pagination-status:not(:empty) {
    margin-top: 4px;
}

@media (max-width: 759px), (max-height: 559px) {
    body.has-bottom-mobile-ad .photo-pagination-bar {
        bottom: 118px;
    }

    .photo-pagination-inner {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .photo-pagination-current {
        order: -1;
        text-align: center;
    }

    .photo-pagination-side {
        justify-content: center;
    }

    .photo-pagination-button {
        flex: 1 1 0;
        padding-inline: 8px;
    }
}

@media (min-width: 760px) and (min-height: 560px) {
    .photo-index-hero {
        align-items: start;
    }

    .photo-index-hero .section-hero-copy {
        display: grid;
        gap: 10px;
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .photo-index-hero .section-hero-copy .eyebrow {
        grid-column: unset;
    }

    .photo-index-hero h1 {
        grid-column: unset;
        font-size: clamp(2.7rem, 5vw, 4.5rem);
    }

    .photo-index-hero .section-hero-copy > p,
    .photo-index-hero .section-hero-description {
        grid-column: unset;
    }

    .photo-index-hero .section-hero-stats {
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: start;
    }
}

@media (min-width: 720px) {
    .photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        padding: 14px;
    }

    .photo-view {
        padding: 18px;
    }
}

@media (min-width: 1040px) {
    .photo-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .photo-image-stage {
        --photo-nav-width: clamp(64px, 7vw, 104px);
        padding-right: calc(var(--photo-nav-width) + 12px);
        padding-left: calc(var(--photo-nav-width) + 12px);
    }

    .photo-nav-zone {
        width: var(--photo-nav-width);
    }

}
