/* =========================================================
   GILDONG HOME MEMORY PREVIEW V1

   - 멤버 공지 영역 compact
   - 최신 사진관 preview
========================================================= */


/* =========================================================
   MEMBER NOTICE COMPACT
========================================================= */

[data-member-notices]{
  padding-top:
    34px !important;

  padding-bottom:
    34px !important;
}


[data-member-notices]
.gs-notice-heading{
  margin-bottom:
    14px !important;
}


[data-member-notices]
.gs-notice-panel{
  gap:
    12px !important;
}


[data-member-notices]
.gs-notice-feature{
  min-height:
    220px !important;

  max-height:
    250px !important;

  border-radius:
    14px !important;
}


[data-member-notices]
.gs-notice-feature
.gs-notice-cover{
  height:
    100% !important;

  object-fit:
    cover !important;
}


[data-member-notices]
.gs-notice-feature
.gs-notice-copy{
  padding:
    18px !important;
}


[data-member-notices]
.gs-notice-feature h3{
  margin:
    8px 0 6px !important;

  font-size:
    18px !important;

  line-height:
    1.3 !important;
}


[data-member-notices]
.gs-notice-feature p{
  display:
    -webkit-box !important;

  overflow:
    hidden !important;

  -webkit-box-orient:
    vertical;

  -webkit-line-clamp:
    2;

  margin:
    0 !important;

  font-size:
    11px !important;

  line-height:
    1.6 !important;
}


[data-member-notices]
.gs-notice-list{
  max-height:
    250px !important;

  overflow-y:
    auto !important;
}


[data-member-notices]
.gs-notice-row{
  min-height:
    68px !important;

  padding:
    9px 10px !important;
}


[data-member-notices]
.gs-notice-row h3{
  margin:
    4px 0 2px !important;

  font-size:
    11px !important;

  line-height:
    1.35 !important;
}


[data-member-notices]
.gs-notice-row p{
  display:none !important;
}


[data-member-notices]
.gs-notice-thumb{
  width:
    62px !important;

  height:
    62px !important;
}


/* =========================================================
   LATEST MEMORY
========================================================= */

.home-memory-preview{
  width:
    100%;

  box-sizing:
    border-box;

  padding:
    36px 0 48px;

  background:
    #faf9f6;
}


.home-memory-preview-inner{
  width:
    min(
      1180px,
      calc(100% - 42px)
    );

  margin:
    0 auto;
}


.home-memory-preview-head{
  display:
    flex;

  align-items:
    flex-end;

  justify-content:
    space-between;

  gap:
    18px;

  margin-bottom:
    16px;
}


.home-memory-preview-title small{
  display:
    block;

  margin-bottom:
    5px;

  color:
    #9b927f;

  font-size:
    9px;

  font-weight:
    900;

  letter-spacing:
    .14em;
}


.home-memory-preview-title h2{
  margin:
    0;

  color:
    #272821;

  font-size:
    clamp(
      22px,
      2vw,
      29px
    );

  line-height:
    1.2;

  font-weight:
    900;
}


.home-memory-preview-more{
  flex:
    0 0 auto;

  color:
    #60705f;

  font-size:
    10px;

  font-weight:
    900;

  text-decoration:
    none;
}


.home-memory-preview-grid{
  display:
    grid;

  grid-template-columns:
    repeat(
      6,
      minmax(0,1fr)
    );

  gap:
    10px;
}


.home-memory-preview-card{
  position:
    relative;

  display:
    block;

  min-width:
    0;

  overflow:
    hidden;

  aspect-ratio:
    4 / 5;

  border-radius:
    13px;

  background:
    #e9e8e3;

  text-decoration:
    none;

  box-shadow:
    0 7px 22px
    rgba(39,45,38,.06);
}


.home-memory-preview-card img,
.home-memory-preview-card video{
  width:
    100%;

  height:
    100%;

  display:
    block;

  object-fit:
    cover;

  transition:
    transform .25s ease;
}


.home-memory-preview-card:hover img,
.home-memory-preview-card:hover video{
  transform:
    scale(1.035);
}


