/* GILDONG_MEMORY_CATCH_SEPARATE_TAB_CSS_V2 */

.memory-section-tabs{
  width:max-content;

  display:flex;
  align-items:center;

  gap:5px;

  box-sizing:border-box;

  margin:
    0 0 18px;

  padding:5px;

  border:
    1px solid rgba(74,91,78,.10);

  border-radius:15px;

  background:
    #f3f5f1;

  box-shadow:
    0 6px 20px
    rgba(38,54,42,.05);
}


.memory-section-tab{
  min-width:126px;
  height:40px;

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

  padding:
    0 19px;

  border:0;
  border-radius:10px;

  background:transparent;

  color:#899189;

  font-family:
    Arial,
    "Noto Sans KR",
    sans-serif;

  font-size:11px;
  font-weight:900;

  cursor:pointer;
}


.memory-section-tab[aria-pressed="true"]{
  background:#fff;

  color:#3c6149;

  box-shadow:
    0 4px 14px
    rgba(47,70,53,.10);
}


.memory-section-panel[hidden]{
  display:none !important;
}


/* CATCH TOOLBAR */

.memory-catch-toolbar{
  min-height:54px;

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

  gap:16px;

  padding:
    0 2px 14px;
}


.memory-catch-orders{
  display:flex;

  gap:8px;
}


.memory-catch-orders button{
  height:34px;

  padding:
    0 13px;

  border:
    1px solid rgba(70,105,81,.15);

  border-radius:9px;

  background:#fff;

  color:#7e877f;

  font-size:9px;
  font-weight:900;

  cursor:pointer;
}


.memory-catch-orders
button[aria-pressed="true"]{
  border-color:#466951;

  background:#466951;

  color:#fff;
}


.memory-catch-toolbar-right{
  display:flex;
  align-items:center;

  gap:12px;
}


.memory-catch-count{
  color:#979b96;

  font-size:10px;
  font-weight:700;
}


.memory-catch-write{
  height:38px;

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

  box-sizing:border-box;

  padding:
    0 16px;

  border-radius:9px;

  background:#466951;

  color:#fff;

  text-decoration:none;

  font-size:11px;
  font-weight:900;
}


/* CATCH CARDS */

.memory-catch-grid{
  display:grid;

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

  gap:18px;

  align-items:start;
}


.memory-catch-card{
  overflow:hidden;

  border:
    1px solid rgba(73,94,78,.12);

  border-radius:18px;

  background:#fff;

  box-shadow:
    0 12px 34px
    rgba(39,54,43,.07);
}


.memory-catch-media{
  position:relative;

  width:100%;

  aspect-ratio:
    9 / 16;

  overflow:hidden;

  background:#090a09;
}


.memory-catch-media iframe{
  width:100%;
  height:100%;

  display:block;

  border:0;
}


.memory-catch-badge{
  position:absolute;

  top:9px;
  left:9px;

  z-index:2;

  padding:
    6px 8px;

  border-radius:7px;

  background:
    rgba(10,13,11,.72);

  color:#fff;

  font-size:8px;
  font-weight:900;

  pointer-events:none;
}


.memory-catch-body{
  padding:
    11px 12px 13px;
}


.memory-catch-author{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:8px;

  margin-bottom:8px;
}


.memory-catch-author strong{
  min-width:0;

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

  color:#3b4e41;

  font-size:10px;
  font-weight:900;
}


.memory-catch-author span{
  flex:0 0 auto;

  color:#a0a59f;

  font-size:8px;
}


.memory-catch-caption{
  min-height:34px;

  margin:
    0 0 10px;

  overflow:hidden;

  color:#5f6b63;

  font-size:10px;
  line-height:1.65;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}


.memory-catch-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:10px;

  padding-top:9px;

  border-top:
    1px solid rgba(73,94,78,.08);
}


.memory-catch-stats{
  display:flex;

  gap:8px;

  color:#8b938d;

  font-size:8px;
  font-weight:700;
}


.memory-catch-source{
  flex:0 0 auto;

  color:#466951;

  text-decoration:none;

  font-size:8px;
  font-weight:900;
}


.memory-catch-more{
  min-width:120px;
  height:38px;

  display:block;

  margin:
    20px auto 0;

  padding:
    0 18px;

  border:
    1px solid rgba(70,105,81,.20);

  border-radius:10px;

  background:#fff;

  color:#466951;

  font-size:10px;
  font-weight:900;
}


.memory-catch-more[hidden]{
  display:none !important;
}


.memory-catch-loading,
.memory-catch-empty{
  grid-column:
    1 / -1;

  min-height:280px;

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

  padding:30px;

  box-sizing:border-box;

  border:
    1px dashed rgba(85,105,90,.20);

  border-radius:18px;

  color:#929993;

  text-align:center;

  font-size:10px;
}


.memory-catch-empty strong{
  margin-bottom:8px;

  color:#43564a;

  font-size:14px;
}


.memory-catch-empty p{
  margin:0;
}


.memory-catch-error{
  height:100%;

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

  padding:20px;

  color:#aaa;

  text-align:center;

  font-size:10px;
}


