:root {
    --c-neon-cyan: #00f3ff;
    --c-bg-main: #121214;
    --c-text-main: #e0e0e3;
    --c-text-muted: #888890;
    --c-bg-glass: rgba(18, 18, 20, 0.75);
    --c-border-glass: rgba(255, 255, 255, 0.12);
    --blur-glass: blur(12px);
}

/* 全体のボックスモデルを規定 */
.gallery-container,
.gallery-container * {
    box-sizing: border-box;
}

body {
    background-color: var(--c-bg-main);
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--c-text-main);
}

.gallery-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ギャラリーヘッダーとタブ */
.gallery-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--c-neon-cyan);
    padding-bottom: 12px;
    margin-bottom: 24px;
    gap: 20px;
    flex-wrap: wrap;
}

.gallery-title {
    font-size: 24px;
    color: var(--c-neon-cyan);
    margin: 0;
    padding: 0;
    white-space: nowrap;
    font-weight: 700;
}

.gallery-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.gallery-tab-btn {
    padding: 8px 20px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--c-text-muted);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.gallery-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.gallery-tab-btn.is-active {
    background-color: rgba(0, 243, 255, 0.15);
    color: var(--c-neon-cyan);
    border: 1px solid var(--c-neon-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

/* --- Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* --- Card Base --- */
#gallery-password-overlay,
#galleryMetaModalOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 12000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.gallery-meta-modal {
    background: #1a1a1e !important;
    border: 1px solid var(--c-neon-cyan) !important;
    border-radius: 12px;
    padding: 30px;
    width: 95% !important;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 243, 255, 0.2);
    text-align: left;
    position: relative;
    z-index: 12001;
    color: #fff;
    box-sizing: border-box;
}

.gallery-meta-modal h3 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 1.4rem;
    color: var(--c-neon-cyan);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Modal Elements --- */
/* クラスが当たっていない場合でもモーダル内の要素を整列させる */
.gallery-meta-modal label,
.input-row label {
    display: block !important;
    font-size: 12px;
    color: var(--c-text-muted);
    margin-bottom: 6px;
    margin-top: 12px;
}

.gallery-meta-modal input[type="text"],
.gallery-meta-modal input[type="number"],
.gallery-meta-modal input[type="password"],
.input-row input {
    display: block !important;
    width: 100% !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px;
    color: #fff !important;
    padding: 10px 12px !important;
    font-size: 14px;
    transition: all 0.3s;
    box-sizing: border-box !important;
}

.gallery-meta-modal input:focus {
    border-color: var(--c-neon-cyan) !important;
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.2);
    outline: none;
    background: rgba(0, 243, 255, 0.05) !important;
}

.modal-close-btn {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    left: auto !important;
    /* 左寄せを強制解除 */
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    cursor: pointer;
    transition: all 0.2s;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    z-index: 10;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--c-neon-cyan) !important;
}

.input-row {
    margin-bottom: 16px;
    display: block !important;
    /* flex等の誤適用を防止 */
}

.modal-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.modal-actions {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-actions .custom-btn {
    flex: 1;
    margin: 0;
    min-width: 100px;
}

.btn-secondary {
    background: transparent !important;
    border: 1px solid #555 !important;
    color: #888 !important;
}

.btn-danger {
    background: rgba(255, 82, 82, 0.1) !important;
    border: 1px solid rgba(255, 82, 82, 0.4) !important;
    color: #ff5252 !important;
}

.gallery-card {
    background: var(--c-bg-glass);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid var(--c-border-glass);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100%;
}

.gallery-card-overlay {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.gallery-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 243, 255, 0.6);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 243, 255, 0.2);
}

@keyframes card-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-card.is-entering {
    animation: card-fade-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

/* --- Image Wrap --- */
.gallery-image-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #111;
    border-radius: 4px;
    margin-bottom: 12px;
    aspect-ratio: 16 / 9;
}

/* モード別のアスペクト比調整 (完全復元用) */
.gallery-container[data-mode="chars"] .gallery-image-wrap {
    height: 220px;
}

@media (max-width: 767px) {
    .gallery-container[data-mode="chars"] .gallery-image-wrap {
        height: 160px;
        /* モバイルでは少しコンパクトに */
    }
}

.gallery-container[data-mode="maps"] .gallery-image-wrap,
.gallery-container[data-mode="tiles"] .gallery-image-wrap {
    aspect-ratio: 1 / 1;
    height: auto;
}

