/*!
 * NC4 Framework (https://github.com/NC-4/Nc4)
 *
 * Copyright (c) NC4 Project.
 * All rights reserved.
 *
 * Licensed under the NC4 Framework / edumap+ Proprietary License Agreement.
 * Use of this software is permitted only under a valid agreement with the
 * Research Institute of Science for Education (S4E).
 *
 * See LICENSE.txt for complete license terms and obligations.
 *
 * Author: 一般社団法人 教育のための科学研究所 (Research Institute of Science for Education, S4E)
 * Link: https://www.s4e.jp/
 * License: https://github.com/NC-4/Nc4/blob/main/LICENSE.txt
 */

.photo-albums-frame-setting-display-type .checkbox {
	margin: 0 0 0 40px;
}
.photo-albums-frame-setting-list {
	border-top: 1px solid #ddd;
	max-height:320px;
	overflow: auto;
}
.photo-albums-setting-list > tbody > tr > td {
    vertical-align: middle;
}

.photo-albums-block-index-desc table {
    display: inline;
    margin-right: 2px;
    vertical-align: middle;
}
.photo-albums-block-index-desc table > tbody > tr > td {
    border: 1px solid #ddd;
    padding: 1px;
}

.photo-albums-frame-setting-list .photo-albums-setting-list > tbody > tr > td {
	padding: 2px 8px;
}

.photo-albums-photo-list-operation {
	margin: 8px 0;
}

.photo-albums-album-list-alert {
	margin: 0 0 8px 0;
}
.photo-albums-album-list-alert .alert {
	margin: 0;
	min-width: 90%;
	padding: 4px 35px 4px 4px;
}
.photo-albums-album-list-alert a {
	margin: 0 8px;
}
.photo-albums-thumbnail {
	margin: 0;
}
.photo-albums-album-note span{
	margin: 0 8px 0 0;
}
.photo-albums-album-list-panel .photo-albums-description {
	margin: 8px 0 0 0;
}

.photo-albums-selected-jacket .img-thumbnail {
	margin: 1.7em 0 0 0;
}
.photo-albums-selected-jacket .photo-albums-thumbnail-not-selected,
.photo-albums-preview-list .photo-albums-thumbnail-not-selected {
	height: 184px;
}
.photo-albums-preview-list {
	max-height:304px;
	max-width:616px;
	overflow: auto;
}
.photo-albums-preview-list .photo-albums-thumbnail-not-selected {
	line-height: 184px;
	vertical-align: middle;
}
.photo-albums-preview-list .photo-albums-preview-photo {
	float: left;
	margin: 4px;
}
.photo-albums-preview-list .img-thumbnail{
	background-color: #e5e5e5;
	display: table-cell;
	height: 64px;
	padding: 0;
	text-align: center;
	vertical-align: middle;
    width: 88px;
}
.photo-albums-preview-list .img-thumbnail label{
    height: 100%;
}
.photo-albums-preview-list img {
	height: 100%;
	max-height: 62px;
    max-width: 86px;
    object-fit: contain;
    width:100%;

}
.photo-albums-setting-thumbnail {
    background-color: #e5e5e5;
    display: table-cell;
    height: 64px;
    padding: 0;
    text-align: center;
    vertical-align: middle;
    width: 72px;
}
.photo-albums-setting-thumbnail img {
    max-height: 56px;
}
.photo-albums-photo-thumbnail {
    background-color: #e5e5e5;
    position: relative;
}
.photo-albums-photo-thumbnail img {
    height: 100%;
    width: 100%;
}
.carousel-indicators .active > img {
    border: 2px solid #fff;
}

.photo-albums-preview-list input[type="radio"] {
    display: none;
}
.photo-albums-preview-list input[type="radio"]:checked + label img {
    border: 1px solid #000;
}

.photo-albums-album-information {
	margin: 0 0 24px;
}
.photo-albums-album-information .photo-albums-album-list-status {
	display: block;
	margin-top: 0.8em;
}

.photo-albums-setting-list .photo-albums-name {
	display: table-cell;
	padding: 0 0 0 8px;
	vertical-align: middle;
}

.photo-albums-photo-list {
	margin: 0 0 16px 0;
}
.photo-albums-photo-list > div {
	padding: 0 4px 0 0;
}
.photo-albums-photo-list .img-thumbnail {
	margin: 0 0 8px 0;
}

