/* ----- 공통 레이아웃 ----- */
.contentwrap {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
}

.textwrap {
    display: block;
    margin: 0 auto;
    padding: 0 20px;
}

.textwrap>h2 {
    font-size: 2.2em;
    font-weight: bold;
    margin: 20px 0 10px;
}

.contentwrap>.albums-row {
    display: flex;
    flex-direction: row !important;
    align-items: flex-start;
    position: relative;
    z-index: 0;
    justify-content: center;

}

.line {
    width: 800px;
    height: 1px;
    background: #4d4d4d;
    margin: 0 auto;
}

/* ----- 리스트 컨테이너 ----- */
ul[data-r-role] {
    margin: 10px 0;
    list-style: none;
}

/* li 기본값 */
[data-r-role] li {
    height: auto !important;
    padding-left: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    /* 간격 통일 위해 margin 제거 */
}

/* ----- album2 / album3 컬럼 ----- */
[data-r-role="album2"],
[data-r-role="album3"] {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--album-gap) !important;
}

[data-r-role="album2"] {
    width: 224px !important;
}

[data-r-role="album3"] {
    width: 173px !important;
}

/* album2/3 타일은 aspect-ratio로 1:1 보장 */
[data-r-role="album2"] li .albuminfo,
[data-r-role="album3"] li .albuminfo,
[data-r-role="album2"] li.album-tile,
[data-r-role="album3"] li.album-tile {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
}

/* ----- album4 그리드 ----- */
[data-r-role="album4"] {
    display: grid !important;
    width: 370px !important;
    grid-template-columns: repeat(3, 120px) !important;
    grid-auto-rows: 120px !important;
    gap: var(--album-gap) !important;
}

/* ----- 타일 ----- */
.album-tile {
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    margin: 0;
    width: 100%;
    height: 100%;
}

/* album2/3는 고정 높이 병행(정사각 유지) */
[data-r-role="album2"] .album-tile {
    height: 224px;
}

[data-r-role="album3"] .album-tile {
    height: 173px;
}

/* ----- 타일 내부 레이어 & 스태킹 고정 ----- */
.albuminfo {
    position: relative !important;
    isolation: isolate !important;
    z-index: 0 !important;
    width: 100%;
    height: 100%;
    display: block;
    outline: none;
    cursor: pointer;
}

/* 이미지: 항상 오버레이 아래(z=1) */
.albuminfo>img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
}


/* 오버레이: 이미지 위(z=2) */
.album-overlay,
.overlay {
    position: absolute !important;
    inset: 0 !important;
    margin: 0;
    padding: 10px;
    color: #f5f5f5;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    gap: 4px;
    z-index: 2 !important;
    pointer-events: none !important;
    /* 텍스트 클릭 통과 */
    background: rgba(0, 0, 0, 0.70) !important;
    /* 가시성 확인용, 필요시 제거 */
}

/* 열렸을 때 표시 */
li.imagecontainer .album-overlay,
.album-overlay.info_album,
li.imagecontainer .overlay,
.overlay.info_album {
    display: flex !important;
}

/* 컨트롤 버튼 */
.albuminfo>.close_btn {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 5px;
    display: none;
    z-index: 3;
    width: 25px;
    height: 25px;
    background: transparent url('image/Close.svg') center/contain no-repeat;
    border: 0;
}

.albuminfo>#copy_btn {
    position: absolute;
    bottom: 5px;
    left: 7px;
    display: none;
    z-index: 3;
    background-color: transparent;
    outline: none;
    border: none;
    width: 15px;
    height: 20px;
    background-image: url('image/album/copy_btn.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.imagecontainer .albuminfo>.close_btn,
.imagecontainer .albuminfo>#copy_btn {
    display: block;
}

/* 상태 영역(클릭 가로채지 않도록) */
.album-state {
    padding: 12px 20px;
}

.album-state .state {
    font-size: 14px;
    color: #555;
}

.album-state .state.error {
    color: #b00020;
}

#album-state {
    pointer-events: none !important;
}

/* ==== 공통 간격 통일 ==== */
:root {
    --album-gap: 5px;
    /* 이 값만 바꾸면 전체 간격 조정 가능 */
}

.albums-row {
    gap: var(--album-gap) !important;
}

[data-r-role="album2"],
[data-r-role="album3"] {
    gap: var(--album-gap) !important;
}

[data-r-role="album4"] {
    gap: var(--album-gap) !important;
}

/* 마지막 안전핀: 섹션 안의 모든 요소는 기본적으로 클릭 허용 */
.albums-row * {
    pointer-events: auto;
}

/* 푸터: 직퍼·TIPS/CES 상단 줄 숨김 (아티스트 페이지와 동일, 인증 스트립만 표시) */
.jigpulink {
    display: none !important;
}
/* 직퍼 줄이 숨겨지면 선이 2개 겹치므로 첫 번째 선도 숨김 */
footer > .line:first-child {
    display: none;
}