/* Portfolio 스타일 - btk-ai 테마에 맞게 조정 */
.portfolio-filters {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.portfolio-filters li {
    cursor: pointer;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.375rem;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.portfolio-filters li:hover,
.portfolio-filters li.filter-active {
    background: #5e42a6;
    border-color: #5e42a6;
    color: #fff;
}
/*
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    width: 100%;
    height: auto;
}*/

.portfolio-item {
    width: 100%;
    height: auto;
    overflow: hidden;
    padding: 0 !important;
    margin: 0;
    background: #1a1a2e;
    position: relative;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}


.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    padding: 2.5rem 0.8rem 0.7rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 0 12px 12px;
}

.portfolio-item:hover .portfolio-info {
    opacity: 1;
}

.portfolio-info h4 {
    color: #fff;
    margin: 0 0 0.25rem 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.portfolio-info p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 0.4rem 0;
    font-size: 0.72rem;
    line-height: 1.3;
}

.portfolio-info a {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    color: #fff;
    margin-right: 0.3rem;
    transition: background 0.3s ease;
    font-size: 0.75rem;
}

.portfolio-info a:hover {
    background: #5e42a6;
}
/* Kling-style Row-major Masonry Gallery (CSS Grid + JS row-span)
 * - 데이터는 created_at DESC(최신순), 시각적으로 좌→우, 위→아래 가로 흐름.
 * - 카드 높이는 이미지/비디오 자연 비율 그대로 유지.
 * - 카드 높이는 JS(gallery-loader.js: applyIndexGalleryMasonry)가 grid-row 단위로 환산해 span 부여.
 *   → 같은 행의 카드가 들쭉날쭉해도 그 다음 행이 자연스럽게 이어붙어 빈 공간 최소화.
 */
.isotope-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 8px;
    gap: 0 10px;
    width: 100% !important;
    align-items: start;
}

/* 태블릿 - 3열 */
@media screen and (max-width: 1280px) and (min-width: 769px) {
    .isotope-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 태블릿 소 - 2열 */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .isotope-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 갤러리 슬라이더 래퍼 (기본 스타일) */
.gallery-slider-wrapper {
    position: relative;
    width: 100%;
}

/* 갤러리 로딩 인디케이터 기본 스타일 (데스크톱) */
.gallery-loading-indicator,
#gallery-loading-indicator {
    column-span: all;
    grid-column: 1 / -1;
    grid-row: span 12;
    text-align: center;
    padding: 3rem;
    color: #999;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.gallery-loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #ddd;
    border-top-color: #888;
    border-radius: 50%;
    animation: gallery-spin 0.8s linear infinite;
}

.gallery-loading-text {
    display: inline-block;
}

@keyframes gallery-spin {
    to { transform: rotate(360deg); }
}

/* 슬라이더 네비게이션 화살표 (기본 숨김 - 데스크톱, 모바일에서는 CSS 미디어 쿼리에서 표시) */
.gallery-slider-nav {
    display: none;
    visibility: hidden;
    opacity: 0;
}

/* 모바일 - 슬라이더 방식 */
/* 갤러리 로딩 인디케이터 기본 스타일 */
.gallery-loading-indicator,
#gallery-loading-indicator {
    column-span: all;
    grid-column: 1 / -1;
    grid-row: span 12;
    text-align: center;
    padding: 3rem;
    color: #999;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
}

.gallery-loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #ddd;
    border-top-color: #888;
    border-radius: 50%;
    animation: gallery-spin 0.8s linear infinite;
}

.gallery-loading-text {
    display: inline-block;
}

@keyframes gallery-spin {
    to { transform: rotate(360deg); }
}

/* 갤러리 로딩 인디케이터 - 모바일에서 갤러리 영역 내 중앙 정렬 */
@media screen and (max-width: 768px) {
    .gallery-loading-indicator,
    #gallery-loading-indicator {
        column-span: all !important;
        text-align: center !important;
        padding: 3rem 1rem !important;
        color: #999 !important;
        font-size: 1.1rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.75rem !important;
        width: 100% !important;
        margin: 0 auto !important;
        position: relative !important;
        /* 오버레이 스타일 제거 */
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        z-index: auto !important;
    }
    
    .gallery-loading-spinner {
        border-color: #ddd !important;
        border-top-color: #888 !important;
        margin-right: 0 !important;
    }
    
    .gallery-loading-text {
        color: #999 !important;
    }
}

