.camera-page {
    padding: 16px 16px 18px;
}

.camera-page__intro {
    display: block;
    margin: 0 0 14px;
    color: rgba(255, 255, 255, .58);
    font: 400 13px 'Roboto', sans-serif;
}

.camera-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.camera-title__actions {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
}

.camera-mode-link,
.camera-mode-link:visited {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
    color: rgba(255, 255, 255, .62);
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 3px;
    font: 700 11px 'Roboto Condensed', sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .15s, border-color .15s, background .15s;
}

.camera-mode-link:hover,
.camera-mode-link.selected {
    color: #fff;
    background: rgba(255, 155, 0, .12);
    border-color: rgba(255, 155, 0, .46);
}

.camera-mode-link .fa {
    color: rgba(255, 255, 255, .58);
}

.camera-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.camera-card {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)),
        #141819;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 10px 22px rgba(0, 0, 0, .18);
    overflow: hidden;
    cursor: pointer;
    border-radius: 3px;
    transition: border-color .16s, box-shadow .16s, transform .16s;
}

.camera-card:hover {
    border-color: rgba(255, 155, 0, .48);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 12px 26px rgba(0, 0, 0, .32);
    transform: translateY(-1px);
}

.camera-card__delete {
    position: absolute;
    z-index: 4;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .78);
    background: rgba(18, 9, 9, .78);
    border: 1px solid rgba(255, 100, 100, .36);
    border-radius: 3px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity .16s, transform .16s, color .16s, border-color .16s, background .16s;
}

.camera-card:hover .camera-card__delete,
.camera-card__delete:focus {
    opacity: 1;
    transform: translateY(0);
}

.camera-card__delete:hover {
    color: #fff;
    background: rgba(80, 18, 18, .9);
    border-color: rgba(255, 100, 100, .78);
}

.camera-card__delete:disabled {
    opacity: .45;
    cursor: wait;
}

.camera-card__media {
    position: relative;
    display: block;
    height: 168px;
    overflow: hidden;
    background: rgba(0, 0, 0, .42);
    text-decoration: none;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.camera-card:hover .camera-card__media {
    border-color: rgba(255, 155, 0, .35);
}

.camera-card__media::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 54px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .58));
    pointer-events: none;
}

.camera-card__shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 32%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 12px);
    opacity: .45;
}

.camera-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-card:hover .camera-card__image {
    opacity: .88;
}

.camera-card__cta {
    display: none;
}

.camera-card__body {
    position: relative;
    min-height: 56px;
    padding: 8px 10px 9px;
    background: rgba(0, 0, 0, .12);
    overflow: visible;
}

.camera-card__author {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 56px;
    padding-left: 68px;
}

.camera-card__avatar {
    display: block;
    width: 64px;
    height: 110px;
    max-width: none;
    flex: 0 0 auto;
    margin: 0;
    background-position: center bottom;
    background-repeat: no-repeat;
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .7));
}

.camera-card__avatar-link {
    display: block;
    position: absolute;
    left: 8px;
    bottom: -4px;
    width: 68px;
    height: 96px;
    flex: 0 0 auto;
    text-decoration: none;
    overflow: visible;
    padding-top: 0;
    box-sizing: border-box;
}

.camera-card__avatar--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -10px;
    height: 42px;
    color: rgba(255, 255, 255, .45);
    background: #111;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 3px;
}

.camera-card__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    margin-top: 0;
}

.camera-card__name,
.camera-card__name:visited {
    color: rgba(255, 255, 255, .92);
    font: 700 14px 'Roboto Condensed', sans-serif;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .15s;
}

.camera-card__name:hover {
    color: var(--color-primary, #ff9b00);
}

.camera-card__date {
    color: rgba(255, 255, 255, .42);
    font: 500 10px 'Roboto', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.camera-card__date .fa {
    color: rgba(255, 155, 0, .75);
    margin-right: 3px;
}

.camera-card__date--deleted {
    margin-top: 3px;
    color: rgba(255, 120, 120, .72);
}

.camera-card__date--deleted .fa {
    color: rgba(255, 120, 120, .85);
}

.camera-card__date--reason {
    color: rgba(255, 255, 255, .46);
}

.camera-empty-state {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, .55);
    background:
        linear-gradient(135deg, rgba(255, 155, 0, .06), rgba(255, 255, 255, .015)),
        rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 3px;
}

.camera-empty-state .fa {
    font-size: 32px;
    color: rgba(255, 155, 0, .68);
}

.camera-empty-state--warning .fa {
    color: rgba(255, 120, 120, .82);
}

.camera-empty-state p {
    font: 300 13px 'Roboto', sans-serif;
}

.camera-gallery > .camera-empty-state {
    grid-column: 1 / -1;
}

.camera-modal {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .92);
}

