@charset "UTF-8";

/**
 * 
 * NOTE: renew.cssを一部上書き、拡張するためのCSSです。
 * 
 * WARNING: 
 * 
**/

@media print, screen and (min-width: 1201px){
  .p-galleryCont__inner {
    width: 1000px;
  }
}
@media screen and (max-width: 1200px){
  .p-galleryCont__inner {
    max-width: 1000px;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media screen and (max-width: 767px){
  .p-galleryCont__inner {
    padding-left: 1.5vw;
    padding-right: 1.5vw;
  }
}

/* gallery thumbnails */
.p-homeInsta .p-gallery__nav {display: none;}

/* gallery thumbnails */
.p-gallery__list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: center;
  align-items: center;
  gap: 0;/* 10px */
}
@media print, screen and (min-width: 961px){
  .p-gallery__list {
    margin-left: -5px;
    margin-right: -5px;
  }
  .p-galleryCard {
    width: calc( ( 100% - 5px * 10 ) / 5 );
    margin: 10px 5px 0;
  }
  .p-gallery__list .p-galleryCard:nth-child(-n+5) {margin-top: 0;}
}
@media screen and (max-width: 960px){
  .p-gallery__list {
    margin-left: -5px;
    margin-right: -5px;
  }
  .p-galleryCard {
    width: calc( ( 100% - 5px * 6 ) / 3 );
    margin: 10px 5px 0;
  }
  .p-gallery__list .p-galleryCard:nth-child(-n+3) {margin-top: 0;}
}
@media screen and (max-width: 767px){
  .p-gallery__list {
    margin-left: -0.75vw;
    margin-right: -0.75vw;
  }
  .p-galleryCard {
    width: calc( ( 100% - 0.75vw * 6 ) / 3 );
    margin: 1.5vw 0.75vw 0;
  }
  .p-gallery__list .p-galleryCard:nth-child(-n+3) {margin-top: 0;}
}

/* modal status */
.p-galleryModal {
	opacity: 0;
	transition: opacity 0.6s ease;
}
.p-galleryModal.is-open {
	display: block;
	pointer-events: none;
	-webkit-animation: none;/* NOTE: フェードイン動作をanimationで実装していた所をtransitionに変更 */
	animation: none;/* NOTE: フェードイン動作をanimationで実装していた所をtransitionに変更 */
	opacity: 1;/* NOTE: フェードイン動作をanimationで実装していた所をtransitionに変更 */
}
.p-galleryModal.is-opened {pointer-events: auto;}/* NOTE: 新設したセレクタ */
.p-galleryModal.is-close {
	display: block;/* NOTE: モーダルを閉じる動作をdisplayで実装していた所をopacityに変更 */
	visibility: hidden;/* NOTE: モーダルを閉じる動作をdisplayで実装していた所をvisibilityに変更 */
	opacity: 0;
    pointer-events: none;
}

/* loading */
.p-gallerLoading {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.p-gallerLoading.is-active {
  opacity: 1;
  pointer-events: auto;
}

.p-galleryModal__cont {}
@media screen and (max-width: 767px){
  .p-galleryModal__cont {
    margin-top: 40px;
    padding-bottom: 20px;
  }
}

.p-galleryModal__cont .p-galleryModalAuthor {
  display: flex;
  align-items: center;
  background-color: var(--c-base);
  width: 100%;
  height: 70px;
  margin: auto;
  z-index: calc(var(--z-index-modal) + 1);
}
.p-galleryModal__cont .p-galleryModalAuthor__thumb img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
}
.p-galleryModal__close {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  position: absolute;
  top: -32px;
  right: -32px;
  z-index: calc(var(--z-index-modal) + 2);
  cursor: pointer;
}
@media screen and (max-width: 767px){
  .p-galleryModal__cont .p-galleryModalAuthor {
    width: 100%;
    height: 56px;
  }
  .p-galleryModal__cont .p-galleryModalAuthor__thumb img {
    width: 48px;
    height: 48px;
  }
  .p-galleryModal__close {
    width: 70px;
    height: 56px;
    top: 0;
    right: 0;
  }
}

/* modal insta */
.p-galleryCont .auth_insta,
.p-galleryModal__footer .auth_insta,
.p-galleryModal .auth_insta {
  display: flex;
  align-items: center;
  font-size: var(--fs-lv3);
  color: #2634ea;
}
@media (hover: hover) and (pointer: fine){
  .p-galleryCont .auth_insta,
  .p-galleryModal__footer .auth_insta,
  .p-galleryModal .auth_insta {
    -webkit-transition: all .6s var(--e-cubic);
    transition: all .6s var(--e-cubic);
  }
}

/* modal insta (icon) */
.p-galleryCont .auth_insta::before,
.p-galleryModal__footer .auth_insta::before,
.p-galleryModal .auth_insta::before {
  content: '';
  width: 22px;
  height: 22px;
  background: url(../img/icon/sns_instagram.png) no-repeat center center/contain;
  margin: 4px 4px 0 0;
}
@media screen and (max-width: 767px){
  .p-galleryModal__cont .p-galleryModalAuthor__insta {
    display: block;
    margin-top: 2px;
  }
  .p-galleryCont .auth_insta::before,
  .p-galleryModal__footer .auth_insta::before,
  .p-galleryModal .auth_insta::before {
    width: 14px;
    height: 14px;
  }
}

/* modal footer */
.p-galleryModal__footer {}
@media screen and (max-width: 767px){
  .p-galleryModal__footer {
    margin: 0 0 32px;
    padding: 20px 7vw 32px;
  }
}

/* modal date */
/* NOTE: 新設したセレクタ */
.p-galleryModalDate {
  display: flex;
  justify-content: flex-end;
  color: rgba(0,0,0,0.56);
  font-size: var(--fs-lv2);
  margin-bottom: 32px;
}
@media screen and (max-width: 767px){
  .p-galleryModalDate {margin-bottom: 16px;}
}

/* modal nav */
/* NOTE: 新設したセレクタ */
.p-galleryModalNav .prev.is-hide,
.p-galleryModalNav .next.is-hide {
  opacity: 0;
  pointer-events: none;
}


/**
 * 
 * NOTE: single-gallery.php向けのCSSです。
 * 
 * WARNING: 
 * 
**/

.p-gallerySingle .p-galleryModal__inner {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  -webkit-transition: none;
  transition: none;
  transform: none;
  z-index: auto;
}
@media print, screen and (min-width: 768px){
  .p-gallerySingle .p-galleryModal__inner {
    top: auto;
    left: auto;
    -webkit-transition: none;
    transition: none;
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 25px auto;
    padding: 25px;
    background-color: var(--c-base);
  }
}