@media screen and (max-width: 768px) {
    .gallery-slider-wrapper {
        position: relative;
        width: 100%;
        overflow: hidden;
    }
    
    .isotope-container {
        column-count: unset !important;
        display: flex !important;
        grid-template-columns: none !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        gap: 0 !important;
        padding: 0 !important;
        position: relative;
        width: 100%;
        align-items: center;
    }
    
    .isotope-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .portfolio-item {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        scroll-snap-align: start;
        margin-right: 0;
        margin-bottom: 0;
        display: block;
        break-inside: auto;
        background: transparent;
        height: auto;
    }

    /* 모바일: 이미지/비디오 크기 자동 피팅 (공백 제거) */
    .portfolio-item img,
    .portfolio-item video {
        width: 100% !important;
        height: auto !important;
        display: block;
        object-fit: contain !important;
        border-radius: 12px;
    }

    /* 모바일에서 hover 확대 비활성화 */
    .portfolio-item:hover img {
        transform: none;
    }

    /* 모바일에서 portfolio-info 배경 조정 */
    .portfolio-info {
        border-radius: 0 0 12px 12px;
    }
    
    /* 슬라이더 네비게이션 화살표 - 모바일에서는 항상 표시 (배경 없이 화살표만) */
    .gallery-slider-nav {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 100 !important;
        background: transparent !important;
        color: #fff !important;
        border: none !important;
        width: auto !important;
        height: auto !important;
        min-width: auto !important;
        max-width: none !important;
        min-height: auto !important;
        max-height: none !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        font-size: 2.5rem !important;
        font-weight: bold !important;
        line-height: 1 !important;
        text-align: center !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        /* 화살표 텍스트 완벽한 중앙 정렬 보장 */
        text-indent: 0 !important;
        letter-spacing: 0 !important;
        text-rendering: optimizeLegibility !important;
        -webkit-font-smoothing: antialiased !important;
        transition: all 0.3s ease !important;
        backdrop-filter: none !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        touch-action: manipulation !important;
        box-shadow: none !important;
        pointer-events: auto !important;
        /* 화살표에 약간의 텍스트 그림자 추가 (가독성 향상) */
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 4px rgba(0, 0, 0, 0.5) !important;
    }
    
    .gallery-slider-nav:hover {
        transform: translateY(-50%) scale(1.2);
        opacity: 0.9;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.6) !important;
    }
    
    .gallery-slider-nav:active {
        transform: translateY(-50%) scale(0.95);
        opacity: 0.8;
    }
    
    .gallery-slider-nav.prev {
        left: 0;
    }
    
    .gallery-slider-nav.next {
        right: 0;
    }
    
    /* 비활성화 상태 (첫 번째/마지막 아이템일 때) - 화살표는 항상 보이되 약간 투명하게 */
    .gallery-slider-nav.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }
    
    /* 숨김 상태 (시작/끝에서 완전히 숨김) */
    .gallery-slider-nav.hidden-nav {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* 모바일에서는 hidden 클래스가 있어도 무조건 표시 (CSS가 우선) */
    .gallery-slider-nav.hidden {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* 초소형 모바일 */
@media screen and (max-width: 480px) {
    .gallery-slider-nav {
        font-size: 2rem !important;
    }
    
    .gallery-slider-nav.prev {
        left: 0 !important;
    }
    
    .gallery-slider-nav.next {
        right: 0 !important;
    }
}
/*
.portfolio-item {
    flex: none !important;
    width: 100% !important;
    height: 250px !important;
    margin-bottom: 0 !important;
}*/

/* Kling-style: 이미지 원본 비율 유지, 최소 높이만 보장 */
.portfolio-item img {
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.4s ease;
    border-radius: 12px;
}

.portfolio-item:hover img {
    transform: scale(1.03);
}

.portfolio-item video {
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 12px;
}

/* 비디오 아이템에 플레이 아이콘 표시 */
.portfolio-item .video-play-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 6px;
    padding: 4px 8px;
    color: #fff;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
    pointer-events: none;
    backdrop-filter: blur(4px);
    transition: opacity 0.2s ease;
}

.portfolio-item .video-play-indicator i {
    font-size: 0.6rem;
}




/* Mobile App Download Buttons - 전문적인 디자인 */
.mobile-download {
    text-align: center;
    margin-top: 3rem;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-store-button,
.google-play-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.6rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.4s ease;
    min-width: 160px;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.app-store-button:hover,
.google-play-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(94, 66, 166, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(94, 66, 166, 0.25);
    color: #fff;
}

.app-button-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.app-button-content i {
    font-size: 1.8rem;
    color: #fff;
    opacity: 0.9;
}

.button-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.download-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1;
    margin-bottom: 0.3rem;
    font-weight: 300;
}

.store-text {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    line-height: 1;
}

/* 전문적인 반응형 디자인 */
@media (max-width: 768px) {
    .mobile-download {
        margin-top: 2.5rem;
    }
    
    .app-buttons {
        gap: 0.8rem;
    }
    
    .app-store-button,
    .google-play-button {
        min-width: 150px;
        padding: 0.7rem 1.3rem;
    }
    
    .app-button-content i {
        font-size: 1.6rem;
    }
    
    .download-text {
        font-size: 0.65rem;
    }
    
    .store-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .mobile-download {
        margin-top: 2rem;
    }
    
    .app-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .app-store-button,
    .google-play-button {
        width: 100%;
        max-width: 200px;
    }
}

/* 추가: 더 나은 시각적 계층 구조 */
.mobile-download p {
    position: relative;
}

.mobile-download p::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* 감사 메시지 애니메이션 */
#thank-you {
    animation: thankYouSlideIn 0.6s ease-out;
}