body.camera-modal-open {
    overflow: hidden;
}

.camera-modal__overlay {
    position: absolute;
    inset: 0;
}

.camera-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 88vw;
    max-width: 1000px;
    max-height: 90vh;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
}

.camera-modal__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    padding: 0 4px 8px;
    background: transparent;
    border-bottom: 0;
}

.camera-modal__label {
    color: rgba(255, 255, 255, .55);
    font: 700 12px 'Roboto Condensed', sans-serif;
}

.camera-modal__label .fa {
    color: var(--color-primary, #ff9b00);
    margin-right: 7px;
}

.camera-modal__close {
    z-index: 2;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, .68);
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s;
}

.camera-modal__close:hover {
    color: #fff;
}

.camera-modal__viewer {
    display: grid;
    grid-template-columns: 58px 1fr 58px;
    gap: 10px;
    align-items: center;
    flex: 1;
    min-height: 0;
    padding: 0;
}

.camera-modal__arrow {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, .58);
    font-size: 26px;
    cursor: pointer;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s;
}

.camera-modal__arrow:hover {
    color: #fff;
}

.camera-modal__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    min-width: 0;
}

.camera-modal__frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.camera-modal__img {
    max-width: 100%;
    max-height: calc(90vh - 150px);
    width: auto;
    height: auto;
    display: block;
}

.camera-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
    padding: 12px 8px 0;
    min-height: 28px;
    background: transparent;
    border-top: 0;
}

.camera-modal__meta {
    display: flex;
    gap: 10px;
    align-items: center;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    min-width: 0;
}

.camera-modal__author-wrap,
.camera-modal__date-wrap,
.camera-modal__pagination {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 20px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.camera-modal__author-wrap .fa,
.camera-modal__pagination .fa {
    color: var(--color-primary, #ff9b00);
}

.camera-modal__date-wrap .fa {
    color: rgba(255, 155, 0, .74);
}

.camera-modal__author {
    font-weight: 600;
    color: #fff;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.camera-modal__date {
    font-weight: 300;
    font-size: 12px;
    color: rgba(255, 255, 255, .62);
}

.camera-modal__pagination {
    color: rgba(255, 255, 255, .7);
}

.camera-modal__counter {
    font-size: 13px;
    color: rgba(255, 255, 255, .72);
    font-weight: 700;
}

.camera-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    padding: 16px 0;
}

.camera-pagination__btn {
    background: rgba(255, 155, 0, .1);
    border: 1px solid rgba(255, 155, 0, .3);
    color: rgba(255, 155, 0, .9);
    padding: 8px 16px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s;
}

.camera-pagination__btn:hover:not(:disabled) {
    background: rgba(255, 155, 0, .18);
    border-color: rgba(255, 155, 0, .6);
    color: #ff9b00;
}

.camera-pagination__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.camera-pagination__info {
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
}

.camera-pagination__current {
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
}

.is-endpoint-pager-loading [data-camera-page-target],
.is-endpoint-pager-loading [data-profile-trades-target] {
    opacity: .76;
    pointer-events: none;
}

.camera-card-skeleton .camera-skeleton-media,
.camera-card-skeleton .camera-skeleton-line {
    background: linear-gradient(90deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .11), rgba(255, 255, 255, .055));
    background-size: 220% 100%;
    animation: cameraSkeletonPulse 1.35s ease-in-out infinite;
}

.camera-card-skeleton .camera-card__media {
    cursor: default;
}

.camera-card-skeleton .camera-skeleton-media {
    display: block;
    height: 100%;
    min-height: 156px;
    width: 100%;
}

.camera-card-placeholder-avatar {
    pointer-events: none;
}

.camera-card-placeholder-avatar .kx-list-user-avatar {
    position: absolute;
    left: 0;
    bottom: -14px;
    width: 64px;
    height: 110px;
    overflow: visible;
    background-position: center bottom;
    background-repeat: no-repeat;
    cursor: default;
    opacity: .42;
    filter: grayscale(1);
}

.camera-card-placeholder-avatar .kx-list-user-avatar-layer {
    position: absolute;
    inset: 0;
    background-position: center bottom;
    background-repeat: no-repeat;
    pointer-events: none;
}

.camera-card-placeholder-avatar .kx-list-user-avatar-hover {
    display: none;
}

.camera-card-skeleton .camera-skeleton-line {
    border-radius: 2px;
    display: block;
    height: 10px;
}

.camera-card-skeleton .camera-skeleton-line.is-name {
    width: 92px;
}

.camera-card-skeleton .camera-skeleton-line.is-date {
    margin-top: 7px;
    width: 132px;
}

@keyframes cameraSkeletonPulse {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -120% 0;
    }
}

