/* app.css - consolidated site styles */

@font-face {
    font-family: 'Google Sans';
    src: url('../fonts/google-sans/GoogleSans-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Google Sans';
    src: url('../fonts/google-sans/GoogleSans-500.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Google Sans';
    src: url('../fonts/google-sans/GoogleSans-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}



/* SF Pro font faces */

@font-face {
    font-family: 'SF Pro Display Local';
    src: url('../fonts/SF-Pro-Display-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Final permissions pages app styling */
body.page-user-permissions *,
body.page-contributors * {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body.page-user-permissions,
body.page-contributors {
    min-height: 100vh;
    margin: 0;
    background: #f1f1f1;
    color: #05070a;
    font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.page-user-permissions a,
body.page-contributors a,
body.page-user-permissions button,
body.page-contributors button {
    font-family: inherit;
}

body.page-user-permissions .permissions-shell,
body.page-contributors .permissions-shell {
    width: min(92vw, 720px);
    margin: 0 auto;
    padding: 28px 0 40px;
}

body.page-contributors .album-permissions-shell {
    width: min(92vw, 980px);
}

body.page-user-permissions .permissions-header,
body.page-contributors .permissions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

body.page-user-permissions .permissions-title-wrap,
body.page-contributors .permissions-title-wrap {
    min-width: 0;
    flex: 1;
}

body.page-user-permissions .permissions-title,
body.page-contributors .permissions-title {
    margin: 0;
    color: #05070a;
    font-size: 26px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}

body.page-user-permissions .permissions-subtitle,
body.page-contributors .permissions-subtitle {
    margin: 6px 0 0;
    color: rgba(103, 109, 124, 0.94);
    font-size: 13px;
    font-weight: 800;
}

body.page-user-permissions .permissions-home,
body.page-contributors .permissions-home {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(42, 50, 66, 0.1);
    text-decoration: none;
}

body.page-user-permissions .permissions-home img,
body.page-contributors .permissions-home img {
    width: 17px;
    height: 17px;
    object-fit: contain;
    display: block;
}

body.page-user-permissions .permissions-layout {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}

body.page-user-permissions .permissions-nav,
body.page-user-permissions .permissions-panel,
body.page-contributors .permissions-panel {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(42, 50, 66, 0.1);
}

body.page-user-permissions .permissions-nav {
    position: relative;
    overflow: hidden;
    padding: 8px;
}

body.page-user-permissions .permissions-link {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 11px;
    border-radius: 12px;
    background: transparent;
    color: rgba(103, 109, 124, 0.94);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

body.page-user-permissions .permissions-link.active {
    background: rgba(118, 48, 255, 0.14);
    color: #05070a;
}

body.page-user-permissions .permissions-link.albums {
    color: #d63384;
}

body.page-user-permissions .permissions-link.permissions {
    color: #2780ff;
}

body.page-user-permissions .permissions-link.logout {
    color: #d83737;
}

body.page-user-permissions .permissions-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #7630ff;
}

body.page-user-permissions .permissions-link.albums .permissions-dot {
    background: #d63384;
}

body.page-user-permissions .permissions-link.permissions .permissions-dot {
    background: #2780ff;
}

body.page-user-permissions .permissions-link.logout .permissions-dot {
    background: #d83737;
}

body.page-user-permissions .permissions-panel,
body.page-contributors .permissions-panel {
    padding: 18px;
}

body.page-contributors .album-permissions-panel {
    padding: 20px;
}

body.page-user-permissions .permissions-panel-header,
body.page-contributors .permissions-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

body.page-user-permissions .panel-title,
body.page-contributors .panel-title {
    margin: 0 0 8px;
    color: #05070a;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.15;
}

body.page-user-permissions .panel-copy,
body.page-contributors .panel-copy {
    margin: 0;
    color: rgba(103, 109, 124, 0.94);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

body.page-user-permissions .permission-stat,
body.page-contributors .permission-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 0;
    padding: 12px;
    border-radius: 13px;
    background: rgba(216, 222, 232, 0.55);
    color: rgba(103, 109, 124, 0.94);
    font-size: 13px;
    font-weight: 800;
}

body.page-contributors .permission-stat.compact {
    min-width: 110px;
    margin: 0;
}

body.page-user-permissions .permission-stat strong,
body.page-contributors .permission-stat strong {
    color: #05070a;
    font-size: 14px;
}

body.page-user-permissions .permission-success,
body.page-contributors .permission-success {
    margin: 14px 0;
    padding: 11px 12px;
    border-radius: 13px;
    background: rgba(53, 208, 127, 0.14);
    color: #168545;
    font-size: 13px;
    font-weight: 800;
}

body.page-user-permissions .permission-form,
body.page-contributors .album-permissions-form {
    margin: 0;
}

body.page-user-permissions .permission-user-list,
body.page-contributors .album-permission-list {
    display: grid;
    gap: 10px;
}

body.page-user-permissions .permission-user-row,
body.page-contributors .permission-album-card,
body.page-contributors .permission-subpanel,
body.page-contributors .permission-empty {
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(201, 207, 218, 0.75);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: none;
}

body.page-user-permissions .permission-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
}

body.page-user-permissions .permission-user-main,
body.page-contributors .permission-mini-user {
    min-width: 0;
}

body.page-user-permissions .permission-user-main strong,
body.page-contributors .album-title,
body.page-contributors .user-name {
    display: block;
    color: #05070a;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
}

body.page-user-permissions .permission-user-main span,
body.page-user-permissions .permission-user-main small,
body.page-contributors .album-info,
body.page-contributors .user-email,
body.page-contributors .permissions {
    display: block;
    margin-top: 4px;
    color: rgba(103, 109, 124, 0.94);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

body.page-user-permissions .permission-user-row input[type="checkbox"],
body.page-contributors input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #d63384;
    flex: 0 0 auto;
}

body.page-user-permissions .permission-actions,
body.page-contributors .contributors-save-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

body.page-user-permissions .permission-primary-button,
body.page-contributors .permission-primary-button,
body.page-contributors .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 0;
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    background: #111014;
    color: #fff;
    box-shadow: 0 10px 22px rgba(42, 50, 66, 0.14);
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

body.page-contributors .btn-secondary {
    background: rgba(216, 222, 232, 0.65);
    color: #05070a;
    box-shadow: none;
}

body.page-contributors .btn-apply-all {
    background: #d63384;
    color: #fff;
}

body.page-contributors .permission-subpanel {
    margin-bottom: 12px;
    background: rgba(216, 222, 232, 0.32);
}

body.page-contributors .permission-subpanel h3,
body.page-contributors .permission-empty h3 {
    margin: 0 0 6px;
    color: #05070a;
    font-size: 15px;
    font-weight: 900;
}

body.page-contributors .permission-subpanel p,
body.page-contributors .permission-empty p {
    margin: 0 0 12px;
    color: rgba(103, 109, 124, 0.94);
    font-size: 13px;
    font-weight: 700;
}

body.page-contributors .permission-user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px;
    margin: 12px 0 0;
}

body.page-contributors .permission-mini-user {
    display: block;
    margin: 0;
    padding: 11px;
    border: 1px solid rgba(201, 207, 218, 0.75);
    border-radius: 13px;
    background: #fff;
}

body.page-contributors .permission-mini-user .permissions {
    display: flex;
    align-items: center;
    gap: 7px;
}

body.page-contributors .permission-button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    text-align: left;
}

body.page-contributors .permission-album-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(201, 207, 218, 0.75);
}

body.page-contributors .album-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 640px) {
    body.page-user-permissions .permissions-shell,
    body.page-contributors .permissions-shell,
    body.page-contributors .album-permissions-shell {
        width: min(92vw, 430px);
        padding-top: 20px;
    }

    body.page-user-permissions .permissions-layout {
        grid-template-columns: 1fr;
    }

    body.page-user-permissions .permissions-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 8px;
        scrollbar-width: none;
    }

    body.page-user-permissions .permissions-nav::-webkit-scrollbar {
        display: none;
    }

    body.page-user-permissions .permissions-link {
        flex: 0 0 auto;
        min-height: 40px;
    }

    body.page-user-permissions .permissions-title,
    body.page-contributors .permissions-title {
        font-size: 24px;
    }

    body.page-contributors .permissions-panel-header,
    body.page-contributors .permission-album-header {
        align-items: stretch;
        flex-direction: column;
    }

    body.page-contributors .permission-stat.compact {
        width: 100%;
    }

    body.page-contributors .permission-user-grid {
        grid-template-columns: 1fr;
    }
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-upload-complete .upload-progress-panel > :not(.upload-show-gallery) {
    transform: none;
    -webkit-transform: none;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-upload-complete .upload-progress-spinner {
    width: 42px;
    height: 42px;
    margin-bottom: 26px;
    transform: none;
    -webkit-transform: none;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-upload-complete .upload-progress-title {
    margin-top: 0;
}

body.page-gallery #exampleModal.add-gallery-media-modal .modal-content,
body.page-gallery #exampleModal.add-gallery-media-modal form,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-preview-ready,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-uploading,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-processing,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-upload-complete,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-failed-review,
body.page-gallery #exampleModal.add-gallery-media-modal .upload-selection-preview,
body.page-gallery #exampleModal.add-gallery-media-modal .upload-selection-main,
body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-panel,
body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-panel {
    background: #fff;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-summary {
    gap: 10px;
    transform: translateY(-22px);
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-card {
    min-width: 62px;
    gap: 6px;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-icon,
body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-icon img {
    width: 58px;
    height: 58px;
    max-width: 58px;
    max-height: 58px;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-count {
    margin-top: 0;
    font-size: 14px;
    line-height: 1.15;
}


@media screen and (max-width: 767px), (hover: none) and (pointer: coarse) {
    body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-summary {
        gap: 8px;
        transform: translateY(-18px);
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-icon,
    body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-icon img {
        width: 50px;
        height: 50px;
        max-width: 50px;
        max-height: 50px;
    }

body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-count {
    margin-top: 0;
    font-size: 13px;
}
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-upload-complete .upload-progress-panel > :not(.upload-show-gallery) {
    transform: none;
    -webkit-transform: none;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-upload-complete .upload-progress-spinner {
    width: 42px;
    height: 42px;
    margin-bottom: 26px;
    transform: none;
    -webkit-transform: none;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-upload-complete .upload-progress-title {
    margin-top: 0;
}

@font-face {
    font-family: 'SF Pro Display Local';
    src: url('../fonts/SF-Pro-Display-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display Local';
    src: url('../fonts/SF-Pro-Display-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display Local';
    src: url('../fonts/SF-Pro-Display-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


}


/* Modal helpers */

* {
    -webkit-tap-highlight-color: transparent;
}

a,
button,
input,
label,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #eee;
}

.height-100 {
    height: 100vh;
}

.modal-header > .modal-title {
    font-size: 14px;
}

.modal-body > .body-desc {
    font-size: 14px;
}

.modal-footer {
    padding: 10px 5px;
}

.modal {
    padding-bottom: 10px;
}

.modal-footer > .footer-title {
    font-size: 12px;
}

#loadFile {
    display: none;
}

.modal-header > .modal-title,
.modal-body > .body-desc,
.modal-body > .photo-input,
.modal-footer > .footer-title {
    text-align: center;
}


/* Gallery page styles */

body.page-gallery * {
    -webkit-tap-highlight-color: transparent;
}

html {
    font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.page-gallery a,
body.page-gallery button,
body.page-gallery input,
body.page-gallery label,
body.page-gallery [role="button"] {
    -webkit-tap-highlight-color: transparent;
}


body.page-gallery .btn-secondary,
body.page-gallery .btn {
    transition: transform 0.2s ease;
}

body.page-gallery .btn:active,
body.page-gallery .btn-secondary:active {
    transform: scale(0.95);
}

body.page-gallery .btn-secondary {
    display: inline-block; 
    color: #FFF;
    text-align: center;
    text-decoration: none; 
    vertical-align: middle;
    cursor: pointer;
    background-color: #6c757d;
    border: 1px solid #6c757d;
    padding: 7px 15px;
    font-size: 14px;
    border-radius: 5px;
    margin-right: 5px;
}

body.page-gallery .btn-secondary:hover {
    color: #FFF;
    text-decoration: none;
    background-color: #6c757d;
    border: 1px solid #6c757d;
}

body.page-gallery .btn-secondary-check:focus + .btn,
body.page-gallery .btn-secondary:focus {
    outline: 0;
    box-shadow: none;
}

body.page-gallery .btn-secondary-check:checked + .btn,
body.page-gallery .btn-secondary-check:active + .btn,
body.page-gallery .btn-secondary:active,
body.page-gallery .btn secondary.active {
    box-shadow: none;
}

body.page-gallery .btn-secondary-check:checked + .btn:focus,
body.page-gallery .btn-secondary-check:active + .btn:focus,
body.page-gallery .btn-secondary:active:focus,
body.page-gallery .btn-secondary.active:focus {
    box-shadow: none;
}

body.page-gallery .btn-secondary:disabled,
body.page-gallery .btn-secondary.disabled,
body.page-gallery fieldset:disabled .btn {
    pointer-events: none;
    opacity: var(--btn-disabled-opacity);
    box-shadow: none;
}

body.page-gallery .upload-btn {
    transition: transform 0.2s ease;
    border: none;
    background-color: #36454f;
    color: white;
    padding: 7px 10px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    margin: 0 auto;
    text-decoration: none;
}

body.page-gallery .upload-btn:active {
    transform: scale(0.95);
}

body.page-gallery .upload-btn:hover {
    text-decoration: none;
}

body.page-gallery #file-upload {
    display: none;
}

body.page-gallery .upload-icon {
    margin-right: 15px;
}

body.page-gallery .btn-upload {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

body.page-gallery .btn-upload:hover {
    text-decoration: none;
}

body.page-gallery .btn {
    display: inline-block; 
    color: #FFF;
    text-align: center;
    text-decoration: none; 
    vertical-align: middle;
    cursor: pointer;
    background-color: #724dd1;
    border: 1px solid #724dd1;
    padding: 7px 15px;
    font-size: 14px;
    border-radius: 5px;
}

body.page-gallery .btn:hover {
    color: #FFF;
    text-decoration: none;
}

body.page-gallery .btn-check:focus + .btn,
body.page-gallery .btn:focus {
    outline: 0;
    box-shadow: none;
}

body.page-gallery .btn-check:checked + .btn,
body.page-gallery .btn-check:active + .btn,
body.page-gallery .btn:active,
body.page-gallery .btn.active {
    box-shadow: none;
}

body.page-gallery .btn-check:checked + .btn:focus,
body.page-gallery .btn-check:active + .btn:focus,
body.page-gallery .btn:active:focus,
body.page-gallery .btn.active:focus {
    box-shadow: none;
}

body.page-gallery .btn:disabled,
body.page-gallery .btn.disabled,
body.page-gallery fieldset:disabled .btn {
    pointer-events: none;
    opacity: var(--btn-disabled-opacity);
    box-shadow: none;
}

body.page-gallery .modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #17161c;
    background-clip: padding-box;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    outline: 0;
    color: rgba(255, 255, 255, 0.72);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
}

body.page-gallery .modal-backdrop.show {
    opacity: 0.72;
}

body.page-gallery #exampleModal .modal-content {
    background: #17161c;
    color: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
}

body.page-gallery #exampleModal .modal-header,
body.page-gallery #exampleModal .modal-footer {
    border-color: rgba(255, 255, 255, 0.08);
}

body.page-gallery #exampleModal .modal-title {
    color: #fff;
}

body.page-gallery #exampleModal #upload-box {
    background: #1f1c24;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.5);
}

body.page-gallery #exampleModal #upload-box:hover,
body.page-gallery #exampleModal #upload-box.dragover {
    background: #232029;
    border-color: rgba(255, 255, 255, 0.42);
}

body.page-gallery #exampleModal #dd {
    color: rgba(255, 255, 255, 0.78);
}

body.page-gallery #exampleModal #su,
body.page-gallery #exampleModal #progressStatus {
    color: rgba(255, 255, 255, 0.48);
}

body.page-gallery .modal-header,
body.page-gallery .modal-footer {
    border-color: rgba(255, 255, 255, 0.08);
}

body.page-gallery .modal-title {
    color: #fff;
}

body.page-gallery .btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.72;
}


body.page-gallery .upload-success-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    color: green;
    z-index: 9999;
}

body.page-gallery a {
    text-decoration: none;
}

body.page-gallery .header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 28px;
    margin: -4px auto 30px;
    font-size: 16px;
    padding: 0;
    color: rgba(255, 255, 255, 0.74);
    box-sizing: border-box;
}

body.page-gallery .header-wrapper a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(5, 7, 10, 0.72);
    text-decoration: none;
    color: #fff;
    box-shadow: 0 8px 18px rgba(42, 50, 66, 0.22);
}

body.page-gallery .header-wrapper a i {
    font-size: 15px;
}

body.page-gallery .back {
    display: flex;
}

body.page-gallery .gallery-breadcrumb {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(103, 109, 124, 0.9);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

body.page-gallery .gallery-breadcrumb-root,
body.page-gallery .gallery-breadcrumb-arrow {
    color: rgba(103, 109, 124, 0.9);
}

body.page-gallery .gallery-breadcrumb-arrow {
    font-size: 20px;
    line-height: 0.8;
    transform: translateY(-1px);
}

body.page-gallery .gallery-breadcrumb-current {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #2fbf71;
}

body.page-gallery .gallery-breadcrumb:hover,
body.page-gallery .gallery-breadcrumb:focus,
body.page-gallery .gallery-breadcrumb:active {
    color: rgba(103, 109, 124, 0.9);
    text-decoration: none;
    outline: none;
}

body.page-gallery .add {
    display: flex;
}

body.page-gallery .contributors {
    display: flex;
}

body.page-gallery .album-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.page-gallery .gallery-user-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-self: flex-end;
    z-index: 30;
}

body.page-gallery .gallery-user-trigger {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: transparent;
    color: #05070a;
    font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body.page-gallery .gallery-user-trigger:focus,
body.page-gallery .gallery-user-trigger:focus-visible,
body.page-gallery .gallery-user-trigger:active {
    outline: none;
}

body.page-gallery {
    text-align: center;
    font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f1f1f1;
    color: #fff;
    min-height: 100vh;
    transition: background-color 0.35s ease, color 0.35s ease;
}

body.page-gallery h1 {
    margin: 0;
    padding-top: 2px;
    text-align: left;
    font-size: 18px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: none;
    color: #fff;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 4px;
    position: relative;
    top: -9px;
}

body.page-gallery .album-title-divider {
    display: none;
}

body.page-gallery .album-summary {
    width: min(calc(100% - 24px), 860px);
    margin: 20px auto 0;
    padding: 0 8px;
    border-radius: 0;
    background: transparent;
    text-align: left;
    box-sizing: border-box;
}

body.page-gallery .album-meta-line {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    white-space: nowrap;
}

body.page-gallery .album-meta-line span {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

body.page-gallery .album-extra-uploaders {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 5px;
    min-width: 0;
}

body.page-gallery .album-meta-line .album-byline .album-extra-uploaders .album-uploader-plus {
    color: rgba(255, 255, 255, 0.36);
    font-weight: 800;
}

body.page-gallery .album-meta-line .album-byline .album-extra-uploaders .album-uploader-names {
    color: rgba(255, 255, 255, 0.34);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-gallery .album-meta-line span.album-uploader-names {
    color: rgba(255, 255, 255, 0.34);
}

body.page-gallery .album-meta-line > span + span::before {
    content: "";
    width: 4px;
    height: 4px;
    margin-right: 6px;
    border-radius: 50%;
    background: #68dfcc;
}

body.page-gallery .album-meta-line > span:nth-child(2)::before {
    background: #4f95ff;
}

body.page-gallery .album-meta-line > span:nth-child(3)::before {
    background: #a375ff;
}

body.page-gallery .album-meta-line .media-count-part + .media-count-part::before {
    content: "";
    width: 4px;
    height: 4px;
    margin: 0 6px;
    border-radius: 50%;
    background: #61d394;
}

body.page-gallery .album-creator-line {
    margin-top: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

body.page-gallery .image-border {
    background: #F0F0F0;
    border: 4px solid #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

body.page-gallery .selected-media-list {
    margin-top: 14px;
    text-align: left;
}

body.page-gallery .selected-media-summary {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

body.page-gallery .selected-media-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.7);
}

body.page-gallery .selected-media-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

body.page-gallery .selected-media-thumb {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #1f1c24;
    flex-shrink: 0;
}

body.page-gallery .selected-media-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.7);
}

body.page-gallery .selected-media-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

body.page-gallery .selected-media-type {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.46);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}


body.page-gallery .delete-icon {
    position: absolute;
    top: 4px;
    right: 4px;
    color: #f0f0f0;
    width: 22px;
    height: 22px;
    text-align: center;
    line-height: 22px;
    cursor: pointer;
    z-index: 999;
    display: none;
}

body.page-gallery.gallery-edit-mode .delete-icon {
    display: block;
}

body.page-gallery .container {
    width: 100%;
    text-align: center; 
    max-width: 900px;
    margin: 0 auto;
    padding: 0 10px 42px;
}

body.page-gallery #gallery-container {
    width: min(calc(100% - 24px), 868px);
    margin: 0 auto 42px;
    padding: 6px;
    border-radius: 22px;
    background: transparent;
    box-sizing: border-box;
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

body.page-gallery #gallery-container.is-loading {
    width: min(calc(100% - 24px), 868px);
    padding: 0;
    background: transparent;
}

body.page-gallery #gallery-container.stagger-fade .gallery-collage-tile {
    opacity: 0;
    transition: opacity 0.24s ease;
}

body.page-gallery #gallery-container.stagger-fade .gallery-collage-tile.is-visible {
    opacity: 1;
}

body.page-gallery #gallery-container.compact-media-1 {
    width: min(calc(100% - 24px), 292px);
}

body.page-gallery #gallery-container.compact-media-2 {
    width: min(calc(100% - 24px), 580px);
}

body.page-gallery #gallery-container.compact-media-1 .gallery-collage-group.item-count-1,
body.page-gallery #gallery-container.compact-media-2 .gallery-collage-group.item-count-2 {
    width: 100%;
}

body.page-gallery .icon {
    display: inline-block;
    margin: 10px;
    text-align: left;
    position: relative;
    user-select: none;
}

body.page-gallery .media-item {
    position: relative;
}

body.page-gallery .media-item > a {
    display: inline-block;
    vertical-align: top;
    line-height: 0;
    margin: 0;
}

body.page-gallery .media-item > a .gallery-image,
body.page-gallery .media-item > a .gallery-video {
    display: block;
    margin: 0;
    vertical-align: top;
    width: 120px;
    height: 120px;
    object-fit: cover;
}


body.page-gallery .media-type-indicator {
    position: absolute;
    top: 9px;
    left: 8px;
    background: rgba(5, 7, 10, 0.74);
    color: white;
    padding: 4px 7px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 10;
    line-height: 1;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.22);
}

body.page-gallery .video-indicator {
    display: flex;
    align-items: center;
    gap: 3px;
}

body.page-gallery .duration {
    display: none;
}

body.page-gallery .gallery-video {
    position: relative;
    cursor: pointer;
    transition: transform 0.1s ease;
    width: 120px;
    height: 120px;
    object-fit: cover;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body.page-gallery .gallery-video:active {
    transform: scale(0.98);
}

body.page-gallery .gallery-video::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 15px solid rgba(255, 255, 255, 0.8);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    pointer-events: none;
    z-index: 5;
}

body.page-gallery .cover-indicator {
    position: absolute;
    top: 9px;
    left: 8px;
    background-color: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 1px 5px 1px 5px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 1px solid white;
    animation: coverFadeIn 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media screen and (min-width: 768px) {
body.page-gallery #gallery-container,
body.page-gallery .album-summary {
        width: min(calc(100% - 24px), 640px);
    }

    body.page-gallery h1 {
        font-size: 20px;
        margin-bottom: 5px;
    }

    body.page-gallery .album-meta-line,
    body.page-gallery .album-creator-line {
        font-size: 12px;
    }

    body.page-gallery .cover-indicator {
        padding: 2px 5px 0px 5px;
        font-size: 10px;
        border-radius: 5px;
    }

}

body.page-gallery .gallery-image {
    cursor: pointer;
    transition: transform 0.1s ease;
    margin: 0;
    vertical-align: top;
    width: 120px;
    height: 120px;
    object-fit: cover;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body.page-gallery .gallery-image:active {
    transform: scale(0.98);
}

@keyframes coverFadeIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

body.page-gallery #upload-box {
    border: 1px dashed rgba(255, 255, 255, 0.22);
    background: #1f1c24;
    color: rgba(255, 255, 255, 0.5);
    padding: 30px 40px 35px 40px;
    text-align: center;
    cursor: pointer;
    margin: 20px auto;
    max-width: 90%;
    border-radius: 16px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

body.page-gallery #upload-box img {
    display: block;
    margin: 0 auto;
    max-width: 45px;
    height: auto;
    margin-bottom: 20px;
}

body.page-gallery #upload-box p {
    margin-bottom: 20px;
    font-weight: bold;
}