/* スマホでのキャラクター表示は縦長 */
@media (max-width: 767px) {
    .gallery-container[data-mode="chars"] .gallery-image-wrap {
        aspect-ratio: 9 / 19.5;
    }
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.5s ease, opacity 0.3s;
    opacity: 0.9;
}

.gallery-card:hover .gallery-image {
    opacity: 1;
    transform: scale(1.05);
}

/* --- Fav Button --- */
.gallery-fav-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    width: 28px;
    height: 28px;
    background: rgba(26, 26, 30, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid #444;
    border-radius: 50%;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    padding: 0;
}

.gallery-fav-btn:hover {
    border-color: #f97;
    background: rgba(255, 153, 119, 0.15);
}

.gallery-fav-btn svg {
    fill: transparent;
    stroke: currentColor;
    transition: fill 0.2s, stroke 0.2s, transform 0.2s;
}

.gallery-fav-btn.is-fav svg {
    fill: #f97;
    stroke: #f97;
    transform: scale(1.1);
}

/* --- Card Body --- */
.gallery-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    padding: 0;
}

.gallery-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.25;
}

.gallery-card-player {
    display: block;
    font-size: 0.75rem;
    font-weight: normal;
    color: var(--c-neon-cyan);
    margin-top: 4px;
    opacity: 0.8;
}

.gallery-meta-info {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: baseline;
    margin-bottom: 8px;
    flex-wrap: wrap;
    line-height: 1;
}

.gallery-id,
.gallery-updated {
    white-space: nowrap;
}

/* --- Badges & Tags --- */
.gallery-card-badges {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
    max-height: 48px;
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
}

.gallery-card-badges::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

.gallery-tag {
    display: inline-flex;
    padding: 2px 10px;
    background: rgba(139, 156, 249, 0.15);
    border: 1px solid rgba(139, 156, 249, 0.4);
    border-radius: 20px;
    color: #aeb9f2;
    font-size: 11px;
    white-space: nowrap;
}

/* セッション参加中バッジ */
.gallery-badge-session {
    background: rgba(249, 215, 84, 0.15);
    border: 1px solid rgba(249, 215, 84, 0.5);
    color: #f9d754;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: bold;
}

/* システムタグ: グリッド種別、サイズ等 (グリーン系) */
.gallery-tag.is-system-tag {
    background: rgba(46, 213, 115, 0.2) !important;
    border: 1px solid rgba(46, 213, 115, 0.5) !important;
    color: #2ed573 !important;
    font-weight: bold;
}

/* --- Card Actions (Bottom Area) --- */
.gallery-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: auto -16px -16px;
    margin-top: auto;
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    z-index: 2;
}

.gallery-card-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 6px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.gallery-card-actions button:hover {
    background: rgba(0, 243, 255, 0.1);
    color: var(--c-neon-cyan);
}

.gallery-card-actions button:first-child {
    border-right: 1px solid rgba(0, 243, 255, 0.15);
}

.gallery-card-actions svg {
    stroke: #666;
    transition: stroke 0.2s;
}

.gallery-card-actions button:hover svg {
    stroke: var(--c-neon-cyan);
}

/* --- Tooltip --- */
.gallery-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 26, 0.97);
    border: 1px solid #54c1f9;
    border-radius: 6px;
    padding: 10px 14px;
    color: #ccc;
    font-size: 12px;
    line-height: 1.7;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.gallery-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #54c1f9;
}

.gallery-card:hover .gallery-tooltip {
    opacity: 1;
    visibility: visible;
}

