.sego-gallery-create-album {
    clear: both;
    margin: 8px 0 14px;
    text-align: right;
}

.sego-gallery-create-album .button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

body.sego-gallery-create-page #page-body {
    box-sizing: border-box;
    padding: 12px;
    background: #373737;
}

.sego-gallery-create-hidden {
    display: none !important;
}

.sego-gallery-create-shell {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
}

.sego-gallery-create-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
}

.sego-gallery-create-header h2 {
    margin: 0;
    color: #eeeeee;
}

.sego-gallery-return {
    flex: 0 0 auto;
}

.sego-gallery-native-create-form {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

.sego-gallery-native-create-form .panel {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media (max-width: 700px) {
    .sego-gallery-create-album {
        text-align: center;
    }

    .sego-gallery-create-header {
        align-items: stretch;
        flex-direction: column;
    }

    .sego-gallery-return {
        justify-content: center;
        text-align: center;
    }
}

/*
 * phpBB Gallery uses a forum-status background on personal-album rows.
 * Some third-party styles stretch that image to the size of the page.
 * Scope the fix to the Gallery UCP subalbum list only.
 */
.sego-gallery-album-list,
.sego-gallery-album-list > li.row,
.sego-gallery-album-list > li.row > dl.row-item,
.sego-gallery-album-list > li.row > dl.row-item > dt,
.sego-gallery-album-list > li.row > dl.row-item > dt .list-inner {
    height: auto !important;
    min-height: 0 !important;
}

.sego-gallery-album-list {
    display: block !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
}

.sego-gallery-album-list > li.row {
    display: block !important;
    padding: 0 !important;
}

.sego-gallery-album-list > li.row > dl.row-item {
    display: block !important;
    position: relative;
    padding: 0 !important;
    background-image: none !important;
    overflow: hidden !important;
}

.sego-gallery-album-list > li.row > dl.row-item::before {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 24px;
    color: #536482;
    content: "\f07b";
    font: normal normal normal 20px/1 FontAwesome;
    text-align: center;
    transform: translateY(-50%);
}

.sego-gallery-album-list > li.row > dl.row-item > dt {
    display: block !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 6px 8px 6px 46px !important;
}

.sego-gallery-album-list > li.row > dl.row-item > dt .list-inner {
    display: block !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 20px !important;
}

.sego-gallery-album-list > li.row > dl.row-item > dt .list-inner:first-child {
    min-height: 20px !important;
    text-align: right !important;
}

.sego-gallery-album-list img {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    object-fit: contain;
}