@media(max-width:980px){

  .memory-catch-grid{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

}


@media(max-width:700px){

  .memory-section-tabs{
    width:100%;

    margin-bottom:12px;
  }


  .memory-section-tab{
    flex:1 1 0;

    min-width:0;
    height:42px;
  }


  .memory-catch-toolbar{
    flex-direction:column;
    align-items:flex-start;

    gap:10px;

    padding-bottom:12px;
  }


  .memory-catch-orders{
    width:100%;
  }


  .memory-catch-orders button{
    flex:1 1 0;
  }


  .memory-catch-toolbar-right{
    width:100%;

    justify-content:space-between;
  }


  .memory-catch-grid{
    width:
      min(390px,100%);

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

    margin:
      0 auto;
  }


  .memory-catch-card{
    border-radius:16px;
  }

}

/* =========================================================
   GILDONG_CATCH_SOCIAL_ACTIONS_CSS_V1
========================================================= */

.memory-catch-social{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  padding-top:10px;

  border-top:
    1px solid rgba(73,94,78,.09);
}


.memory-catch-social-left,
.memory-catch-social-right{
  display:flex;
  align-items:center;
  gap:7px;
}


.memory-catch-social-button,
.memory-catch-delete{
  min-height:30px;

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

  gap:5px;

  padding:
    0 9px;

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

  border-radius:8px;

  background:#fff;

  color:#738078;

  font-size:9px;
  font-weight:900;

  cursor:pointer;
}


.memory-catch-social-button[aria-pressed="true"]{
  border-color:
    rgba(184,70,78,.20);

  background:#fff4f5;

  color:#b4454e;
}


.memory-catch-heart{
  font-size:12px;
}


.memory-catch-delete{
  color:#a65353;
}


.memory-catch-comments{
  margin-top:11px;

  padding-top:11px;

  border-top:
    1px solid rgba(73,94,78,.08);
}


.memory-catch-comments[hidden]{
  display:none !important;
}


.memory-catch-comment-list{
  max-height:220px;

  overflow-y:auto;

  display:grid;

  gap:7px;

  margin-bottom:9px;
}


.memory-catch-comment-row{
  padding:
    8px 9px;

  border-radius:9px;

  background:#f7f8f6;
}


.memory-catch-comment-head{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:10px;
}


.memory-catch-comment-head strong{
  color:#405046;

  font-size:9px;
  font-weight:900;
}


.memory-catch-comment-head span{
  color:#a0a59f;

  font-size:7px;
}


.memory-catch-comment-row p{
  margin:
    5px 0 0;

  color:#616b64;

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

  overflow-wrap:anywhere;
}


.memory-catch-comment-status{
  padding:14px;

  color:#999;

  text-align:center;

  font-size:9px;
}


.memory-catch-comment-form{
  display:flex;

  gap:6px;
}


.memory-catch-comment-form input{
  min-width:0;

  flex:1;

  height:34px;

  box-sizing:border-box;

  padding:
    0 10px;

  border:
    1px solid #dfe3df;

  border-radius:8px;

  outline:none;

  background:#fff;

  font-size:10px;
}


.memory-catch-comment-form input:focus{
  border-color:#68806e;
}


.memory-catch-comment-form button{
  flex:0 0 auto;

  height:34px;

  padding:
    0 12px;

  border:0;

  border-radius:8px;

  background:#466951;

  color:#fff;

  font-size:9px;
  font-weight:900;

  cursor:pointer;
}


@media(max-width:700px){

  .memory-catch-social{
    align-items:flex-start;
  }


  .memory-catch-social-right{
    margin-left:auto;
  }

}

/* =========================================================
   GILDONG_CATCH_COMPACT_LAYOUT_V1
========================================================= */

/*
 * Catch 카드가 한두 개일 때
 * desktop에서 너무 크게 보이지 않도록 축소.
 */

.memory-catch-card{
  width:min(300px, 100%) !important;
  max-width:300px !important;
}


.memory-catch-media{
  width:100% !important;
  aspect-ratio:9 / 16 !important;
  overflow:hidden !important;
}


.memory-catch-media iframe{
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  display:block !important;
}


.memory-catch-body{
  padding:10px 12px 12px !important;
}


.memory-catch-caption{
  margin:0 0 10px !important;
  font-size:10px !important;
  line-height:1.45 !important;
}


.memory-catch-social{
  padding-top:8px !important;
  gap:8px !important;
}


.memory-catch-social-button,
.memory-catch-delete,
.memory-catch-source{
  min-height:28px !important;
  font-size:8px !important;
  padding:0 8px !important;
}


.memory-catch-comments{
  margin-top:9px !important;
  padding-top:9px !important;
}


.memory-catch-comment-form input{
  height:32px !important;
}


.memory-catch-comment-form button{
  height:32px !important;
}


/*
 * Catch 목록이 desktop에서 넓게 퍼지지 않도록
 * 고정폭 카드형 grid로 정리.
 * 실제 컨테이너명 차이를 대비해 여러 selector 대응.
 */

.memory-catch-grid,
.memory-catch-list,
[data-memory-catch-list]{
  display:grid !important;
  grid-template-columns:repeat(auto-fit, minmax(280px, 300px)) !important;
  justify-content:flex-start !important;
  align-items:start !important;
  gap:18px !important;
}


/*
 * wrapper의 과도한 최소 높이 제거
 */

.memory-catch-panel,
.memory-catch-wrap,
.memory-catch-root,
[data-memory-catch-root],
[data-memory-catch-panel]{
  min-height:0 !important;
}


/*
 * 모바일은 기존 흐름 유지하면서 약간만 정리
 */

@media(max-width:700px){

  .memory-catch-card{
    width:min(320px, 100%) !important;
    max-width:320px !important;
  }

}

/* =========================================================
   GILDONG_CATCH_COMPACT_LAYOUT_V2
   Desktop: 약 5열 × 2줄을 기준으로 축소
========================================================= */

@media(min-width:701px){

  .memory-catch-grid{
    display:grid !important;

    grid-template-columns:
      repeat(
        auto-fill,
        210px
      ) !important;

    justify-content:
      start !important;

    align-items:
      start !important;

    gap:
      16px !important;
  }


  .memory-catch-card{
    width:
      210px !important;

    max-width:
      210px !important;

    min-width:
      0 !important;

    border-radius:
      12px !important;
  }


  .memory-catch-media{
    width:
      210px !important;

    height:
      330px !important;

    min-height:
      0 !important;

    aspect-ratio:
      auto !important;

    overflow:
      hidden !important;
  }


  .memory-catch-media iframe{
    width:
      100% !important;

    height:
      100% !important;

    min-height:
      0 !important;

    border:
      0 !important;
  }


  .memory-catch-badge{
    top:
      7px !important;

    left:
      7px !important;

    font-size:
      6px !important;

    padding:
      4px 5px !important;
  }


  .memory-catch-body{
    padding:
      7px 8px 8px !important;
  }


  .memory-catch-caption{
    margin:
      0 0 6px !important;

    font-size:
      8px !important;

    line-height:
      1.35 !important;

    display:
      -webkit-box !important;

    overflow:
      hidden !important;

    -webkit-box-orient:
      vertical;

    -webkit-line-clamp:
      1;
  }


  .memory-catch-social{
    padding-top:
      6px !important;

    gap:
      4px !important;
  }


  .memory-catch-social-left,
  .memory-catch-social-right{
    gap:
      3px !important;
  }


  .memory-catch-social-button,
  .memory-catch-delete{
    min-height:
      25px !important;

    height:
      25px !important;

    padding:
      0 6px !important;

    border-radius:
      7px !important;

    font-size:
      7px !important;
  }


  .memory-catch-source{
    min-height:
      25px !important;

    display:
      inline-flex !important;

    align-items:
      center !important;

    padding:
      0 4px !important;

    font-size:
      7px !important;

    white-space:
      nowrap !important;
  }


  .memory-catch-heart{
    font-size:
      10px !important;
  }


  .memory-catch-comments{
    margin-top:
      6px !important;

    padding-top:
      6px !important;
  }


  .memory-catch-comment-list{
    max-height:
      150px !important;

    margin-bottom:
      6px !important;
  }


  .memory-catch-comment-form{
    gap:
      4px !important;
  }


  .memory-catch-comment-form input{
    height:
      28px !important;

    padding:
      0 7px !important;

    font-size:
      8px !important;
  }


  .memory-catch-comment-form button{
    height:
      28px !important;

    padding:
      0 8px !important;

    font-size:
      8px !important;
  }

}


/* 모바일은 지나치게 작게 만들지 않음 */
@media(max-width:700px){

  .memory-catch-grid{
    grid-template-columns:
      1fr !important;
  }


  .memory-catch-card{
    width:
      min(
        280px,
        100%
      ) !important;

    max-width:
      280px !important;

    margin:
      0 auto !important;
  }


  .memory-catch-media{
    width:
      100% !important;

    height:
      auto !important;

    aspect-ratio:
      9 / 16 !important;
  }

}

/* =========================================================
   GILDONG_CATCH_CLEAN_PREVIEW_V1
========================================================= */

.memory-catch-media{
  position:relative;
  background:#0a0c0b;
}

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

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

  gap:9px;

  text-align:center;

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

  color:#fff;
}