body.page-gallery #upload-box:hover {
    border-color: rgba(255, 255, 255, 0.42);
    background: #232029;
}

body.page-gallery #upload-box.dragover {
    border-color: #e81987;
    background: #241b2a;
}

body.page-gallery #file-input {
    display: none;
}

body.page-gallery img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

body.page-gallery #uploadedFiles {
    font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    text-align: left;
    font-weight: regular;
    margin-bottom: 17px;
    padding: 0 17px;
    color: rgba(255, 255, 255, 0.7);
}

body.page-gallery #additional-info button {
    background-color: #36454F;
    font-weight: bold;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.page-gallery #progressWrapper {
    padding: 0 17px;
    margin-bottom: 10px;
    display: none;
}

body.page-gallery #progressBar {
    width: 0;
    height: 5px;
    border-radius: 15px;
    background-color: #4CAF50;
}

body.page-gallery #progressStatus {
    text-align: left; 
    margin-top: 5px;
    font-size: 14px;
    margin-bottom: 6px;
}

body.page-gallery #su {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.48);
}

body.page-gallery #iu {
    font-weight: bold;
}

body.page-gallery #gn {
    font-weight: bold;
    margin-bottom: 10px;
}

body.page-gallery #dd {
    font-size: 16px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 16px;
}

body.page-gallery .modal-title {
    font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: normal;
    font-size: 15px;
}

body.page-gallery .gallery-wrapper {
    margin-top: 10px;
}


body.page-gallery .contributors-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

body.page-gallery .user-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

body.page-gallery .user-item:last-child {
    border-bottom: none;
}

body.page-gallery .user-checkbox {
    margin-right: 10px;
}

body.page-gallery .user-info {
    flex: 1;
    text-align: left;
}

body.page-gallery .user-name {
    font-weight: bold;
    font-size: 14px;
}

body.page-gallery .user-email {
    font-size: 12px;
    color: #666;
}

body.page-gallery .contributors-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

body.page-gallery .btn-contributors {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

body.page-gallery .btn-contributors:hover {
    background-color: #138496;
    border-color: #117a8b;
}

body.page-gallery .toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

body.page-gallery .toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    display: none;
    max-width: 400px;
    min-width: 300px;
    text-align: center;
    border-left: 4px solid #dc3545; /* Red indicator for error */
}

body.page-gallery .toast.success {
    border-left-color: #28a745; /* Green indicator for success */
}

body.page-gallery .toast.info {
    border-left-color: #17a2b8; /* Blue indicator for info */
}

body.page-gallery .toast.show {
    display: block;
    animation: toastSlideIn 0.3s ease;
}

body.page-gallery .toast.hide {
    animation: toastFadeOut 0.3s ease;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes toastFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes blink {
    50% { 
        color: transparent;
    }
}

body.page-gallery .loader__dot { 
    font-size: 21px; 
    animation: 1s blink infinite;
}

body.page-gallery .loader__dot:nth-child(2) { 
    animation-delay: 250ms;
}

body.page-gallery .loader__dot:nth-child(3) { 
    animation-delay: 500ms;
}

body.page-gallery {
    background: #f1f1f1;
    color: #05070a;
}

body.page-gallery .modal-title {
    color: #05070a;
}

body.page-gallery .album-meta-line,
body.page-gallery .album-creator-line,
body.page-gallery .selected-media-summary,
body.page-gallery .selected-media-item,
body.page-gallery #su,
body.page-gallery #dd {
    color: rgba(103, 109, 124, 0.94);
}

body.page-gallery #gallery-container,
body.page-gallery .modal-content,
body.page-gallery #exampleModal .modal-content {
    color: #05070a;
    border-color: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(42, 50, 66, 0.1);
}

body.page-gallery #gallery-container {
    background: transparent;
    box-shadow: none;
}

body.page-gallery .modal-content,
body.page-gallery #exampleModal .modal-content {
    background: #fff;
}

body.page-gallery .header-wrapper .gallery-breadcrumb {
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    color: rgba(103, 109, 124, 0.9);
}

body.page-gallery .header-wrapper .gallery-breadcrumb-current {
    color: #2fbf71;
}

body.page-gallery .gallery-collage-tile.icon,
body.page-gallery .gallery-collage-tile .gallery-image,
body.page-gallery .gallery-collage-tile .gallery-video,
body.page-gallery #exampleModal #upload-box,
body.page-gallery #folderName,
body.page-gallery .selected-media-thumb {
    background: #f6f7f9;
    border-color: rgba(216, 222, 232, 0.95);
    color: #05070a;
}

body.page-gallery .gallery-collage-tile.icon,
body.page-gallery .gallery-collage-tile .gallery-image,
body.page-gallery .gallery-collage-tile .gallery-video {
    border-radius: 4px;
}

body.page-gallery #exampleModal .modal-header,
body.page-gallery #exampleModal .modal-footer,
body.page-gallery .selected-media-item {
    border-color: rgba(216, 222, 232, 0.9);
}

body.page-gallery #exampleModal,
body.page-gallery #exampleModal .modal-title,
body.page-gallery #exampleModal #dd,
body.page-gallery #exampleModal #su,
body.page-gallery #exampleModal #progressStatus,
body.page-gallery #exampleModal #uploadedFiles,
body.page-gallery #exampleModal .selected-media-summary,
body.page-gallery #exampleModal .selected-media-item,
body.page-gallery #exampleModal .selected-media-name,
body.page-gallery #exampleModal .selected-media-type {
    color: #05070a;
}

body.page-gallery #exampleModal .selected-media-type,
body.page-gallery #exampleModal #su,
body.page-gallery #exampleModal #progressStatus {
    color: rgba(103, 109, 124, 0.94);
}

body.page-gallery #exampleModal #upload-box:hover,
body.page-gallery #exampleModal #upload-box.dragover {
    background: #eef1f6;
    border-color: rgba(118, 48, 255, 0.28);
}

body.page-gallery .btn-secondary {
    background: #eef1f6;
    border-color: #eef1f6;
    color: #05070a;
}


/* Album list page styles */

body.page-list a:active,
body.page-list a:focus {
    outline: none;
    color: inherit;
    text-decoration: none;
}

body.page-list * {
    -webkit-tap-highlight-color: transparent;
}

body.page-list a,
body.page-list button,
body.page-list input,
body.page-list label,
body.page-list [role="button"] {
    -webkit-tap-highlight-color: transparent;
}

body.page-list {
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    background: #fff;
    font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.page-list #header-wrapper {
    padding: 20px;
    margin-bottom: 30px;
}

body.page-list .header-buttons {
    float: right;
}

body.page-list .top-right-link {
    font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-decoration: none;
    background-color: #36454f;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0px 3px 9px rgba(0, 0, 0, 0.2);
    float: right;
    transition: transform 0.2s ease;
    margin-left: 10px;
}

body.page-list .top-right-link:hover {
    color: white;
    text-decoration: none;
}

body.page-list #searchContainer {
    position: relative;
    float: left;
    display: flex;
    align-items: center;
}

body.page-list .search-icon {
    margin-top: 2px;
    background-color: #36454f;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 15;
    position: relative;
}

body.page-list .search-icon:hover {
    background-color: #2a3a42;
}

body.page-list #searchBar {
    font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    width: 0;
    padding: 9px;
    border-radius: 20px;
    border: 1px solid gray;
    outline: none;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    background-color: white;
    position: absolute;
    left: 0;
    top: 0;
    height: 22px;
    margin-left: -2px;
    padding-left: 45px;
}

body.page-list #searchBar.expanded {
    width: 200px;
    opacity: 1;
    padding-left: 45px;
    border-color: #36454f;
}

body.page-list #searchBar:focus {
    border-color: #36454f;
}

body.page-list .dropdown-content {
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 45px;
    margin-left: 50px;
    display: none;
    position: absolute;
    background-color: #fbfbfb;
    width: 198px;
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

body.page-list .dropdown-content a {
    font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 197px;
    font-size: 13px;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #ccc;
    transition: background-color 0.2s ease;
}

body.page-list .dropdown-content a:hover {
    background-color: #f0f0f0;
}

body.page-list .dropdown-content a:last-child {
    border-bottom: none;
}

body.page-list .folder {
    display: block;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

body.page-list .folder:hover {
    background-color: lightgray;
}

body.page-list #container-wrapper {
    margin-top: 90px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    box-sizing: border-box;
}

body.page-list .container {
    overflow: hidden;
    border-radius: 10px;
    margin: 0;
    width: calc(50% - 10px);
    border: 1px solid #e2e8f0;
    letter-spacing: 0.2px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    position: relative;
    flex: 0 0 auto;
    min-width: 0;
}

@media screen and (max-width: 767px) {
    body.page-list #container-wrapper {
        gap: 15px;
        padding: 0 15px;
    }
    
    body.page-list .container {
        width: calc(50% - 7.5px);
        flex: 0 0 calc(50% - 7.5px);
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    body.page-list .container {
        width: calc(33.333% - 14px);
        flex: 0 0 calc(33.333% - 14px);
    }
}

@media screen and (min-width: 1024px) {
    body.page-list #container-wrapper {
        margin: 120px auto;
        gap: 20px;
        max-width: 1000px;
    }

    body.page-list .container {
        width: calc(25% - 15px);
        flex: 0 0 calc(25% - 15px);
    }
}

body.page-list .container img {
    width: 100%;
    height: 180px;
    display: block;
    object-fit: cover;
    overflow: hidden;
}

body.page-list .album-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    width: 100%;
    font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding: 12px 10px;
    background: #f7faf9;
    min-height: 20px;
    box-sizing: border-box;
}

body.page-list .album-container {
    position: relative;
}

body.page-list .folder-name {
    font-size: 14px; 
    width: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
    flex-grow: 1;
    margin-right: 10px;
    transition: color 0.2s ease;
    text-shadow: 0px 1px 0px rgba(160, 160, 160, 0.3);
    color: #333;
}

body.page-list .folder-name.clickable-folder {
    cursor: pointer;
}

body.page-list .folder-name.clickable-folder:hover {
    color: #000;
}

body.page-list .date {
    flex-shrink: 0;
    text-align: right;
    color: #5f6673;
    font-size: 13px;
    transition: color 0.2s ease;
    text-shadow: 0px 1px 0px rgba(160, 160, 160, 0.2);
    white-space: nowrap;
}

body.page-list .date.clickable {
    cursor: pointer;
}

body.page-list .date.clickable:hover {
    color: #666;
}

body.page-list .delete-button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    color: white;
    font-size: 18px;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease;
}

body.page-list .no-galleries {
    text-align: center;
    margin-top: 100px;
    color: #666;
    font-size: 18px;
}


/* Inline styles moved from list.php */

body.page-list a:active,
body.page-list a:focus {
            outline: none;
            color: inherit;
            text-decoration: none;
        }

        body.page-list * {
            -webkit-tap-highlight-color: transparent; /* Removes tap highlight on WebKit browsers */
        }

        body.page-list a,
        body.page-list button,
        body.page-list input,
        body.page-list label,
        body.page-list [role="button"] {
            -webkit-tap-highlight-color: transparent;
        }
        
        body.page-list {
            margin: 0;
            padding: 0;
            justify-content: center;
            align-items: center;
            background: #f1f1f1;
            color: #05070a;
            font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            transition: background-color 0.35s ease, color 0.35s ease;
        }

        body.page-list {
            background: #f1f1f1;
            color: #05070a;
        }

        body.page-list .container {
            background: transparent;
            box-shadow: none;
        }

        body.page-list .settings-cog-btn {
            color: #4b5563;
        }

        body.page-list .folder-name {
            color: #05070a;
        }

        body.page-list .date,
        body.page-list .date.clickable:hover,
        body.page-list .date.clickable:active,
        body.page-list .date.clickable:focus {
            color: rgba(103, 109, 124, 0.94);
        }

        body.page-list .album-tile {
            background: #f6f7f9;
        }

        body.page-list .album-more-tile {
            background: #2d2c32;
            color: #fff;
        }

        body.page-list .delete-button,
        body.page-list .no-galleries {
            color: rgba(5, 7, 10, 0.62);
        }

        body.page-list .search-icon,
        body.page-list .top-right-link {
            color: #4b5563;
        }

        body.page-list #searchBar {
            background: #fff;
            border-color: rgba(216, 222, 232, 0.95);
            color: #05070a;
        }

        body.page-list #searchBar.expanded,
        body.page-list #searchBar:focus {
            border-color: rgba(118, 48, 255, 0.34);
        }

        body.page-list .dropdown-content {
            background: #fff;
            box-shadow: 0 10px 24px rgba(42, 50, 66, 0.12);
        }

        body.page-list .dropdown-content a {
            color: #05070a;
            border-bottom-color: rgba(216, 222, 232, 0.9);
        }

        body.page-list .dropdown-content a:hover {
            background: #f6f7f9;
        }

        
        
        body.page-list .delete-button {
            width: 18px;
            height: 18px;
            color: rgba(5, 7, 10, 0.62);
            font-size: 14px;
            text-align: center;
            line-height: 18px;
            cursor: pointer;
            z-index: 10;
            transition: transform 0.2s ease;
        }
        
        body.page-list #container-wrapper {
            margin-top: 34px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 8px;
            width: 100%;
        }

        body.page-list .container {
            overflow: visible;
            margin: 0 0 8px;
            width: min(calc(100% - 8px), 430px);
            border: 0;
            border-radius: 22px;
            letter-spacing: 0.2px;
            box-shadow: none;
            position: relative;
            background: transparent;
            box-sizing: border-box;
            padding: 18px;
            transition: background-color 0.35s ease, box-shadow 0.35s ease;
        }

        body.page-list .album-card-link {
            display: block;
            color: inherit;
            text-decoration: none;
        }

        body.page-list .album-card-header {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: start;
            gap: 8px;
            margin-bottom: 14px;
        }

        body.page-list .album-header-actions {
            display: inline-flex;
            align-items: flex-start;
            gap: 5px;
            padding-top: 0;
            margin-right: -4px;
        }

        body.page-list .album-title-block {
            min-width: 0;
        }

        body.page-list .album-collage {
            display: grid;
            grid-template-columns: 1.9fr 0.92fr 0.92fr;
            grid-template-rows: repeat(2, minmax(0, 1fr));
            gap: 12px;
            aspect-ratio: 2.15 / 1;
        }

        body.page-list .album-tile {
            position: relative;
            display: block;
            overflow: hidden;
            border-radius: 4px;
            background: #f6f7f9;
        }

        body.page-list .album-tile.main {
            grid-row: 1 / span 2;
            border-radius: 4px;
        }

        body.page-list .album-tile img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            opacity: 0;
            transition: opacity 0.22s ease;
        }

        body.page-list .album-tile img.is-loaded {
            opacity: 1;
        }

        body.page-list .album-more-tile {
            display: grid;
            place-items: center;
            background: #d8dee8;
            color: #05070a;
            font-size: 18px;
            font-weight: 800;
        }

        body.page-list .album-more-tile::after {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 1;
            background: rgba(0, 0, 0, 0.26);
            pointer-events: none;
        }

        body.page-list .album-more-tile img,
        body.page-list .album-more-tile img.is-loaded {
            position: absolute;
            inset: 0;
            opacity: 1;
            filter: none;
            transform: none;
            z-index: 0;
        }

        body.page-list .album-more-count {
            position: relative;
            z-index: 2;
            color: #fff;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72), 0 0 2px rgba(0, 0, 0, 0.84);
        }

        @media screen and (min-width: 768px) {
            body.page-list #header-wrapper {
                width: 92%;
                max-width: 1180px;
            }

            body.page-list #container-wrapper {
                margin: 38px auto 80px;
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                gap: 10px;
                width: 92%;
                max-width: 1180px;
            }

            body.page-list .container {
                width: calc(50% - 8px);
            }
        }

        @media screen and (min-width: 1200px) {
            body.page-list #header-wrapper {
                width: 85%;
                max-width: 1052px;
            }

            body.page-list #container-wrapper {
                width: 85%;
                gap: 12px;
            }

            body.page-list .container {
                width: calc(50% - 12px);
                max-width: 520px;
            }
        }
        
        body.page-list .album-info {
            display: grid;
            gap: 4px;
            overflow: hidden;
            width: auto;
            font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            padding: 0;
            background: transparent;
            height: auto;
            z-index: 3;
            pointer-events: auto;
        }
        
        body.page-list .top-right-link {
            font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            text-decoration: none;
            background: rgba(5, 7, 10, 0.72);
            color: #fff;
            border: none;
            border-radius: 10px;
            width: 38px;
            height: 38px;
            padding: 0;
            font-size: 18px;
            cursor: pointer;
            font-weight: 600;
            box-shadow: 0 8px 18px rgba(42, 50, 66, 0.22);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
            margin-left: 0;
        }
        
        body.page-list .top-right-link:hover {
            color: #fff;
            text-decoration: none;
        }

        body.page-list .settings-trigger-wrap {
            position: relative;
            display: inline-flex;
            align-items: center;
            vertical-align: top;
        }

        body.page-list .settings-cog-btn {
            width: 38px;
            height: 38px;
            border: 0;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(5, 7, 10, 0.72);
            color: #fff;
            text-decoration: none;
            box-shadow: 0 8px 18px rgba(42, 50, 66, 0.22);
            cursor: pointer;
            outline: none;
            -webkit-tap-highlight-color: transparent;
            transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
        }

        body.page-list .settings-cog-btn:hover,
        body.page-list .settings-cog-btn:focus,
        body.page-list .settings-cog-btn:active,
        body.page-list .settings-cog-btn:visited {
            color: #fff;
            text-decoration: none;
        }

        body.page-list .settings-cog-btn i {
            font-size: 16px;
            line-height: 1;
        }

        body.page-list .settings-cog-btn:focus,
        body.page-list .settings-cog-btn:focus-visible,
        body.page-list .settings-cog-btn:active {
            outline: none;
            box-shadow: 0 8px 18px rgba(42, 50, 66, 0.22);
        }

        body.page-list .settings-menu {
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            width: 210px;
            padding: 8px;
            border-radius: 18px;
            background: #fff;
            border: 1px solid rgba(216, 222, 232, 0.9);
            box-shadow: 0 16px 34px rgba(42, 50, 66, 0.12);
            opacity: 0;
            transform: translateY(-4px) scale(0.98);
            pointer-events: none;
            transition: opacity 0.18s ease, transform 0.18s ease;
            z-index: 10001;
        }

        body.page-list .settings-menu.show {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: auto;
        }

        body.page-list .settings-menu-link {
            display: flex;
            align-items: center;
            gap: 8px;
            min-height: 42px;
            padding: 10px 11px;
            border-radius: 12px;
            color: rgba(103, 109, 124, 0.94);
            text-decoration: none;
            font-size: 13px;
            font-weight: 800;
            font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            -webkit-tap-highlight-color: transparent;
            transition: background-color 0.25s ease, color 0.25s ease;
        }

        body.page-list .settings-menu-link:hover,
        body.page-list .settings-menu-link:focus,
        body.page-list .settings-menu-link:active {
            color: #05070a;
            text-decoration: none;
            outline: none;
        }

        body.page-list .settings-menu-link.active {
            background: rgba(118, 48, 255, 0.18);
            color: #05070a;
        }

        body.page-list .settings-menu-dot {
            width: 7px;
            height: 7px;
            flex: 0 0 7px;
            border-radius: 50%;
            background: #7630ff;
        }
        body.page-list .settings-menu-link.permissions .settings-menu-dot {
            background: #45d3ff;
        }
        
        body.page-list .date {
            display: block;
            text-align: left;
            color: #5f6673;
            font-size: 13px;
            padding: 0;
            text-shadow: none;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: color 0.35s ease;
        }
        
        body.page-list .date.clickable {
            cursor: pointer;
        }
        
        body.page-list .date.clickable:hover,
        body.page-list .date.clickable:active,
        body.page-list .date.clickable:focus {
            color: rgba(103, 109, 124, 0.94);
        }
        
        body.page-list .folder-name {
            display: block;
            font-size: 19px; 
            line-height: 1.08;
            width: auto;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: #05070a;
            text-shadow: none;
            font-weight: 600;
            letter-spacing: -0.01em;
            transition: color 0.35s ease;
        }
        
        body.page-list .folder-name.clickable-folder {
            cursor: pointer;
        }
        
        body.page-list .folder-name.clickable-folder:hover,
        body.page-list .folder-name.clickable-folder:active,
        body.page-list .folder-name.clickable-folder:focus {
            color: #05070a;
        }

        body.page-list #searchContainer {
            position: relative;
            display: flex;
            align-items: center;
            flex: 0 0 38px;
        }

        body.page-list .search-icon {
            background: rgba(5, 7, 10, 0.72);
            color: #fff;
            width: 38px;
            height: 38px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
            box-shadow: 0 8px 18px rgba(42, 50, 66, 0.22);
            z-index: 15;
            position: relative;
        }

        body.page-list .search-icon:hover {
            color: #fff;
        }

        body.page-list #searchBar {
            font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            width: 0;
            box-sizing: border-box;
            padding: 9px;
            border-radius: 20px;
            border: 1px solid gray;
            outline: none;
            box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);
            transition: width 0.3s ease, opacity 0.3s ease, padding-left 0.3s ease, background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
            opacity: 0;
            background-color: white;
            position: absolute;
            right: 0;
            top: 0;
            height: 22px;
            padding-left: 12px;
            padding-right: 45px;
        }

        body.page-list #searchBar.expanded {
            width: 200px;
            opacity: 1;
            padding-left: 12px;
            padding-right: 45px;
            border-color: #36454f;
        }

        body.page-list #searchBar:focus {
            border-color: #36454f;
        }

        body.page-list .folder {
            display: block;
            margin-bottom: 5px;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        body.page-list .folder:hover {
            background-color: lightgray;
        }

        body.page-list #header-wrapper {
            position: relative;
            z-index: 50;
            width: min(calc(100% - 8px), 430px);
            margin: 0 auto 30px;
            padding: 20px 0;
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: center;
            gap: 12px;
        }

        body.page-list .site-title {
            color: rgba(5, 7, 10, 0.72);
            font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            font-size: clamp(18px, 3.6vw, 28px);
            font-weight: 900;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-self: start;
            min-width: 0;
        }

        body.page-list .site-logo {
            width: min(110px, 27vw);
            height: auto;
            display: block;
            object-fit: contain;
        }

        @media screen and (min-width: 768px) {
body.page-list #header-wrapper {
                width: 92%;
                max-width: 1180px;
            }

}

        @media screen and (min-width: 1200px) {
body.page-list #header-wrapper {
                width: 85%;
                max-width: 1052px;
            }

}

        @media screen and (max-width: 767px) {
body.page-list .container {
                width: min(calc(100% - 4px), 430px);
                padding: 8px;
            }

            body.page-list #header-wrapper {
                width: min(calc(100% - 20px), 414px);
            }

}

        body.page-list .dropdown-content {
            border-radius: 3px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-top: 45px;
            display: none;
            position: absolute;
            background-color: #fbfbfb;
            width: 198px;
            right: 0;
            top: 0;
            box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.2);
            z-index: 9999;
        }

        body.page-list .dropdown-content a {
            font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 197px;
            font-size: 13px;
            color: black;
            padding: 12px 16px;
            text-decoration: none;
            display: block;
            border-bottom: 1px solid #ccc;
            transition: background-color 0.2s ease;
        }
        
        body.page-list .dropdown-content a:hover {
            background-color: #f0f0f0;
        }

        body.page-list .dropdown-content a:last-child {
            border-bottom: none;
        }
        
        body.page-list .no-galleries {
            text-align: center;
            margin-top: 100px;
            color: rgba(5, 7, 10, 0.62);
            font-size: 18px;
        }
        
        body.page-list .header-buttons {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            justify-self: end;
        }

        body.page-list .edit-modal-overlay {
            position: fixed;
            inset: 0;
            z-index: 10000;
            display: none;
            align-items: flex-start;
            justify-content: center;
            padding: 20px;
            padding-top: max(74px, env(safe-area-inset-top));
            background: rgba(0, 0, 0, 0.28);
        }

        body.page-list .edit-modal-overlay.show {
            display: flex;
        }

        body.page-list .edit-modal {
            width: min(100%, 340px);
            border-radius: 18px;
            background: #fff;
            padding: 18px;
            box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
            font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        }

        body.page-list .edit-modal-title {
            margin: 0 0 12px 0;
            color: #05070a;
            font-size: 17px;
            line-height: 1.1;
        }

        body.page-list .edit-modal-input {
            width: 100%;
            min-height: 44px;
            border: 1px solid rgba(216, 222, 232, 0.95);
            border-radius: 11px;
            padding: 10px 12px;
            background: #f6f7f9;
            color: #05070a;
            font-family: inherit;
            font-size: 15px;
            box-sizing: border-box;
            outline: none;
        }

        body.page-list .edit-modal-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-top: 12px;
        }

        body.page-list .edit-modal-btn {
            min-height: 40px;
            border: 0;
            border-radius: 10px;
            font-family: inherit;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
        }

        body.page-list .edit-modal-btn.cancel {
            background: #eef1f6;
            color: rgba(5, 7, 10, 0.72);
        }

        body.page-list .edit-modal-btn.save {
            background: #36454f;
            color: #fff;
        }

        @media screen and (min-width: 768px) {
body.page-list .edit-modal-overlay {
                align-items: center;
                padding-top: 20px;
            }

}


