/*-----------------------------------------------------------------------------------*/
/*	07. SWIPER
/*-----------------------------------------------------------------------------------*/

.swiper-container-wrapper {
  position: relative;
  overflow: hidden;
}

.swiper-container.image-carousel,
.swiper-container.single-carousel {
  width: 100%;
  height: calc(100vh - 169px);
  margin: 0;
}

.swiper-container.image-carousel img,
.swiper-container.single-carousel img {
  width: 100%;
  position: relative;
  height: 100%;
  overflow: hidden;
  object-fit: cover;
}

.swiper-container.image-carousel .swiper-slide,
.swiper-container.sinlge-carousel .swiper-slide {
  text-align: center;
  font-size: 18px;
  background: none;
  width: auto;
  /* Center slide text vertically */

  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.swiper-container-wrapper .swiper-pagination .swiper-pagination-bullet {
  opacity: 1;
  transition: background 200ms ease-in;
  height: 11px;
  width: 11px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: none;
  margin: 6px 0;
}

.swiper-container-vertical>.swiper-pagination-bullets {
  right: 20px;
}

.swiper-container-wrapper:not(.swiper-container-vertical) .swiper-pagination {
  position: absolute;
  text-align: center;
  z-index: 10;
  bottom: -30px;
  width: 100%;
}

.swiper-container-wrapper:not(.swiper-container-vertical) .swiper-pagination .swiper-pagination-bullet {
  margin: 0 3px;
}

.swiper-container-wrapper .swiper-pagination .swiper-pagination-bullet:hover,
.swiper-container-wrapper .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background-color: #fff
}

.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 50%;
  color: #FFF;
  font-size: 16px !important;
  font-family: "Ionicons";
  font-weight: normal;
  width: auto;
  height: auto;
  padding: 8px 11px;
  opacity: 0 !important;
}


.swiper-button-prev.swiper-button-disabled,
.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled:hover,
.swiper-button-next.swiper-button-disabled:hover {
  background: rgba(30, 30, 30, 0.2) !important;
  opacity: 1;
  pointer-events: auto !important;
}

.swiper-button-prev,
.swiper-button-next {
  background: rgba(30, 30, 30, 0.8) !important;
}

.swiper-button-prev.btn:hover,
.swiper-button-next.btn:hover {
  background: rgba(30, 30, 30, 1) !important;
}


.swiper-container-wrapper:hover .swiper-button-prev,
.swiper-container-wrapper:hover .swiper-button-next {
  opacity: 1 !important;
}

/*-----------------------------------------------------------------------------------*/
/*	11. THUMBNAIL OVERLAY
/*-----------------------------------------------------------------------------------*/

.overlay {
  display: block;
  overflow: hidden;
  position: relative;
}

.overlay img,
figure img {
  display: inline;
  width: 100%;
}

.overlay img.img-auto {
  width: auto;
}

.overlay a .text-overlay {
  opacity: 1;
  height: 100%;
  position: absolute;
  text-decoration: none;
  width: 100%;
  z-index: 100;
  background-image: -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(50%, transparent), color-stop(55%, rgba(30, 30, 30, 0.15)), color-stop(85%, rgba(30, 30, 30, 0.7)), to(rgba(30, 30, 30, 0.8)));
  background-image: -webkit-linear-gradient(transparent 0%, transparent 50%, rgba(30, 30, 30, 0.15) 55%, rgba(30, 30, 30, 0.7) 85%, rgba(30, 30, 30, 0.8) 100%);
  background-image: linear-gradient(transparent 0%, transparent 50%, rgba(30, 30, 30, 0.15) 55%, rgba(30, 30, 30, 0.7) 85%, rgba(30, 30, 30, 0.8) 100%);
  transition: all 0.5s ease-out;
  text-align: left;
}

.overlay a .text-overlay .info {
  position: absolute;
  bottom: 20px;
  text-align: center;
  left: 30px;
  right: 30px;
  -webkit-transition: -webkit-transform 0.5s, opacity 0.5s;
  transition: transform 0.5s, opacity 0.5s;
}

.tiles.blog figure a .text-overlay .info,
.blog-carousel2 figure a .text-overlay .info {
  text-align: left;
}

.tiles.blog figure a .text-overlay .info p,
.blog-carousel2 figure a .text-overlay .info p {
  color: #FFF;
}

.overlay a .text-overlay .info .post-title {
  color: #FFF;
  margin: 0;
  font-size: 18px;
}

.tiles.blog figure a .text-overlay .info .post-title,
.blog-carousel2 figure a .text-overlay .info .post-title {
  margin-bottom: 10px;
}

.tiles.blog figure.overlay a .over span,
.blog-carousel2 figure.overlay a .over span {
  display: none !important;
}

.overlay a .text-overlay .info .meta {
  color: #cdcdcd;
}

.swiper-slide .overlay .text-overlay {
  opacity: 1;
  height: 100%;
  position: absolute;
  text-decoration: none;
  width: 100%;
  z-index: 100;
  background: rgba(30, 30, 30, 0.4);
  transition: all 0.5s ease-out;
  text-align: left;
  display: table;
}