.memory-catch-clean-icon{
  width:54px;
  height:54px;

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

  padding-left:3px;

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

  border-radius:50%;

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

  font-size:19px;

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

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

.memory-catch-clean-hint{
  max-width:80%;

  color:rgba(255,255,255,.72);

  font-size:7px;
  line-height:1.45;
}

.memory-catch-open-player,
.memory-catch-close-player{
  min-height:27px;

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

  padding:0 10px;

  border:0;
  border-radius:999px;

  background:#466951;
  color:#fff;

  font-size:8px;
  font-weight:900;

  cursor:pointer;
}

.memory-catch-player-wrap{
  position:relative;
  width:100%;
  height:100%;
}

.memory-catch-player-wrap iframe{
  width:100%;
  height:100%;
  display:block;
  border:0;
}

.memory-catch-close-player{
  position:absolute;

  top:7px;
  right:7px;

  z-index:3;

  background:rgba(17,21,18,.78);
  backdrop-filter:blur(4px);
}

@media(min-width:701px){

  .memory-catch-clean-icon{
    width:48px;
    height:48px;
    font-size:17px;
  }

  .memory-catch-clean-preview strong{
    font-size:9px;
  }

  .memory-catch-clean-hint{
    font-size:6px;
  }

  .memory-catch-open-player,
  .memory-catch-close-player{
    min-height:24px;
    font-size:7px;
    padding:0 8px;
  }

}

/* =========================================================
   GILDONG_CATCH_THUMBNAIL_PREVIEW_V1
========================================================= */

.memory-catch-clean-preview{
  position:relative !important;

  width:100% !important;
  height:100% !important;

  display:block !important;

  overflow:hidden !important;

  background:
    linear-gradient(
      145deg,
      #172019,
      #090b0a
    ) !important;
}


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

  inset:0;

  width:100%;
  height:100%;

  display:block;

  object-fit:cover;

  z-index:0;
}


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

  inset:0;

  z-index:1;

  pointer-events:none;

  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.03) 0%,
      rgba(0,0,0,.02) 42%,
      rgba(0,0,0,.55) 100%
    );
}


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

  top:8px;
  right:8px;

  z-index:3;

  padding:
    4px 6px;

  border-radius:
    999px;

  background:
    rgba(52,107,71,.92);

  color:#fff;

  font-size:
    6px;

  font-weight:
    900;

  letter-spacing:
    .04em;

  pointer-events:none;
}