@keyframes thankYouSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#thank-you:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(94, 66, 166, 0.4);
    transition: all 0.3s ease;
}

/* Get in touch 섹션 감사 메시지 스타일 */
#thank-you {
    display: none;
    background: linear-gradient(135deg, #5e42a6, #7b68ee);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(94, 66, 166, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

#thank-you div {
    margin-bottom: 1rem;
}

#thank-you h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#thank-you p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
    line-height: 1.5;
}

#thank-you button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

#thank-you button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

/* 팝업 스타일 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.popup-content {
    background: #fff;
    color: #333;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(-30px);
    opacity: 0;
    transition: all 0.4s ease;
}

.popup-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.popup h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.popup p {
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    line-height: 1.4;
}

.popup-close-btn {
    background: #5e42a6;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0.3rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.popup-close-btn:hover {
    background: #4b327e;
}

.show {
    opacity: 1;
    pointer-events: all;
}

/* 에러 팝업 스타일 */
.error {
    background: #f8d7da;
    color: #721c24;
}

.error .popup-icon {
    color: #721c24;
}

/* 모바일에서 더 작게 */
@media (max-width: 768px) {
    .glightbox-container .gslide-image img,
    .glightbox-container .gslide-video video {
        max-width: 90% !important;
        max-height: 60vh !important;
    }
}

/* capture image 화면의 이미지가 흰색 테두리 박스 안에 전체가 잘리지 않고 최대한 크게 보이도록 스타일 추가 */
.capture-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    border-radius: 1rem;
    display: block;
}

/* ✅ 비디오: 브라우저 기본 플레이 버튼 / 컨트롤 숨김 */
video::-webkit-media-controls-overlay-play-button,
video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none !important;
}
/* GLightbox 내부 비디오: 기본 컨트롤 전체 숨김 (autoplay이므로 불필요) */
.gslide-video video::-webkit-media-controls {
    display: none !important;
}