/* --- Toolbar & Sticky --- */
.gallery-sticky-wrapper {
    position: sticky;
    top: 50px;
    z-index: 100;
    margin: 0 -20px 24px;
    padding: 12px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.gallery-sticky-wrapper.is-scrolled {
    background: rgba(13, 13, 18, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.gallery-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
}

.gallery-search-wrap {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.gallery-search-wrap input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: all 0.3s;
}

.gallery-search-wrap input:focus {
    border-color: var(--c-neon-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.15);
}

.gallery-count {
    font-family: 'Barlow Semi Condensed', sans-serif;
    color: #888;
    font-size: 14px;
    margin-left: auto;
    white-space: nowrap;
}

.gallery-search-wrap::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-color: #54c1f9;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* 新規作成ボタン */
.gallery-create-btn {
    background-color: #888890;
    color: #121214;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.gallery-create-btn:hover {
    background-color: var(--c-neon-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

/* --- Toolbar Elements --- */
.gallery-search-count {
    font-size: 14px;
    color: #888;
    white-space: nowrap;
}

.gallery-sort-wrap,
.gallery-page-size-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #ccc;
    white-space: nowrap;
}

.gallery-sort-wrap select,
.gallery-page-size-wrap select {
    background: #1a1a1e;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    padding: 4px 8px;
    font-size: 14px;
    cursor: pointer;
}

/* ビュー切り替えボタン */
.gallery-view-btns {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.gallery-view-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    border-radius: 6px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: #555;
    font-size: 12px;
}

.gallery-image-broken {
    opacity: 0.1;
    filter: grayscale(1);
}

.gallery-view-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #666;
}

.gallery-view-btn.is-active {
    background: rgba(0, 243, 255, 0.2);
    color: var(--c-neon-cyan);
    border-color: var(--c-neon-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.gallery-view-btn svg {
    stroke: currentColor;
    fill: none;
}

/* --- Variant Selector (v122) --- */
.gallery-variant-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-bottom: 12px;
    max-height: 42px;
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
}

.gallery-variant-selector::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

.gallery-variant-btn {
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #aaa;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.gallery-variant-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.gallery-variant-btn.is-active {
    background: rgba(0, 243, 255, 0.15);
    border-color: var(--c-neon-cyan);
    color: var(--c-neon-cyan);
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.15);
}

.view-list .gallery-variant-selector {
    justify-content: flex-start;
    margin-bottom: 4px;
}

/* --- Pagination --- */
.gallery-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    padding-bottom: 40px;
}

.gallery-pagination button {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(0, 243, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
    color: #888;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 600;
    transition: all 0.2s;
}

.gallery-pagination button:hover {
    border-color: var(--c-neon-cyan);
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.gallery-pagination button.active {
    background: var(--c-neon-cyan);
    border-color: var(--c-neon-cyan);
    color: #000;
}

.gallery-pagination button:disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* --- Tag Bar --- */
.gallery-tag-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 4px;
    max-height: 84px;
    overflow-y: auto;
}

.gallery-tag-filter-btn {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #444;
    border-radius: 20px;
    color: #aaa;
    font-size: 12px;
    cursor: pointer;
}

.gallery-tag-filter-btn.is-active {
    border-color: #54c1f9;
    background: rgba(84, 193, 249, 0.15);
    color: #54c1f9;
}

/* --- List View --- */
.view-list .gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.view-list .gallery-card {
    display: grid !important;
    grid-template-columns: 40px 1fr 56px;
    align-items: stretch !important;
    padding: 0 !important;
    min-height: 80px;
    height: auto;
    text-align: left;
}

.view-list .gallery-fav-btn {
    position: static;
    grid-column: 1;
    margin: auto;
}

.view-list .gallery-card>a {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    text-decoration: none;
    color: inherit;
}

.view-list .gallery-image-wrap {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px;
    margin-bottom: 0;
    border-radius: 4px;
}

.view-list .gallery-card-body {
    padding: 0;
    justify-content: center;
    min-width: 0;
}

.view-list .gallery-name {
    margin-bottom: 4px;
    word-break: break-all;
}

.view-list .gallery-card-badges {
    justify-content: flex-start;
    margin-bottom: 4px;
}

.view-list .gallery-meta-info {
    justify-content: flex-start;
    margin-bottom: 0;
}

.view-list .gallery-card-actions {
    grid-column: 3;
    display: flex;
    flex-direction: column;
    width: 56px;
    height: 100%;
    margin: 0;
    border-top: none;
    border-left: 1px solid rgba(0, 243, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 12px 12px 0;
    overflow: hidden;
}

.view-list .gallery-card-actions button {
    flex: 1;
    width: 100%;
    border-radius: 0 !important;
    padding: 8px 4px;
    font-size: 10px;
}

.view-list .gallery-card-actions button:first-child {
    border-right: none;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

/* 他のスタイルは継承または細調整 */
.gallery-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 10px 22px;
    background: #2a2a33;
    border: 1px solid #444;
    border-radius: 8px;
    opacity: 0;
    transition: all 0.25s;
    z-index: 9999;
    pointer-events: none;
}

.gallery-toast.is-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.gallery-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(26, 26, 30, 0.9);
    border: 1px solid #444;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s;
}

.gallery-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
}