.swiper-slide .overlay .text-overlay .info {
  text-align: center;
  width: 100%;
  height: 100%;
  -webkit-transition: -webkit-transform 0.5s, opacity 0.5s;
  transition: transform 0.5s, opacity 0.5s;
  display: table-cell;
  vertical-align: middle;
}

.swiper-slide .overlay .text-overlay .info .post-title {
  color: #FFF;
  margin: 0 0 20px 0;
  font-size: 18px;
  text-transform: uppercase;
}

.swiper-slide .overlay .text-overlay .info .meta {
  color: #cdcdcd;
}

.overlay a .over {
  opacity: 0;
  height: 100%;
  position: absolute;
  text-decoration: none;
  width: 100%;
  max-width: 100%;
  z-index: 99;
  top: 0;
  left: 0;
  background: rgba(30, 30, 30, 0.6);
  overflow: hidden;
  transition: all 0.4s;
}

.overlay a .over span {
  background: #FFF;
  height: 26px;
  position: absolute;
  width: 2px;
  top: 50%;
  left: 50%;
  z-index: 2;
  margin-left: -1px;
  margin-top: -13px;
}

.overlay a .over span:after {
  background: #FFF;
  content: "";
  height: 2px;
  left: -12px;
  position: absolute;
  top: 12px;
  width: 26px;
}

.overlay.small a .over span {
  height: 20px;
  width: 2px;
  margin-top: -10px;
}

.overlay.small a .over span:after {
  height: 2px;
  left: -9px;
  top: 9px;
  width: 20px;
}

.overlay a:hover .over {
  opacity: 1
}

.overlay a:hover .text-overlay .info {
  -webkit-transform: none;
  transform: none;
}

.overlay.instagram a .over span {
  width: auto;
  height: auto;
  font-size: 35px;
  color: #FFF;
  opacity: 0.7;
  margin-left: -13px;
  margin-top: -12px;
  background: none;
}

.overlay.instagram a .over span:after {
  content: "\f351";
  font-family: "Ionicons";
  width: auto;
  height: auto;
  top: 0;
  left: 0;
  background: none;
}

.swiper-slide .overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.swiper-slide .btn:focus {
  background: rgba(255, 255, 255, 0.8) !important;
}

/*-----------------------------------------------------------------------------------*/
/*	 BUTTON
/*-----------------------------------------------------------------------------------*/
.btn {
  color: #FFF !important;
  background: #303030;
  border: 0;
  margin-bottom: 6px;
  margin-right: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: uppercase;
  line-height: 1;
  padding: 14px 20px;
  border-radius: 0;
  text-shadow: none;
  transition: all 150ms ease-in;
  box-shadow: none;
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
}

.btn.btn-white {
  background: rgba(255, 255, 255, 0.8);
  color: #404040 !important;
}

.btn.btn-white:hover,
.btn.btn-white:focus,
.btn.btn-white:active,
.btn.btn-white.active {
  background: #f3f3f3 !important;
  color: #404040 !important;
}

.text-center {
  text-align: center;
}

.modal-content h2 {
  font-family: "Montserrat", serif;
  letter-spacing: .05em;
}

.modal-content p {
  margin-top: .5rem;
  font-size: 15px;
  color: #dddddd;
}

.swiper-container {
  width: 100%;
}

.swiper-slide {
  width: auto;
  /* または省略可能 */
}

/* モーダル背景 */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.68);
  z-index: 1000;
  overflow-y: auto;
}

/* 表示時 body 固定 */
body.modal-open {
  overflow: hidden;
}

/* モーダルラッパー */
.modal-dialog {
  width: 100%;
  max-width: 100vw;
  height: 100%;
  margin: 0;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 0;
}

/* モーダル本体 */
.modal-content {
  width: 100%;
  max-width: 100vw;
  height: auto;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  padding: 20px;
  position: relative;
  color: #000;
}

/* 見出し・テキスト */
.modal-content h2 {
  font-family: "Montserrat", serif;
  letter-spacing: .05em;
  text-align: center;
}

.modal-content p {
  margin-top: .5rem;
  font-size: 15px;
  color: #dddddd;
  text-align: center;
}

/* 画像調整 */
.modal-content img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}

/* ギャラリー */
.basic-gallery {
  margin-top: 1.5rem;
  max-width: 100%;
  padding: 0;
  box-sizing: border-box;

  li {
    margin-bottom: 1rem;
  }
}

.modal-content .post-title {
  letter-spacing: .05em;
  color: #fff;
}

/* スマホ対応 */
@media (max-width: 767px) {
  .basic-gallery {
    display: block;
  }

  .modal-content {
    padding: 20px 10px;
  }
}

/* 閉じるボタン */
.modal .btn.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 30px;
  color: rgba(0, 0, 0, 0.7);
  background: none;
  border: none;
  z-index: 1001;
  line-height: 1;
}

.modal .btn.close-button:hover {
  color: #000;
}

.modal .btn.close-button:before {
  content: '×';
  font-family: sans-serif;
}

/* 強制的に画像の横スクロールを抑止 */
img {
  max-width: 100%;
  height: auto;
}