/* GLightbox 비디오 로딩 인디케이터 숨김 (세로로 길쭉한 하늘색 동그라미 제거) */
.glightbox-loader,
.glightbox-loading,
.gloader,
.glightbox-container .gloader,
.gslide-video .gloader,
.gslide-video::before,
.gslide-video::after,
.glightbox-container::before,
.glightbox-container::after,
.gslide::before,
.gslide::after,
.gslide-video video::before,
.gslide-video video::after {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* GLightbox 비디오 로딩 스피너 숨김 */
.glightbox-container .gloader,
.glightbox-container .glightbox-loader,
.gslide-video .gloader,
.gslide-video video[poster]::before,
.gslide-video video[poster]::after {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* GLightbox 비디오 요소의 모든 의사 요소 숨김 */
.gslide-video video::-webkit-media-controls,
.gslide-video video::-webkit-media-controls-enclosure,
.gslide-video video::-webkit-media-controls-panel {
    display: none !important;
}

/* GLightbox 비디오 로딩 중 표시되는 모든 요소 숨김 */
.glightbox-container.loading .gloader,
.glightbox-container.loading::before,
.glightbox-container.loading::after,
.gslide-video.loading .gloader,
.gslide-video.loading::before,
.gslide-video.loading::after {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* 비디오 재생 종료 후 오버레이 (브라우저 기본 파란 버튼 완전 가림 + 다시보기) */
.video-ended-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    cursor: pointer;
}
.video-ended-overlay:hover svg circle {
    fill: rgba(0, 0, 0, 0.65);
}

/* 갤러리 비디오 모달 스타일 (index.html 전용) */
#gallery-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#gallery-video-modal > div {
    position: relative;
    width: min(90vw, calc(90vh * 3 / 4));
    height: min(90vh, calc(90vw * 4 / 3));
    max-width: 90vw;
    max-height: 90vh;
    aspect-ratio: 3 / 4;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

#gallery-video-modal video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 모바일에서 비디오 컨트롤 강제 표시 */
@media screen and (max-width: 768px) {
    #gallery-video-modal video {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    #gallery-video-modal video::-webkit-media-controls {
        display: flex !important;
    }
    
    #gallery-video-modal video::-webkit-media-controls-panel {
        display: flex !important;
    }
    
    #gallery-video-modal video::-webkit-media-controls-play-button {
        display: flex !important;
    }
    
    #gallery-video-modal video::-webkit-media-controls-start-playback-button {
        display: flex !important;
    }
}

#gallery-video-modal button {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 0;
    margin: 0;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

#gallery-video-modal button:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

#gallery-video-modal button:active {
    transform: scale(0.95);
}

/* index.html 메인 갤러리 GLightbox — DB 삭제 버튼: 이미지 너비 하단 흰 영역(.gslide-description) 우측 (gallery-loader.js) */
#glightbox-slider .gslide-description {
    position: relative;
}

#glightbox-slider .gslide-description:has(#index-glightbox-delete-btn:not(.index-glightbox-delete-fallback)) .gdesc-inner {
    padding-right: 3.25rem;
}

#index-glightbox-delete-btn .index-glightbox-del-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    pointer-events: none;
}

#index-glightbox-delete-btn .index-glightbox-del-ic i {
    font-size: 1rem;
    line-height: 1;
    width: 1em;
    height: 1em;
    display: block;
    text-align: center;
}

#glightbox-slider #index-glightbox-delete-btn:not(.index-glightbox-delete-fallback) {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #585070 0%, #453d5c 45%, #342e48 100%);
    color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

#glightbox-slider #index-glightbox-delete-btn:not(.index-glightbox-delete-fallback):not(:disabled):hover {
    filter: brightness(1.1);
}

#glightbox-slider #index-glightbox-delete-btn:not(.index-glightbox-delete-fallback):disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* .gslide-description 없을 때만 viewport 우하단 (폴백) */
#index-glightbox-delete-btn.index-glightbox-delete-fallback {
    position: fixed;
    bottom: 28px;
    right: 28px;
    top: auto;
    transform: none;
    z-index: 1000002;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #585070 0%, #453d5c 45%, #342e48 100%);
    color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

#index-glightbox-delete-btn.index-glightbox-delete-fallback:not(:disabled):hover {
    filter: brightness(1.1);
}

/* index 갤러리 비디오 모달 삭제 — 아이콘 비율·클릭 영역 (gallery-loader.js) */
#gallery-video-modal #gallery-video-delete-btn .gallery-video-del-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    pointer-events: none;
}

#gallery-video-modal #gallery-video-delete-btn .gallery-video-del-ic i {
    font-size: 1rem;
    line-height: 1;
    width: 1em;
    height: 1em;
    display: block;
    text-align: center;
}