.memory-catch-preview-play{
  position:absolute;

  top:50%;
  left:50%;

  z-index:3;

  width:50px;
  height:50px;

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

  box-sizing:border-box;

  padding:
    0 0 0 3px;

  transform:
    translate(
      -50%,
      -50%
    );

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

  border-radius:
    50%;

  background:
    rgba(17,22,18,.45);

  backdrop-filter:
    blur(3px);

  color:#fff;

  font-size:
    18px;

  cursor:pointer;

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


.memory-catch-preview-play:hover{
  transform:
    translate(
      -50%,
      -50%
    )
    scale(1.06);
}


.memory-catch-preview-label{
  position:absolute;

  left:10px;
  bottom:10px;

  z-index:3;

  color:#fff;

  font-size:
    8px;

  font-weight:
    900;

  letter-spacing:
    .06em;

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

  pointer-events:none;
}


/*
 * 이전 clean preview의 안내문/아이콘이
 * 남아 있을 경우 완전히 숨김.
 */
.memory-catch-clean-icon,
.memory-catch-clean-hint,
.memory-catch-open-player{
  display:none !important;
}


/* 실제 플레이어를 연 뒤에는 기존 방식 유지 */
.memory-catch-player-wrap{
  position:relative;

  width:100%;
  height:100%;
}


.memory-catch-player-wrap iframe{
  width:100%;
  height:100%;

  display:block;

  border:0;
}


@media(max-width:700px){

  .memory-catch-preview-play{
    width:56px;
    height:56px;

    font-size:20px;
  }


  .memory-catch-preview-label{
    font-size:9px;
  }

}



/* =========================================================
   GILDONG_MEMORY_CATCH_EDIT_TITLE_STYLE_V1
========================================================= */

.memory-catch-title{
  margin:0 0 8px;
  color:#263028;
  font-size:16px;
  line-height:1.35;
  font-weight:800;
}


.memory-catch-social-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
}


.memory-catch-edit{
  border:0;
  padding:0;
  background:none;
  color:#657066;
  font-size:12px;
  cursor:pointer;
}


.memory-catch-action-sep{
  color:#b0b6b0;
  font-size:11px;
}


.memory-catch-edit-form{
  margin-top:12px;
  padding:14px;

  display:grid;
  gap:11px;

  border:1px solid #dde2dc;
  border-radius:10px;

  background:#f8faf7;
}


.memory-catch-edit-form[hidden]{
  display:none !important;
}


.memory-catch-edit-field{
  display:grid;
  gap:6px;
}


.memory-catch-edit-field > span{
  color:#566158;
  font-size:11px;
  font-weight:700;
}


.memory-catch-edit-field input,
.memory-catch-edit-field textarea{
  width:100%;
  box-sizing:border-box;

  padding:10px 11px;

  border:1px solid #d4dad3;
  border-radius:8px;

  background:#fff;
  color:#263028;

  font:inherit;
}


.memory-catch-edit-field textarea{
  resize:vertical;
  min-height:92px;
}


.memory-catch-edit-field input:focus,
.memory-catch-edit-field textarea:focus{
  outline:none;
  border-color:#8ca58c;
}


.memory-catch-edit-status{
  min-height:16px;
  color:#68736a;
  font-size:11px;
}


.memory-catch-edit-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
}


.memory-catch-edit-actions button{
  min-height:36px;
  padding:0 13px;
  border-radius:8px;
  cursor:pointer;
}


.memory-catch-edit-cancel{
  border:1px solid #d5dad4;
  background:#fff;
  color:#5f685f;
}


.memory-catch-edit-save{
  border:0;
  background:#354a3b;
  color:#fff;
  font-weight:700;
}


@media(max-width:760px){

  .memory-catch-title{
    font-size:15px;
  }


  .memory-catch-edit-form{
    padding:12px;
  }

}