/* stylelint-disable property-no-vendor-prefix */
.photo-albums-photo-description {
	height: 1.3em;
	margin: 4px 4px 0;
	overflow: hidden;
	-o-text-overflow: ellipsis;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 100%;
}
/* stylelint-enable property-no-vendor-prefix */
/* stylelint-disable property-no-vendor-prefix */
.photo-albums-photo {
	background-position: center center;
	background-repeat: no-repeat;
	-moz-background-size: contain;
	-o-background-size: contain;
	-webkit-background-size: contain;
	background-size: contain;
	min-height: 152px;
}
/* stylelint-enable property-no-vendor-prefix */
.photo-albums-photo-list .photo-albums-photo {
	background-position: center center;
}
.photo-albums-photo-list-status {
	position: absolute;
	top: 0;
}
.photo-albums-photo-list-status .label {
	display: block
}
.photo-albums-photo-action-bar {
	bottom: 1px;
	position: absolute;
	text-align: right;
	width: 100%;
}
.photo-albums-photo-action-bar form {
	display: inline;
}

/* stylelint-disable property-no-vendor-prefix */
.photo-albums-slide-photo {
    background-position: center center;
    background-repeat: no-repeat;
    -moz-background-size: contain;
    -o-background-size: contain;
    -webkit-background-size: contain;
    background-size: cover;
    width: 100%;
}
/* stylelint-enable property-no-vendor-prefix */

.photo-albums-slide-modal  {
	height: 95%;
    max-width: none;
	width: 95%;
}
.photo-albums-slide-modal .modal-content {
	background-color: #000000;
	background-color: rgba(0, 0, 0, .8);
}
.photo-albums-slide-modal .modal-content,
.photo-albums-slide-modal .carousel,
.photo-albums-slide-modal .carousel-inner,
.photo-albums-slide-modal .carousel-inner > .item > div,
.modal-dialog .photo-albums-slide-photo {
	height: 100%;
}
/* stylelint-disable property-no-vendor-prefix */
.modal-dialog div.photo-albums-slide-photo {
    background-position: center center;
    background-repeat: no-repeat;
    -moz-background-size: contain;
    -o-background-size: contain;
    -webkit-background-size: contain;
    background-size: contain;
    height: 100%;
}
/* stylelint-enable property-no-vendor-prefix */

.photo-albums-slide-modal .carousel-item {
    height: 100%;
}
.photo-albums-slide-modal .carousel-inner > .carousel-item {
	height: calc(100% - 100px);
	left: 10%;
	position: absolute;
	width: 80%;
}
.photo-albums-slide-modal .modal-header {
    display: none;
}
.modal-content .photo-albums-slide-modal-close {
    display: block;
    margin: 8px 8px 0 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 100;
}
.photo-albums-slide-image-wrap {
    height: 100%;
    width: 100%;
}
.photo-albums-slide-image {
    height: 100%;
    object-fit: contain;
    width: 100%;
}
.carousel-caption {
	background: #000000;
	background: rgba(0, 0, 0, .5);
	bottom: 0;
	left: 0;
	padding: 0;
	position: absolute;
	width: 100%;
}

.modal-content .carousel-indicators {
	bottom: 0;
	color: #fff;
	left: 0;
	margin: auto;
	width: 100%;
}
/*.modal-content .carousel-indicators li,*/
/*.modal-content .carousel-indicators li > img {*/
/*	height: 56px;*/
/*	width: 56px;*/
/*}*/
/*.modal-content .carousel-indicators li {*/
/*	background-color: #000000;*/
/*	background-color: rgba(0, 0, 0, 0);*/
/*	border: 0;*/
/*	cursor: pointer;*/
/*	display: inline-block;*/
/*	margin: 1px;*/
/*}*/
/*.modal-content .carousel-indicators li > img {*/
/*	display: block;*/
/*}*/
/* スライダー（carousel）の両側の影を消す */
/*.carousel-control.right,*/
/*.carousel-control.left{*/
/*	background-image: -webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,0) 100%);*/
/*	background-image: -o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,0) 100%);*/
/*	background-image: -webkit-gradient(linear,left top,right top,from(rgba(0,0,0,0)),to(rgba(0,0,0,.5)));*/
/*	background-image: linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,0) 100%);*/
/*}*/

.photo-album-jacket-preview {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.photo-albums-like-button {
    margin-top: 5px;
    position: absolute;
    z-index: 10;
}