.home-memory-preview-shade{
  position:
    absolute;

  inset:
    auto 0 0;

  height:
    48%;

  pointer-events:
    none;

  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(0,0,0,.68)
    );
}


.home-memory-preview-copy{
  position:
    absolute;

  left:
    11px;

  right:
    11px;

  bottom:
    10px;

  z-index:
    2;

  color:
    #fff;
}


.home-memory-preview-copy strong{
  display:
    block;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

  font-size:
    10px;

  font-weight:
    900;
}


.home-memory-preview-copy span{
  display:
    block;

  margin-top:
    3px;

  opacity:
    .78;

  font-size:
    8px;
}


.home-memory-preview-badge{
  position:
    absolute;

  top:
    8px;

  right:
    8px;

  z-index:
    3;

  padding:
    5px 7px;

  border-radius:
    7px;

  background:
    rgba(15,18,15,.68);

  color:
    #fff;

  font-size:
    7px;

  font-weight:
    900;
}


.home-memory-preview-empty{
  grid-column:
    1 / -1;

  min-height:
    130px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  border:
    1px dashed
    rgba(87,99,87,.18);

  border-radius:
    14px;

  color:
    #999;

  font-size:
    10px;
}


/* =========================================================
   TABLET
========================================================= */

@media(max-width:1050px){

  .home-memory-preview-grid{
    grid-template-columns:
      repeat(
        3,
        minmax(0,1fr)
      );
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:700px){

  [data-member-notices]{
    padding-top:
      24px !important;

    padding-bottom:
      24px !important;
  }


  [data-member-notices]
  .gs-notice-feature{
    min-height:
      180px !important;

    max-height:
      200px !important;
  }


  [data-member-notices]
  .gs-notice-list{
    max-height:
      210px !important;
  }


  .home-memory-preview{
    padding:
      28px 0 36px;
  }


  .home-memory-preview-inner{
    width:
      calc(100% - 28px);
  }


  .home-memory-preview-head{
    align-items:
      center;

    margin-bottom:
      12px;
  }


  .home-memory-preview-title h2{
    font-size:
      21px;
  }


  .home-memory-preview-grid{
    display:
      flex;

    gap:
      9px;

    overflow-x:
      auto;

    scroll-snap-type:
      x mandatory;

    scrollbar-width:
      none;

    padding-bottom:
      4px;
  }


  .home-memory-preview-grid::-webkit-scrollbar{
    display:none;
  }


  .home-memory-preview-card{
    width:
      148px;

    flex:
      0 0 148px;

    scroll-snap-align:
      start;
  }

}

/* =========================================================
   GILDONG_HOME_MEMORY_INCLUDE_CATCH_CSS_V1
========================================================= */

.home-memory-preview-card iframe{
  width:100%;
  height:100%;

  display:block;

  border:0;

  background:#090a09;

  pointer-events:none;
}


.home-memory-preview-card.is-catch{
  background:#090a09;
}


.home-memory-catch-fallback{
  width:100%;
  height:100%;

  display:flex;
  align-items:center;
  justify-content:center;

  background:
    linear-gradient(
      145deg,
      #151a17,
      #090b0a
    );

  color:#fff;

  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
}


.home-memory-preview-card.is-catch
.home-memory-preview-badge{
  background:
    rgba(48,91,61,.92);
}

/* =========================================================
   GILDONG_HOME_CATCH_CLEAN_PREVIEW_CSS_V1
========================================================= */

.home-memory-catch-clean{
  width:100%;
  height:100%;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  gap:9px;

  background:
    radial-gradient(
      circle at 50% 35%,
      #29352d 0,
      #151a17 42%,
      #090b0a 100%
    );

  color:#fff;
}


.home-memory-catch-clean strong{
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
}


.home-memory-catch-play{
  width:52px;
  height:52px;

  display:flex;
  align-items:center;
  justify-content:center;

  box-sizing:border-box;

  padding-left:3px;

  border:
    1px solid rgba(255,255,255,.45);

  border-radius:50%;

  background:
    rgba(255,255,255,.12);

  color:#fff;

  font-size:18px;

  box-shadow:
    0 7px 22px rgba(0,0,0,.20);
}

/* =========================================================
   GILDONG_HOME_CATCH_THUMBNAIL_V1
========================================================= */

.home-memory-catch-clean{
  position:relative;
  overflow:hidden;
}


.home-memory-catch-thumb{
  position:absolute;

  inset:0;

  width:100%;
  height:100%;

  display:block;

  object-fit:cover;

  z-index:0;
}


.home-memory-catch-thumb-shade{
  position:absolute;

  inset:0;

  z-index:1;

  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.04) 0%,
      rgba(0,0,0,.08) 45%,
      rgba(0,0,0,.55) 100%
    );
}