/* Inline styles moved from index.php */

body.page-upload * {
            -webkit-tap-highlight-color: transparent;
        }
        body.page-upload a,
        body.page-upload button,
        body.page-upload input,
        body.page-upload label,
        body.page-upload [role="button"] {
            -webkit-tap-highlight-color: transparent;
        }
        body.page-upload {
            font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            background-color: #1f1c24;
            background-image:
                radial-gradient(circle, rgba(24, 68, 145, 0.13) 0 90px, rgba(24, 68, 145, 0.04) 190px, transparent 320px),
                radial-gradient(circle, rgba(95, 60, 155, 0.1) 0 100px, rgba(95, 60, 155, 0.035) 200px, transparent 340px);
            background-position:
                left 4vw top 2vh,
                right 4vw bottom 4vh;
            background-size:
                640px 640px,
                680px 680px;
            background-repeat: no-repeat;
            background-attachment: fixed;
            font-size: 14px;
            color: rgba(255, 255, 255, 0.68);
            min-height: 100vh;
            margin: 0;
            transition: background-color 0.35s ease, color 0.35s ease;
        }
        body.page-upload .container {
            padding: 30px 30px 20px 30px ;
            box-shadow: none; 
            border-radius: 22px;
            max-width: 600px;
            background: #111014;
            margin: 50px auto;
            position: relative;
            box-sizing: border-box;
            transition: background-color 0.35s ease, box-shadow 0.35s ease;
        }
        body.page-upload #upload-box {
            border: 1px dashed rgba(255, 255, 255, 0.22);
            background: #1f1c24; 
            color: rgba(255, 255, 255, 0.5);
            padding: 70px 40px 45px 40px;
            text-align: center;
            cursor: pointer;
            margin: 20px auto;
            max-width: 560px;
            border-radius: 16px;
            transition: border-color 0.2s ease, background-color 0.2s ease;
        }
        body.page-upload #upload-box img {
            display: block;
            margin: 0 auto;
            max-width: 45px;
            height: auto;
            margin-bottom: 20px;
        }
        body.page-upload #upload-box p {
            margin-bottom: 20px;
            font-weight: bold;
        }
        body.page-upload #upload-box:hover {
            border-color: rgba(255, 255, 255, 0.42);
            background: #232029;
        }
        body.page-upload #upload-box.dragover {
            border-color: #e81987;
            background: #241b2a;
        }
        body.page-upload #file-input {
            display: none;
        }
        body.page-upload img {
            max-width: 100%;
            height: auto;
            margin: 10px 0;
        }
        body.page-upload #additional-info {
            margin-top: 15px;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            padding: 10px 0;
        }
        body.page-upload #additional-info button {
            font-size: 11px;
            background-color: #724dd1;
            font-weight: bold;
            color: #FFF;
            border: none;
            padding: 12px 25px;
            cursor: pointer;
            border-radius: 5px;
            box-shadow: none;
        }
        body.page-upload #galleryBtn {
            margin: 5px 0 5px 0; 
            flex-shrink: 0;
        }
        body.page-upload #galleryBtn a {
            font-size: 11px;
            background-color: #e81987;
            font-weight: bold;
            color: #FFF;
            border: none;
            text-decoration: none;
            padding: 12px 22px;
            cursor: pointer;
            border-radius: 5px;
            box-shadow: none;
        }
        body.page-upload #progressWrapper {
            display: none;
            flex: 1;
            min-width: 0;
        }
        body.page-upload #uploadFeedback {
            flex: 1;
            min-width: 0;
            text-align: left;
            font-size: 13px;
            font-weight: bold;
        }
        body.page-upload #uploadFeedback:empty {
            display: none;
        }
        body.page-upload #progressBar {
            max-width: 100%;
            width: 0;
            height: 5px;
            border-radius: 15px;
            background-color: #4CAF50;
        }
        body.page-upload #progressStatus {
            font-weight: bold;
            margin-top: 7px;
            font-size: 13px;
            margin-bottom: 6px;
            color: rgba(255, 255, 255, 0.68);
        }
        body.page-upload #su {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.48);
        }
        body.page-upload #iu {
            font-weight: bold;
            color: #fff;
        }
        body.page-upload #gn {
            font-weight: bold;
            margin-bottom: 10px;
            color: rgba(255, 255, 255, 0.78);
        }
        body.page-upload #dd {
            font-size: 16px;
            font-weight: bold;
            color: rgba(255, 255, 255, 0.78);
            margin-bottom: 16px;
        }
        body.page-upload .loader { 
            margin-top: -8px;
         }
         body.page-upload #messages {
             text-align: left;
          }
        body.page-upload #uploadedFiles {
            width: 100%;
        }
        body.page-upload #upload-action-row {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            margin-top: 10px;
        }
        body.page-upload #uploadBtn {
            flex-shrink: 0;
            margin-left: auto;
        }
        body.page-upload .selected-media-list {
            margin-top: 12px;
            text-align: left;
            width: 100%;
        }
        body.page-upload .selected-media-summary {
            margin-bottom: 8px;
            font-weight: bold;
            color: rgba(255, 255, 255, 0.72);
        }
        body.page-upload .selected-media-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.09);
            color: rgba(255, 255, 255, 0.7);
        }
        body.page-upload .selected-media-main {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
            min-width: 0;
        }
        body.page-upload .selected-media-thumb {
            width: 42px;
            height: 42px;
            object-fit: cover;
            border-radius: 6px;
            border: 1px solid rgba(255, 255, 255, 0.14);
            background: #1f1c24;
            flex-shrink: 0;
        }
        body.page-upload .selected-media-name {
            flex: 1;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        body.page-upload .selected-media-meta {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }
        body.page-upload .selected-media-type {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.46);
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }
        
        
        body.page-upload #folderName {
            border-radius: 7px;
            padding: 9px 10px;
            border: 1px solid rgba(255, 255, 255, 0.14);
            width: 50%;
            font-size: 14px;
            background-color: #1f1c24;
            color: #fff;
            outline: none;
            box-sizing: border-box;
        }
        body.page-upload #folderName:focus {
            border-color: rgba(232, 25, 135, 0.72);
        }
        body.page-upload #folderName::placeholder {
            color: rgba(255, 255, 255, 0.34);
        }
        body.page-upload {
            background-color: #fff;
            background-image:
                radial-gradient(circle, rgba(218, 200, 255, 0.24) 0 90px, rgba(218, 200, 255, 0.1) 190px, transparent 320px),
                radial-gradient(circle, rgba(207, 238, 255, 0.26) 0 100px, rgba(207, 238, 255, 0.1) 200px, transparent 340px);
            background-position:
                left 4vw top 2vh,
                right 4vw bottom 4vh;
            background-size:
                640px 640px,
                680px 680px;
            background-repeat: no-repeat;
            background-attachment: fixed;
            color: #05070a;
        }
        body.page-upload .container {
            background: #fff;
            box-shadow: 0 10px 24px rgba(42, 50, 66, 0.1);
        }
        body.page-upload #upload-box,
        body.page-upload #folderName,
        body.page-upload .selected-media-thumb {
            background: #f6f7f9;
            border-color: rgba(216, 222, 232, 0.95);
            color: #05070a;
        }
        body.page-upload #upload-box:hover {
            background: #eef1f6;
            border-color: rgba(118, 48, 255, 0.28);
        }
        body.page-upload #progressStatus,
        body.page-upload #su,
        body.page-upload #gn,
        body.page-upload #dd,
        body.page-upload .selected-media-summary,
        body.page-upload .selected-media-item {
            color: rgba(103, 109, 124, 0.94);
        }
        body.page-upload #iu,
        body.page-upload .selected-media-name {
            color: #05070a;
        }
        body.page-upload .selected-media-item {
            border-bottom-color: rgba(216, 222, 232, 0.9);
        }
        body.page-upload #folderName::placeholder {
            color: rgba(103, 109, 124, 0.62);
        }
        @media (max-width: 430px) {
body.page-upload {
                background-position:
                    left -86px top -96px,
                    right -106px top 42px;
            }

}
        body.page-upload #uploadBtn {
            border: 0;
            background: #724dd1;
            color: #fff;
            border-radius: 5px;
            padding: 12px 25px;
            font-size: 11px;
            font-weight: bold;
            cursor: pointer;
        }
        body.page-upload #uploadBtn:disabled {
            opacity: 0.65;
            cursor: default;
        }
        body.page-upload #successMessage {
            color: #61d394;
        }
        body.page-upload #errorMessage {
            color: #ff6666;
        }
        @media (max-width: 680px) {
body.page-upload .container {
                width: calc(100% - 28px);
                margin: 28px auto;
                padding: 22px 18px 18px;
            }
            body.page-upload #upload-box {
                padding: 52px 20px 34px;
            }
            body.page-upload #folderName {
                width: 100%;
            }
            body.page-upload #upload-action-row {
                align-items: flex-start;
                flex-direction: column;
            }
            body.page-upload #uploadBtn,
            body.page-upload #galleryBtn,
            body.page-upload #galleryBtn a {
                width: 100%;
                box-sizing: border-box;
                text-align: center;
            }

}
        @keyframes blink {50% { color: transparent }}
        body.page-upload .loader__dot { font-size: 21px; animation: 1s blink infinite }
        body.page-upload .loader__dot:nth-child(2) { animation-delay: 250ms }
        body.page-upload .loader__dot:nth-child(3) { animation-delay: 500ms }


/* Inline styles moved from login.php */

body.page-login * {
            -webkit-tap-highlight-color: transparent;
        }
        body.page-login a,
        body.page-login button,
        body.page-login input,
        body.page-login label,
        body.page-login [role="button"] {
            -webkit-tap-highlight-color: transparent;
        }
        body.page-login {
            background-color: #1f1c24;
            background-image:
                radial-gradient(circle, rgba(24, 68, 145, 0.13) 0 90px, rgba(24, 68, 145, 0.04) 190px, transparent 320px),
                radial-gradient(circle, rgba(95, 60, 155, 0.1) 0 100px, rgba(95, 60, 155, 0.035) 200px, transparent 340px);
            background-position:
                left 4vw top 2vh,
                right 4vw bottom 4vh;
            background-size:
                640px 640px,
                680px 680px;
            background-repeat: no-repeat;
            background-attachment: fixed;
            max-width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 18px;
            font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            min-height: 100vh;
            margin: 0;
            color: rgba(255, 255, 255, 0.72);
            transition: background-color 0.35s ease, color 0.35s ease;
        }
        body.page-login .container {
            width: min(calc(100% - 28px), 420px);
            padding: 28px 24px 24px;
            text-align: left;
            background: #111014;
            border-radius: 22px;
            box-sizing: border-box;
            transition: background-color 0.35s ease, box-shadow 0.35s ease;
        }
        body.page-login .form-group {
            margin-bottom: 18px;
        }
        body.page-login label {
            display: block;
            margin-bottom: 7px;
            font-size: 14px;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.72);
        }
        body.page-login input[type=text],
        body.page-login input[type=password],
        body.page-login button[type=submit] {
            width: 100%;
            padding: 11px 12px;
            font-size: 16px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.14);
            box-sizing: border-box;
            background: #1f1c24;
            color: #fff;
            outline: none;
            transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
        }
        body.page-login input[type=text]:focus,
        body.page-login input[type=password]:focus {
            border-color: rgba(232, 25, 135, 0.72);
        }
        body.page-login button[type=submit] {
            width: 100%;
            background: #724dd1;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 13px 24px;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            display: block;
            margin: 28px auto 0;
        }
        body.page-login .register-link {
            text-align: center;
            margin-top: 20px;
            font-size: 14px;
            color: rgba(255, 255, 255, 0.56);
        }
        body.page-login .register-link a {
            color: #e81987;
            text-decoration: none;
            font-size: 14px;
            font-weight: 700;
        }
        body.page-login .register-link a:hover {
            text-decoration: none;
        }
        body.page-login h2 {
            color: #fff;
            margin: 0 0 24px;
            font-size: 24px;
        }
        body.page-login {
            background-color: #fff;
            background-image:
                radial-gradient(circle, rgba(218, 200, 255, 0.24) 0 90px, rgba(218, 200, 255, 0.1) 190px, transparent 320px),
                radial-gradient(circle, rgba(207, 238, 255, 0.26) 0 100px, rgba(207, 238, 255, 0.1) 200px, transparent 340px);
            background-position:
                left 4vw top 2vh,
                right 4vw bottom 4vh;
            background-size:
                640px 640px,
                680px 680px;
            background-repeat: no-repeat;
            background-attachment: fixed;
            color: #05070a;
        }
        body.page-login .container {
            background: #fff;
            box-shadow: 0 10px 24px rgba(42, 50, 66, 0.1);
        }
        body.page-login h2,
        body.page-login label {
            color: #05070a;
        }
        body.page-login input[type=text],
        body.page-login input[type=password] {
            background: #f6f7f9;
            border-color: rgba(216, 222, 232, 0.95);
            color: #05070a;
        }
        body.page-login .register-link {
            color: rgba(103, 109, 124, 0.94);
        }
        @media (max-width: 430px) {
body.page-login {
                background-position:
                    left -86px top -96px,
                    right -106px top 42px;
            }

}
        body.page-login .toast {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: #17161c;
            color: white;
            padding: 15px 20px;
            border-radius: 10px;
            font-size: 15px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
            z-index: 1000;
            display: none;
            max-width: 400px;
            min-width: 300px;
            text-align: center;
            border-left: 4px solid #dc3545; /* Red indicator for error */
        }
        body.page-login .toast.success {
            border-left-color: #28a745; /* Green indicator for success */
        }
        body.page-login .toast.show {
            display: block;
            animation: toastSlideIn 0.3s ease;
        }
        body.page-login .toast.hide {
            animation: toastFadeOut 0.3s ease;
        }
        @keyframes toastSlideIn {
            from {
                opacity: 0;
                transform: translateX(-50%) translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
        }
        @keyframes toastFadeOut {
            from {
                opacity: 1;
            }
            to {
                opacity: 0;
            }
        }


/* Inline styles moved from settings.php */

body.page-settings * {
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        body.page-settings {
            margin: 0;
            min-height: 100vh;
            background-color: #1f1c24;
            background-image:
                radial-gradient(circle, rgba(24, 68, 145, 0.13) 0 90px, rgba(24, 68, 145, 0.04) 190px, transparent 320px),
                radial-gradient(circle, rgba(95, 60, 155, 0.1) 0 100px, rgba(95, 60, 155, 0.035) 200px, transparent 340px);
            background-position:
                left 4vw top 2vh,
                right 4vw bottom 4vh;
            background-size:
                640px 640px,
                680px 680px;
            background-repeat: no-repeat;
            background-attachment: fixed;
            color: #fff;
            font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            transition: background-color 0.35s ease, color 0.35s ease;
        }

        body.page-settings {
            background-color: #fff;
            background-image:
                radial-gradient(circle, rgba(218, 200, 255, 0.24) 0 90px, rgba(218, 200, 255, 0.1) 190px, transparent 320px),
                radial-gradient(circle, rgba(207, 238, 255, 0.26) 0 100px, rgba(207, 238, 255, 0.1) 200px, transparent 340px);
            background-position:
                left 4vw top 2vh,
                right 4vw bottom 4vh;
            background-size:
                640px 640px,
                680px 680px;
            background-repeat: no-repeat;
            background-attachment: fixed;
            color: #05070a;
        }

        body.page-settings a,
        body.page-settings button {
            -webkit-tap-highlight-color: transparent;
        }

        body.page-settings .settings-shell {
            width: min(92vw, 720px);
            margin: 0 auto;
            padding: 28px 0 40px;
        }

        body.page-settings .settings-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            margin-bottom: 16px;
        }

        body.page-settings .settings-back {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #111014;
            color: rgba(255, 255, 255, 0.84);
            text-decoration: none;
            box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
            transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
        }

        body.page-settings .settings-title-wrap {
            min-width: 0;
            flex: 1;
        }

        body.page-settings .settings-title {
            margin: 0;
            font-size: 26px;
            line-height: 1;
            font-weight: 900;
            letter-spacing: 0;
        }

        body.page-settings .settings-subtitle {
            margin: 6px 0 0;
            color: rgba(255, 255, 255, 0.58);
            font-size: 13px;
            font-weight: 800;
        }

        body.page-settings .settings-layout {
            display: grid;
            grid-template-columns: 190px minmax(0, 1fr);
            gap: 10px;
            align-items: stretch;
        }

        body.page-settings .settings-nav,
        body.page-settings .settings-panel {
            background: #111014;
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 18px;
            box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
            transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
        }

        body.page-settings .settings-nav {
            padding: 8px;
        }

        body.page-settings .settings-link {
            display: flex;
            align-items: center;
            gap: 8px;
            min-height: 42px;
            padding: 10px 11px;
            border-radius: 12px;
            color: rgba(255, 255, 255, 0.66);
            text-decoration: none;
            font-size: 13px;
            font-weight: 800;
            transition: background-color 0.35s ease, color 0.35s ease;
        }

        body.page-settings .settings-link.active {
            background: rgba(118, 48, 255, 0.18);
            color: #fff;
        }
        body.page-settings .settings-link.permissions {
            color: #8fe6ff;
        }

        body.page-settings .settings-dot {
            width: 7px;
            height: 7px;
            flex: 0 0 7px;
            border-radius: 50%;
            background: #7630ff;
        }
        body.page-settings .settings-link.permissions .settings-dot {
            background: #45d3ff;
        }

        body.page-settings .settings-panel {
            padding: 18px;
        }

        body.page-settings .panel-title {
            margin: 0 0 8px;
            font-size: 17px;
            font-weight: 900;
        }

        body.page-settings .panel-copy {
            margin: 0;
            color: rgba(255, 255, 255, 0.58);
            font-size: 13px;
            line-height: 1.45;
            font-weight: 700;
        }

        body.page-settings .settings-stat-list {
            display: grid;
            gap: 8px;
            margin-top: 16px;
        }

        body.page-settings .settings-stat {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 12px;
            border-radius: 13px;
            background: rgba(255, 255, 255, 0.06);
            color: rgba(255, 255, 255, 0.7);
            font-size: 13px;
            font-weight: 800;
            transition: background-color 0.35s ease, color 0.35s ease;
        }

        body.page-settings .settings-stat strong {
            color: #fff;
            font-size: 14px;
        }

body.page-settings .settings-title,
body.page-settings .panel-title,
body.page-settings .settings-stat strong,
body.page-settings .settings-back,
body.page-settings .settings-home {
            color: #05070a;
        }

        body.page-settings .settings-subtitle,
        body.page-settings .panel-copy,
        body.page-settings .settings-stat {
            color: rgba(103, 109, 124, 0.94);
        }

body.page-settings .settings-nav,
body.page-settings .settings-panel,
body.page-settings .settings-back,
body.page-settings .settings-home {
            background: #fff;
            border-color: rgba(255, 255, 255, 0.72);
            box-shadow: 0 10px 24px rgba(42, 50, 66, 0.1);
        }

        body.page-settings .settings-link {
            color: rgba(103, 109, 124, 0.94);
        }

        body.page-settings .settings-link.active {
            background: rgba(118, 48, 255, 0.14);
            color: #05070a;
        }

        body.page-settings .settings-stat {
            background: rgba(216, 222, 232, 0.55);
        }

        @media (max-width: 640px) {
body.page-settings .settings-shell {
                padding-top: 20px;
            }

            body.page-settings .settings-layout {
                grid-template-columns: 1fr;
            }

            body.page-settings .settings-title {
                font-size: 24px;
            }

            body.page-settings {
                background-position:
                    left -86px top -96px,
                    right -106px top 42px;
            }

}


/* Inline styles moved from album_contributors.php */

body.page-contributors * {
            -webkit-tap-highlight-color: transparent;
        }
        body.page-contributors a,
        body.page-contributors button,
        body.page-contributors input,
        body.page-contributors label,
        body.page-contributors [role="button"] {
            -webkit-tap-highlight-color: transparent;
        }
        body.page-contributors {
            font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            margin: 20px;
            background: #f5f5f5;
        }
        body.page-contributors .container {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        body.page-contributors .album-card {
            border: 1px solid #ddd;
            border-radius: 8px;
            margin: 20px 0;
            padding: 20px;
            background: #f9f9f9;
        }
        body.page-contributors .album-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #007bff;
        }
        body.page-contributors .album-title {
            font-size: 18px;
            font-weight: bold;
            color: #333;
        }
        body.page-contributors .album-info {
            color: #666;
            font-size: 14px;
        }
        body.page-contributors .users-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 15px;
            margin-top: 15px;
        }
        body.page-contributors .user-item {
            background: white;
            border: 1px solid #ddd;
            border-radius: 5px;
            padding: 10px;
        }
        body.page-contributors .user-name {
            font-weight: bold;
            margin-bottom: 5px;
        }
        body.page-contributors .user-email {
            font-size: 12px;
            color: #666;
            margin-bottom: 8px;
        }
        body.page-contributors .permissions label {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 13px;
        }
        body.page-contributors .permissions input[type="checkbox"] {
            width: 16px;
            height: 16px;
        }
        body.page-contributors .btn {
            background: #007bff;
            color: white;
            padding: 12px 30px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            font-weight: bold;
        }
        body.page-contributors .btn:hover {
            background: #0056b3;
        }
        body.page-contributors .btn-secondary {
            background: #6c757d;
            padding: 8px 15px;
            font-size: 14px;
            margin: 5px;
        }
        body.page-contributors .btn-secondary:hover {
            background: #545b62;
        }
        body.page-contributors .success {
            background: #d4edda;
            color: #155724;
            padding: 15px;
            border-radius: 5px;
            margin: 15px 0;
        }
        body.page-contributors .stats {
            background: #e3f2fd;
            padding: 15px;
            border-radius: 5px;
            margin: 15px 0;
            text-align: center;
        }
        body.page-contributors .controls {
            margin: 15px 0;
            text-align: center;
        }
        body.page-contributors .album-controls {
            margin: 10px 0;
        }
        body.page-contributors .global-controls {
            background: #fff3cd;
            border: 1px solid #ffeaa7;
            border-radius: 8px;
            padding: 20px;
            margin: 20px 0;
        }
        body.page-contributors .global-controls h3 {
            margin-top: 0;
            color: #856404;
        }
        body.page-contributors .global-controls p {
            color: #856404;
            margin-bottom: 15px;
        }


/* Inline styles moved from register.php */