/* =========================================================
   GILDONG_CATCH_EDIT_BUTTON_MATCH_V1
   수정 버튼을 삭제 버튼과 같은 박스형 UI로 통일.
========================================================= */

.memory-catch-edit{
  min-height:28px !important;
  height:28px !important;

  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  padding:0 8px !important;

  border:
    1px solid rgba(70,90,75,.13) !important;

  border-radius:8px !important;

  background:#fff !important;

  color:#738078 !important;

  font-size:8px !important;
  font-weight:900 !important;
  line-height:1 !important;

  cursor:pointer !important;
}


.memory-catch-action-sep{
  display:none !important;
}


@media(max-width:760px){

  .memory-catch-edit{
    min-height:25px !important;
    height:25px !important;

    padding:
      0 6px !important;

    border-radius:
      7px !important;

    font-size:
      7px !important;
  }

}


/* =========================================================
   GILDONG_CATCH_SINGLE_POPUP_V1
========================================================= */


/*
 * Catch 카드 상세 설명은 목록에서 숨긴다.
 * 상세 내용은 팝업 안에서만 표시.
 */
.memory-catch-caption{
  display:none !important;
}


/*
 * 썸네일은 클릭 가능한 카드 미디어.
 */
.memory-catch-clean-preview,
.memory-catch-preview-thumb{
  cursor:pointer;
}


/* =========================================================
   SINGLE CATCH POPUP
========================================================= */

.memory-catch-popup[hidden]{
  display:none !important;
}


.memory-catch-popup{
  position:fixed;
  inset:0;

  z-index:99999;

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

  box-sizing:border-box;

  padding:24px;

  background:
    rgba(10,14,11,.78);

  backdrop-filter:
    blur(7px);
}


body.memory-catch-popup-open{
  overflow:hidden;
}


.memory-catch-popup-panel{
  position:relative;

  width:min(
    92vw,
    520px
  );

  max-height:
    92vh;

  overflow:hidden;

  border-radius:18px;

  background:#fff;

  box-shadow:
    0 28px 80px
    rgba(0,0,0,.38);
}


.memory-catch-popup-media{
  width:100%;

  aspect-ratio:
    9 / 16;

  max-height:
    78vh;

  background:#000;
}


.memory-catch-popup-frame{
  width:100%;
  height:100%;

  display:block;

  border:0;

  background:#000;
}


.memory-catch-popup-close{
  position:absolute;

  top:10px;
  right:10px;

  z-index:5;

  width:38px;
  height:38px;

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

  padding:0;

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

  border-radius:50%;

  background:
    rgba(0,0,0,.56);

  color:#fff;

  font:
    400 27px/1
    Arial,
    sans-serif;

  cursor:pointer;
}


.memory-catch-popup-info{
  padding:
    15px 17px 17px;

  background:#fff;
}


.memory-catch-popup-title{
  display:block;

  color:#344f3c;

  font-size:17px;
  line-height:1.3;
  font-weight:900;
}


.memory-catch-popup-caption{
  margin:
    7px 0 0;

  color:#667068;

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

  white-space:pre-wrap;
}


.memory-catch-popup-caption[hidden]{
  display:none !important;
}


/* =========================================================
   CATCH COMMENT ACTION BUTTONS
========================================================= */

/*
 * 댓글의 수정/삭제가 세로로 접히지 않도록
 * 버튼 자체의 최소 가로폭을 확보.
 */
.memory-catch-comment-row button{
  min-width:42px !important;
  width:auto !important;

  min-height:26px;

  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  flex:
    0 0 auto !important;

  padding:
    0 8px !important;

  box-sizing:border-box;

  white-space:nowrap !important;

  word-break:keep-all !important;

  overflow-wrap:normal !important;

  writing-mode:
    horizontal-tb !important;

  line-height:1 !important;
}


/*
 * Catch 카드 자체의 수정/삭제 버튼도
 * 같은 이유로 세로 줄바꿈 방지.
 */
.memory-catch-edit,
.memory-catch-delete{
  min-width:40px !important;
  width:auto !important;

  flex:
    0 0 auto !important;

  padding:
    0 8px !important;

  white-space:nowrap !important;

  word-break:keep-all !important;

  writing-mode:
    horizontal-tb !important;
}


.memory-catch-social-right{
  flex:
    0 0 auto !important;

  min-width:max-content;

  white-space:nowrap;
}


@media(max-width:760px){

  .memory-catch-popup{
    padding:10px;
  }


  .memory-catch-popup-panel{
    width:min(
      94vw,
      430px
    );

    border-radius:14px;
  }


  .memory-catch-popup-info{
    padding:
      12px 14px 14px;
  }


  .memory-catch-popup-title{
    font-size:15px;
  }


  .memory-catch-comment-row button{
    min-width:44px !important;

    height:28px;

    padding:
      0 8px !important;
  }

}


/* /GILDONG_CATCH_SINGLE_POPUP_V1 */


/* =========================================================
   GILDONG_CATCH_PANEL_VISIBILITY_FIX_V1
========================================================= */

/*
 * hidden 속성이 다른 display 규칙에 덮이는 경우까지 차단.
 */
