.shm-gallery {
    box-sizing: border-box;
    color: #171717;
    font-family: inherit;
}

.shm-gallery *,
.shm-gallery *::before,
.shm-gallery *::after {
    box-sizing: border-box;
}

.shm-gallery__bar {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.shm-gallery__title {
    font-size: 24px;
    line-height: 1.2;
    margin: 0;
}

.shm-button,
.shm-icon-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d8dde8;
    border-radius: 6px;
    color: #171717;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 14px;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
}

.shm-button:hover,
.shm-icon-button:hover {
    background: #f5f7fb;
}

.shm-gallery .shm-button,
.shm-activity-upload .shm-button {
    background: #ffffff !important;
    border-color: #d8dde8 !important;
    box-shadow: none !important;
    color: #171717 !important;
    text-decoration: none !important;
}

.shm-gallery .shm-button:hover,
.shm-gallery .shm-button:focus,
.shm-activity-upload .shm-button:hover,
.shm-activity-upload .shm-button:focus {
    background: #f5f7fb !important;
    border-color: #c8d0dc !important;
    box-shadow: none !important;
    color: #171717 !important;
    outline: 0 !important;
}

.shm-button--primary {
    background: #1b6f5c;
    border-color: #1b6f5c;
    color: #ffffff;
}

.shm-button--primary:hover {
    background: #155a4b;
}

.shm-button--danger {
    border-color: #c74343;
    color: #a92f2f;
}

.shm-gallery .shm-button--danger {
    background: #ffffff !important;
    border-color: #c74343 !important;
    color: #a92f2f !important;
}

.shm-gallery .shm-button--danger:hover,
.shm-gallery .shm-button--danger:focus {
    background: #fff5f5 !important;
    border-color: #c74343 !important;
    color: #8f2424 !important;
}

.shm-icon-button {
    border-radius: 50%;
    font-size: 24px;
    height: 40px;
    line-height: 1;
    padding: 0;
    width: 40px;
}

.shm-gallery .shm-albums {
    align-items: start !important;
    display: grid !important;
    gap: 14px !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
}

.shm-gallery .shm-album {
    align-self: start !important;
    display: block !important;
    max-width: none !important;
    min-width: 0 !important;
    position: relative;
    width: 100% !important;
}

.shm-gallery .shm-album-card {
    background: #ffffff;
    border: 1px solid #dfe4ed;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(16, 24, 40, 0.06);
    box-sizing: border-box !important;
    color: inherit;
    cursor: pointer;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    min-width: 0 !important;
    overflow: hidden;
    padding: 0;
    text-align: left;
    width: 100% !important;
}

.shm-gallery button.shm-album-card {
    width: 100% !important;
}

.shm-gallery .shm-album.is-open .shm-album-card {
    border-color: #1b6f5c;
    box-shadow: 0 3px 14px rgba(27, 111, 92, 0.16);
}

.shm-gallery .shm-album-card:hover {
    border-color: #7d8ca3;
}

.shm-gallery .shm-album-card__cover {
    aspect-ratio: 4 / 3 !important;
    background: #eef2f6;
    display: block !important;
    flex: 0 0 auto !important;
    height: auto !important;
    overflow: hidden !important;
    width: 100% !important;
}

.shm-gallery .shm-album-card__cover > img,
.shm-gallery .shm-album-card__cover > video {
    display: block !important;
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: cover !important;
    width: 100% !important;
}

