/*
 * kimonoman ギャラリー
 *
 * サムネイル一覧・ページ送り・スライドショーは NextGEN Gallery 3.26（GPLv2）の CSS から、
 * このサイトで使っている部分だけを移したもの。クラス名も NextGEN と同じ。
 *
 * 拡大表示は FancyBox 1.3.4 の CSS を元にしている（影は元の表示でも出ていないので省略）。画像 fancybox.png も FancyBox 1.3.4 のもの。
 *   Copyright (c) 2008 - 2010 Janis Skarnelis / Dual licensed under the MIT and GPL licenses.
 */

/* ----------- サムネイル一覧（nextgen_basic_thumbnails.css） ----------- */
.ngg-galleryoverview {
	overflow: hidden;
	margin-top: 40px;
	margin-bottom: 50px;
	width: 100%;
	clear: both;
	display: block !important;
	min-height: 100px;
}

.ngg-gallery-thumbnail-box {
	float: left;
	max-width: 100% !important;
}

.ngg-gallery-thumbnail {
	text-align: center;
	max-width: 100% !important;
	background-color: #FFFFFF;
	border: 1px solid #A9A9A9;
	margin: 5px;
}

.ngg-gallery-thumbnail a {
	display: block;
	margin: 4px;
	border: none;
	box-shadow: none;
}

.ngg-gallery-thumbnail img {
	display: block;
	margin: 0;
	padding: 0;
	position: relative;
	max-width: 100% !important;
	height: auto;
}

/* ----------- ページ送り（nextgen_pagination/static/style.css） ----------- */
.ngg-navigation {
	font-size: 0.9em !important;
	clear: both !important;
	display: block !important;
	padding-top: 24px;
	padding-bottom: 3px;
	text-align: center;
}

.ngg-navigation a.page-numbers,
.ngg-navigation a.next,
.ngg-navigation a.prev,
.ngg-navigation span.current {
	background: #BBB;
	border: none;
	border-radius: 2px;
	box-shadow: none;
	color: #fff;
	display: inline;
	font-size: 14px;
	font-weight: bold;
	margin-right: 3px;
	padding: 4px 8px;
	text-decoration: none;
	cursor: pointer !important;
}

.ngg-navigation span.current {
	background: #666;
}

.ngg-navigation a.next,
.ngg-navigation a.prev {
	background: transparent;
	color: #BBB;
	padding: 2px;
	border: none;
}

.ngg-navigation a.page-numbers:hover,
.ngg-navigation span.current:hover {
	background: #666;
	color: #FFFFFF !important;
	text-decoration: none !important;
}

.ngg-navigation a.next:hover,
.ngg-navigation a.prev:hover {
	color: #666 !important;
}

/* ----------- スライドショー（ngg_basic_slideshow.css と slick の fade 表示を再現） ----------- */
.ngg-slideshow.kimonoman-slideshow {
	position: relative;
	margin: 40px auto 50px !important;
	overflow: visible;
	min-height: 0;
}

.kimonoman-slideshow .ngg-gallery-slideshow-image {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	text-align: center;
	font: 0/0 a;
}

.kimonoman-slideshow .ngg-gallery-slideshow-image.is-active {
	position: relative;
	z-index: 1;
	opacity: 1;
	visibility: visible;
}

.kimonoman-slideshow .ngg-gallery-slideshow-image.is-leaving {
	opacity: 1;
	visibility: visible;
}

.kimonoman-slideshow .ngg-gallery-slideshow-image:before {
	content: ' ';
	display: inline-block;
	vertical-align: middle;
	height: 100%;
}

.kimonoman-slideshow .ngg-gallery-slideshow-image a {
	display: inline !important;
}

.kimonoman-slideshow .ngg-gallery-slideshow-image img {
	margin: 0 auto;
	display: inline-block !important;
	vertical-align: middle;
	max-width: 99% !important;
	max-height: 98% !important;
}

.slideshowlink.kimonoman-thumbnails-link {
	margin: -34px auto 50px;
	text-align: center;
	text-transform: uppercase;
}

.slideshowlink.kimonoman-thumbnails-link a {
	font-size: 13px;
	letter-spacing: .75px;
	cursor: pointer;
	text-decoration: none;
	box-shadow: none;
	border: none;
}

@media (max-width: 600px) {
	.kimonoman-slideshow .ngg-gallery-slideshow-image {
		height: 400px !important;
	}
}

@media (max-width: 450px) {
	.kimonoman-slideshow .ngg-gallery-slideshow-image {
		height: 300px !important;
	}
}

/* ----------- 拡大表示（FancyBox 1.3.4 の見た目） ----------- */
.kimonoman-lb-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1100;
	display: none;
	background-color: #777;
	opacity: 0.7;
	cursor: pointer;
}

.kimonoman-lb-loading {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	margin-left: -20px;
	cursor: pointer;
	overflow: hidden;
	z-index: 1104;
	display: none;
}

.kimonoman-lb-loading div {
	position: absolute;
	top: 0;
	left: 0;
	width: 40px;
	height: 480px;
	background-image: url('fancybox.png');
}

.kimonoman-lb-wrap {
	position: absolute;
	top: 0;
	left: 0;
	padding: 20px;
	z-index: 10000;
	outline: none;
	display: none;
	box-sizing: content-box;
}

.kimonoman-lb-outer {
	position: relative;
	width: 100%;
	height: 100%;
	background: #fff;
}

.kimonoman-lb-content {
	width: 0;
	height: 0;
	padding: 0;
	outline: none;
	position: relative;
	overflow: hidden;
	z-index: 1102;
	border: 10px solid #fff;
	box-sizing: content-box;
}

.kimonoman-lb-content img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	padding: 0;
	margin: 0;
	border: none;
	outline: none;
	line-height: 0;
	vertical-align: top;
}

.kimonoman-lb-close {
	position: absolute;
	top: -15px;
	right: -15px;
	width: 30px;
	height: 30px;
	background: transparent url('fancybox.png') -40px 0px;
	cursor: pointer;
	z-index: 1103;
	display: none;
}

.kimonoman-lb-left,
.kimonoman-lb-right {
	position: absolute;
	bottom: 0;
	height: 100%;
	width: 35%;
	cursor: pointer;
	outline: none;
	background: transparent;
	z-index: 1102;
	display: none;
}

.kimonoman-lb-left {
	left: 0;
}

.kimonoman-lb-right {
	right: 0;
}

.kimonoman-lb-left span,
.kimonoman-lb-right span {
	position: absolute;
	top: 50%;
	left: -9999px;
	width: 30px;
	height: 30px;
	margin-top: -15px;
	cursor: pointer;
	z-index: 1102;
	display: block;
	background-image: url('fancybox.png');
}

.kimonoman-lb-left span {
	background-position: -40px -30px;
}

.kimonoman-lb-right span {
	background-position: -40px -60px;
}

.kimonoman-lb-left:hover span,
.kimonoman-lb-left:focus-visible span {
	left: 20px;
}

.kimonoman-lb-right:hover span,
.kimonoman-lb-right:focus-visible span {
	left: auto;
	right: 20px;
}