.memory-photo-panel[hidden],
.memory-catch-panel[hidden]{
  display:none !important;
}


/* =========================================================
   CATCH ACTION HORIZONTAL V2
========================================================= */

.memory-catch-social{
  gap:5px !important;
}


.memory-catch-social-left,
.memory-catch-social-right{
  display:flex !important;

  align-items:center !important;

  flex-wrap:nowrap !important;

  white-space:nowrap !important;
}


.memory-catch-social-left{
  min-width:0;
  gap:4px !important;
}


.memory-catch-social-right{
  flex:
    0 0 auto !important;

  gap:4px !important;
}


/*
 * 좋아요 / 댓글 등의 버튼 내부 텍스트가
 * 한글 한 글자씩 줄바꿈되는 것 방지.
 */
.memory-catch-social-button,
.memory-catch-social-button span{
  white-space:nowrap !important;

  word-break:keep-all !important;

  overflow-wrap:normal !important;

  writing-mode:
    horizontal-tb !important;
}


.memory-catch-social-button{
  min-width:40px !important;

  width:auto !important;

  flex:
    0 0 auto !important;

  padding:
    0 7px !important;
}


/*
 * "댓글 0"은 좋아요보다 글자가 길기 때문에
 * 별도 최소폭 확보.
 */
.memory-catch-comment-button{
  min-width:54px !important;

  padding:
    0 8px !important;
}


.memory-catch-edit,
.memory-catch-delete{
  min-width:40px !important;

  width:auto !important;

  display:inline-flex !important;

  align-items:center !important;

  justify-content:center !important;

  flex:
    0 0 auto !important;

  padding:
    0 7px !important;

  white-space:nowrap !important;

  word-break:keep-all !important;

  overflow-wrap:normal !important;

  writing-mode:
    horizontal-tb !important;
}


@media(max-width:760px){

  .memory-catch-social{
    gap:3px !important;
  }


  .memory-catch-social-left,
  .memory-catch-social-right{
    gap:3px !important;
  }


  .memory-catch-comment-button{
    min-width:52px !important;
  }


  .memory-catch-edit,
  .memory-catch-delete{
    min-width:38px !important;
  }

}


/* /GILDONG_CATCH_PANEL_VISIBILITY_FIX_V1 */


/* =========================================================
   GILDONG_CATCH_WIDE_GRID_ACTIONS_V1
========================================================= */


/* ---------------------------------------------------------
   DESKTOP GRID
   한 줄 4개를 유지하면서 남는 우측 폭까지 사용
--------------------------------------------------------- */

.memory-catch-grid{
  width:100% !important;

  display:grid !important;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    ) !important;

  gap:
    20px !important;

  justify-content:
    stretch !important;

  align-items:
    start !important;
}


.memory-catch-card{
  width:100% !important;

  min-width:0 !important;

  max-width:none !important;

  box-sizing:
    border-box;
}


/* ---------------------------------------------------------
   ACTION BAR
--------------------------------------------------------- */

.memory-catch-social{
  width:100%;

  display:flex !important;

  align-items:center !important;

  justify-content:
    space-between !important;

  gap:8px !important;

  box-sizing:
    border-box;
}


.memory-catch-social-left{
  display:flex !important;

  align-items:center !important;

  gap:6px !important;

  min-width:0;

  flex:
    1 1 auto;
}


.memory-catch-social-right{
  display:flex !important;

  align-items:center !important;

  justify-content:
    flex-end !important;

  gap:5px !important;

  flex:
    0 0 auto !important;
}


/* ---------------------------------------------------------
   LIKE / COMMENT
--------------------------------------------------------- */

.memory-catch-social-button{
  min-width:44px !important;

  height:30px !important;

  display:inline-flex !important;

  align-items:center !important;

  justify-content:center !important;

  gap:4px !important;

  padding:
    0 9px !important;

  box-sizing:
    border-box;

  flex:
    0 0 auto !important;

  white-space:
    nowrap !important;

  word-break:
    keep-all !important;
}


.memory-catch-comment-button{
  min-width:58px !important;
}


/* ---------------------------------------------------------
   SOOP
   댓글과 절대 붙어 보이지 않도록 독립된 버튼 박스
--------------------------------------------------------- */

.memory-catch-source{
  min-width:48px !important;

  height:30px !important;

  display:inline-flex !important;

  align-items:center !important;

  justify-content:center !important;

  flex:
    0 0 auto !important;

  margin:0 !important;

  padding:
    0 9px !important;

  box-sizing:
    border-box;

  border:
    1px solid
    rgba(65,103,78,.16) !important;

  border-radius:
    8px !important;

  background:
    #f7faf7 !important;

  color:
    #3f6b50 !important;

  font-size:
    9px !important;

  font-weight:
    800 !important;

  line-height:
    1 !important;

  text-decoration:
    none !important;

  white-space:
    nowrap !important;

  word-break:
    keep-all !important;
}


.memory-catch-source:hover{
  background:
    #edf5ef !important;

  border-color:
    rgba(65,103,78,.28) !important;
}


/* ---------------------------------------------------------
   EDIT / DELETE
--------------------------------------------------------- */