body.page-register * {
            -webkit-tap-highlight-color: transparent;
        }
        body.page-register a,
        body.page-register button,
        body.page-register input,
        body.page-register label,
        body.page-register [role="button"] {
            -webkit-tap-highlight-color: transparent;
        }
        body.page-register {
            background-image: url('assets/images/sun-pattern.png');
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 18px;
            font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            #height: 100vh; /* Set height to 100% of viewport height */
            margin: 0; /* Remove default margin */
        }
        body.page-register .container {
            max-width: 600px; /* Set maximum width for the container */
            padding: 20px; /* Add some padding for spacing */
            text-align: left; /* Align text to the left within the container */
        }
        body.page-register .form-group {
            margin-bottom: 20px; /* Add some space between form groups */
        }
        body.page-register label {
            display: block; /* Display labels as blocks */
            margin-bottom: 5px; /* Add space between labels */
        }
        body.page-register input[type=text],
        body.page-register input[type=password],
        body.page-register input[type=email],
        body.page-register button[type=submit] {
            width: 100%; /* Set width to fill the container */
            max-width: 300px; /* Set maximum width for better readability */
            padding: 10px;
            font-size: 18px;
            border-radius: 5px;
            border: 1px solid #ccc;
            box-sizing: border-box;
            background: white;
        }
        body.page-register button[type=submit] {
            width: auto; /* Allow button width to adjust based on content */
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 5px;
            padding: 15px 30px;
            font-size: 16px;
            cursor: pointer;
            display: block;
            margin: 40px auto; /* Center the button */
        }
        body.page-register .login-link {
            text-align: center;
            margin-top: 20px;
            font-size: 14px;
        }
        body.page-register .login-link a {
            color: #007bff;
            text-decoration: none;
            font-size: 14px;
        }
        body.page-register .login-link a:hover {
            text-decoration: underline;
        }
        body.page-register .toast {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: #333;
            color: white;
            padding: 15px 20px;
            border-radius: 10px;
            font-size: 16px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
            z-index: 1000;
            display: none;
            max-width: 400px;
            min-width: 300px;
            text-align: center;
            border-left: 4px solid #dc3545; /* Red indicator for error */
        }
        body.page-register .toast.success {
            border-left-color: #28a745; /* Green indicator for success */
        }
        body.page-register .toast.show {
            display: block;
            animation: toastSlideIn 0.3s ease;
        }
        body.page-register .toast.hide {
            animation: toastFadeOut 0.3s ease;
        }
        @keyframes toastSlideIn {
            from {
                opacity: 0;
                transform: translateX(-50%) translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
        }
        @keyframes toastFadeOut {
            from {
                opacity: 1;
            }
            to {
                opacity: 0;
            }
        }


/* Inline styles moved from user_permissions.php */

body.page-user-permissions * {
            -webkit-tap-highlight-color: transparent;
        }
        body.page-user-permissions a,
        body.page-user-permissions button,
        body.page-user-permissions input,
        body.page-user-permissions label,
        body.page-user-permissions [role="button"] {
            -webkit-tap-highlight-color: transparent;
        }
        body.page-user-permissions {
            font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            margin: 20px;
            background: #f5f5f5;
        }
        body.page-user-permissions .container {
            max-width: 800px;
            margin: 0 auto;
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        body.page-user-permissions .user-item {
            padding: 15px;
            border: 1px solid #ddd;
            margin: 10px 0;
            border-radius: 5px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        body.page-user-permissions .user-info {
            flex-grow: 1;
        }
        body.page-user-permissions .user-name {
            font-weight: bold;
            font-size: 16px;
        }
        body.page-user-permissions .user-email {
            color: #666;
            font-size: 14px;
        }
        body.page-user-permissions .checkbox-container input {
            width: 20px;
            height: 20px;
        }
        body.page-user-permissions .btn {
            background: #007bff;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            margin: 10px 5px;
        }
        body.page-user-permissions .btn:hover {
            background: #0056b3;
        }
        body.page-user-permissions .success {
            background: #d4edda;
            color: #155724;
            padding: 15px;
            border-radius: 5px;
            margin: 10px 0;
        }


/* Inline styles moved from get_images.php */

body.page-gallery * {
    -webkit-tap-highlight-color: transparent;
}

body.page-gallery a,
body.page-gallery button,
body.page-gallery input,
body.page-gallery label,
body.page-gallery [role="button"] {
    -webkit-tap-highlight-color: transparent;
}

body.page-gallery .media-type-indicator {
    position: absolute;
    top: 9px;
    left: 8px;
    background: rgba(5, 7, 10, 0.74);
    color: white;
    padding: 4px 7px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 10;
    line-height: 1;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.22);
}

body.page-gallery .video-indicator {
    display: flex;
    align-items: center;
    gap: 3px;
}

body.page-gallery .duration {
    display: none;
}

body.page-gallery .gallery-video {
    position: relative;
    cursor: pointer;
    transition: transform 0.1s ease;
    width: 120px;
    height: 120px;
    object-fit: cover;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body.page-gallery .gallery-video:active {
    transform: scale(0.98);
}

body.page-gallery .gallery-video::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 15px solid rgba(255, 255, 255, 0.8);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    pointer-events: none;
    z-index: 5;
}

body.page-gallery .gallery-image {
    cursor: pointer;
    transition: transform 0.1s ease;
    width: 120px;
    height: 120px;
    object-fit: cover;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body.page-gallery .gallery-image:active {
    transform: scale(0.98);
}

body.page-gallery .media-item {
    position: relative;
}

body.page-gallery .cover-indicator {
    position: absolute;
    top: 9px;
    left: 8px;
    background-color: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 1px 5px 1px 5px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 1px solid white;
    animation: coverFadeIn 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes coverFadeIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

body.page-gallery .gallery-video,
body.page-gallery .gallery-image {
    transition: opacity 0.3s ease;
}

body.page-gallery .gallery-video:hover,
body.page-gallery .gallery-image:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
body.page-gallery .gallery-collage-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: clamp(120px, 28vw, 232px);
    grid-auto-flow: dense;
    gap: 8px;
    width: min(100%, 856px);
    aspect-ratio: auto;
    margin: 0 auto 12px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
}

body.page-gallery .gallery-collage-group:last-of-type {
    margin-bottom: 0;
}

body.page-gallery .gallery-collage-tile.icon {
    display: block;
    margin: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    background: #1f1c24;
    text-align: left;
}

body.page-gallery .gallery-collage-tile > a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
    line-height: 0;
}

body.page-gallery .gallery-collage-tile .gallery-image,
body.page-gallery .gallery-collage-tile .gallery-video {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    border: 0;
    border-radius: inherit;
    box-shadow: none;
    background: #1f1c24;
}


body.page-gallery .gallery-collage-group .gallery-collage-tile:nth-child(5),
body.page-gallery .gallery-collage-group .gallery-collage-tile:nth-child(6) {
    grid-column: span 2;
}

body.page-gallery .gallery-collage-group .gallery-collage-tile.is-landscape {
    grid-column: span 2;
}

body.page-gallery .gallery-collage-group .gallery-collage-tile.is-tall {
    grid-row: span 2;
}

body.page-gallery .gallery-collage-group.item-count-1 {
    width: min(100%, 280px);
    grid-template-columns: 1fr;
    aspect-ratio: auto;
}

body.page-gallery .gallery-collage-group.item-count-2 {
    width: min(100%, 568px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    aspect-ratio: auto;
}

body.page-gallery .gallery-collage-group.item-count-3 {
    grid-template-columns: 2fr 1fr;
    aspect-ratio: auto;
}

body.page-gallery .gallery-collage-group.item-count-3 .gallery-collage-tile:first-child {
    grid-row: 1 / span 2;
}

body.page-gallery .gallery-collage-group.item-count-4 {
    width: min(100%, 1144px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    aspect-ratio: auto;
}

body.page-gallery .gallery-collage-group.item-count-1 .gallery-collage-tile,
body.page-gallery .gallery-collage-group.item-count-2 .gallery-collage-tile,
body.page-gallery .gallery-collage-group.item-count-4 .gallery-collage-tile {
    grid-row: auto;
}

body.page-gallery .gallery-empty {
    color: rgba(255, 255, 255, 0.58);
    margin: 18px 0 0;
}

@media (max-width: 600px) {
body.page-gallery .gallery-collage-group {
        gap: 7px;
        grid-auto-rows: clamp(100px, 27vw, 140px);
        width: 100%;
        padding: 0;
        border-radius: 0;
        margin-bottom: 10px;
        aspect-ratio: auto;
    }

    body.page-gallery .gallery-collage-group.item-count-1 {
        width: min(100%, 280px);
    }

    body.page-gallery .gallery-collage-group.item-count-2 {
        width: 100%;
        aspect-ratio: auto;
    }

    body.page-gallery .gallery-collage-group.item-count-3 {
        aspect-ratio: auto;
    }

    body.page-gallery .gallery-collage-group.item-count-4 {
        width: 100%;
        aspect-ratio: auto;
    }

    body.page-gallery .gallery-collage-tile.icon {
        border-radius: 10px;
    }

    body.page-gallery .media-type-indicator {
        font-size: 9px;
        padding: 4px 6px;
    }

}

}

body.page-upload #galleryBtn {
    display: none;
}

body.page-register .register-title {
    text-align: center;
}


body.page-contributors .contributors-empty,
body.page-contributors .contributors-actions {
    text-align: center;
}

body.page-contributors .contributors-empty {
    padding: 40px;
    color: #666;
}

body.page-contributors .btn-apply-all {
    background: #e67e22;
}

body.page-contributors .contributors-save-actions {
    text-align: center;
    margin: 30px 0;
}

/* Final list layout guard after consolidation */
body.page-list #container-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

@media screen and (max-width: 767px), (hover: none) and (pointer: coarse) {
    body.page-list #header-wrapper {
        width: min(calc(100% - 20px), 414px);
        max-width: 414px;
        margin: 0 auto 30px;
        padding: 20px 0;
    }

    body.page-list #container-wrapper {
        width: 100%;
        max-width: none;
        margin: 34px auto 0;
        padding: 0;
        gap: 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    body.page-list .container.album-container {
        width: min(calc(100% - 8px), 430px);
        max-width: 430px;
        flex: 0 0 auto;
        margin: 0 0 8px;
        padding: 8px;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    body.page-list .album-collage {
        width: 100%;
    }
}

@media screen and (min-width: 768px) and (hover: hover) and (pointer: fine) {
    body.page-list #header-wrapper,
    body.page-list #container-wrapper {
        width: 92%;
        max-width: 1180px;
    }

    body.page-list .container.album-container {
        width: calc(50% - 8px);
        max-width: 520px;
        flex: 0 0 calc(50% - 8px);
    }
}

@media screen and (min-width: 1200px) and (hover: hover) and (pointer: fine) {
    body.page-list #header-wrapper,
    body.page-list #container-wrapper {
        width: 85%;
        max-width: 1052px;
    }

    body.page-list .container.album-container {
        width: calc(50% - 12px);
        flex: 0 0 calc(50% - 12px);
    }
}

/* Final gallery magenta accents */
body.page-gallery .gallery-breadcrumb-current,
body.page-gallery .header-wrapper .gallery-breadcrumb-current {
    color: #d63384;
}

/* Final gallery count spacing */
body.page-gallery #mediaCount {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

/* Final gallery header truncation rules */
body.page-gallery .header-wrapper {
    gap: 12px;
}

body.page-gallery .gallery-breadcrumb {
    flex: 1 1 auto;
    min-width: 0;
}

body.page-gallery .gallery-breadcrumb-root,
body.page-gallery .gallery-breadcrumb-arrow {
    flex: 0 0 auto;
}

body.page-gallery .gallery-breadcrumb-current {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Final settings page background and sliding section nav */
body.page-settings {
    background-color: #f1f1f1;
    background-image: none;
}

body.page-settings .settings-nav {
    position: relative;
    overflow: hidden;
}

body.page-settings .settings-nav::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    height: 42px;
    border-radius: 12px;
    background: rgba(118, 48, 255, 0.14);
    transform: translateY(0);
    transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 0;
}

body.page-settings .settings-link {
    position: relative;
    z-index: 1;
    background: transparent;
}

body.page-settings .settings-link.active {
    background: transparent;
    color: #05070a;
}

/* Final settings width matches main gallery list */
body.page-settings .settings-shell {
    width: min(85vw, 950px);
    max-width: 950px;
    box-sizing: border-box;
}

@media screen and (max-width: 767px), (hover: none) and (pointer: coarse) {
    body.page-settings .settings-shell {
        width: calc(100vw - 32px);
        max-width: none;
    }
}

/* Final gallery header alignment */
body.page-gallery .header-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    justify-content: stretch;
    justify-items: stretch;
    column-gap: 12px;
}

body.page-gallery .header-wrapper .gallery-breadcrumb {
    grid-column: 1;
    width: 100%;
    justify-content: flex-start;
    justify-self: stretch;
    text-align: left;
    margin: 0;
}

body.page-gallery .gallery-user-menu {
    grid-column: 2;
    justify-self: end;
    margin-left: 0;
}

/* Final settings albums manager */
body.page-settings.settings-section-albums .settings-nav::before {
    transform: translateY(50px);
}

body.page-settings .settings-link.albums .settings-dot {
    background: #d63384;
}

body.page-settings .settings-albums-panel {
    min-width: 0;
}

body.page-settings .settings-album-list {
    display: grid;
    gap: 0;
    margin-top: 14px;
}

body.page-settings .settings-album-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    padding: 13px 0;
    border-bottom: 1px solid rgba(5, 7, 10, 0.1);
}

body.page-settings .settings-album-row:last-of-type {
    border-bottom: 0;
}

body.page-settings .settings-album-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

body.page-settings .settings-album-title-row {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
}

body.page-settings .settings-album-name {
    overflow: hidden;
    color: #05070a;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-settings .settings-album-date {
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

body.page-settings .settings-album-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

body.page-settings .settings-album-action {
    appearance: none;
    border: 0;
    background: transparent;
    color: #4b5563;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    padding: 0;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

body.page-settings .settings-album-action:focus-visible {
    outline: 2px solid rgba(214, 51, 132, 0.35);
    outline-offset: 3px;
}

body.page-settings .settings-album-action.delete {
    color: #c92a2a;
}

body.page-settings .settings-album-action.pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 24px;
    color: #9ca3af;
    font-size: 13px;
}

body.page-settings .settings-album-action.pin[aria-pressed="true"] {
    color: #d63384;
}

body.page-settings .settings-album-action:disabled {
    cursor: default;
    opacity: 0.45;
}

body.page-settings .settings-empty-state {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    padding: 14px 0;
}

body.page-settings .settings-edit-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    padding-top: max(74px, env(safe-area-inset-top));
    background: rgba(0, 0, 0, 0.28);
}

body.page-settings .settings-edit-overlay.show {
    display: flex;
}

body.page-settings .settings-edit-dialog {
    width: min(100%, 340px);
    border-radius: 18px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.page-settings .settings-edit-dialog h2 {
    margin: 0 0 12px 0;
    color: #05070a;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.1;
}

body.page-settings .settings-edit-input {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(216, 222, 232, 0.95);
    border-radius: 11px;
    padding: 10px 12px;
    background: #f6f7f9;
    color: #05070a;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

body.page-settings .settings-edit-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

body.page-settings .settings-edit-actions button {
    min-height: 40px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
}

body.page-settings .settings-edit-cancel {
    background: #eef1f6;
    color: rgba(5, 7, 10, 0.72);
}

body.page-settings .settings-edit-save {
    background: #36454f;
    color: #fff;
}

@media screen and (min-width: 768px) {
    body.page-settings .settings-edit-overlay {
        align-items: center;
        padding-top: 20px;
    }
}

@media screen and (max-width: 767px), (hover: none) and (pointer: coarse) {
    body.page-settings.settings-section-albums .settings-nav::before {
        transform: translateX(95px);
    }

    body.page-settings .settings-album-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    body.page-settings .settings-album-actions {
        justify-content: flex-start;
        gap: 14px;
    }
}
/* Absolute final list collage internal spacing */
body.page-list .container.album-container .album-collage {
    gap: 8px;
}

/* Final mobile settings nav scroll and logout action */
body.page-settings .settings-link.logout {
    color: #d9263e;
}

body.page-settings .settings-link.logout .settings-dot {
    background: #d9263e;
}

/* Final settings nav text color */
body.page-settings .settings-link,
body.page-settings .settings-link.active,
body.page-settings .settings-link.albums,
body.page-settings .settings-link.permissions,
body.page-settings .settings-link.logout {
    color: #05070a;
}

@media screen and (max-width: 767px), (hover: none) and (pointer: coarse) {
    body.page-settings .settings-nav {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    body.page-settings .settings-nav::-webkit-scrollbar {
        display: none;
    }

    body.page-settings .settings-link {
        flex: 0 0 auto;
        min-height: 38px;
        white-space: nowrap;
        padding-top: 9px;
        padding-bottom: 9px;
    }
}

/* Final login centering and app-gray background */
html:has(body.page-login),
body.page-login {
    min-height: 100%;
}

body.page-login {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f1f1;
    color: #05070a;
}

body.page-login .login-shell {
    width: min(100%, 420px);
    max-width: 420px;
    margin: 0 auto;
}

body.page-login .container {
    width: min(100%, 420px);
    max-width: 420px;
    margin: 0 auto;
    padding: 28px 24px 24px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(42, 50, 66, 0.1);
}

body.page-login .login-logo {
    display: block;
    width: min(190px, 62%);
    height: auto;
    margin: 0 auto 20px;
}

body.page-login h2 {
    text-align: center;
}

body.page-login button[type=submit]:disabled {
    opacity: 0.72;
    cursor: wait;
}

@media screen and (max-width: 430px) {
    body.page-login {
        padding: 18px;
    }

    body.page-login .login-logo {
        width: min(170px, 68%);
        margin-bottom: 16px;
    }
}

/* Final shared login/register card placement */
html:has(body.page-login),
html:has(body.page-register),
body.page-login,
body.page-register {
    min-height: 100%;
}

body.page-login,
body.page-register {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    padding: 24px;
    display: grid;
    place-items: center;
    background: #f1f1f1;
    background-image: none;
    color: #05070a;
    font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.page-login .auth-shell,
body.page-register .auth-shell {
    width: min(100%, 420px);
    max-width: 420px;
    margin: 0 auto;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
    min-height: calc(100svh - 48px);
}

body.page-login .auth-shell::after,
body.page-register .auth-shell::after {
    content: "";
    display: block;
    min-height: 0;
}

body.page-login .auth-logo-space,
body.page-register .auth-logo-space {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 18px;
}

body.page-login .auth-logo,
body.page-register .auth-logo {
    display: block;
    width: min(190px, 62%);
    height: auto;
    margin: 0;
}

body.page-login .container,
body.page-register .container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 28px 24px 24px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(42, 50, 66, 0.1);
    text-align: left;
}

body.page-login h2,
body.page-register h2 {
    margin: 0 0 24px;
    color: #05070a;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

body.page-login .form-group,
body.page-register .form-group {
    margin-bottom: 18px;
}

body.page-login label,
body.page-register label {
    display: block;
    margin-bottom: 7px;
    color: #05070a;
    font-size: 14px;
    font-weight: 700;
}

body.page-login input[type=text],
body.page-login input[type=password],
body.page-register input[type=text],
body.page-register input[type=email],
body.page-register input[type=password] {
    width: 100%;
    max-width: none;
    padding: 11px 12px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid rgba(216, 222, 232, 0.95);
    box-sizing: border-box;
    background: #f6f7f9;
    color: #05070a;
    outline: none;
}

body.page-login input[type=text]:focus,
body.page-login input[type=password]:focus,
body.page-register input[type=text]:focus,
body.page-register input[type=email]:focus,
body.page-register input[type=password]:focus {
    border-color: rgba(232, 25, 135, 0.72);
}

body.page-login input[type=password],
body.page-register input[type=password] {
    font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.2;
    -webkit-text-security: disc;
}

body.page-login button[type=submit],
body.page-register button[type=submit] {
    width: 100%;
    max-width: none;
    margin: 28px auto 0;
    padding: 13px 24px;
    display: block;
    border: 0;
    border-radius: 8px;
    background: #724dd1;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

body.page-login .register-link,
body.page-register .login-link {
    margin-top: 20px;
    color: rgba(103, 109, 124, 0.94);
    font-size: 14px;
    text-align: center;
}

body.page-login .register-link p,
body.page-register .login-link p {
    margin-bottom: 0;
}

body.page-login .register-link a,
body.page-register .login-link a {
    color: #e81987;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

@media screen and (max-width: 430px) {
    body.page-login,
    body.page-register {
        padding: 18px;
    }

    body.page-login .auth-shell,
    body.page-register .auth-shell {
        min-height: calc(100svh - 36px);
    }

    body.page-login .auth-logo-space,
    body.page-register .auth-logo-space {
        min-height: 76px;
        padding-bottom: 16px;
    }

    body.page-login .auth-logo,
    body.page-register .auth-logo {
        width: min(170px, 68%);
    }
}

/* Final settings header home action */
body.page-settings .settings-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

body.page-settings .settings-title-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

body.page-settings .settings-home {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #05070a;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(42, 50, 66, 0.1);
    -webkit-tap-highlight-color: transparent;
}

body.page-settings .settings-home:focus,
body.page-settings .settings-home:focus-visible {
    outline: none;
}

body.page-settings .settings-home img {
    width: 19px;
    height: 19px;
    display: block;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(7%) sepia(9%) saturate(1278%) hue-rotate(184deg) brightness(93%) contrast(91%);
}

/* Final settings home button matches list header buttons */
body.page-settings .settings-home {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 0;
    border-radius: 10px;
    background: rgba(5, 7, 10, 0.72);
    color: #fff;
    box-shadow: 0 8px 18px rgba(42, 50, 66, 0.22);
}

body.page-settings .settings-home:hover,
body.page-settings .settings-home:focus,
body.page-settings .settings-home:active,
body.page-settings .settings-home:visited {
    color: #fff;
    text-decoration: none;
}

body.page-settings .settings-home img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

/* Final settings header mirrors main gallery header */
body.page-settings .settings-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

body.page-settings .settings-site-title {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-width: 0;
}

body.page-settings .site-logo-link {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

body.page-settings .site-logo {
    width: min(110px, 27vw);
    height: auto;
    display: block;
    object-fit: contain;
}

body.page-settings .settings-home {
    border-radius: 50%;
    justify-self: end;
}

@media screen and (min-width: 768px) {
    body.page-settings .site-logo {
        transform: translateY(-8px) scale(1.28);
        transform-origin: left top;
    }

    body.page-settings .settings-home {
        transform: translateY(-8px);
    }
}

@media screen and (max-width: 767px), (hover: none) and (pointer: coarse) {
    body.page-settings .settings-nav::before {
        display: none;
    }

    body.page-settings .settings-link {
        background: transparent;
    }

    body.page-settings .settings-link.active {
        background: rgba(118, 48, 255, 0.14);
        border-radius: 12px;
    }
}

body.page-settings .settings-dot {
    background: #7630ff;
}
body.page-settings .settings-link.permissions .settings-dot {
    background: #45d3ff;
}

body.page-settings .settings-link.logout .settings-dot {
    background: #d9263e;
}

/* Final settings users manager */
body.page-settings .settings-link.users .settings-dot {
    background: #23b26d;
}

body.page-settings.settings-section-users .settings-nav::before {
    transform: translateY(94px);
}

/* Final settings active row alignment */
body.page-settings .settings-nav::before,
body.page-settings.settings-section-albums .settings-nav::before,
body.page-settings.settings-section-users .settings-nav::before {
    display: none;
}

body.page-settings .settings-link.active {
    background: rgba(118, 48, 255, 0.14);
    border-radius: 12px;
}

body.page-settings .settings-users-panel {
    min-width: 0;
}

body.page-settings .settings-user-list {
    display: grid;
    gap: 0;
    margin-top: 14px;
}

body.page-settings .settings-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    padding: 13px 0;
    border-bottom: 1px solid rgba(5, 7, 10, 0.1);
}

body.page-settings .settings-user-row:last-of-type {
    border-bottom: 0;
}

body.page-settings .settings-user-row.pending {
    background: rgba(118, 48, 255, 0.05);
    border-radius: 10px;
    margin: 2px 0;
    padding-left: 10px;
    padding-right: 10px;
}

body.page-settings .settings-user-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

body.page-settings .settings-user-name {
    overflow: hidden;
    color: #05070a;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-settings .settings-user-email,
body.page-settings .settings-user-main small {
    overflow: hidden;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-settings .settings-user-status {
    color: #7630ff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

body.page-settings .settings-user-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

body.page-settings .settings-user-action {
    appearance: none;
    border: 0;
    background: transparent;
    color: #c92a2a;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    padding: 0;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

body.page-settings .settings-user-action.approve {
    color: #16a34a;
}

body.page-settings .settings-user-action.deny,
body.page-settings .settings-user-action.delete {
    color: #c92a2a;
}

body.page-settings .settings-user-action:disabled {
    cursor: default;
    opacity: 0.55;
}

body.page-settings .settings-user-current {
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

@media screen and (max-width: 767px), (hover: none) and (pointer: coarse) {
    body.page-settings.settings-section-users .settings-nav::before {
        transform: translateX(186px);
    }

    body.page-settings .settings-user-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    body.page-settings .settings-user-actions {
        justify-content: flex-start;
    }
}

@media screen and (max-width: 767px), (hover: none) and (pointer: coarse) {
    body.page-settings .settings-nav {
        padding-left: 12px;
        padding-right: 12px;
        scroll-padding-inline: 12px;
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
    }
}

/* Final main gallery live search */
body.page-list #header-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 14px;
    row-gap: 16px;
}

body.page-list #header-wrapper .site-title {
    grid-column: 1;
    grid-row: 1;
}

body.page-list #header-wrapper .header-buttons {
    grid-column: 2;
    grid-row: 1;
}

body.page-list .list-search-row {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

body.page-list .list-search-field {
    width: min(100%, 260px);
    height: 46px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    padding: 0 17px;
    border: 1px solid rgba(75, 85, 99, 0.45);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.62);
    color: rgba(5, 7, 10, 0.48);
    box-shadow: none;
}

body.page-list .list-search-field i {
    flex: 0 0 auto;
    color: rgba(5, 7, 10, 0.45);
    font-size: 16px;
    line-height: 1;
}

body.page-list #searchBar,
body.page-list #searchBar.expanded,
body.page-list #searchBar:focus {
    position: static;
    width: 100%;
    height: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    opacity: 1;
    box-shadow: none;
    background: transparent;
    color: #05070a;
    font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
}

body.page-list #searchBar::placeholder {
    color: rgba(5, 7, 10, 0.42);
    opacity: 1;
}

body.page-list #searchBar::-webkit-search-decoration,
body.page-list #searchBar::-webkit-search-cancel-button,
body.page-list #searchBar::-webkit-search-results-button,
body.page-list #searchBar::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
}

body.page-list .search-empty-state {
    display: none;
    width: 100%;
}

body.page-list .mobile-search-toggle {
    display: none;
}

body.page-list .create-album-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    border: 0;
    border-radius: 10px;
    background: rgba(5, 7, 10, 0.72);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(42, 50, 66, 0.22);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

body.page-list .create-album-btn:hover,
body.page-list .create-album-btn:focus,
body.page-list .create-album-btn:active,
body.page-list .create-album-btn:visited {
    color: #fff;
    text-decoration: none;
    outline: none;
    box-shadow: 0 8px 18px rgba(42, 50, 66, 0.22);
}

body.page-list .create-album-btn i {
    font-size: 16px;
    line-height: 1;
}

@media screen and (max-width: 767px), (hover: none) and (pointer: coarse) {
    body.page-list #header-wrapper {
        row-gap: 12px;
    }

    body.page-list .mobile-search-toggle {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 38px;
        border: 0;
        border-radius: 10px;
        background: rgba(5, 7, 10, 0.72);
        color: #fff;
        box-shadow: 0 8px 18px rgba(42, 50, 66, 0.22);
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        -webkit-tap-highlight-color: transparent;
    }

    body.page-list .mobile-search-toggle i {
        font-size: 15px;
        line-height: 1;
    }

    body.page-list .mobile-search-toggle:focus,
    body.page-list .mobile-search-toggle:focus-visible,
    body.page-list .mobile-search-toggle:active {
        outline: none;
        box-shadow: 0 8px 18px rgba(42, 50, 66, 0.22);
    }

    body.page-list .list-search-row {
        display: none;
        justify-content: center;
        padding-top: 2px;
    }

    body.page-list #header-wrapper.mobile-search-open .list-search-row {
        display: flex;
    }

    body.page-list .list-search-field {
        width: min(100%, 236px);
        height: 43px;
        padding: 0 15px;
        gap: 10px;
    }

    body.page-list #searchBar {
        font-size: 16px;
    }
}

/* Final desktop list header/gallery edge alignment */
@media screen and (min-width: 768px) {
    body.page-list #header-wrapper,
    body.page-list #container-wrapper {
        width: min(85vw, 1052px);
        max-width: 1052px;
        box-sizing: border-box;
        margin-left: auto;
        margin-right: auto;
    }

    body.page-list #header-wrapper {
        padding-left: 18px;
        padding-right: 18px;
    }

    body.page-list #container-wrapper {
        gap: 12px;
    }

    body.page-list .container.album-container {
        width: calc((100% - 12px) / 2);
        max-width: none;
        flex: 0 0 calc((100% - 12px) / 2);
        box-sizing: border-box;
    }
}

