.ui-content {
    display: inline-block;
    width: inherit;
    padding: 1vh;
}

.adjusted-background {
    background-size: cover;
    background-position: center;
}

.list-image {
    position: relative;
    width: 81vmin;
    height: 81vmin;
    margin: auto;
}

.caption {
    position: absolute;
    bottom: 7vmin;
    text-align: center;
    width: 100%;
    font-size: 24px;
    left: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

#photo {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
}

#photo-header {
    position: fixed;
    z-index: 1;
}

.photoset {
    display: -webkit-flex;
    padding: 1vh;
}

.ui-header .ui-title {
    height: 100%;
}

.hidden {
    display: none;
}

#no-images-msg {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    text-align: center;
    margin: 0 5vw;
    font-size: 3rem;
    font-weight: bold;
}

#galleries-list .gallery-element {
    display: -webkit-flex;
    padding: 1vh;
}

#galleries-page.one-gallery .ui-content {
    padding: 0;
}

#galleries-page.one-gallery .gallery-element {
    height: 100vh;
}

@media (-tizen-geometric-shape: circle) {
    #galleries-page .ui-content {
        width: 100%;
        margin: 0;
    }

    .list-image {
        width: 60vmin;
        height: 60vmin;
    }

    .ui-page.ui-scroll-on .ui-content {
        margin-top: 0;
    }

    #photo-header {
        height: 128px;
        background-color: rgba(0, 31, 56, 1);
    }

    #photo-title {
        color: rgba(255, 255, 255, 1);
    }

    .btn-icon-check:before {
        -webkit-mask-image: url(../images/tw_ic_button_apply_holo_dark.png);
    }

    .btn-icon-cancel:before {
        -webkit-mask-image: url(../images/tw_ic_button_erase_holo_dark.png);
    }

    .ui-popup .ui-popup-content {
        text-align: center;
    }
}