.memory-catch-edit,
.memory-catch-delete{
  min-width:42px !important;

  height:30px !important;

  display:inline-flex !important;

  align-items:center !important;

  justify-content:center !important;

  padding:
    0 8px !important;

  box-sizing:
    border-box;

  flex:
    0 0 auto !important;

  border:
    1px solid
    rgba(73,94,78,.12) !important;

  border-radius:
    8px !important;

  background:
    #fff !important;

  white-space:
    nowrap !important;

  word-break:
    keep-all !important;

  writing-mode:
    horizontal-tb !important;
}


.memory-catch-delete{
  color:
    #a65353 !important;
}


/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media(max-width:1100px){

  .memory-catch-grid{
    grid-template-columns:
      repeat(
        3,
        minmax(0, 1fr)
      ) !important;
  }

}


@media(max-width:820px){

  .memory-catch-grid{
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      ) !important;

    gap:
      14px !important;
  }

}


@media(max-width:560px){

  .memory-catch-grid{
    grid-template-columns:
      1fr !important;
  }


  .memory-catch-social{
    gap:5px !important;
  }


  .memory-catch-social-left,
  .memory-catch-social-right{
    gap:4px !important;
  }

}


/* /GILDONG_CATCH_WIDE_GRID_ACTIONS_V1 */

/* =========================================================
   GILDONG_CATCH_CARD_FILL_FIX_V1
========================================================= */


/* ---------------------------------------------------------
   CARD
--------------------------------------------------------- */

.memory-catch-card{
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;

  overflow:hidden !important;

  box-sizing:border-box !important;
}


/* ---------------------------------------------------------
   MEDIA
   카드가 넓어졌는데 기존 영상 영역 폭이 남아있던 문제 제거
--------------------------------------------------------- */

.memory-catch-media{
  position:relative !important;

  width:100% !important;
  min-width:0 !important;
  max-width:none !important;

  aspect-ratio:9 / 16 !important;

  overflow:hidden !important;

  box-sizing:border-box !important;

  background:#000 !important;
}


.memory-catch-clean-preview{
  position:relative !important;

  width:100% !important;
  height:100% !important;

  min-width:0 !important;
  max-width:none !important;

  margin:0 !important;
  padding:0 !important;

  overflow:hidden !important;

  box-sizing:border-box !important;

  background:#000 !important;
}


.memory-catch-preview-thumb{
  position:absolute !important;

  inset:0 !important;

  width:100% !important;
  height:100% !important;

  min-width:100% !important;
  max-width:none !important;

  display:block !important;

  margin:0 !important;

  object-fit:cover !important;
  object-position:center !important;
}


/*
 * 썸네일 위 요소들도 전체 영상 영역 기준으로 배치
 */
.memory-catch-preview-shade{
  position:absolute !important;

  inset:0 !important;

  width:100% !important;
  height:100% !important;
}


/* ---------------------------------------------------------
   CARD BODY
--------------------------------------------------------- */

.memory-catch-card-body{
  width:100% !important;

  min-width:0 !important;

  box-sizing:border-box !important;
}


/* ---------------------------------------------------------
   ACTION BAR

   좋아요/댓글 = 왼쪽
   SOOP/수정/삭제 = 오른쪽

   두 그룹 사이를 확실하게 벌린다.
--------------------------------------------------------- */

.memory-catch-social{
  width:100% !important;

  display:flex !important;

  align-items:center !important;

  justify-content:space-between !important;

  flex-wrap:nowrap !important;

  gap:8px !important;

  box-sizing:border-box !important;
}


.memory-catch-social-left{
  display:flex !important;

  align-items:center !important;

  flex-wrap:nowrap !important;

  flex:0 0 auto !important;

  gap:5px !important;

  min-width:max-content !important;
}


.memory-catch-social-right{
  display:flex !important;

  align-items:center !important;

  justify-content:flex-end !important;

  flex-wrap:nowrap !important;

  flex:0 0 auto !important;

  gap:5px !important;

  min-width:max-content !important;

  margin-left:auto !important;
}


/* ---------------------------------------------------------
   BUTTON COMMON
--------------------------------------------------------- */

.memory-catch-social-button,
.memory-catch-source,
.memory-catch-edit,
.memory-catch-delete{
  height:30px !important;

  display:inline-flex !important;

  align-items:center !important;

  justify-content:center !important;

  flex:0 0 auto !important;

  box-sizing:border-box !important;

  border-radius:8px !important;

  white-space:nowrap !important;

  word-break:keep-all !important;

  overflow-wrap:normal !important;

  writing-mode:horizontal-tb !important;

  line-height:1 !important;
}


/* 좋아요 */
.memory-catch-social-button{
  min-width:45px !important;

  padding:
    0 7px !important;
}


/* 댓글 */
.memory-catch-comment-button{
  min-width:55px !important;

  padding:
    0 8px !important;
}


/* SOOP - 댓글과 완전히 독립된 버튼 */
.memory-catch-source{
  min-width:48px !important;

  padding:
    0 9px !important;

  margin-left:3px !important;

  border:
    1px solid
    #d6e1d8 !important;

  background:
    #f7faf7 !important;

  color:
    #3e6b4d !important;

  font-size:
    9px !important;

  font-weight:
    800 !important;

  text-decoration:none !important;
}