/* Final album menu gear trigger */
body.page-gallery .gallery-user-trigger.gallery-menu-gear {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    gap: 0;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 7, 10, 0.72);
    color: #fff;
    box-shadow: 0 8px 18px rgba(42, 50, 66, 0.22);
    -webkit-tap-highlight-color: transparent;
}

body.page-gallery .gallery-user-trigger.gallery-menu-gear i {
    font-size: 16px;
    line-height: 1;
}

body.page-gallery .gallery-user-trigger.gallery-menu-gear:hover,
body.page-gallery .gallery-user-trigger.gallery-menu-gear:focus,
body.page-gallery .gallery-user-trigger.gallery-menu-gear:focus-visible,
body.page-gallery .gallery-user-trigger.gallery-menu-gear:active {
    color: #fff;
    outline: none;
    box-shadow: 0 8px 18px rgba(42, 50, 66, 0.22);
}

body.page-gallery .gallery-user-trigger.gallery-menu-gear.is-active {
    background: #16a34a;
    color: #fff;
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.3);
}

/* Final pill search field */
body.page-list .list-search-field {
    width: min(100%, 290px);
    height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    padding: 5px 5px 5px 18px;
    border: 1px solid rgba(75, 85, 99, 0.38);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: rgba(5, 7, 10, 0.54);
    box-shadow: 0 8px 18px rgba(42, 50, 66, 0.08);
}

body.page-list .list-search-submit {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    background: #d63384;
    color: #fff;
    box-shadow: 0 8px 16px rgba(214, 51, 132, 0.26);
}

body.page-list .list-search-submit i {
    color: #fff;
    font-size: 15px;
    line-height: 1;
}

body.page-list #searchBar,
body.page-list #searchBar.expanded,
body.page-list #searchBar:focus {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 18px;
}

@media screen and (max-width: 767px), (hover: none) and (pointer: coarse) {
    body.page-list .list-search-row {
        display: flex;
        justify-content: center;
        pointer-events: none;
        opacity: 0;
        transform: translateY(-6px) scale(0.96);
        transform-origin: top center;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    body.page-list #header-wrapper.mobile-search-open .list-search-row {
        pointer-events: auto;
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    body.page-list .list-search-field {
        width: min(100%, 270px);
        height: 46px;
        padding: 5px 5px 5px 16px;
        gap: 8px;
    }

    body.page-list .list-search-submit {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    body.page-list #searchBar {
        font-size: 16px;
    }
}

/* Final desktop header nudge to match gallery wrapper */
@media screen and (min-width: 768px) {
    body.page-list #header-wrapper {
        width: min(calc(85vw - 24px), 1028px);
        max-width: 1028px;
    }
}

/* Final compact list header controls and search */
body.page-list .mobile-search-toggle,
body.page-list .create-album-btn,
body.page-list .settings-cog-btn {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
}

.upload-demo-modal .modal-dialog {
    max-width: 640px;
    margin: 64px auto 24px;
    transition: none;
    transform: none;
    transform-origin: center center;
}

.upload-demo-modal.fade .modal-dialog,
.upload-demo-modal.fade:not(.show) .modal-dialog,
.upload-demo-modal.is-demo-expanded .modal-dialog {
    transform: none;
}

.upload-demo-modal.fade {
    transition: opacity 320ms ease;
}

.upload-demo-backdrop {
    position: fixed;
    top: -80px;
    right: 0;
    bottom: -180px;
    left: 0;
    min-height: 100vh;
    min-height: 100dvh;
    z-index: 1040;
    background: #000;
    opacity: 0;
    transition: opacity 320ms ease;
}

.upload-demo-backdrop.is-visible {
    opacity: 0.5;
}

.upload-demo-modal .modal-content {
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 70px rgba(5, 7, 10, 0.18);
}

.upload-demo-modal .modal-header {
    display: none;
}

.upload-demo-stage {
    position: relative;
    --upload-demo-stage-height: 270px;
    --upload-demo-dropzone-height: 270px;
    --upload-demo-list-height: 0px;
    min-height: 270px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    border: 0;
    border-radius: 0;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: min-height 620ms cubic-bezier(.2, .8, .2, 1), background 260ms ease;
}

.upload-demo-modal.is-demo-expanded .upload-demo-stage {
    min-height: var(--upload-demo-stage-height);
}

.upload-demo-stage.is-stage-collapsing {
    transition: min-height 860ms cubic-bezier(.2, .8, .2, 1), background 260ms ease;
}

.upload-demo-stage.is-dragover {
    background: #fff;
    border-color: transparent;
    outline: 0;
    box-shadow: none;
}

.upload-demo-stage.is-dragover:focus,
.upload-demo-stage.is-dragover:focus-visible,
.upload-demo-stage.is-dragover:active {
    border-color: transparent;
    outline: 0;
    box-shadow: none;
}

.upload-demo-stage.is-dragover::before,
.upload-demo-stage.is-dragover::after {
    content: none;
    display: none;
}

.upload-demo-stage.is-dragover .upload-demo-dropzone {
    margin: 0;
    min-height: var(--upload-demo-dropzone-height);
    flex-basis: var(--upload-demo-dropzone-height);
    border: 0;
    border-radius: 20px;
    background: #fff;
}

.upload-demo-dropzone::before {
    content: "";
    position: absolute;
    inset: 22px 28px;
    z-index: 0;
    border-radius: 20px;
    background: #edf4ff;
    opacity: 0;
    transition: opacity 180ms ease;
    pointer-events: none;
}

.upload-demo-dropzone::after {
    content: "";
    position: absolute;
    inset: 22px 28px;
    z-index: 0;
    border-radius: 20px;
    background:
        repeating-linear-gradient(90deg, #4f86c6 0 28px, transparent 28px 44px) top left / 100% 2px no-repeat,
        repeating-linear-gradient(90deg, #4f86c6 0 28px, transparent 28px 44px) bottom left / 100% 2px no-repeat,
        repeating-linear-gradient(180deg, #4f86c6 0 28px, transparent 28px 44px) top left / 2px 100% no-repeat,
        repeating-linear-gradient(180deg, #4f86c6 0 28px, transparent 28px 44px) top right / 2px 100% no-repeat;
    opacity: 0;
    transition: opacity 180ms ease;
    pointer-events: none;
}

.upload-demo-stage.is-dragover .upload-demo-dropzone::before {
    opacity: 1;
}

.upload-demo-stage.is-dragover .upload-demo-dropzone::after {
    opacity: 1;
}

.upload-demo-stage.is-dragover .upload-demo-dropzone > * {
    position: relative;
    z-index: 1;
}

.upload-demo-stage.is-dragover .upload-demo-status,
.upload-demo-stage.is-dragover .upload-demo-limit {
    color: #2468d6;
}

.upload-demo-stage.is-running {
    cursor: default;
}

#uploadDemoInput {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.upload-demo-dropzone {
    flex: 0 0 var(--upload-demo-dropzone-height);
    min-height: var(--upload-demo-dropzone-height);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    background: #fff;
    transition: flex-basis 620ms cubic-bezier(.2, .8, .2, 1), min-height 620ms cubic-bezier(.2, .8, .2, 1), margin 0ms linear, border 0ms linear, border-color 90ms ease, border-radius 0ms linear, background 90ms ease, transform 620ms cubic-bezier(.2, .8, .2, 1);
    transform: translateY(0);
}

.upload-demo-stage.is-stage-collapsing .upload-demo-dropzone {
    transition: flex-basis 860ms cubic-bezier(.2, .8, .2, 1), min-height 860ms cubic-bezier(.2, .8, .2, 1), margin 0ms linear, border 0ms linear, border-color 90ms ease, border-radius 0ms linear, background 90ms ease, transform 860ms cubic-bezier(.2, .8, .2, 1);
}

.upload-demo-stage.has-files .upload-demo-dropzone {
    transform: none;
}

.upload-demo-stage.is-preparing-name .upload-demo-dropzone,
.upload-demo-stage.is-naming .upload-demo-dropzone {
    transform: none;
}

.upload-demo-image-icon,
.upload-demo-status,
.upload-demo-limit {
    opacity: 0;
    transition: opacity 320ms ease, transform 260ms ease, color 260ms ease;
}

.upload-demo-stage.is-open .upload-demo-image-icon,
.upload-demo-stage.is-open .upload-demo-status,
.upload-demo-stage.is-open .upload-demo-limit {
    opacity: 1;
}

.upload-demo-stage.is-open .upload-demo-status.is-summary-swapping {
    opacity: 0;
    transition: opacity 180ms ease;
}

.upload-demo-stage.is-open .upload-demo-limit.is-limit-swapping {
    opacity: 0;
    transition: opacity 180ms ease;
}

.upload-demo-stage.is-preparing-name .upload-demo-image-icon,
.upload-demo-stage.is-preparing-name .upload-demo-status,
.upload-demo-stage.is-preparing-name .upload-demo-limit {
    opacity: 0;
}

.upload-demo-stage.is-naming .upload-demo-image-icon,
.upload-demo-stage.is-naming .upload-demo-status,
.upload-demo-stage.is-naming .upload-demo-limit {
    display: none;
}

.upload-demo-stage.is-finalizing .upload-demo-image-icon,
.upload-demo-stage.is-finalizing .upload-demo-status,
.upload-demo-stage.is-finalizing .upload-demo-limit,
.upload-demo-stage.is-finalizing .upload-demo-name-panel {
    display: none;
}

.upload-demo-image-icon {
    width: 64px;
    height: 64px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: transparent;
}

.upload-demo-image-icon::before,
.upload-demo-image-icon::after,
.upload-demo-image-icon span {
    content: none;
    display: none;
}

.upload-demo-image-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.upload-demo-files {
    flex: 0 0 auto;
    max-height: 0;
    display: grid;
    gap: 10px;
    padding: 0 8px;
    overflow: hidden;
    background: #fff;
    opacity: 0;
    transform: none;
    transition: max-height 620ms cubic-bezier(.2, .8, .2, 1), padding 620ms ease, opacity 1000ms ease;
}

.upload-demo-stage.is-stage-collapsing .upload-demo-files {
    transition: max-height 860ms cubic-bezier(.2, .8, .2, 1), padding 860ms ease, opacity 1000ms ease;
}

.upload-demo-files.has-error-stack::before,
.upload-demo-files.has-error-stack::after {
    content: none;
    display: none;
}

.upload-demo-modal.is-demo-expanded .upload-demo-files {
    max-height: var(--upload-demo-list-height);
    padding: 0 8px 8px;
    opacity: 1;
    transform: none;
}

.upload-demo-error-stack-slot {
    position: relative;
    min-height: 64px;
    overflow: hidden;
    isolation: isolate;
}

.upload-demo-file {
    position: relative;
    --upload-row-progress: 0%;
    --upload-row-radius: 14px;
    min-height: 64px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 2px solid #e6e9f0;
    border-radius: var(--upload-row-radius);
    background: #f8f9fc;
    box-shadow: none;
    opacity: 0;
    overflow: hidden;
    transform: none;
    animation: none;
    transition: opacity 1000ms ease;
    pointer-events: none;
}

.upload-demo-file.is-visible {
    opacity: 1;
    transform: none;
}

.upload-demo-file.is-real-upload {
    pointer-events: auto;
}

.upload-demo-file.is-fast-switch {
    transition-duration: 320ms;
}

.upload-demo-file.is-row-swap-in {
    animation: uploadDemoRowSwapIn 220ms ease both;
}

.upload-demo-file.is-failed {
    width: 100%;
    min-height: 64px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 8px;
    border-color: #f6cbd5;
    background: #fff0f3;
    pointer-events: auto;
    transition: none;
}

.upload-demo-error-stack-slot .upload-demo-file.is-failed {
    position: absolute;
    inset: 0;
}

.upload-demo-file.is-failed.is-stack-front {
    transform: none;
    opacity: 1;
    pointer-events: auto;
    z-index: 5;
}

.upload-demo-file.is-failed.is-stack-ghost {
    opacity: 0.62;
    pointer-events: none;
    z-index: 1;
    transform: translateY(var(--error-stack-y, 5px)) scale(var(--error-stack-scale, 0.965));
    transform-origin: center center;
    background: #ffe3e8;
    border-color: rgba(238, 109, 128, 0.5);
    box-shadow: 0 8px 16px rgba(238, 109, 128, 0.08);
}

.upload-demo-file.is-failed.is-stack-ghost::before {
    background: rgba(238, 109, 128, 0.08);
}

.upload-demo-file.is-failed.is-stack-front .upload-demo-thumb,
.upload-demo-file.is-failed.is-stack-front .upload-demo-file-text,
.upload-demo-file.is-failed.is-stack-front .upload-demo-file-controls {
    display: inline-flex;
    opacity: 1;
    visibility: visible;
    transition: opacity 160ms ease 90ms;
}

.upload-demo-file.is-failed.is-stack-front .upload-demo-file-text {
    display: grid;
}

.upload-demo-file.is-failed.is-stack-promoting {
    animation: uploadDemoStackPromote 1100ms cubic-bezier(.16, .82, .24, 1) both;
}

.upload-demo-file.is-failed.is-dismissing {
    opacity: 0;
    transform: none;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.upload-demo-file.is-unsupported {
    border-color: rgba(238, 109, 128, 0.42);
    background: #fff7f9;
    pointer-events: auto;
}

.upload-demo-file::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--upload-row-progress);
    display: block;
    border-radius: var(--upload-row-radius);
    background: #e6f7ec;
    opacity: 1;
    transition: width 120ms linear, opacity 160ms ease;
    z-index: 0;
}

.upload-demo-file.is-resetting-progress::before {
    transition: none;
}

.upload-demo-file.is-progress-fading::before {
    opacity: 0;
}

.upload-demo-file.is-canceled {
    border-color: rgba(238, 109, 128, 0.48);
    background: #fff0f3;
}

.upload-demo-file.is-canceled::before {
    background: rgba(238, 109, 128, 0.22);
}

.upload-demo-file.is-failed::before {
    width: 100%;
    background: rgba(238, 109, 128, 0.12);
    transition: none;
}

.upload-demo-file.is-unsupported::before {
    background: rgba(238, 109, 128, 0.14);
}

.upload-demo-thumb,
.upload-demo-file-text,
.upload-demo-file-controls {
    position: relative;
    z-index: 1;
}

.upload-demo-file-controls,
.upload-demo-file-controls button {
    pointer-events: auto;
}

.upload-demo-file.is-finishing {
    animation: uploadDemoRowOut 240ms ease forwards;
}

.upload-demo-file.is-final-removing.is-finishing {
    animation: uploadDemoRowOut 240ms ease forwards;
}

.upload-demo-file.is-fast-switch.is-finishing {
    animation-duration: 320ms;
}

.upload-demo-thumb {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 9px;
    background: #eef2f7;
    line-height: 0;
}

.upload-demo-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    border-radius: inherit;
}

.upload-demo-file-icon {
    width: 100%;
    height: 100%;
    display: block;
    background: linear-gradient(180deg, #fff 0%, #f2f4f7 100%);
}

.upload-demo-status {
    margin-top: 18px;
    min-height: 20px;
    color: #121722;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
}

.upload-demo-status span {
    color: #2468d6;
    font-weight: 700;
}

.upload-demo-limit {
    margin-top: 7px;
    color: #667085;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.25;
    min-height: 19px;
    text-align: center;
    white-space: nowrap;
}

.upload-demo-limit.is-uploading-counter {
    position: relative;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
    overflow: hidden;
    color: #6423e6;
    -webkit-text-fill-color: #6423e6;
}

.upload-counter-base {
    position: relative;
    z-index: 1;
    display: inline-block;
    overflow: hidden;
    color: #fff;
    background-image:
        linear-gradient(90deg, transparent 0%, transparent 28%, rgba(255, 255, 255, 0.42) 40%, #fff 50%, rgba(255, 255, 255, 0.42) 60%, transparent 72%, transparent 100%),
        linear-gradient(90deg, transparent 0%, transparent 28%, rgba(255, 255, 255, 0.42) 40%, #fff 50%, rgba(255, 255, 255, 0.42) 60%, transparent 72%, transparent 100%),
        linear-gradient(#6423e6, #6423e6);
    background-position: -280px 0, -280px 0, 0 0;
    background-repeat: no-repeat, no-repeat, repeat;
    background-size: 280px 100%, 280px 100%, 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-size-adjust: none;
    transform: translateZ(0);
    will-change: background-position;
}

.upload-counter-base::after {
    content: none;
    display: none;
}

.upload-counter-shimmer {
    display: none;
}

.upload-counter-shimmer-text {
    display: none;
}

.upload-demo-progress {
    display: none;
}

.upload-demo-modal.is-demo-expanded .upload-demo-progress {
    display: none;
}

.upload-demo-progress span {
    width: 0%;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: #2468d6;
    transition: width 160ms linear;
}

.upload-demo-name-panel {
    width: min(100%, 500px);
    margin: 0 auto;
    padding: 0 46px;
    box-sizing: border-box;
    font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
    display: none;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    transition: opacity 360ms ease;
    animation: none;
}

.upload-demo-stage.is-naming .upload-demo-name-panel {
    display: grid;
    gap: 30px;
    align-self: center;
    justify-self: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(26px);
    transition: opacity 360ms ease;
    animation: none;
}

.upload-demo-stage.is-naming.is-naming-revealed .upload-demo-name-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(26px);
}

body.page-list .upload-demo-modal .upload-demo-name-title {
    display: block;
    margin: 0;
    color: #121722;
    -webkit-text-fill-color: #121722;
    font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
}

.upload-demo-name-row {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    gap: 0;
}

#uploadDemoAlbumName {
    width: min(100%, 360px);
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d5deea;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-size: 15px;
    font-weight: 500;
    line-height: 42px;
    outline: 0;
    box-shadow: none;
}

#uploadDemoAlbumName:focus {
    border-color: #2468d6;
    box-shadow: 0 0 0 3px rgba(36, 104, 214, 0.14);
}

#uploadDemoNameSubmit {
    min-width: 116px;
    height: 42px;
    margin-top: 38px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    background: #2468d6;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    justify-self: center;
}

#uploadDemoNameSubmit:disabled {
    background: #d8dde6;
    color: #8a93a3;
    opacity: 1;
    cursor: default;
}

#uploadDemoAlbumName:disabled {
    opacity: 0.62;
    cursor: default;
}

.upload-demo-name-error {
    min-height: 15px;
    color: #d9263e;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
}

.upload-demo-file-text {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    display: grid;
    gap: 4px;
    justify-items: start;
    text-align: left;
}