.shm-gallery .shm-album-card__placeholder {
    background:
        linear-gradient(135deg, rgba(27, 111, 92, 0.18), transparent),
        linear-gradient(45deg, #eef2f6, #d8dde8);
    display: flex !important;
    height: 100% !important;
    width: 100% !important;
}

.shm-gallery .shm-album-card__cover--create,
.shm-gallery .shm-album-card__placeholder {
    aspect-ratio: 4 / 3 !important;
    height: 100% !important;
    min-height: 0;
    width: 100% !important;
}

.shm-gallery .shm-album-card--create {
    border-style: dashed;
}

.shm-gallery .shm-album-card__cover--create {
    align-items: center;
    display: flex !important;
    justify-content: center;
}

.shm-gallery .shm-album-card__plus {
    align-items: center;
    background: #ffffff00;
    border: 1px solid #e7e9ec47;
    border-radius: 50%;
    color: #ffffff5c;
    display: inline-flex;
    font-size: 32px;
    height: 54px;
    justify-content: center;
    line-height: 1;
    width: 54px;
}

.shm-album-create-input {
    border: 1px solid #c8d0dc;
    border-radius: 6px;
    box-sizing: border-box;
    font: inherit;
    min-height: 36px;
    padding: 7px 9px;
    width: 100%;
}

.shm-gallery .shm-album-create-form {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
}

.shm-rename-control {
    display: inline-flex;
    max-width: 220px;
    opacity: 0;
    overflow: hidden;
    transform: translateX(-6px);
    transition: width 180ms ease, opacity 180ms ease, transform 180ms ease;
    width: 96px;
}

.shm-rename-control.is-active {
    opacity: 1;
    transform: translateX(0);
    width: 180px;
}

.shm-album-rename-input {
    border: 1px solid #c8d0dc;
    border-radius: 6px;
    box-sizing: border-box;
    font: inherit;
    min-height: 38px;
    max-width: 220px;
    padding: 8px 10px;
    width: 100%;
}

.shm-gallery .shm-album-card__meta {
    display: grid !important;
    flex: 0 0 60px !important;
    gap: 3px;
    height: 60px !important;
    max-height: 60px !important;
    min-height: 60px !important;
    overflow: hidden !important;
    padding: 12px;
}

.shm-gallery .shm-album-card__title {
    display: -webkit-box;
    font-size: 15px;
    font-weight: 700;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.25;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.shm-gallery .shm-album-card__count {
    color: #667085;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shm-empty {
    border: 1px dashed #c8d0dc;
    border-radius: 8px;
    color: #667085;
    padding: 28px;
    text-align: center;
}

.shm-album-panel-host[hidden],
.shm-album__panel[hidden] {
    display: none;
}

.shm-album-panel-host {
    grid-column: 1 / -1;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-6px);
    transition: max-height 340ms ease, opacity 300ms ease, transform 320ms ease;
}

.shm-album-panel-host.is-open {
    max-height: 2200px;
    opacity: 1;
    transform: translateY(0);
}

.shm-album__panel {
    background: #ffffff;
    border: 1px solid #dfe4ed;
    border-top: 0;
    border-radius: 8px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: -2px;
    padding: 12px;
}

.shm-album-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.shm-cover-mode-hint {
    background: #eef7f4;
    border: 1px solid #b8d8cf;
    border-radius: 6px;
    color: #1b6f5c;
    font-size: 13px;
    margin-bottom: 12px;
    padding: 8px 10px;
}

.shm-gallery .shm-media-grid {
    display: grid !important;
    gap: 10px !important;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
}

.shm-media-grid__empty {
    border: 1px dashed #bbbdc1;
    border-radius: 8px;
    color: #bbbdc1;
    grid-column: 1 / -1;
    padding: 28px;
    text-align: center;
}

.shm-gallery .shm-media-tile {
    border: 0;
    aspect-ratio: 1 / 1 !important;
    background: #101828;
    border-radius: 8px;
    cursor: pointer;
    display: block !important;
    height: auto !important;
    overflow: hidden !important;
    padding: 0;
    position: relative !important;
    width: 100% !important;
}

.shm-media-tile--video,
.shm-activity-grid__button--video,
[data-shm-media-type="video"] {
    overflow: hidden;
    position: relative;
}

.shm-media-tile--video::before,
.shm-activity-grid__button--video::before,
[data-shm-media-type="video"]::before {
    background: rgba(0, 0, 0, 0.4);
    border-radius: inherit;
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.shm-media-tile--video::after,
.shm-activity-grid__button--video::after,
[data-shm-media-type="video"]::after {
    background-color: rgba(0, 0, 0, 0.55);
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='54'%20height='54'%20viewBox='0%200%2054%2054'%3E%3Ccircle%20cx='27'%20cy='27'%20r='27'%20fill='rgba(0,0,0,0.55)'/%3E%3Cpath%20d='M22%2017v20l16-10z'%20fill='white'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 54px 54px;
    border-radius: 50%;
    content: "";
    height: 54px;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    z-index: 2;
}

.shm-gallery .shm-media-tile > img,
.shm-gallery .shm-media-tile > video {
    display: block !important;
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: cover !important;
    width: 100% !important;
}

.shm-gallery .shm-media-tile.is-cover-selectable {
    outline: 3px solid #1b6f5c;
    outline-offset: -3px;
}

.shm-gallery .shm-media-tile.is-cover-disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.shm-media-remove {
    background: rgba(255, 255, 255, 0.94);
    border: 0;
    border-radius: 50%;
    color: #171717;
    cursor: pointer;
    font: inherit;
    font-size: 18px;
    height: 28px;
    line-height: 1;
    opacity: 0;
    padding: 0;
    pointer-events: none;
    position: absolute;
    right: 8px;
    top: 8px;
    transition: opacity 120ms ease;
    width: 28px;
    z-index: 3;
}

.shm-gallery .shm-media-remove,
.shm-media-remove {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #171717 !important;
    outline: 0 !important;
    text-decoration: none !important;
}

.shm-media-tile:hover .shm-media-remove,
.shm-media-remove:focus {
    opacity: 1;
    pointer-events: auto;
}

.shm-gallery .shm-media-remove:hover,
.shm-gallery .shm-media-remove:focus,
.shm-media-remove:hover,
.shm-media-remove:focus {
    background: #ffffff !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #171717 !important;
    outline: 0 !important;
}

.shm-sortable-placeholder {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    min-height: 120px;
    outline: 0 !important;
    visibility: hidden !important;
}

.shm-albums > .shm-sortable-placeholder {
    aspect-ratio: 4 / 3;
    min-height: 180px;
}

.shm-media-grid .shm-sortable-placeholder {
    aspect-ratio: 1;
    min-height: 0;
}

.shm-sortable-helper-clone,
.ui-sortable-helper,
.shm-gallery .shm-sortable-helper-clone,
.shm-gallery .ui-sortable-helper {
    box-shadow: none;
    box-sizing: border-box !important;
    outline: 0 !important;
}

.shm-gallery .shm-album.ui-sortable-helper,
.shm-gallery .shm-media-tile.ui-sortable-helper {
    pointer-events: none;
    z-index: 99999;
}

.shm-gallery .shm-album.ui-sortable-helper,
.shm-gallery .shm-sortable-helper-clone.shm-album,
.shm-sortable-helper-clone.shm-album,
.ui-sortable-helper.shm-album {
    background: transparent !important;
    border: 0 !important;
    display: block !important;
    outline: 0 !important;
    width: var(--shm-helper-width, auto);
}

.shm-gallery .shm-album.ui-sortable-helper .shm-album-card,
.shm-gallery .shm-album.ui-sortable-helper.is-open .shm-album-card,
.shm-gallery .shm-sortable-helper-clone .shm-album-card,
.shm-sortable-helper-clone .shm-album-card,
.ui-sortable-helper .shm-album-card {
    background: #ffffff !important;
    border: 1px solid #dfe4ed !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.18) !important;
    color: #667085 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    outline: 0 !important;
    width: 100% !important;
}

.shm-sortable-helper-clone .shm-album-card__cover,
.ui-sortable-helper .shm-album-card__cover {
    aspect-ratio: 4 / 3 !important;
    display: block !important;
    overflow: hidden !important;
    width: 100% !important;
}

.shm-sortable-helper-clone .shm-album-card__cover > img,
.ui-sortable-helper .shm-album-card__cover > img,
.shm-sortable-helper-clone .shm-album-card__cover > video,
.ui-sortable-helper .shm-album-card__cover > video {
    display: block !important;
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: cover !important;
    width: 100% !important;
}

.shm-sortable-helper-clone .shm-album-card__title,
.ui-sortable-helper .shm-album-card__title,
.shm-sortable-helper-clone .shm-album-card__count,
.ui-sortable-helper .shm-album-card__count {
    color: #667085 !important;
}

.shm-gallery .shm-media-tile.ui-sortable-helper,
.shm-gallery .shm-sortable-helper-clone.shm-media-tile,
.shm-sortable-helper-clone.shm-media-tile,
.ui-sortable-helper.shm-media-tile {
    aspect-ratio: 1 / 1 !important;
    background: #101828 !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.22) !important;
    overflow: hidden !important;
    outline: 0 !important;
}

.shm-sortable-helper-clone.shm-media-tile > img,
.shm-sortable-helper-clone.shm-media-tile > video,
.ui-sortable-helper.shm-media-tile > img,
.ui-sortable-helper.shm-media-tile > video {
    display: block !important;
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: cover !important;
    width: 100% !important;
}

.shm-lightbox[hidden] {
    display: none;
}

.shm-lightbox {
    align-items: center;
    background: rgba(8, 13, 22, 0.86);
    bottom: 0;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    left: 0;
    opacity: 0;
    padding: 24px;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    transition: opacity 180ms ease, visibility 180ms ease;
    visibility: hidden;
    z-index: 10000;
}

.shm-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.shm-lightbox-open {
    overflow: hidden;
}

.shm-lightbox__media {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 0;
    opacity: 0;
    transform: scale(0.965);
    transition: opacity 180ms ease, transform 180ms ease;
}

.shm-lightbox.is-open .shm-lightbox__media {
    opacity: 1;
    transform: scale(1);
}

.shm-lightbox.is-open .shm-lightbox__media.is-switching-out,
.shm-lightbox.is-open .shm-lightbox__media.is-switching-in {
    opacity: 0;
    transform: scale(0.985);
}

.shm-lightbox__media img,
.shm-lightbox__media video {
    display: block;
    max-height: calc(100vh - 80px);
    max-width: 100%;
}

.shm-lightbox__close,
.shm-lightbox__nav {
    background: rgba(255, 255, 255, 0.94);
    border: 0;
    border-radius: 50%;
    color: #171717;
    cursor: pointer;
    font: inherit;
    line-height: 1;
}

.shm-lightbox__close,
.shm-lightbox__nav {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #171717 !important;
    outline: 0 !important;
    text-decoration: none !important;
}

.shm-lightbox__close:hover,
.shm-lightbox__nav:hover,
.shm-lightbox__close:focus,
.shm-lightbox__nav:focus {
    background: #ffffff !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #171717 !important;
    outline: 0 !important;
}

.shm-lightbox__close {
    font-size: 30px;
    height: 42px;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 42px;
}

.shm-lightbox__nav {
    font-size: 44px;
    height: 48px;
    width: 48px;
}

.shm-lightbox__nav--prev {
    justify-self: start;
}

.shm-lightbox__nav--next {
    justify-self: end;
}

@media (prefers-reduced-motion: reduce) {
    .shm-lightbox,
    .shm-lightbox__media {
        transition: none !important;
        transform: none !important;
    }

    .shm-lightbox.is-open .shm-lightbox__media.is-switching-out,
    .shm-lightbox.is-open .shm-lightbox__media.is-switching-in {
        opacity: 1 !important;
        transform: none !important;
    }
}

.shm-activity-grid {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    margin: 0 0 12px;
}

.shm-activity-grid__item {
    aspect-ratio: 1;
    background: #101828;
    border-radius: 8px;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.shm-activity-grid__button {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: block;
    padding: 0;
}

.shm-activity-upload {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.shm-activity-upload__fields {
    display: none;
}

.shm-activity-upload__preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.shm-activity-upload__thumb {
    aspect-ratio: 1;
    background: #eef2f6;
    border-radius: 6px;
    display: inline-flex;
    height: 44px;
    object-fit: cover;
    width: 44px;
}

.shm-activity-upload__thumb--video {
    align-items: center;
    color: #344054;
    font-size: 11px;
    justify-content: center;
}

.user-galerie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.user-galerie-item {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.user-galerie-item a {
    position: absolute;
    inset: 0;
    display: block;
}

button.user-galerie-item {
    display: block;
    height: 0;
    width: 100%;
    padding: 0 0 100%;
    border: 0;
    border-radius: 0;
    color: #171717;
    cursor: pointer;
    background: #f5f7fb;
    box-shadow: none;
    appearance: none;
}

button.user-galerie-item span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-align: center;
}

.buddypress .buddypress-wrap .shm-gallery button,
.buddypress .buddypress-wrap .shm-activity-upload button,
.buddypress .buddypress-wrap .shm-activity-grid button,
.buddypress .buddypress-wrap .user-galerie-grid button,
.buddypress .buddypress-wrap .shm-lightbox button {
    font-family: inherit !important;
    text-transform: none !important;
    text-decoration: none !important;
    min-width: 0 !important;
    width: auto;
}

.buddypress .buddypress-wrap .shm-album-card,
.buddypress .buddypress-wrap .shm-media-tile,
.buddypress .buddypress-wrap .shm-activity-grid__button,
.buddypress .buddypress-wrap .user-galerie-item--upload {
    padding: 0 !important;
    line-height: normal !important;
    text-align: initial !important;
    min-width: 0 !important;
}

.buddypress .buddypress-wrap .shm-gallery .shm-album-card {
    background: #ffffff !important;
    border: 1px solid #dfe4ed !important;
    border-radius: 8px !important;
    color: inherit !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 0 !important;
    line-height: normal !important;
}

.buddypress .buddypress-wrap .shm-gallery .shm-media-tile,
.buddypress .buddypress-wrap .shm-activity-grid__button {
    background: transparent !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: inherit !important;
    padding: 0 !important;
    line-height: 0 !important;
}

.buddypress .buddypress-wrap .shm-lightbox__close,
.buddypress .buddypress-wrap .shm-lightbox__nav {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    color: #171717 !important;
    padding: 0 !important;
    text-align: center !important;
    line-height: 1 !important;
}

.buddypress .buddypress-wrap .shm-media-remove {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    color: #171717 !important;
    padding: 0 !important;
    line-height: 1 !important;
    width: 28px !important;
    height: 28px !important;
}

.buddypress .buddypress-wrap .user-galerie-item--upload {
    display: block !important;
    height: 0 !important;
    border: 0 !important;
    background: #eef2f6 !important;
    color: inherit !important;
    padding: 0 0 100% !important;
    width: 100% !important;
}

@media (max-width: 640px) {
    .shm-gallery__bar {
        align-items: stretch;
        flex-direction: column;
    }

    .shm-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shm-lightbox {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        padding: 12px;
    }

    .shm-lightbox__nav {
        font-size: 34px;
        height: 38px;
        width: 38px;
    }
}

/* Shadowhunters visual skin overrides */

.buddypress .buddypress-wrap .user-galerie-item--upload {
    display: block !important;
    height: 0 !important;
    border: solid 1px #ffffff94 !important;
    background: #eef2f617 !important;
    color: white !important;
    padding: 0 0 100% !important;
    width: 100% !important;
}

.shm-activity-grid__item {
    aspect-ratio: 1;
    background: #101828;
    border-radius: 0 !important;
    display: block;
    max-height: 180px !important;
    object-fit: cover;
    width: 100%;
}

.shm-activity-grid {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    margin: 0;
}

.shm-activity-grid--count-5,
.shm-activity-grid--count-6,
.shm-activity-grid--count-7,
.shm-activity-grid--count-8,
.shm-activity-grid--count-9,
.shm-activity-grid--count-10,
.shm-activity-grid--count-11,
.shm-activity-grid--count-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.shm-activity-grid--count-5 > .shm-activity-grid__button:nth-child(-n+2) {
    grid-column: span 6;
}

.shm-activity-grid--count-5 > .shm-activity-grid__button:nth-child(n+3) {
    grid-column: span 4;
}

.shm-activity-grid--count-6 > .shm-activity-grid__button,
.shm-activity-grid--count-9 > .shm-activity-grid__button {
    grid-column: span 4;
}

.shm-activity-grid--count-7 > .shm-activity-grid__button:nth-child(-n+3),
.shm-activity-grid--count-10 > .shm-activity-grid__button:nth-child(-n+6),
.shm-activity-grid--count-11 > .shm-activity-grid__button:nth-child(-n+3) {
    grid-column: span 4;
}

.shm-activity-grid--count-7 > .shm-activity-grid__button:nth-child(n+4),
.shm-activity-grid--count-8 > .shm-activity-grid__button,
.shm-activity-grid--count-10 > .shm-activity-grid__button:nth-child(n+7),
.shm-activity-grid--count-11 > .shm-activity-grid__button:nth-child(n+4),
.shm-activity-grid--count-12 > .shm-activity-grid__button {
    grid-column: span 3;
}

@media (max-width: 640px) {
    .shm-activity-grid--count-5,
    .shm-activity-grid--count-6,
    .shm-activity-grid--count-7,
    .shm-activity-grid--count-8,
    .shm-activity-grid--count-9,
    .shm-activity-grid--count-10,
    .shm-activity-grid--count-11,
    .shm-activity-grid--count-12 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shm-activity-grid--count-5 > .shm-activity-grid__button,
    .shm-activity-grid--count-6 > .shm-activity-grid__button,
    .shm-activity-grid--count-7 > .shm-activity-grid__button,
    .shm-activity-grid--count-8 > .shm-activity-grid__button,
    .shm-activity-grid--count-9 > .shm-activity-grid__button,
    .shm-activity-grid--count-10 > .shm-activity-grid__button,
    .shm-activity-grid--count-11 > .shm-activity-grid__button,
    .shm-activity-grid--count-12 > .shm-activity-grid__button {
        grid-column: span 1;
    }
}

.shm-gallery {
    box-sizing: border-box;
    color: #ffffff;
    font-family: inherit;
    padding-top: 20px;
}

.buddypress .buddypress-wrap .shm-gallery .shm-album-card {
    background: #ffffff30 !important;
    border: none !important;
    border-radius: 8px !important;
    color: inherit !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 0 !important;
    line-height: normal !important;
}

.shm-gallery .shm-album-card__title {
    display: -webkit-box;
    font-size: 15px;
    font-weight: 300 !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1;
    overflow: hidden;
    overflow-wrap: anywhere;
    letter-spacing: 1px;
}

.shm-gallery .shm-album-card__count {
    color: #cecece;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shm-gallery .shm-media-grid {
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
}

.shm-gallery .shm-button,
.shm-activity-upload .shm-button {
    background: #ffffff30 !important;
    border-color: #ffffff57 !important;
    box-shadow: none !important;
    color: white !important;
    letter-spacing: 1px;
    font-weight: 300 !important;
    border-radius: 5px !important;
}

.shm-album__panel {
    background: #ffffff00;
    border: none;
    border-top: 0;
    border-radius: 8px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: 0;
    padding: 0;
}

.shm-gallery .shm-button:hover,
.shm-gallery .shm-button:focus,
.shm-activity-upload .shm-button:hover,
.shm-activity-upload .shm-button:focus {
    background: #ffffff40 !important;
    border-color: #ffffff57 !important;
    box-shadow: none !important;
    color: #660c0c !important;
    outline: 0 !important;
}

.shm-gallery .shm-button--danger {
    background: #69101045 !important;
    border-color: #ffffff57 !important;
    color: #d3d3d3 !important;
}

.shm-rename-control.is-active {
    opacity: 1;
    transform: translateX(0);
    width: 180px;
    border: none !important;
    border-radius: 8px;
}

.shm-activity-text {
    padding-top: 15px;
}

.shm-gallery .shm-album-card__cover {
    aspect-ratio: 4 / 3 !important;
    background: #40383821;
    display: block !important;
    flex: 0 0 auto !important;
    height: auto !important;
    overflow: hidden !important;
    width: 100% !important;
}

.shm-gallery .shm-album-card__plus {
    align-items: center;
    background: #ffffff00;
    border: 1px solid #e7e9ec47;
    border-radius: 50%;
    color: #ffffff5c;
    display: inline-flex;
    font-size: 32px;
    height: 54px;
    justify-content: center;
    line-height: 1;
    width: 54px;
}

.shm-gallery .shm-album-card__cover--create {
    align-items: center !important;
    display: flex !important;
    justify-content: center !important;
}

.shm-gallery .shm-album-card__placeholder {
    background: #4038381c !important;
}

.shm-gallery .shm-media-tile.is-cover-selectable {
    outline: 4px solid #ffffff80;
    outline-offset: -4px;
}

.shm-cover-mode-hint {
    background: #ffffff30;
    border: 1px solid #ffffff57;
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    margin-bottom: 12px;
    padding: 8px 10px;
}

.shm-gallery .shm-album.ui-sortable-helper,
.shm-gallery .shm-sortable-helper-clone.shm-album,
.shm-sortable-helper-clone.shm-album,
.ui-sortable-helper.shm-album {
    background: transparent !important;
    border: 0 !important;
    display: block !important;
    outline: 0 !important;
    width: var(--shm-helper-width, auto) !important;
    height: var(--shm-helper-height, auto) !important;
    min-width: var(--shm-helper-width, auto) !important;
    min-height: var(--shm-helper-height, auto) !important;
}

.shm-gallery .shm-album.ui-sortable-helper .shm-album-card,
.shm-gallery .shm-album.ui-sortable-helper.is-open .shm-album-card,
.shm-gallery .shm-sortable-helper-clone .shm-album-card,
.shm-sortable-helper-clone .shm-album-card,
.ui-sortable-helper .shm-album-card {
    background: #8d8282 !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.18) !important;
    color: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    outline: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.shm-gallery .shm-album.ui-sortable-helper .shm-album-card,
.shm-gallery .shm-sortable-helper-clone.shm-album .shm-album-card,
.shm-sortable-helper-clone.shm-album .shm-album-card,
.ui-sortable-helper.shm-album .shm-album-card {
    background: #8d8282 !important;
    border: 0 !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 100% !important;
}

.shm-gallery .shm-album.ui-sortable-helper .shm-album-card__cover,
.shm-gallery .shm-sortable-helper-clone.shm-album .shm-album-card__cover,
.shm-sortable-helper-clone.shm-album .shm-album-card__cover,
.ui-sortable-helper.shm-album .shm-album-card__cover {
    aspect-ratio: 4 / 3 !important;
    background: #40383821 !important;
    display: block !important;
    flex: 0 0 auto !important;
    height: auto !important;
    overflow: hidden !important;
    width: 100% !important;
}

.shm-gallery .shm-album.ui-sortable-helper .shm-album-card__cover > img,
.shm-gallery .shm-album.ui-sortable-helper .shm-album-card__cover > video,
.shm-gallery .shm-sortable-helper-clone.shm-album .shm-album-card__cover > img,
.shm-gallery .shm-sortable-helper-clone.shm-album .shm-album-card__cover > video,
.shm-sortable-helper-clone.shm-album .shm-album-card__cover > img,
.shm-sortable-helper-clone.shm-album .shm-album-card__cover > video,
.ui-sortable-helper.shm-album .shm-album-card__cover > img,
.ui-sortable-helper.shm-album .shm-album-card__cover > video {
    display: block !important;
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: cover !important;
    width: 100% !important;
}

.shm-gallery .shm-album.ui-sortable-helper .shm-album-card__meta,
.shm-gallery .shm-sortable-helper-clone.shm-album .shm-album-card__meta,
.shm-sortable-helper-clone.shm-album .shm-album-card__meta,
.ui-sortable-helper.shm-album .shm-album-card__meta {
    display: grid !important;
    flex: 0 0 60px !important;
    gap: 3px !important;
    height: 60px !important;
    max-height: 60px !important;
    min-height: 60px !important;
    overflow: hidden !important;
    padding: 12px !important;
}

.shm-gallery .shm-album.ui-sortable-helper .shm-album-card__title,
.shm-gallery .shm-sortable-helper-clone.shm-album .shm-album-card__title,
.shm-sortable-helper-clone.shm-album .shm-album-card__title,
.ui-sortable-helper.shm-album .shm-album-card__title {
    color: #ffffff !important;
    display: -webkit-box !important;
    font-size: 15px !important;
    font-weight: 300 !important;
    letter-spacing: 1px !important;
    line-height: 1 !important;
    overflow: hidden !important;
    overflow-wrap: anywhere !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}

.shm-gallery .shm-album.ui-sortable-helper .shm-album-card__count,
.shm-gallery .shm-sortable-helper-clone.shm-album .shm-album-card__count,
.shm-sortable-helper-clone.shm-album .shm-album-card__count,
.ui-sortable-helper.shm-album .shm-album-card__count {
    color: #cecece !important;
    display: block !important;
    font-size: 11px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.user-galerie-item--upload.is-loading,
.user-galerie-item--upload:disabled {
    cursor: wait !important;
    opacity: 0.75;
    pointer-events: none;
}

.shm-gallery .shm-media-grid.shm-media-grid--profile-galerie {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 640px) {
    .shm-gallery .shm-media-grid.shm-media-grid--profile-galerie {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

.buddypress .buddypress-wrap .user-galerie-grid {
    border-radius: 5px !important;
    overflow: hidden !important;
}

.shm-activity-grid__button {
    overflow: hidden;
    position: relative;
}

.shm-activity-grid__more {
    align-items: center;
    background: rgb(0 0 0 / 83%);
    color: #ffffffc7;
    display: flex;
    font-size: 28px;
    font-weight: 300;
    inset: 0;
    justify-content: center;
    letter-spacing: 1px;
    position: absolute;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.shm-activity-text[data-shm-readmore] {
    position: relative;
}

.shm-activity-text[data-shm-readmore] .shm-activity-text__preview {
    font-size: 12px;
    overflow: visible;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 15px;
}

.shm-button.is-loading,
.shm-button.loading {
    cursor: wait !important;
    opacity: 0.75;
    pointer-events: none;
}

.shm-button[data-shm-add-media].is-loading,
.shm-button[data-shm-add-media].loading {
    color: #4b0a0a !important;
}

.shm-activity-text[data-shm-readmore].is-expanded .shm-activity-text__content {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
}

.shm-activity-text[data-shm-readmore].is-animating .shm-activity-text__content {
    will-change: opacity;
}

.shm-activity-readmore-wrap {
    display: inline-block;
    font-size: 14px;
    margin-bottom: 20px;
    margin-left: 1em;
    margin-top: 8px;
    white-space: nowrap;
}

.buddypress .buddypress-wrap .shm-activity-readmore-link,
.shm-activity-readmore-link {
    background: #fff;
    border-color: #cbd5e0;
    border-radius: 3px;
    border-style: solid;
    border-width: 1px;
    color: #718096;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    font-weight: 400;
    line-height: 1;
    min-width: auto;
    outline: none;
    padding: 0.75em 1em;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    width: auto;
}

.buddypress .buddypress-wrap .shm-activity-readmore-link:hover,
.buddypress .buddypress-wrap .shm-activity-readmore-link:focus,
.shm-activity-readmore-link:hover,
.shm-activity-readmore-link:focus {
    background: #edf2f7;
    border-color: #8ba1ba;
    color: #4a5568;
    cursor: pointer;
    outline: none;
    text-decoration: none;
}

.buddypress .buddypress-wrap .shm-activity-readmore-link.loading,
.buddypress-wrap .shm-activity-readmore-link.loading,
.shm-activity-readmore-link.loading {
    animation: loader-pulsate 0.5s infinite ease-in-out alternate;
    border-color: #aaa;
}

.shm-activity-readmore-link--inline,
.buddypress .buddypress-wrap .shm-activity-readmore-link--inline {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #7d0000 !important;
    cursor: pointer;
    display: inline !important;
    font: inherit !important;
    line-height: inherit !important;
    margin: 0 0 0 6px !important;
    min-width: 0 !important;
    padding: 0 !important;
    text-align: inherit !important;
    text-decoration: none !important;
    width: auto !important;
}

.shm-activity-readmore-link--inline:hover,
.shm-activity-readmore-link--inline:focus,
.buddypress .buddypress-wrap .shm-activity-readmore-link--inline:hover,
.buddypress .buddypress-wrap .shm-activity-readmore-link--inline:focus {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #a00000 !important;
    outline: none;
    text-decoration: none !important;
}

@keyframes loader-pulsate {
    from {
        border-color: #aaa;
        box-shadow: 0 0 0 rgba(170, 170, 170, 0);
    }

    to {
        border-color: #718096;
        box-shadow: 0 0 6px rgba(113, 128, 150, 0.45);
    }
}

.buddypress .buddypress-wrap .shm-activity-grid .shm-activity-grid__button {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
    cursor: pointer !important;
    display: block !important;
    line-height: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    outline: 0 !important;
    padding: 0 !important;
    text-align: initial !important;
    text-decoration: none !important;
    width: 100% !important;
}

.buddypress .buddypress-wrap .shm-activity-grid .shm-activity-grid__button:hover,
.buddypress .buddypress-wrap .shm-activity-grid .shm-activity-grid__button:focus {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
    outline: 0 !important;
    text-decoration: none !important;
}

.buddypress .buddypress-wrap .shm-activity-grid .shm-activity-grid__button > img,
.buddypress .buddypress-wrap .shm-activity-grid .shm-activity-grid__button > video,
.buddypress .buddypress-wrap .shm-activity-grid .shm-activity-grid__item {
    border-radius: 0 !important;
}

.buddypress .buddypress-wrap .shm-gallery .shm-media-tile,
.buddypress .buddypress-wrap .shm-gallery .shm-media-tile > img,
.buddypress .buddypress-wrap .shm-gallery .shm-media-tile > video {
    border-radius: 8px !important;
}

.buddypress .buddypress-wrap .shm-activity-grid .shm-activity-grid__button {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
    cursor: pointer !important;
    display: block !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    height: auto !important;
    line-height: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    outline: 0 !important;
    padding: 0 !important;
    text-align: initial !important;
    text-decoration: none !important;
    text-transform: none !important;
    width: 100% !important;
}

.buddypress .buddypress-wrap .shm-activity-grid .shm-activity-grid__button:hover,
.buddypress .buddypress-wrap .shm-activity-grid .shm-activity-grid__button:focus {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
    outline: 0 !important;
    text-decoration: none !important;
}

.buddypress .buddypress-wrap .shm-gallery .shm-media-tile,
.buddypress .buddypress-wrap .shm-gallery button.shm-media-tile {
    background: #101828 !important;
    border: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
    cursor: pointer !important;
    display: block !important;
    line-height: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    outline: 0 !important;
    padding: 0 !important;
    text-align: initial !important;
    text-decoration: none !important;
    text-transform: none !important;
    width: 100% !important;
}

.buddypress .buddypress-wrap .shm-gallery .shm-media-tile:hover,
.buddypress .buddypress-wrap .shm-gallery .shm-media-tile:focus,
.buddypress .buddypress-wrap .shm-gallery button.shm-media-tile:hover,
.buddypress .buddypress-wrap .shm-gallery button.shm-media-tile:focus {
    background: #101828 !important;
    border: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
    outline: 0 !important;
}

.buddypress .buddypress-wrap .shm-gallery .shm-album-card,
.buddypress .buddypress-wrap .shm-gallery button.shm-album-card {
    box-shadow: none !important;
    font-family: inherit !important;
    text-decoration: none !important;
    text-transform: none !important;
}

.buddypress .buddypress-wrap .shm-lightbox__close,
.buddypress .buddypress-wrap .shm-lightbox__nav {
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    line-height: 1 !important;
    min-width: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    text-decoration: none !important;
}

.buddypress .buddypress-wrap .activity-content .shm-activity-grid > button.shm-activity-grid__button,
.buddypress .buddypress-wrap .shm-activity-grid > button.shm-activity-grid__button {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
    cursor: pointer !important;
    display: block !important;
    font: inherit !important;
    line-height: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    outline: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: relative !important;
    text-align: initial !important;
    text-decoration: none !important;
    transition: none !important;
    width: 100% !important;
}

.buddypress .buddypress-wrap .activity-content .shm-activity-grid > button.shm-activity-grid__button > img,
.buddypress .buddypress-wrap .activity-content .shm-activity-grid > button.shm-activity-grid__button > video,
.buddypress .buddypress-wrap .shm-activity-grid > button.shm-activity-grid__button > img,
.buddypress .buddypress-wrap .shm-activity-grid > button.shm-activity-grid__button > video {
    display: block !important;
    height: 100% !important;
    object-fit: cover !important;
    width: 100% !important;
}