/* 수정 / 삭제 */
.memory-catch-edit,
.memory-catch-delete{
  min-width:40px !important;

  padding:
    0 7px !important;

  border:
    1px solid
    #e1e5e1 !important;

  background:
    #fff !important;
}


.memory-catch-delete{
  color:
    #a45151 !important;
}


/* ---------------------------------------------------------
   GRID
   4열을 유지하면서 가능한 폭을 모두 사용
--------------------------------------------------------- */

.memory-catch-grid{
  width:100% !important;

  display:grid !important;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    ) !important;

  column-gap:14px !important;
  row-gap:22px !important;

  align-items:start !important;

  box-sizing:border-box !important;
}


/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media(max-width:1050px){

  .memory-catch-grid{
    grid-template-columns:
      repeat(
        3,
        minmax(0, 1fr)
      ) !important;
  }

}


@media(max-width:760px){

  .memory-catch-grid{
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      ) !important;

    gap:12px !important;
  }


  .memory-catch-social{
    gap:5px !important;
  }


  .memory-catch-social-left,
  .memory-catch-social-right{
    gap:3px !important;
  }


  .memory-catch-social-button{
    min-width:40px !important;

    padding:
      0 5px !important;
  }


  .memory-catch-comment-button{
    min-width:50px !important;
  }


  .memory-catch-source{
    min-width:44px !important;

    padding:
      0 6px !important;
  }


  .memory-catch-edit,
  .memory-catch-delete{
    min-width:37px !important;

    padding:
      0 5px !important;
  }

}


@media(max-width:520px){

  .memory-catch-grid{
    grid-template-columns:
      1fr !important;
  }

}


/* /GILDONG_CATCH_CARD_FILL_FIX_V1 */

/* =========================================================
   GILDONG_CATCH_ACTION_EQUAL_GRID_V1
========================================================= */


/*
 * 액션바는 버튼 개수만큼 동일 폭으로 분배.
 *
 * 수정 권한 있음:
 * 좋아요 | 댓글 | SOOP | 수정 | 삭제
 *
 * 수정 권한 없음:
 * 좋아요 | 댓글 | SOOP
 */
.memory-catch-social{
  width:100% !important;

  display:grid !important;

  grid-auto-flow:column !important;

  grid-auto-columns:
    minmax(0, 1fr) !important;

  align-items:center !important;

  gap:5px !important;

  padding:
    8px 8px !important;

  box-sizing:
    border-box !important;

  overflow:visible !important;
}


/*
 * 기존 left/right wrapper 때문에
 * 버튼들이 두 덩어리로 계산되던 구조를 없앤다.
 */
.memory-catch-social-left,
.memory-catch-social-right{
  display:contents !important;
}


/*
 * 모든 버튼/링크를 자신의 grid 칸 100% 사용.
 * 기존 min-width 때문에 오른쪽으로 삐져나가던 것 제거.
 */
.memory-catch-social-button,
.memory-catch-comment-button,
.memory-catch-source,
.memory-catch-edit,
.memory-catch-delete{
  width:100% !important;

  min-width:0 !important;
  max-width:none !important;

  height:30px !important;

  margin:0 !important;

  padding:
    0 4px !important;

  display:flex !important;

  align-items:center !important;

  justify-content:center !important;

  gap:3px !important;

  box-sizing:
    border-box !important;

  flex:none !important;

  overflow:hidden !important;

  white-space:nowrap !important;

  word-break:keep-all !important;

  writing-mode:
    horizontal-tb !important;

  line-height:1 !important;

  font-size:
    9px !important;
}


/*
 * SOOP도 다른 버튼과 완전히 동일한 독립 박스
 */
.memory-catch-source{
  border:
    1px solid
    #d6e1d8 !important;

  border-radius:
    8px !important;

  background:
    #f7faf7 !important;

  color:
    #3f6b50 !important;

  font-weight:
    800 !important;

  text-decoration:
    none !important;
}


/*
 * 댓글과 SOOP 사이에 별도 margin을 넣지 않는다.
 * grid gap이 항상 동일한 간격을 담당.
 */
.memory-catch-comment-button{
  margin:0 !important;
}


.memory-catch-edit,
.memory-catch-delete{
  border:
    1px solid
    #e1e5e1 !important;

  border-radius:
    8px !important;

  background:
    #fff !important;
}


.memory-catch-delete{
  color:
    #a45151 !important;
}


/*
 * 숫자/텍스트가 내부에서 밀리지 않게
 */
.memory-catch-social-button span{
  min-width:0;

  white-space:nowrap !important;
}


/* 모바일에서도 같은 원칙 유지 */
@media(max-width:760px){

  .memory-catch-social{
    gap:4px !important;

    padding:
      7px 6px !important;
  }


  .memory-catch-social-button,
  .memory-catch-comment-button,
  .memory-catch-source,
  .memory-catch-edit,
  .memory-catch-delete{
    height:29px !important;

    padding:
      0 3px !important;

    font-size:
      8px !important;
  }

}


/* /GILDONG_CATCH_ACTION_EQUAL_GRID_V1 */