.upload-demo-file-name {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-demo-file-meta {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #667085;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
}

.upload-demo-file-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.upload-cancel,
.upload-demo-retry,
.upload-demo-delete,
.upload-demo-ok {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.upload-cancel {
    background: #fdeaf0;
    color: #ee6d80;
    font-size: 17px;
    font-weight: 800;
}

.upload-cancel:disabled {
    opacity: 0.55;
    cursor: default;
}

.upload-demo-countdown {
    min-width: 42px;
    height: 28px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ee6d80;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.upload-demo-retry {
    background: #fdeaf0;
    color: #ee6d80;
    cursor: pointer;
}

.upload-demo-delete {
    background: #fdeaf0;
    color: #ee6d80;
    cursor: pointer;
}

.upload-demo-ok {
    width: auto;
    min-width: 42px;
    padding: 0 12px;
    border-radius: 999px;
    background: #ee6d80;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
}

@keyframes uploadDemoRowIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes uploadDemoRowOut {
    to {
        opacity: 0;
        transform: none;
    }
}

@keyframes uploadDemoRowSwapIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes uploadCounterTextShine {
    0% {
        transform: translate3d(-52px, 0, 0);
    }
    60% {
        transform: translate3d(calc(100% + 52px), 0, 0);
    }
    100% {
        transform: translate3d(calc(100% + 52px), 0, 0);
    }
}

@keyframes uploadCounterGlow {
    0% {
        transform: translate3d(-52px, 0, 0);
    }
    62% {
        transform: translate3d(calc(100% + 52px), 0, 0);
    }
    100% {
        transform: translate3d(calc(100% + 52px), 0, 0);
    }
}

@keyframes uploadDemoStackPromote {
    from {
        opacity: 0.82;
        transform: translateY(4px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media screen and (max-width: 540px) {
    .upload-demo-modal .modal-dialog {
        width: min(calc(100% - 48px), 420px);
        max-width: 420px;
        margin: 58px auto 18px;
    }

    .upload-demo-modal.is-demo-expanded .modal-dialog {
        max-width: none;
    }

    .upload-demo-stage {
        --upload-demo-dropzone-height: 246px;
        min-height: 246px;
    }

    .upload-demo-modal.is-demo-expanded .upload-demo-stage {
        min-height: var(--upload-demo-stage-height);
    }

    .upload-demo-dropzone {
        flex-basis: var(--upload-demo-dropzone-height);
        min-height: var(--upload-demo-dropzone-height);
        padding: 14px 16px;
    }

    .upload-demo-stage.is-dragover .upload-demo-dropzone {
        margin: 0;
        min-height: var(--upload-demo-dropzone-height);
        flex-basis: var(--upload-demo-dropzone-height);
        border-radius: 18px;
    }

    .upload-demo-dropzone::before {
        inset: 16px 18px;
        border-radius: 18px;
    }

    .upload-demo-stage.has-files .upload-demo-dropzone {
        transform: none;
    }

    .upload-demo-stage.is-naming .upload-demo-dropzone {
        transform: none;
    }

    .upload-demo-status {
        margin-top: 16px;
        font-size: 18px;
    }

    .upload-demo-limit {
        margin-top: 6px;
        font-size: 13px;
    }

    .upload-demo-file {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        min-height: 62px;
        padding: 8px;
    }

    .upload-demo-thumb {
        width: 40px;
        height: 40px;
    }

    .upload-demo-file-controls {
        gap: 6px;
    }

    .upload-demo-name-panel {
        width: 100%;
        margin: 0 auto;
        padding: 0 20px;
    }

    .upload-demo-stage.is-naming .upload-demo-name-panel,
    .upload-demo-stage.is-naming.is-naming-revealed .upload-demo-name-panel {
        transform: translateY(22px);
    }

    body.page-list .upload-demo-modal .upload-demo-name-title {
        font-size: 18px;
    }

    .upload-demo-name-row {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 0;
    }

    #uploadDemoAlbumName,
    #uploadDemoNameSubmit {
        height: 40px;
    }

    #uploadDemoAlbumName {
        width: min(100%, 320px);
    }

    #uploadDemoNameSubmit {
        margin-top: 34px;
    }

    .upload-cancel,
    .upload-demo-retry,
    .upload-demo-delete {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .upload-demo-stage {
        justify-content: flex-start;
    }

    .upload-demo-modal.is-demo-expanded .upload-demo-stage {
        min-height: var(--upload-demo-stage-height);
    }
}

body.page-list .list-search-field {
    width: min(100%, 244px);
    height: 40px;
    position: relative;
    padding: 4px 4px 4px 15px;
    gap: 8px;
}

body.page-list .list-search-mode {
    position: relative;
    flex: 0 0 106px;
    width: 106px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #05070a;
    font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

body.page-list .list-search-mode:hover,
body.page-list .list-search-mode:focus,
body.page-list .list-search-mode:active {
    background: transparent;
    outline: none;
    box-shadow: none;
}

body.page-list .list-search-mode-label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
}

body.page-list .list-search-mode-text {
    width: 78px;
    min-width: 78px;
    text-align: right;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

body.page-list .list-search-mode-touch,
body.page-list .list-search-mode-arrow {
    flex: 0 0 auto;
    color: #05070a;
    font-size: 5px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-1px) scale(0.78);
}

body.page-list .date,
body.page-list .date.clickable,
body.page-list .date.clickable:hover,
body.page-list .date.clickable:focus,
body.page-list .date.clickable:active {
    color: #424a56;
}

body.page-gallery .album-summary > .album-meta-line,
body.page-gallery .album-summary > .album-meta-line > span,
body.page-gallery .album-summary > .album-meta-line > span:first-child,
body.page-gallery .album-summary > .album-meta-line #mediaCount,
body.page-gallery .album-summary > .album-meta-line #mediaCount .media-count-part,
body.page-gallery .album-summary > .album-meta-line .album-byline,
body.page-gallery .album-summary > .album-meta-line .album-byline .album-extra-uploaders .album-uploader-plus,
body.page-gallery .album-summary > .album-meta-line span.album-uploader-plus,
body.page-gallery .album-summary > .album-meta-line .album-byline .album-extra-uploaders .album-uploader-names,
body.page-gallery .album-summary > .album-meta-line span.album-uploader-names {
    color: #4f5663;
    -webkit-text-fill-color: #4f5663;
}

body.page-list .list-search-mode-touch::before,
body.page-list .list-search-mode-arrow::before {
    font-weight: 400;
}

body.page-list .list-search-submit {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
}

body.page-list .list-search-submit i {
    font-size: 13px;
}

body.page-list #searchBar,
body.page-list #searchBar.expanded,
body.page-list #searchBar:focus {
    font-size: 15px;
}

@media screen and (min-width: 768px) {
    body.page-list #header-wrapper {
        position: relative;
        margin-bottom: 44px;
    }

    body.page-list .list-search-row {
        position: absolute;
        right: 18px;
        top: 46px;
        z-index: 2;
        display: flex;
        justify-content: flex-end;
        width: auto;
    }

    body.page-list #container-wrapper {
        margin-top: 8px;
    }
}

@media screen and (max-width: 767px), (hover: none) and (pointer: coarse) {
    body.page-list .list-search-row {
        max-height: 0;
        overflow: hidden;
        padding-top: 0;
    }

    body.page-list #header-wrapper.mobile-search-open .list-search-row {
        max-height: 52px;
        padding-top: 2px;
    }

    body.page-list .list-search-field {
        width: min(100%, 236px);
        height: 42px;
        gap: 6px;
        padding: 5px 5px 5px 12px;
    }

    body.page-list .list-search-mode {
        flex-basis: 102px;
        width: 102px;
        font-size: 13px;
    }

    body.page-list .list-search-submit {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    body.page-list #searchBar {
        font-size: 15px;
    }
}

@keyframes uploadSpin {
    to {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes uploadSpin {
    to {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes uploadSpinRaised {
    from {
        transform: translateY(-52px) rotate(0deg);
    }
    to {
        transform: translateY(-52px) rotate(360deg);
    }
}

@-webkit-keyframes uploadSpinRaised {
    from {
        -webkit-transform: translateY(-52px) rotate(0deg);
    }
    to {
        -webkit-transform: translateY(-52px) rotate(360deg);
    }
}

@keyframes uploadSpinRaisedMobile {
    from {
        transform: translateY(-44px) rotate(0deg);
    }
    to {
        transform: translateY(-44px) rotate(360deg);
    }
}

@-webkit-keyframes uploadSpinRaisedMobile {
    from {
        -webkit-transform: translateY(-44px) rotate(0deg);
    }
    to {
        -webkit-transform: translateY(-44px) rotate(360deg);
    }
}

@media screen and (max-width: 767px), (hover: none) and (pointer: coarse) {
}

/* Final search is anchored to the icon cluster */
body.page-list #header-wrapper .header-buttons {
    position: relative;
    z-index: 5;
    align-self: center;
    transform: translateY(-2px);
    pointer-events: auto;
}

body.page-list .create-album-btn {
    position: relative;
    z-index: 6;
    touch-action: manipulation;
}

@media screen and (min-width: 768px) {
    body.page-list #header-wrapper .header-buttons {
        transform: translateY(-8px);
    }
}

@media screen and (min-width: 768px) {
    body.page-list #header-wrapper {
        margin-bottom: 56px;
    }

    body.page-list .list-search-row {
        position: absolute;
        top: calc(100% + 14px);
        right: 0;
        z-index: 3;
        width: auto;
        display: flex;
        justify-content: flex-end;
    }

    body.page-list .list-search-field {
        width: 214px;
        min-width: 214px;
    }

    body.page-list #container-wrapper {
        margin-top: 0;
    }
}

@media screen and (max-width: 767px), (hover: none) and (pointer: coarse) {
    body.page-list .list-search-row {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        z-index: 3;
        width: max-content;
    }
}

/* Gallery add-media uploader */
body.page-gallery #exampleModal.add-gallery-media-modal .modal-dialog {
    width: min(calc(100vw - 40px), 500px);
    max-width: 500px;
    margin: 8vh auto;
}

body.page-gallery #exampleModal.add-gallery-media-modal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(188, 194, 205, 0.72);
    border-radius: 20px;
    background: #f7f7f7;
    color: #05070a;
    box-shadow: 0 24px 68px rgba(5, 7, 10, 0.22);
}

body.page-gallery #exampleModal.add-gallery-media-modal .modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 24px 16px;
    border: 0;
    background: #f7f7f7;
}

body.page-gallery #exampleModal.add-gallery-media-modal .modal-title {
    margin: 0;
    color: #05070a;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.15;
}

body.page-gallery #exampleModal.add-gallery-media-modal .create-upload-heading p {
    margin: 8px 0 0;
    color: rgba(75, 85, 99, 0.86);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
}

body.page-gallery #exampleModal.add-gallery-media-modal .btn-close {
    appearance: none;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(75, 85, 99, 0.86);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    outline: none;
    box-shadow: none;
}

body.page-gallery #exampleModal.add-gallery-media-modal .btn-close::before {
    content: "×";
}

body.page-gallery #exampleModal.add-gallery-media-modal form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px 16px;
    background: #f7f7f7;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box {
    position: relative;
    width: 100%;
    max-width: 452px;
    height: 360px;
    min-height: 360px;
    margin: 0 auto;
    overflow: hidden;
    border: 2px dashed rgba(188, 194, 205, 0.78);
    border-radius: 0;
    background: #fff;
    color: #05070a;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box:hover,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.dragover {
    background: #fff;
    border-color: rgba(188, 194, 205, 0.78);
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-box-prompt,
body.page-gallery #exampleModal.add-gallery-media-modal .upload-selection-preview {
    position: absolute;
    inset: 0;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-box-prompt {
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 64px 18px 14px;
    text-align: center;
    opacity: 1;
    transition: opacity 140ms ease;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-preview-ready .upload-box-prompt,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-uploading .upload-box-prompt,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-processing .upload-box-prompt,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-upload-complete .upload-box-prompt,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-failed-review .upload-box-prompt {
    opacity: 0;
    pointer-events: none;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-document-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #e7e7e7;
    color: #05070a;
    font-size: 22px;
}

body.page-gallery #exampleModal.add-gallery-media-modal #dd {
    margin: 0 0 8px;
    color: #05070a;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.25;
}

body.page-gallery #exampleModal.add-gallery-media-modal #su {
    margin: 0;
    color: rgba(75, 85, 99, 0.86);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-document-button,