.home-memory-catch-play{
  position:relative;
  z-index:2;
}


.home-memory-catch-clean strong{
  position:relative;
  z-index:2;

  text-shadow:
    0 1px 5px
    rgba(0,0,0,.75);
}

/* HOME_MEMORY_GALLERY_CARD_UI_V2_START */

/*
 * 홈 최근 추억도 추억관과 같은
 * white card + media + title 구조로 통일.
 */

.home-memory-preview-card{
  position:relative;

  display:flex;
  flex-direction:column;

  min-width:0;

  overflow:hidden;

  aspect-ratio:auto;

  border:
    1px solid
    rgba(70,90,75,.12);

  border-radius:12px;

  background:#fff;

  text-decoration:none;

  box-shadow:
    0 7px 22px
    rgba(31,45,35,.07);

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}


.home-memory-preview-card:hover{
  transform:
    translateY(-2px);

  border-color:
    rgba(70,90,75,.20);

  box-shadow:
    0 11px 28px
    rgba(31,45,35,.10);
}


/* =========================================================
   MEDIA
========================================================= */

.home-memory-preview-media{
  position:relative;

  display:block;

  width:100%;

  overflow:hidden;

  aspect-ratio:
    4 / 5;

  background:#111;
}


.home-memory-preview-media > *{
  box-sizing:border-box;
}


.home-memory-preview-media img,
.home-memory-preview-media video{
  display:block;

  width:100%;
  height:100%;

  object-fit:cover;
}


.home-memory-preview-card:hover
.home-memory-preview-media img,
.home-memory-preview-card:hover
.home-memory-preview-media video{
  transform:
    scale(1.035);
}


/*
 * 기존 하단 검정 그라데이션은
 * 제목을 별도 흰색 영역으로 옮겼으므로 제거.
 */
.home-memory-preview-shade{
  display:none !important;
}


/* =========================================================
   TITLE BODY
========================================================= */

.home-memory-preview-copy{
  position:static;

  left:auto;
  right:auto;
  bottom:auto;

  z-index:auto;

  display:block;

  min-height:54px;

  box-sizing:border-box;

  padding:
    10px 10px 9px;

  background:#fff;

  color:#314d3a;
}


.home-memory-preview-copy
.home-memory-preview-card-title{
  display:block;

  margin:0;

  overflow:hidden;

  color:#365840;

  font-size:12px;
  line-height:1.3;

  font-weight:900;

  text-align:left;

  text-overflow:ellipsis;
  white-space:nowrap;
}


.home-memory-preview-copy
.home-memory-preview-card-author{
  display:block;

  margin-top:5px;

  overflow:hidden;

  color:#7b857e;

  opacity:1;

  font-size:9px;
  line-height:1.3;

  font-weight:700;

  text-align:left;

  text-overflow:ellipsis;
  white-space:nowrap;
}


/* =========================================================
   TYPE BADGE
========================================================= */

.home-memory-preview-media
.home-memory-preview-badge{
  position:absolute;

  top:8px;
  right:8px;

  z-index:5;

  margin:0;
}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:760px){

  .home-memory-preview-copy{
    min-height:48px;

    padding:
      8px 8px 7px;
  }


  .home-memory-preview-copy
  .home-memory-preview-card-title{
    font-size:11px;
  }


  .home-memory-preview-copy
  .home-memory-preview-card-author{
    margin-top:4px;

    font-size:8px;
  }

}

/* HOME_MEMORY_GALLERY_CARD_UI_V2_END */