body.page-gallery #exampleModal.add-gallery-media-modal .upload-show-gallery,
body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-show-gallery {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 8;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 190px);
    min-height: 42px;
    margin: 0;
    border: 0;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-selection-preview {
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px 74px;
    background: #f7f7f7;
    color: #05070a;
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-preview-ready .upload-selection-preview,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-uploading .upload-selection-preview,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-processing .upload-selection-preview,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-upload-complete .upload-selection-preview,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-failed-review .upload-selection-preview {
    opacity: 1;
    pointer-events: auto;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-selection-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-uploading .upload-selection-main,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-processing .upload-selection-main,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-upload-complete .upload-selection-main,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-failed-review .upload-selection-main {
    opacity: 0;
    pointer-events: none;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-summary {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 18px;
    margin: -18px 0 34px;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 78px;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-icon img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-count {
    color: rgba(75, 85, 99, 0.9);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.2;
}


body.page-gallery #exampleModal.add-gallery-media-modal .upload-cancel-button {
    width: 86px;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: #e9ebef;
    color: #05070a;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}


body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-panel,
body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-panel {
    position: absolute;
    inset: 0;
    z-index: 7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f7f7f7;
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-uploading .upload-progress-panel,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-processing .upload-progress-panel,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-upload-complete .upload-progress-panel,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-failed-review .upload-failed-panel {
    opacity: 1;
    pointer-events: auto;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-list {
    position: absolute;
    top: 16px;
    bottom: 74px;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 38px), 380px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 4px;
}


body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-spinner {
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border: 3px solid rgba(5, 7, 10, 0.18);
    border-top-color: #05070a;
    border-radius: 50%;
    -webkit-animation: uploadSpin 0.82s linear infinite;
    animation: uploadSpin 0.82s linear infinite;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-title {
    color: #05070a;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-subtitle {
    margin-top: 10px;
    color: rgba(75, 85, 99, 0.86);
    font-size: 14px;
    font-weight: 400;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-track {
    width: min(100%, 240px);
    height: 16px;
    margin-top: 42px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(5, 7, 10, 0.12);
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: rgba(5, 7, 10, 0.48);
    transition: width 0.16s ease;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-meta {
    width: min(100%, 240px);
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: rgba(75, 85, 99, 0.88);
    font-size: 13px;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-upload-complete .upload-progress-spinner {
    animation: none;
    border-color: #d63384;
    background: #d63384;
    position: relative;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-upload-complete .upload-progress-spinner::after {
    content: "\f00c";
    font-family: FontAwesome;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-heading {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: #05070a;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-list {
    top: 54px;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-actions button {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(5, 7, 10, 0.12);
    overflow: visible;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box .upload-failed-actions button img {
    width: 12px;
    height: 12px;
    max-width: 12px;
    max-height: 12px;
    margin: 0;
    display: block;
    object-fit: contain;
    filter: brightness(0);
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-show-gallery:disabled,
body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-show-gallery[aria-disabled="true"] {
    opacity: 0.42;
    pointer-events: none;
}

body.page-gallery #exampleModal.add-gallery-media-modal #file-input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

body.page-gallery #exampleModal.add-gallery-media-modal .visually-hidden-upload {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

body.page-gallery #exampleModal.add-gallery-media-modal #uploadedFiles {
    min-height: 18px;
    margin-top: 8px;
    color: #d63384;
    font-size: 12px;
    text-align: center;
}

@media screen and (max-width: 767px), (hover: none) and (pointer: coarse) {
    body.page-gallery #exampleModal.add-gallery-media-modal .modal-dialog {
        width: calc(100vw - 40px);
        max-width: 390px;
        margin: max(58px, env(safe-area-inset-top)) auto 16px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .modal-content {
        border-radius: 18px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .modal-header {
        padding: 16px 18px 14px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .modal-title {
        font-size: 22px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .create-upload-heading p {
        font-size: 13px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal form {
        padding: 0 15px 15px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal #upload-box {
        height: 296px;
        min-height: 296px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-box-prompt {
        padding-top: 40px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-document-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 14px;
        font-size: 18px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal #dd {
        font-size: 16px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal #su {
        font-size: 13px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-document-button,
    body.page-gallery #exampleModal.add-gallery-media-modal .upload-show-gallery,
    body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-show-gallery {
        bottom: 10px;
        width: min(100%, 170px);
        min-height: 38px;
        font-size: 13px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-selection-preview {
        padding: 18px 12px 58px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-summary {
        gap: 8px;
        margin: -20px 0 26px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-icon img {
        width: 54px;
        height: 54px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-count {
        font-size: 15px;
    }

    

    

    

    

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-cancel-button {
        width: 74px;
        min-height: 38px;
        font-size: 13px;
    }

    

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-list {
        top: 12px;
        bottom: 58px;
        width: min(calc(100% - 12px), 320px);
        gap: 7px;
    }

    

    

    

    

    

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-heading {
        top: 8px;
        font-size: 14px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-list {
        top: 34px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-actions {
        gap: 12px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-actions button {
        width: 24px;
        height: 24px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal #upload-box .upload-failed-actions button img {
        width: 12px;
        height: 12px;
        max-width: 12px;
        max-height: 12px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-spinner {
        width: 38px;
        height: 38px;
        margin-bottom: 16px;
        -webkit-animation: uploadSpin 0.82s linear infinite;
        animation: uploadSpin 0.82s linear infinite;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-title {
        font-size: 18px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-track,
    body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-meta {
        width: min(100%, 220px);
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-track {
        height: 14px;
        margin-top: 34px;
    }
}

@media screen and (min-width: 768px) {
    body.page-gallery .album-summary {
        width: min(calc(85vw - 24px), 1028px);
        max-width: 1028px;
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* Final gallery upload modal parity */
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box:hover,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.dragover {
    background: #f7f7f7;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-box-prompt,
body.page-gallery #exampleModal.add-gallery-media-modal .upload-box-prompt * {
    pointer-events: none;
}

body.page-gallery #exampleModal.add-gallery-media-modal #file-input {
    z-index: 4;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-preview-ready #file-input,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-uploading #file-input,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-processing #file-input,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-upload-complete #file-input,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-failed-review #file-input {
    pointer-events: none;
}

/* Absolute final in-album uploader parity with main create uploader */
body.page-gallery #exampleModal.add-gallery-media-modal .upload-selection-preview {
    height: 100%;
    justify-content: center;
    padding: 22px 10px 0;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-selection-main {
    height: 100%;
    justify-content: flex-start;
    padding-top: 0;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-summary {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin: 0 0 0;
    transform: translateY(-34px);
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-card {
    display: grid;
    justify-items: center;
    gap: 4px;
    min-width: 84px;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-icon {
    width: 104px;
    height: 104px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-icon img {
    width: 104px;
    height: 104px;
    object-fit: contain;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-count {
    font-size: 16px;
    margin-top: -32px;
}


body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-panel,
body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-panel {
    padding: 24px 18px;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-list {
    top: -10px;
    bottom: 70px;
    width: min(calc(100% - 6px), 720px);
    gap: 8px;
    padding-right: 2px;
}


body.page-gallery #exampleModal.add-gallery-media-modal .upload-document-button,
body.page-gallery #exampleModal.add-gallery-media-modal .upload-show-gallery,
body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-show-gallery {
    bottom: 8px;
    width: min(100%, 190px);
    min-height: 42px;
    font-size: 14px;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-track {
    width: min(100%, 240px);
    height: 16px;
    margin-top: 44px;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-meta {
    width: min(100%, 240px);
    margin-top: 10px;
    font-size: 13px;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-heading {
    top: 0;
    width: min(calc(100% - 24px), 680px);
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-list {
    top: 30px;
}

@media screen and (max-width: 767px), (hover: none) and (pointer: coarse) {
    body.page-gallery #exampleModal.add-gallery-media-modal .upload-selection-preview {
        padding: 18px 12px 0;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-summary {
        transform: translateY(-26px);
        gap: 8px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-icon,
    body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-icon img {
        width: 54px;
        height: 54px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-count {
        font-size: 15px;
        margin-top: -24px;
    }

    

    

    

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-panel,
    body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-panel {
        padding: 20px 14px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-list {
        top: 4px;
        bottom: 58px;
        width: min(calc(100% - 12px), 320px);
        gap: 7px;
    }

    

    

    

    

    

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-document-button,
    body.page-gallery #exampleModal.add-gallery-media-modal .upload-show-gallery,
    body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-show-gallery {
        bottom: 7px;
        width: min(100%, 170px);
        min-height: 38px;
        font-size: 13px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-track,
    body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-meta {
        width: min(100%, 220px);
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-track {
        height: 14px;
        margin-top: 34px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-heading {
        top: 8px;
        font-size: 14px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-list {
        top: 34px;
    }
}

/* Final in-album uploader placement parity with the create-album uploader */
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box {
    position: relative;
    display: grid;
    align-items: center;
    width: calc(100% - 36px);
    max-width: calc(100% - 36px);
    height: 336px;
    min-height: 336px;
    margin: 18px auto;
    padding: 14px;
    border: 2px dashed rgba(188, 194, 205, 0.66);
    background: #f7f7f7;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box:hover,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.dragover {
    background: #f7f7f7;
    border-color: rgba(188, 194, 205, 0.66);
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-box-prompt,
body.page-gallery #exampleModal.add-gallery-media-modal .upload-selection-preview {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
    width: 100%;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-box-prompt {
    height: 100%;
    padding: 48px 0 0;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-document-icon {
    width: 46px;
    height: 46px;
    margin: 8px auto 18px;
    background: #e5e5e5;
    font-size: 20px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

body.page-gallery #exampleModal.add-gallery-media-modal #dd {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
}

body.page-gallery #exampleModal.add-gallery-media-modal #su {
    max-width: none;
    font-size: 14px;
    line-height: 1.35;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-document-button {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    width: min(100%, 190px);
    min-height: 42px;
    margin: auto auto 8px;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-selection-preview {
    height: 100%;
    padding: 22px 10px 0;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-selection-main {
    height: 100%;
    justify-content: flex-start;
    padding-top: 0;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-summary {
    gap: 8px;
    width: 100%;
    margin: 0;
    transform: translateY(-34px);
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-card {
    display: grid;
    justify-items: center;
    gap: 4px;
    min-width: 84px;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-icon,
body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-icon img {
    width: 104px;
    height: 104px;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-count {
    font-size: 16px;
    margin-top: -32px;
}


body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-panel,
body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-panel {
    padding: 24px 18px;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-list {
    top: -10px;
    bottom: 70px;
    width: min(calc(100% - 6px), 720px);
    gap: 8px;
    padding-right: 2px;
}


body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-spinner {
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-title {
    font-size: 20px;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-track {
    width: min(100%, 240px);
    height: 16px;
    margin-top: 44px;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-meta {
    width: min(100%, 240px);
    margin-top: 10px;
    font-size: 13px;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-uploading .upload-progress-panel > :not(.upload-show-gallery),
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-processing .upload-progress-panel > :not(.upload-show-gallery) {
    transform: none;
    -webkit-transform: none;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-uploading .upload-progress-spinner,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-processing .upload-progress-spinner {
    -webkit-animation: uploadSpin 0.82s linear infinite;
    animation: uploadSpin 0.82s linear infinite;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-upload-complete .upload-progress-spinner {
    -webkit-transform: none;
    transform: none;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-show-gallery,
body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-show-gallery {
    bottom: 8px;
    width: min(100%, 190px);
    min-height: 42px;
    font-size: 14px;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-heading {
    top: 0;
    width: min(calc(100% - 24px), 680px);
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-list {
    top: 30px;
}

@media screen and (max-width: 767px), (hover: none) and (pointer: coarse) {
    body.page-gallery #exampleModal.add-gallery-media-modal .upload-box-prompt {
        padding-top: 40px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-document-icon {
        width: 40px;
        height: 40px;
        margin: 7px auto 14px;
        font-size: 18px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal #dd {
        font-size: 16px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal #su {
        font-size: 13px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-document-button {
        width: min(100%, 170px);
        min-height: 38px;
        margin: auto auto 7px;
        font-size: 13px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-selection-preview {
        padding: 18px 8px 0;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-summary {
        gap: 6px;
        transform: translateY(-26px);
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-card {
        min-width: 68px;
        gap: 3px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-icon,
    body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-icon img {
        width: 82px;
        height: 82px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-count {
        font-size: 15px;
        margin-top: -24px;
    }

    

    

    

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-panel,
    body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-panel {
        padding: 20px 14px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-list {
        top: -7px;
        bottom: 62px;
        width: min(calc(100% - 6px), 700px);
        gap: 7px;
    }

    

    

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-show-gallery,
    body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-show-gallery {
        width: min(100%, 170px);
        min-height: 38px;
        bottom: 7px;
        font-size: 13px;
    }

    

    

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-spinner {
        width: 38px;
        height: 38px;
        margin-bottom: 16px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-title {
        font-size: 18px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-track,
    body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-meta {
        width: min(100%, 220px);
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-track {
        height: 14px;
        margin-top: 34px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-heading {
        top: 0;
        font-size: 14px;
        width: min(calc(100% - 20px), 660px);
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-list {
        top: 28px;
        bottom: 62px;
    }
}

body.page-gallery #exampleModal.add-gallery-media-modal .modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
}

body.page-gallery #exampleModal.add-gallery-media-modal .btn-close {
    display: none;
}

body.page-gallery #exampleModal.add-gallery-media-modal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(188, 194, 205, 0.52);
    border-radius: 16px;
    background: #fff;
    color: #05070a;
    box-shadow: 0 24px 70px rgba(5, 7, 10, 0.22);
}

body.page-gallery #exampleModal.add-gallery-media-modal .modal-header {
    position: relative;
    display: block;
    padding: 18px 22px 20px;
    border-bottom: 1px solid rgba(216, 222, 232, 0.95);
    text-align: center;
}

body.page-gallery #exampleModal.add-gallery-media-modal .create-upload-heading {
    max-width: 340px;
    margin: 0 auto;
}

body.page-gallery #exampleModal.add-gallery-media-modal .modal-title {
    margin: 0;
    color: #05070a;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
}

body.page-gallery #exampleModal.add-gallery-media-modal .create-upload-heading p {
    margin: 9px 0 0;
    color: rgba(75, 85, 99, 0.82);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
}

body.page-gallery #exampleModal.add-gallery-media-modal form {
    display: flex;
    flex-direction: column;
    max-height: calc(88vh - 58px);
    min-height: 0;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.page-gallery #exampleModal.add-gallery-media-modal #file-input {
    pointer-events: none;
}

body.page-gallery #exampleModal.add-gallery-media-modal #uploadedFiles {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 336px;
    height: 336px;
    width: calc(100% - 36px);
    max-width: calc(100% - 36px);
    margin: 18px auto;
    padding: 14px;
    overflow: hidden;
    border: 2px dashed rgba(188, 194, 205, 0.66);
    border-radius: 0;
    background: #fff;
    color: #05070a;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box:hover,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.dragover {
    background: #fff;
    border-color: rgba(188, 194, 205, 0.66);
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-box-prompt,
body.page-gallery #exampleModal.add-gallery-media-modal .upload-selection-preview {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
    width: 100%;
    transition: opacity 140ms ease;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-box-prompt {
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 48px 0 0;
    opacity: 1;
    text-align: center;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-document-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 8px auto 18px;
    background: #e5e5e5;
    color: #05070a;
    font-size: 20px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

body.page-gallery #exampleModal.add-gallery-media-modal #dd {
    margin: 0 0 10px;
    color: #05070a;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.35;
}

body.page-gallery #exampleModal.add-gallery-media-modal #su {
    max-width: none;
    margin: 0;
    color: rgba(75, 85, 99, 0.86);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-document-button {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 190px);
    min-height: 42px;
    margin: auto auto 8px;
    border: 0;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-selection-preview {
    z-index: 4;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 10px 0;
    background: #f7f7f7;
    color: #05070a;
    opacity: 0;
    pointer-events: none;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-preview-ready .upload-selection-preview,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-uploading .upload-selection-preview,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-processing .upload-selection-preview,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-upload-complete .upload-selection-preview,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-failed-review .upload-selection-preview {
    opacity: 1;
    pointer-events: auto;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-preview-ready {
    border-color: transparent;
    background: #fff;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-preview-ready .upload-box-prompt,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-uploading .upload-box-prompt,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-processing .upload-box-prompt,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-upload-complete .upload-box-prompt,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-failed-review .upload-box-prompt {
    opacity: 0;
    pointer-events: none;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-selection-main {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0;
    transition: opacity 140ms ease;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-summary {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin: 0;
    transform: translateY(-34px);
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-card {
    display: grid;
    justify-items: center;
    gap: 4px;
    min-width: 84px;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-icon,
body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-icon img {
    width: 104px;
    height: 104px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    object-fit: contain;
    margin: 0;
    max-width: none;
    max-height: none;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-count {
    margin-top: -32px;
    color: rgba(75, 85, 99, 0.86);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
}


body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-panel,
body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-panel {
    position: absolute;
    inset: 0;
    z-index: 7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 18px;
    background: #f7f7f7;
    color: #05070a;
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-uploading .upload-progress-panel,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-processing .upload-progress-panel,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-upload-complete .upload-progress-panel,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-failed-review .upload-failed-panel {
    opacity: 1;
    pointer-events: auto;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-uploading .upload-selection-main,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-processing .upload-selection-main,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-upload-complete .upload-selection-main,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-failed-review .upload-selection-main {
    opacity: 0;
    pointer-events: none;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-list {
    display: grid;
    align-content: start;
    gap: 8px;
    position: absolute;
    top: -10px;
    bottom: 70px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(calc(100% - 6px), 720px);
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
}


body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-spinner {
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 50%;
    border: 3px solid rgba(5, 7, 10, 0.18);
    border-top-color: #05070a;
    -webkit-animation: uploadSpin 0.82s linear infinite;
    animation: uploadSpin 0.82s linear infinite;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-title {
    color: #05070a;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-subtitle {
    margin-top: 10px;
    color: rgba(75, 85, 99, 0.86);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-track {
    width: min(100%, 240px);
    height: 16px;
    margin-top: 44px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(5, 7, 10, 0.12);
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: rgba(5, 7, 10, 0.48);
    transition: width 0.16s ease;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-meta {
    width: min(100%, 240px);
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: rgba(75, 85, 99, 0.88);
    font-size: 13px;
    font-weight: 400;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-uploading .upload-progress-panel > :not(.upload-show-gallery),
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-processing .upload-progress-panel > :not(.upload-show-gallery) {
    transform: none;
    -webkit-transform: none;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-uploading .upload-progress-spinner,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-processing .upload-progress-spinner {
    -webkit-animation: uploadSpin 0.82s linear infinite;
    animation: uploadSpin 0.82s linear infinite;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-upload-complete .upload-progress-spinner {
    -webkit-animation: none;
    animation: none;
    -webkit-transform: none;
    transform: none;
    border-color: #d63384;
    background: #d63384;
    position: relative;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-upload-complete .upload-progress-spinner::after {
    content: "\f00c";
    font-family: FontAwesome;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-show-gallery,
body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-show-gallery {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    width: min(100%, 190px);
    min-height: 42px;
    margin: 0;
    border: 0;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-heading {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 24px), 680px);
    color: #05070a;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-list {
    top: 30px;
}

@media screen and (max-width: 767px), (hover: none) and (pointer: coarse) {
    body.page-gallery #exampleModal.add-gallery-media-modal .modal-dialog {
        width: calc(100vw - 40px);
        max-width: 390px;
        margin: max(58px, env(safe-area-inset-top)) auto 16px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .modal-content {
        border-radius: 18px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .modal-header {
        padding: 16px 18px 18px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .modal-title {
        font-size: 22px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .create-upload-heading p {
        font-size: 13px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal form {
        max-height: calc(100dvh - 104px);
        padding: 0;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal #upload-box {
        min-height: 296px;
        height: 296px;
        width: calc(100% - 30px);
        max-width: calc(100% - 30px);
        margin-top: 15px;
        margin-bottom: 15px;
        padding: 12px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-box-prompt {
        padding-top: 40px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-document-icon {
        width: 40px;
        height: 40px;
        margin: 7px auto 14px;
        font-size: 18px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal #dd {
        font-size: 16px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal #su {
        font-size: 13px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-document-button {
        width: min(100%, 170px);
        min-height: 38px;
        margin: auto auto 7px;
        font-size: 13px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-selection-preview {
        padding: 18px 8px 0;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-summary {
        gap: 6px;
        transform: translateY(-26px);
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-card {
        min-width: 68px;
        gap: 3px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-icon,
    body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-icon img {
        width: 82px;
        height: 82px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-count {
        font-size: 15px;
        margin-top: -24px;
    }

    

    

    

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-panel,
    body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-panel {
        padding: 20px 14px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-list {
        top: -7px;
        bottom: 62px;
        width: min(calc(100% - 6px), 700px);
        gap: 7px;
    }

    

    

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-show-gallery,
    body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-show-gallery {
        width: min(100%, 170px);
        min-height: 38px;
        bottom: 7px;
        font-size: 13px;
    }

    

    

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-spinner {
        width: 38px;
        height: 38px;
        margin-bottom: 16px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-title {
        font-size: 18px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-track,
    body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-meta {
        width: min(100%, 220px);
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-track {
        height: 14px;
        margin-top: 34px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-heading {
        top: 0;
        font-size: 14px;
        width: min(calc(100% - 20px), 660px);
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-list {
        top: 28px;
        bottom: 62px;
    }
}

/* Final app-theme overrides for permission screens */
body.page-user-permissions,
body.page-contributors {
    min-height: 100vh;
    margin: 0;
    background: #f1f1f1;
    color: #05070a;
    font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.page-user-permissions *,
body.page-contributors * {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body.page-user-permissions .permissions-shell,
body.page-contributors .permissions-shell {
    width: min(92vw, 720px);
    margin: 0 auto;
    padding: 28px 0 40px;
}

body.page-contributors .album-permissions-shell {
    width: min(92vw, 980px);
}

body.page-user-permissions .permissions-header,
body.page-contributors .permissions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

body.page-user-permissions .permissions-title,
body.page-contributors .permissions-title {
    margin: 0;
    color: #05070a;
    font-size: 26px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}

body.page-user-permissions .permissions-subtitle,
body.page-contributors .permissions-subtitle {
    margin: 6px 0 0;
    color: rgba(103, 109, 124, 0.94);
    font-size: 13px;
    font-weight: 800;
}

body.page-user-permissions .permissions-home,
body.page-contributors .permissions-home {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(42, 50, 66, 0.1);
    text-decoration: none;
}

body.page-user-permissions .permissions-home img,
body.page-contributors .permissions-home img {
    width: 17px;
    height: 17px;
    object-fit: contain;
}

body.page-user-permissions .permissions-layout {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 10px;
}

body.page-user-permissions .permissions-nav,
body.page-user-permissions .permissions-panel,
body.page-contributors .permissions-panel {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(42, 50, 66, 0.1);
}

body.page-user-permissions .permissions-nav {
    padding: 8px;
}

body.page-user-permissions .permissions-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 11px;
    border-radius: 12px;
    background: transparent;
    color: rgba(103, 109, 124, 0.94);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

body.page-user-permissions .permissions-link.active {
    background: rgba(118, 48, 255, 0.14);
    color: #05070a;
}

body.page-user-permissions .permissions-link.albums {
    color: #d63384;
}

body.page-user-permissions .permissions-link.permissions {
    color: #2780ff;
}

body.page-user-permissions .permissions-link.logout {
    color: #d83737;
}

body.page-user-permissions .permissions-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #7630ff;
}

body.page-user-permissions .permissions-link.albums .permissions-dot {
    background: #d63384;
}

body.page-user-permissions .permissions-link.permissions .permissions-dot {
    background: #2780ff;
}

body.page-user-permissions .permissions-link.logout .permissions-dot {
    background: #d83737;
}

body.page-user-permissions .permissions-panel,
body.page-contributors .permissions-panel {
    padding: 18px;
}

body.page-contributors .album-permissions-panel {
    padding: 20px;
}

body.page-contributors .permissions-panel-header,
body.page-contributors .permission-album-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

body.page-user-permissions .panel-title,
body.page-contributors .panel-title {
    margin: 0 0 8px;
    color: #05070a;
    font-size: 17px;
    font-weight: 900;
}

body.page-user-permissions .panel-copy,
body.page-contributors .panel-copy,
body.page-user-permissions .permission-user-main span,
body.page-user-permissions .permission-user-main small,
body.page-contributors .album-info,
body.page-contributors .user-email,
body.page-contributors .permissions {
    color: rgba(103, 109, 124, 0.94);
    font-size: 13px;
    font-weight: 700;
}

body.page-user-permissions .permission-stat,
body.page-contributors .permission-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 0;
    padding: 12px;
    border-radius: 13px;
    background: rgba(216, 222, 232, 0.55);
    color: rgba(103, 109, 124, 0.94);
    font-size: 13px;
    font-weight: 800;
}

body.page-contributors .permission-stat.compact {
    min-width: 110px;
    margin: 0;
}

body.page-user-permissions .permission-stat strong,
body.page-contributors .permission-stat strong {
    color: #05070a;
    font-size: 14px;
}

body.page-user-permissions .permission-user-list,
body.page-contributors .album-permission-list {
    display: grid;
    gap: 10px;
}

body.page-user-permissions .permission-user-row,
body.page-contributors .permission-album-card,
body.page-contributors .permission-subpanel,
body.page-contributors .permission-empty,
body.page-contributors .permission-mini-user {
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(201, 207, 218, 0.75);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: none;
}

body.page-user-permissions .permission-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
}

body.page-contributors .permission-user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px;
    margin: 12px 0 0;
}

body.page-contributors .permission-mini-user {
    background: #fff;
}

body.page-user-permissions .permission-user-main strong,
body.page-contributors .album-title,
body.page-contributors .user-name {
    display: block;
    color: #05070a;
    font-size: 14px;
    font-weight: 900;
}

body.page-user-permissions input[type="checkbox"],
body.page-contributors input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #d63384;
}

body.page-user-permissions .permission-primary-button,
body.page-contributors .permission-primary-button,
body.page-contributors .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 0;
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    background: #111014;
    color: #fff;
    box-shadow: 0 10px 22px rgba(42, 50, 66, 0.14);
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

body.page-contributors .btn-secondary {
    background: rgba(216, 222, 232, 0.65);
    color: #05070a;
    box-shadow: none;
}

body.page-contributors .btn-apply-all {
    background: #d63384;
    color: #fff;
}

body.page-user-permissions .permission-primary-button:hover,
body.page-contributors .permission-primary-button:hover,
body.page-contributors .btn:hover {
    background: #111014;
    color: #fff;
}

body.page-contributors .btn-secondary:hover {
    background: rgba(216, 222, 232, 0.78);
    color: #05070a;
}

body.page-contributors .btn-apply-all:hover {
    background: #d63384;
    color: #fff;
}

body.page-contributors .permission-button-row,
body.page-user-permissions .permission-actions,
body.page-contributors .contributors-save-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

body.page-contributors .permission-album-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(201, 207, 218, 0.75);
}

@media (max-width: 640px) {
    body.page-user-permissions .permissions-shell,
    body.page-contributors .permissions-shell,
    body.page-contributors .album-permissions-shell {
        width: min(92vw, 430px);
        padding-top: 20px;
    }

    body.page-user-permissions .permissions-layout {
        grid-template-columns: 1fr;
    }

    body.page-user-permissions .permissions-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    body.page-user-permissions .permissions-nav::-webkit-scrollbar {
        display: none;
    }

    body.page-user-permissions .permissions-link {
        flex: 0 0 auto;
    }

    body.page-contributors .permissions-panel-header,
    body.page-contributors .permission-album-header {
        flex-direction: column;
    }

    body.page-contributors .permission-user-grid {
        grid-template-columns: 1fr;
    }
}

body.page-gallery #exampleModal.add-gallery-media-modal .modal-content,
body.page-gallery #exampleModal.add-gallery-media-modal form,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-preview-ready,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-uploading,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-processing,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-upload-complete,
body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-failed-review,
body.page-gallery #exampleModal.add-gallery-media-modal .upload-selection-preview,
body.page-gallery #exampleModal.add-gallery-media-modal .upload-selection-main,
body.page-gallery #exampleModal.add-gallery-media-modal .upload-progress-panel,
body.page-gallery #exampleModal.add-gallery-media-modal .upload-failed-panel {
    background: #fff;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-summary {
    gap: 10px;
    transform: translateY(-22px);
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-card {
    min-width: 62px;
    gap: 6px;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-icon,
body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-icon img {
    width: 58px;
    height: 58px;
    max-width: 58px;
    max-height: 58px;
}

body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-count {
    margin-top: 0;
    font-size: 14px;
    line-height: 1.15;
}


@media screen and (max-width: 767px), (hover: none) and (pointer: coarse) {
    body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-summary {
        gap: 8px;
        transform: translateY(-18px);
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-icon,
    body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-icon img {
        width: 50px;
        height: 50px;
        max-width: 50px;
        max-height: 50px;
    }

    body.page-gallery #exampleModal.add-gallery-media-modal .upload-type-count {
        margin-top: 0;
        font-size: 13px;
    }
}

/* Absolute final template uploader thumbnail alignment */
body.page-gallery .upload-demo-modal .upload-demo-file {
    align-items: center;
    border: 2px solid #e6e9f0;
    box-shadow: none;
    padding: 8px;
}

body.page-gallery .upload-demo-modal .upload-demo-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    line-height: 0;
}

body.page-gallery .upload-demo-modal .upload-demo-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: inherit;
}

@media screen and (max-width: 767px), (hover: none) and (pointer: coarse) {
    body.page-gallery .upload-demo-modal .upload-demo-file {
        padding: 8px;
    }
}

/* Absolute final main gallery album title/date spacing */
body.page-list .album-title-block .folder-name {
    transform: translateY(2px);
}

body.page-list .album-pinned-icon {
    display: inline-block;
    margin-left: 4px;
    color: #d63384;
    font-size: 0.72em;
    transform: translateY(-1px);
}

/* Clean individual gallery header */
body.page-gallery .album-summary > .header-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 14px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 26px;
}

body.page-gallery .album-summary {
    margin-top: 0;
    padding-top: 20px;
}

body.page-gallery .album-summary > .header-wrapper .gallery-header-site-title {
    grid-column: 1;
    color: rgba(5, 7, 10, 0.72);
    font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(18px, 3.6vw, 28px);
    font-weight: 900;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-self: start;
    align-self: start;
    min-width: 0;
    transform: translateY(-14px);
}

body.page-gallery .album-summary > .header-wrapper .gallery-header-site-title .site-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

body.page-gallery .album-summary > .header-wrapper .gallery-header-site-title .site-logo {
    width: min(141px, 33.75vw);
    height: auto;
    max-width: none;
    max-height: none;
    display: block;
    object-fit: contain;
}

body.page-gallery .album-summary > .header-wrapper .gallery-user-menu {
    grid-column: 2;
    position: relative;
    top: 7px;
    align-self: start;
    gap: 10px;
    transform: translateX(0);
}

body.page-gallery .album-summary > .header-wrapper .gallery-user-trigger.gallery-add-media-trigger,
body.page-gallery .album-summary > .header-wrapper .gallery-user-trigger.gallery-menu-gear {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    max-width: 38px;
    max-height: 38px;
    flex: 0 0 38px;
    box-sizing: border-box;
    padding: 0;
    gap: 0;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 7, 10, 0.72);
    color: #fff;
    box-shadow: 0 8px 18px rgba(42, 50, 66, 0.22);
    -webkit-tap-highlight-color: transparent;
}

body.page-gallery .album-summary > .header-wrapper .gallery-user-trigger.gallery-add-media-trigger i,
body.page-gallery .album-summary > .header-wrapper .gallery-user-trigger.gallery-menu-gear i {
    font-size: 16px;
    line-height: 1;
}

body.page-gallery .album-summary > .header-wrapper .gallery-user-trigger.gallery-add-media-trigger:hover,
body.page-gallery .album-summary > .header-wrapper .gallery-user-trigger.gallery-add-media-trigger:focus,
body.page-gallery .album-summary > .header-wrapper .gallery-user-trigger.gallery-add-media-trigger:focus-visible,
body.page-gallery .album-summary > .header-wrapper .gallery-user-trigger.gallery-add-media-trigger:active,
body.page-gallery .album-summary > .header-wrapper .gallery-user-trigger.gallery-menu-gear:hover,
body.page-gallery .album-summary > .header-wrapper .gallery-user-trigger.gallery-menu-gear:focus,
body.page-gallery .album-summary > .header-wrapper .gallery-user-trigger.gallery-menu-gear:focus-visible,
body.page-gallery .album-summary > .header-wrapper .gallery-user-trigger.gallery-menu-gear:active {
    color: #fff;
    outline: none;
    box-shadow: 0 8px 18px rgba(42, 50, 66, 0.22);
}

body.page-gallery .album-summary > .header-wrapper .gallery-user-trigger.gallery-menu-gear.is-active,
body.page-gallery .album-summary > .header-wrapper .gallery-user-trigger.gallery-menu-gear.is-active:hover,
body.page-gallery .album-summary > .header-wrapper .gallery-user-trigger.gallery-menu-gear.is-active:focus,
body.page-gallery .album-summary > .header-wrapper .gallery-user-trigger.gallery-menu-gear.is-active:focus-visible,
body.page-gallery .album-summary > .header-wrapper .gallery-user-trigger.gallery-menu-gear.is-active:active {
    background: #16a34a;
    color: #fff;
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.3);
}

@media screen and (max-width: 767px), (hover: none) and (pointer: coarse) {
    body.page-gallery .album-summary {
        width: min(calc(100% - 24px), 410px);
        max-width: 410px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    body.page-gallery .album-summary > .header-wrapper {
        margin-bottom: 21px;
    }

    body.page-gallery .album-summary > .header-wrapper .gallery-header-site-title {
        transform: translate(-2px, -6px);
    }

    body.page-gallery .album-summary > .header-wrapper .gallery-header-site-title .site-logo {
        width: min(110px, 27vw);
    }

    body.page-gallery .album-summary > .header-wrapper .gallery-user-menu {
        top: 11px;
        gap: 8px;
        align-self: start;
        transform: translateX(2px);
    }
}

/* Clean individual gallery title and meta */
body.page-gallery .album-summary > h1 {
    color: #05070a;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: -3px;
    transform: translateY(2px);
}

body.page-gallery .album-summary > .album-meta-line {
    gap: 12px;
    margin-top: -2px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
}

body.page-gallery .album-summary > .album-meta-line > span,
body.page-gallery .album-summary > .album-meta-line #mediaCount,
body.page-gallery .album-summary > .album-meta-line #mediaCount .media-count-part {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

body.page-gallery .album-summary > .album-meta-line > span:first-child {
    color: #d63384;
}

body.page-gallery .album-summary > .album-meta-line > span + span::before,
body.page-gallery .album-summary > .album-meta-line .media-count-part + .media-count-part::before {
    content: none;
    display: none;
}

body.page-gallery .album-summary > .album-meta-line .album-byline .album-extra-uploaders .album-uploader-plus,
body.page-gallery .album-summary > .album-meta-line span.album-uploader-plus,
body.page-gallery .album-summary > .album-meta-line .album-byline .album-extra-uploaders .album-uploader-names,
body.page-gallery .album-summary > .album-meta-line span.album-uploader-names {
    color: inherit;
    -webkit-text-fill-color: currentColor;
}

@media screen and (max-width: 767px), (hover: none) and (pointer: coarse) {
    body.page-gallery .album-summary > h1 {
        font-size: 20px;
    }
}

/* Gallery collage layout */
body.page-gallery #gallery-container {
    padding: 8px;
}

body.page-gallery .gallery-collage-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 4px;
    width: 100%;
    margin: 0 auto 4px;
}

@media screen and (max-width: 767px), (hover: none) and (pointer: coarse) {
    body.page-gallery #gallery-container {
        width: min(calc(100% - 8px), 430px);
    }

    body.page-gallery .gallery-collage-group {
        gap: 7px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: clamp(102px, 29vw, 126px);
        margin: 0 auto 10px;
        aspect-ratio: auto;
    }

    body.page-gallery .gallery-collage-group.item-count-1 {
        width: calc((100% - 16px) / 3);
        grid-template-columns: 1fr;
    }

    body.page-gallery .gallery-collage-group.item-count-2 {
        width: calc(((100% - 16px) / 3 * 2) + 8px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.page-gallery .gallery-collage-group.item-count-3,
    body.page-gallery .gallery-collage-group.item-count-4 {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (min-width: 768px) {
    body.page-gallery #gallery-container {
        width: min(calc(85vw - 24px), 1028px);
        max-width: 1028px;
    }

    body.page-gallery .gallery-collage-group {
        grid-auto-rows: clamp(116px, 16vw, 184px);
        gap: 8px;
        margin: 0 auto 8px;
    }

    body.page-gallery .gallery-collage-group.item-count-1 {
        width: calc((100% - 16px) / 3);
        grid-template-columns: 1fr;
    }

    body.page-gallery .gallery-collage-group.item-count-2 {
        width: calc(((100% - 16px) / 3 * 2) + 8px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.page-gallery .gallery-collage-group.item-count-3,
    body.page-gallery .gallery-collage-group.item-count-4 {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

body.page-gallery .gallery-collage-group .gallery-collage-tile,
body.page-gallery .gallery-collage-group .gallery-collage-tile:first-child,
body.page-gallery .gallery-collage-group .gallery-collage-tile:nth-child(5),
body.page-gallery .gallery-collage-group .gallery-collage-tile:nth-child(6),
body.page-gallery .gallery-collage-group .gallery-collage-tile.is-landscape,
body.page-gallery .gallery-collage-group .gallery-collage-tile.is-tall {
    grid-column: auto;
    grid-row: auto;
}

body.page-gallery #gallery-container .gallery-collage-group .gallery-collage-tile,
body.page-gallery #gallery-container .gallery-collage-group .gallery-collage-tile:first-child,
body.page-gallery #gallery-container .gallery-collage-group .gallery-collage-tile:nth-child(5),
body.page-gallery #gallery-container .gallery-collage-group .gallery-collage-tile:nth-child(6),
body.page-gallery #gallery-container .gallery-collage-group .gallery-collage-tile.is-landscape,
body.page-gallery #gallery-container .gallery-collage-group .gallery-collage-tile.is-tall {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    height: 100%;
}

body.page-gallery .gallery-collage-group .gallery-collage-tile.layout-landscape {
    grid-column: span 2;
    grid-row: auto;
}

body.page-gallery .gallery-collage-group .gallery-collage-tile.layout-tall {
    grid-column: auto;
    grid-row: span 2;
}

body.page-gallery #gallery-container .gallery-collage-group .gallery-collage-tile.layout-landscape {
    grid-column: span 2;
    grid-row: auto;
}

body.page-gallery #gallery-container .gallery-collage-group .gallery-collage-tile.layout-tall {
    grid-column: auto;
    grid-row: span 2;
}

body.page-gallery .gallery-collage-group .gallery-collage-tile.layout-tall:last-child,
body.page-gallery .gallery-collage-group.item-count-1 .gallery-collage-tile.layout-tall,
body.page-gallery .gallery-collage-group.item-count-2 .gallery-collage-tile.layout-tall,
body.page-gallery .gallery-collage-group.item-count-3 .gallery-collage-tile.layout-tall,
body.page-gallery .gallery-collage-group.item-count-4 .gallery-collage-tile.layout-tall {
    grid-row: auto;
}

body.page-gallery .gallery-collage-tile.icon {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    position: relative;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    margin: 0;
    text-align: left;
    background: #f6f7f9;
}

body.page-gallery #gallery-container .gallery-collage-group .gallery-collage-tile > a {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
    line-height: 0;
    background: #f6f7f9;
}

body.page-gallery #gallery-container .gallery-collage-group .gallery-collage-tile .gallery-image,
body.page-gallery #gallery-container .gallery-collage-group .gallery-collage-tile .gallery-video,
body.page-gallery #gallery-container .gallery-collage-group .gallery-collage-tile .image-border {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    border-radius: inherit;
    box-shadow: none;
    margin: 0;
    vertical-align: top;
    background: #f6f7f9;
}

body.gallery-viewer-open {
    overflow: hidden;
}

.gallery-media-viewer {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(30, 30, 30, 0.84);
    opacity: 0;
    pointer-events: none;
    touch-action: none;
    transition: opacity 620ms cubic-bezier(.2, .8, .2, 1);
}

.gallery-media-viewer.is-open {
    opacity: 1;
    pointer-events: auto;
}

.gallery-media-viewer-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-media-viewer.is-loading .gallery-media-viewer-content::before {
    content: "";
    position: fixed;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.22);
    border-top-color: rgba(255, 255, 255, 0.88);
    animation: galleryViewerSpin 760ms linear infinite;
}

@keyframes galleryViewerSpin {
    to {
        transform: rotate(360deg);
    }
}

.gallery-media-viewer img,
.gallery-media-viewer video,
.gallery-media-viewer-video-loading {
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    max-width: min(100%, 1180px);
    max-height: calc(100vh - 72px);
    object-fit: contain;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.994);
    transition: opacity 620ms cubic-bezier(.2, .8, .2, 1), transform 620ms cubic-bezier(.2, .8, .2, 1);
}

.gallery-media-viewer.is-open img,
.gallery-media-viewer.is-open video,
.gallery-media-viewer.is-open .gallery-media-viewer-video-loading {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.992);
}

.gallery-media-viewer.is-open.is-media-revealed img.is-ready,
.gallery-media-viewer.is-open.is-media-revealed video.is-ready,
.gallery-media-viewer.is-open.is-media-revealed .gallery-media-viewer-video-loading.is-ready {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gallery-media-viewer-video-loading {
    width: min(100%, 1180px);
    height: min(calc(100vh - 72px), 66vw);
    min-height: 220px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.88);
}

.gallery-media-viewer-video-loading::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.22);
    border-top-color: rgba(255, 255, 255, 0.88);
    animation: galleryViewerSpin 760ms linear infinite;
}

.gallery-media-viewer.is-open .gallery-media-viewer-content .gallery-media-viewer-slide {
    opacity: 1;
    transition: transform 230ms cubic-bezier(.22, .78, .22, 1);
}

.gallery-media-viewer.is-open .gallery-media-viewer-content .gallery-media-viewer-slide.is-enter-next {
    transform: translate(calc(-50% + 100vw), -50%) scale(1);
}

.gallery-media-viewer.is-open .gallery-media-viewer-content .gallery-media-viewer-slide.is-enter-prev {
    transform: translate(calc(-50% - 100vw), -50%) scale(1);
}

.gallery-media-viewer.is-open .gallery-media-viewer-content .gallery-media-viewer-slide.is-enter-next.is-slide-active,
.gallery-media-viewer.is-open .gallery-media-viewer-content .gallery-media-viewer-slide.is-enter-prev.is-slide-active {
    transform: translate(-50%, -50%) scale(1);
}

.gallery-media-viewer.is-open .gallery-media-viewer-content .gallery-media-viewer-slide.is-exit-prev.is-slide-active {
    transform: translate(calc(-50% - 100vw), -50%) scale(1);
}

.gallery-media-viewer.is-open .gallery-media-viewer-content .gallery-media-viewer-slide.is-exit-next.is-slide-active {
    transform: translate(calc(-50% + 100vw), -50%) scale(1);
}

.gallery-media-viewer.is-dragging .gallery-media-viewer-drag-item {
    opacity: 1;
    transition: none;
}

.gallery-media-viewer.is-settling .gallery-media-viewer-drag-item {
    opacity: 1;
    transition: transform 220ms cubic-bezier(.22, .78, .22, 1), opacity 160ms cubic-bezier(.2, .8, .2, 1);
}

.gallery-media-viewer.is-pulling-down .gallery-media-viewer-drag-item {
    opacity: 1;
    transition: none;
}

.gallery-media-viewer.is-pull-closing .gallery-media-viewer-drag-item {
    transition: opacity 260ms cubic-bezier(.2, .8, .2, 1);
}

.gallery-media-viewer.is-pinching img {
    opacity: 1;
    transition: none;
}

.gallery-media-viewer video {
    width: auto;
    height: auto;
    background: #000;
}

.gallery-media-viewer-actions {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    color: #f2f4f6;
}

.gallery-media-viewer-close,
.gallery-media-download-toggle {
    position: static;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 0;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: inherit;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.gallery-media-viewer-close svg,
.gallery-media-download-toggle svg {
    display: block;
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.gallery-media-download-toggle svg {
    width: 52px;
    height: 52px;
}

.gallery-media-viewer-close path,
.gallery-media-download-toggle path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gallery-media-viewer-nav {
    position: fixed;
    top: 50%;
    z-index: 1;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 30, 30, 0.6);
    box-shadow: none;
    color: #ccc;
    cursor: pointer;
    transform: translateY(-50%);
    -webkit-tap-highlight-color: transparent;
}

.gallery-media-viewer-nav.previous {
    left: max(18px, env(safe-area-inset-left, 0px));
}

.gallery-media-viewer-nav.next {
    right: max(18px, env(safe-area-inset-right, 0px));
}

.gallery-media-viewer-nav i {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 1;
}

.gallery-media-viewer-nav.previous i {
    transform: translate(-1px, 0.5px);
}

.gallery-media-viewer-nav.next i {
    transform: translate(1px, 0.5px);
}

.gallery-media-viewer-nav:hover,
.gallery-media-viewer-nav:focus {
    color: #fff;
    outline: none;
}

.gallery-media-viewer-close:hover,
.gallery-media-viewer-close:focus {
    background: transparent;
    color: #fff;
    outline: none;
}

.gallery-media-download-toggle[hidden] {
    display: none;
}

.gallery-media-download-toggle:hover,
.gallery-media-download-toggle:focus {
    background: transparent;
    color: #fff;
    outline: none;
}

.gallery-media-description {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 2;
    width: min(500px, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 13px;
    box-shadow: none;
    transform: translateX(-50%);
}

.gallery-media-description[hidden] {
    display: none;
}

.gallery-media-description-readonly {
    min-height: 40px;
    max-height: min(32vh, 180px);
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 5px;
    background: rgba(28, 31, 38, 0.72);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
    font-size: 11px;
    line-height: 1.35;
    text-align: left;
    white-space: pre-wrap;
    overflow-y: auto;
    overflow-wrap: anywhere;
    -webkit-overflow-scrolling: touch;
}

.gallery-media-description-editor {
    position: relative;
    width: calc(100% + 16px);
    margin-left: -8px;
    margin-right: -8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    min-height: 40px;
    padding: 8px;
    border: 0;
    border-radius: 9px;
    background-color: transparent;
    box-shadow: none;
    transform: translateY(0);
    transition: transform 520ms cubic-bezier(.2, .8, .2, 1), background-color 520ms cubic-bezier(.2, .8, .2, 1), box-shadow 520ms cubic-bezier(.2, .8, .2, 1);
    will-change: transform, background-color, box-shadow;
}

.gallery-media-description.has-description .gallery-media-description-editor,
.gallery-media-description.is-editing .gallery-media-description-editor {
    align-items: start;
}

.gallery-media-description.is-editing .gallery-media-description-editor {
    background-color: rgba(2, 3, 6, 0.82);
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
    transform: translateY(-12px);
}

.gallery-media-description-editor[hidden] {
    display: none;
}

.gallery-media-description-input {
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    min-height: 40px;
    max-height: min(24vh, 150px);
    resize: none;
    overflow: hidden;
    border: 1px solid rgba(170, 177, 190, 0.3);
    border-radius: 7px;
    padding: 11px 14px;
    background: rgba(24, 27, 34, 0.68);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
    color: #fff;
    font: inherit;
    font-size: 11px;
    line-height: 16px;
    outline: none;
    caret-color: transparent;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    -webkit-overflow-scrolling: touch;
}

.gallery-media-description-input[readonly] {
    cursor: pointer;
}

.gallery-media-description-input::placeholder {
    color: rgba(255, 255, 255, 0.46);
    font-size: inherit;
    line-height: inherit;
    transition: color 120ms cubic-bezier(.2, .8, .2, 1);
}

.gallery-media-description.is-editing .gallery-media-description-input::placeholder {
    color: rgba(255, 255, 255, 0.46);
}

.gallery-media-description.is-editing .gallery-media-description-input {
    caret-color: #fff;
}

.gallery-media-description-input:focus {
    box-shadow: none;
}

.gallery-media-description-actions {
    display: flex;
    width: 100%;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 520ms cubic-bezier(.2, .8, .2, 1), transform 520ms cubic-bezier(.2, .8, .2, 1), max-height 520ms cubic-bezier(.2, .8, .2, 1);
}

.gallery-media-description.is-editing .gallery-media-description-actions {
    max-height: 34px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 520ms cubic-bezier(.2, .8, .2, 1), transform 520ms cubic-bezier(.2, .8, .2, 1), max-height 0ms linear 0ms;
}

.gallery-media-description-send {
    width: auto;
    min-width: 74px;
    height: 32px;
    border: 0;
    border-radius: 6px;
    padding: 0 22px;
    font: inherit;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.gallery-media-description-send {
    background: #2f6fdc;
    color: #fff;
}

.gallery-media-description-send:disabled {
    cursor: default;
    opacity: 0.58;
}

.gallery-media-description-status {
    min-width: 74px;
    height: 32px;
    padding: 0 22px;
    border-radius: 6px;
    background: rgba(181, 238, 196, 0.2);
    color: #d8f7df;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 32px;
    text-align: center;
}

.gallery-media-description-status:empty {
    display: none;
}

@media screen and (max-width: 767px), (hover: none) and (pointer: coarse) {
    .gallery-media-viewer {
        padding: 12px;
        height: var(--gallery-viewer-locked-height, 100vh);
        min-height: var(--gallery-viewer-locked-height, 100vh);
        bottom: auto;
    }

    .gallery-media-viewer img,
    .gallery-media-viewer video,
    .gallery-media-viewer-video-loading {
        max-height: calc(var(--gallery-viewer-locked-height, 100vh) - 48px);
    }

    .gallery-media-viewer-video-loading {
        height: min(calc(var(--gallery-viewer-locked-height, 100vh) - 48px), 72vw);
        min-height: 180px;
    }

    .gallery-media-viewer-nav {
        top: 50%;
        width: 42px;
        height: 42px;
    }

    .gallery-media-viewer-nav.previous {
        left: max(12px, env(safe-area-inset-left, 0px));
    }

    .gallery-media-viewer-nav.next {
        right: max(12px, env(safe-area-inset-right, 0px));
    }

    .gallery-media-viewer-nav i {
        width: 16px;
        height: 16px;
        font-size: 16px;
    }

    .gallery-media-viewer-nav.previous i {
        transform: translate(-1px, 0.5px);
    }

    .gallery-media-viewer-nav.next i {
        transform: translate(1px, 0.5px);
    }

    .gallery-media-viewer-actions {
        top: 12px;
        right: 11px;
        border-radius: 0;
        gap: 8px;
        padding: 0;
    }

    .gallery-media-viewer-close {
        width: 36px;
        height: 36px;
    }

    .gallery-media-viewer-close svg {
        width: 24px;
        height: 24px;
    }

    .gallery-media-download-toggle {
        width: 36px;
        height: 36px;
    }

    .gallery-media-download-toggle svg {
        width: 48px;
        height: 48px;
    }

    .gallery-media-description {
        left: max(12px, env(safe-area-inset-left, 0px));
        right: max(12px, env(safe-area-inset-right, 0px));
        bottom: var(--gallery-description-bottom, 12px);
        width: auto;
        max-width: none;
        box-sizing: border-box;
        overflow: visible;
        transform: none;
    }

    .gallery-media-description.is-keyboard-priming {
        top: 34%;
        bottom: auto;
        opacity: 0.01;
        pointer-events: none;
    }

    .gallery-media-description-editor {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-left: 0;
        margin-right: 0;
        overflow: visible;
        border-radius: 12px;
    }

    .gallery-media-description-input {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        font-size: 12px;
        line-height: 16px;
        padding-top: 11px;
        padding-bottom: 11px;
    }

    .gallery-media-description.is-editing .gallery-media-description-editor {
        padding: 10px;
        border-radius: 12px;
        transform: translateY(-24px);
    }

    .gallery-media-description-readonly {
        font-size: 12px;
    }

    .gallery-media-description-actions {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    .gallery-media-description-send,
    .gallery-media-description-status {
        box-sizing: border-box;
        min-width: 68px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .gallery-media-description-status {
        text-align: center;
    }
}

@supports (-webkit-touch-callout: none) {
    @media screen and (max-width: 900px) {
        .gallery-media-description {
            left: max(12px, env(safe-area-inset-left, 0px));
            right: auto;
            width: calc(100vw - 24px);
            width: calc(100dvw - 24px);
            max-width: calc(100vw - 24px);
            max-width: calc(100dvw - 24px);
            transform: none;
            overflow: hidden;
        }

        .gallery-media-description-editor,
        .gallery-media-description-input,
        .gallery-media-description-actions {
            width: 100%;
            max-width: 100%;
            min-width: 0;
            box-sizing: border-box;
        }
    }
}


/* Consolidated final overrides from uploader-fixes.css */
html.description-search-restore-pending body.page-list #container-wrapper {
    visibility: hidden;
    opacity: 0;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-upload-complete .upload-progress-panel > :not(.upload-show-gallery) {
    transform: none;
    -webkit-transform: none;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-upload-complete .upload-progress-spinner {
    width: 42px;
    height: 42px;
    margin-bottom: 26px;
    transform: none;
    -webkit-transform: none;
}

body.page-gallery #exampleModal.add-gallery-media-modal #upload-box.upload-upload-complete .upload-progress-title {
    margin-top: 0;
}

.upload-demo-backdrop,
body.page-gallery .modal-backdrop {
    position: fixed;
    top: -80px;
    right: 0;
    bottom: -180px;
    left: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
    backdrop-filter: blur(14px) saturate(1.08);
}

.upload-demo-backdrop.is-visible,
body.page-gallery .modal-backdrop.show {
    opacity: 1;
}

body.page-list .list-search-row {
    align-items: center;
    gap: 0;
}

body.page-list .site-logo-link {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

@media screen and (min-width: 768px) {
    body.page-list .site-logo {
        transform: translateY(-8px) scale(1.28);
        transform-origin: left top;
    }
}

body.page-list .list-search-field {
    flex: 0 1 340px;
    width: 340px;
    min-width: 340px;
    gap: 4px;
    padding: 5px 5px 5px 17px;
}

body.page-list .list-search-mode {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: 92px;
    height: 30px;
    min-width: 92px;
    padding: 0;
    margin-right: 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #05070a;
    box-shadow: none;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

body.page-list .list-search-mode-label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    width: 92px;
    min-width: 92px;
    text-align: right;
}

body.page-list .list-search-mode-text {
    display: block;
    width: 78px;
    min-width: 78px;
    color: #05070a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-align: right;
    white-space: nowrap;
}

body.page-list .list-search-mode-touch,
body.page-list .list-search-mode-arrow {
    flex: 0 0 auto;
    color: #05070a;
    font-size: 5px;
    line-height: 1;
    transform: translateY(-1px) scale(0.78);
}

body.page-list .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.page-list .list-search-mode:hover,
body.page-list .list-search-mode:focus,
body.page-list .list-search-mode:active {
    background: transparent;
    color: #05070a;
    box-shadow: none;
    outline: none;
}

body.page-list .list-search-submit,
body.page-list .list-search-submit:hover,
body.page-list .list-search-submit:focus,
body.page-list .list-search-submit:active {
    box-shadow: none;
}

body.page-list .new-since-wrapper {
    width: min(1800px, calc(100vw - 200px));
    margin: 18px auto 26px;
    display: grid;
    gap: 24px;
    position: relative;
    background: #e9e9e9;
    border: 1px solid #d7d7d7;
    border-radius: 14px;
    padding: 18px;
}

html.new-since-local-seen-pending body.page-list .new-since-wrapper {
    visibility: hidden;
}

body.page-list .new-since-section {
    width: 100%;
}

body.page-list .new-since-section h2 {
    margin: 0 0 12px;
    color: #05070a;
    font-size: clamp(14px, 0.95vw, 17px);
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: 0;
}

body.page-list .new-since-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    max-height: calc((((min(1800px, 100vw - 200px) - 50px) / 6) * 2) + 10px);
    overflow: hidden;
}

body.page-list .new-since-tile {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    background: #e4e4e4;
    color: #fff;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

body.page-list .new-since-tile img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

body.page-list .new-since-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.34);
    font-size: clamp(12px, 1.1vw, 19px);
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.42);
}

body.page-list .new-since-more-symbol,
body.page-list .new-since-more-number {
    display: inline-block;
    font-size: 1em;
    font-weight: inherit;
    line-height: 1;
}

body.page-list .new-since-tile .album-more-count {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.34);
    font-size: clamp(12px, 1.1vw, 19px);
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.42);
}

body.page-list .new-since-clear {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    border: 0;
    border-radius: 999px;
    background: rgba(5, 7, 10, 0.1);
    color: rgba(5, 7, 10, 0.66);
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

body.page-list .new-since-clear:hover,
body.page-list .new-since-clear:focus {
    background: rgba(5, 7, 10, 0.16);
    color: rgba(5, 7, 10, 0.82);
    outline: none;
}

body.page-list .new-since-clear:disabled {
    opacity: 0.55;
    pointer-events: none;
}

body.page-list .new-since-video {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.48);
    color: #fff;
    font-size: 13px;
}

body.page-list .new-since-tile .media-type-indicator.video-indicator {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 20px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

body.page-list .new-since-tile .media-type-indicator.video-indicator i {
    font-size: 11px;
}

body.page-list .folder-name.album-title-link,
body.page-list .folder-name.album-title-link:hover,
body.page-list .folder-name.album-title-link:focus,
body.page-list .folder-name.album-title-link:active {
    color: #05070a;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

body.page-list #container-wrapper.is-searching-results {
    row-gap: 8px;
    align-items: flex-start;
}

body.page-list #container-wrapper.is-searching-results .container.album-container {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    body.page-list #container-wrapper.is-searching-results {
        display: block;
        column-count: 2;
        column-gap: 12px;
        justify-content: flex-start;
    }

    body.page-list #container-wrapper.is-searching-results .container.album-container.image-search-result {
        display: inline-block;
        width: 100%;
        max-width: none;
        flex: none;
        margin: 0 0 12px;
        vertical-align: top;
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

body.page-list .album-container.image-search-result .album-collage.image-search-collage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: clamp(138px, 12vw, 174px);
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
    gap: 8px;
}

body.page-list .album-container.image-search-result .album-collage.image-search-count-1 {
    grid-template-columns: 1fr;
}

body.page-list .album-container.image-search-result .album-collage.image-search-count-1 .image-search-tile,
body.page-list .album-container.image-search-result .album-collage.image-search-count-2 .image-search-tile {
    grid-row: auto;
}

body.page-list .album-container.image-search-result .album-collage.image-search-count-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.page-list .album-container.image-search-result .album-collage.image-search-count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.page-list .album-container.image-search-result .image-search-tile,
body.page-list .album-container.image-search-result .image-search-tile.main {
    grid-row: auto;
    border-radius: 4px;
    aspect-ratio: auto;
    height: 100%;
}

body.page-list .album-container.image-search-result .image-search-count-1 .image-search-tile,
body.page-list .album-container.image-search-result .image-search-count-1 .image-search-tile.main {
    aspect-ratio: auto;
}

body.page-list .album-container.image-search-result .album-collage.image-search-count-3 .image-search-tile.main {
    grid-row: auto;
}

body.page-list .album-container.image-search-result .image-search-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.page-list .album-container.image-search-result .image-search-hidden-media {
    display: none;
}

body.page-list .album-container.image-search-result .media-type-indicator.video-indicator {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

body.page-list .album-container.image-search-result .media-type-indicator.video-indicator i {
    font-size: 14px;
}

@media (min-width: 768px) {
    body.page-list .list-search-row {
        top: calc(100% - 22px);
    }
}

@media (max-width: 767px) {
    body.page-list #header-wrapper {
        row-gap: 10px;
        position: relative;
        margin-bottom: 66px;
    }

    body.page-list #header-wrapper .header-buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    body.page-list .mobile-search-toggle {
        display: none;
    }

    body.page-list .list-search-row {
        display: flex;
        justify-content: center;
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% - 8px);
        width: 100%;
        flex: 0 0 100%;
        order: 10;
        gap: 0;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        max-height: none;
        overflow: visible;
        padding-top: 4px;
    }

    body.page-list #header-wrapper.mobile-search-open .list-search-row {
        max-height: none;
        padding-top: 4px;
    }

    body.page-list #container-wrapper {
        margin-top: 66px;
        padding-top: 18px;
    }

    body.page-list .new-since-wrapper {
        width: calc(100vw - 32px);
        margin: 58px auto 24px;
        gap: 20px;
    }

    body.page-list .new-since-wrapper + #container-wrapper {
        margin-top: 16px;
    }

    body.page-list .new-since-section h2 {
        margin-bottom: 10px;
        font-size: 18px;
    }

    body.page-list .new-since-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        max-height: calc((((100vw - 32px - 24px) / 4) * 2) + 8px);
    }

    body.page-list .new-since-video {
        top: 6px;
        left: 6px;
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    body.page-list .list-search-field {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        max-width: 100%;
        height: 44px;
        gap: 8px;
        padding: 5px 5px 5px 15px;
    }

    body.page-list .list-search-submit {
        display: inline-flex;
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
    }

    body.page-list .list-search-mode {
        width: 82px;
        height: 28px;
        min-width: 82px;
        padding: 0;
        margin-right: 3px;
    }

    body.page-list .list-search-mode-label {
        width: 82px;
        min-width: 82px;
    }

    body.page-list .list-search-mode-text {
        font-size: 11px;
    }

    body.page-list .list-search-mode-touch,
    body.page-list .list-search-mode-arrow {
        font-size: 4px;
        transform: translateY(-1px) scale(0.7);
    }

    body.page-list #container-wrapper.is-searching-results {
        gap: 6px;
        row-gap: 6px;
    }

    body.page-list .album-container.image-search-result .album-collage.image-search-collage,
    body.page-list .album-container.image-search-result .album-collage.image-search-count-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.page-list .album-container.image-search-result .album-collage.image-search-count-1 {
        grid-template-columns: 1fr;
    }
}

/* Final new-since strip alignment with the main album grid */
body.page-list .new-since-wrapper {
    width: min(calc(85vw - 72px), 980px);
    max-width: 980px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    padding: 18px;
}

body.page-list .new-since-grid {
    grid-template-columns: repeat(14, minmax(0, 1fr));
    gap: 8px;
    max-height: calc((((min(calc(85vw - 72px), 980px) - 140px) / 14) * 2) + 8px);
}

@media screen and (max-width: 767px), (hover: none) and (pointer: coarse) {
    body.page-list .new-since-wrapper {
        width: min(calc(100% - 24px), 414px);
        max-width: 414px;
        padding: 14px;
    }

    body.page-list .new-since-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 8px;
        max-height: calc((((min(calc(100vw - 24px), 414px) - 68px) / 6) * 2) + 8px);
    }

    body.page-list .new-since-more {
        font-size: clamp(11px, 3.1vw, 15px);
    }

    body.page-list .new-since-tile .album-more-count {
        font-size: clamp(11px, 3.1vw, 15px);
    }

    body.page-list .new-since-clear {
        top: 10px;
        right: 10px;
        font-size: 12px;
        padding: 4px 10px;
    }
}
