/* [v42.9] Activity Showcase Frontend Style */

.givia-activity-showcase-wrapper {
    position: relative;
    width: 100%;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    box-sizing: border-box;
}

.givia-activity-showcase-wrapper *,
.givia-activity-showcase-wrapper *:before,
.givia-activity-showcase-wrapper *:after {
    box-sizing: border-box;
}

.givia-activity-main-viewport {
    position: relative;
    width: 100%;
    background: #000;
    height: 60vh;
    min-height: 500px;
}

.activity-slide-item {
    overflow: hidden;
    display: flex !important;
    flex-direction: row !important;
    padding: 60px 8%;
    color: #fff;
    height: 100% !important;
}

.slide-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Slide Background - Ken Burns Zoom Effect */
.activity-slide-item .slide-bg-picture img {
    opacity: 0;
    transform: scale(1.05);
    transition: opacity .8s ease-in-out, transform 4s ease-out;
}

.activity-slide-item.swiper-slide-active .slide-bg-picture img {
    opacity: 1;
    transform: scale(1);
}

.activity-slide-item .activity-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.activity-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,var(--overlay-intensity, 0.8)) 0%, transparent 60%),
                linear-gradient(to right, rgba(0,0,0,calc(var(--overlay-intensity, 0.8) * 0.9)) 0%, transparent 70%),
                linear-gradient(to bottom, rgba(0,0,0,calc(var(--overlay-intensity, 0.8) * 0.5)) 0%, transparent 30%) !important;
}

.activity-content-inner {
    position: relative;
    z-index: 10;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    height: 100% !important;
}

/* 정렬 값에 따른 텍스트 정렬 보조 */
.activity-content-inner[style*="align-items: flex-start"] { text-align: left !important; }
.activity-content-inner[style*="align-items: center"] { text-align: center !important; }
.activity-content-inner[style*="align-items: flex-end"] { text-align: right !important; }

.activity-label {
    display: inline-block;
    align-self: flex-start;
    background: #ff4d4d;
    color: #fff;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 15px;
}

.activity-title {
    font-size: clamp(32px, 5vw, 56px) !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 0 15px 0 !important;
    line-height: 1.1 !important;
}

.activity-desc {
    font-size: 18px !important;
    color: rgba(255,255,255,0.9) !important;
    margin-bottom: 30px !important;
    line-height: 1.6 !important;
}

.activity-btn {
    display: inline-block !important;
    padding: 12px 28px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin-top: 30px !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.2;
}

.activity-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Arrows - Red Round Style */
.activity-prev, .activity-next {
    position: absolute;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    background-color: #ff4d4d !important;
    border-radius: 50% !important;
    z-index: 2000 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    transition: all 0.3s ease;
}

.activity-prev { left: 30px !important; }
.activity-next { right: 30px !important; }

.activity-prev:hover, .activity-next:hover {
    background-color: #e60000 !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.activity-prev:after, .activity-next:after {
    display: none !important;
}

.activity-prev i, .activity-next i {
    font-size: 24px;
}

/* Nav Thumbnails - Floating Style */
.givia-activity-nav-viewport {
    padding: 30px 0;
    background: #f0f4ff;
    z-index: 100;
    position: relative;
}

.activity-nav-swiper {
    padding: 0 0 10px 4%;
    overflow: hidden;
}

.activity-nav-item {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    height: 120px;
    position: relative;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.activity-nav-item.swiper-slide-thumb-active {
    border-color: #ff4d4d;
    box-shadow: 0 10px 25px rgba(255, 77, 77, 0.4);
}

.nav-thumb-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.activity-nav-item.swiper-slide-thumb-active .nav-thumb-bg,
.activity-nav-item:hover .nav-thumb-bg {
    opacity: 1;
    transform: scale(1.1);
}

.nav-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 60%);
    z-index: 2;
}

.nav-thumb-title {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    z-index: 5;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.thumb-cat {
    display: inline-block;
    background: #ff4d4d;
    color: #fff;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 5px;
    line-height: 1;
}

.givia-activity-nav-section {
    position: relative;
    z-index: 100;
    width: 100%;
}
.nav-header{
    padding:20px 0 0 14px;
}

/* Modal Styling */
.givia-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.givia-modal-overlay.active { opacity: 1; }
.givia-modal-overlay.closing { opacity: 0; }

.givia-modal-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: #fff;
    border-radius: 12px;
    z-index: 1000000;
    opacity: 0;
    overflow-y: auto;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    padding: 60px 40px 40px;
}
.givia-modal-window.active {
    opacity: 1;
    transform: translate(-50%, -50%);
}
.givia-modal-window.closing {
    opacity: 0;
    transform: translate(-50%, -45%);
}

.givia-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: transparent !important;
    border: none !important;
    color: #333 !important;
    font-size: 40px !important;
    font-weight: 100 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    line-height: 1;
    z-index: 1000;
}
.givia-modal-close:hover {
    opacity: 0.6;
}

.givia-modal-body {
    color: #333;
    line-height: 1.6;
}
.givia-modal-body h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #000;
}

body.givia-modal-open {
    overflow: hidden;
}
.nav-thumbs-wrapper .swiper-wrapper{
    padding-top:12px
}

/* Modal Source Hide */
.givia-activity-modal-source {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Show content when inside modal window */
[class*="givia-native-modal"] .givia-activity-modal-source,
[class*="givia-modal-content"] .givia-activity-modal-source,
[class*="givia-native-modal"] .givia-modal-source-yes,
[class*="givia-modal-content"] .givia-modal-source-yes {
    display: flex !important;
    visibility: visible !important;
    height: auto !important;
    min-height: 100px !important;
    width: 100% !important;
    opacity: 1 !important;
    overflow: visible !important;
}

/* 만약 일반 블록 요소라면 block으로 표시 */
[class*="givia-native-modal"] div.givia-activity-modal-source:not(.e-con):not(.e-flex) {
    display: block !important;
}

/* Elementor Editor Click Support */
.elementor-editor-active .givia-activity-showcase-wrapper .activity-prev,
.elementor-editor-active .givia-activity-showcase-wrapper .activity-next,
.elementor-editor-active .givia-activity-showcase-wrapper .activity-nav-swiper,
.elementor-editor-active .givia-activity-showcase-wrapper .activity-slide-item,
.elementor-editor-active .givia-activity-showcase-wrapper .activity-thumb-item {
    pointer-events: all !important;
    cursor: pointer !important;
}
.elementor-editor-active .givia-activity-showcase-wrapper .activity-next,
.elementor-editor-active .givia-activity-showcase-wrapper .activity-prev {
    z-index: 2100 !important;
}

}

.bento-item.mask-curve .slide-bg img,
.bento-item.mask-curve .slide-bg video {
    clip-path: ellipse(100% 100% at 50% 0%);
}

/* 2. Corner Action Button */
.bento-corner-action {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 80px;
    z-index: 25;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bento-item:hover .bento-corner-action {
    transform: scale(1.1);
}

.corner-wave-svg {
    position: absolute;
    inset: 0;
    color: #fff; /* Match background or theme */
    filter: drop-shadow(-5px -5px 10px rgba(0,0,0,0.1));
}

.corner-btn-circle {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.bento-item:hover .corner-btn-circle {
    background: #ff4d4d;
}

/* 3. Background Video Enhancement */
.bento-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* 4. Content Alignment Support */
.bento-item .activity-content-inner {
    width: 100%;
    position: relative;
    z-index: 10;
    pointer-events: none;
    color: #777; /* Default text color */
}

.bento-item .activity-content-inner h1,
.bento-item .activity-content-inner h2,
.bento-item .activity-content-inner h3,
.bento-item .activity-content-inner h4 {
    color: #1a1a1a;
    margin-bottom: 0.5em;
}

.bento-item .activity-content-inner img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.bento-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    cursor: pointer;
    background: transparent !important;
    border: none !important;
    text-decoration: none !important;
}

/* Fix global CSS interference for whole-item overlays */
.bento-link-overlay.link-type-whole,
.bento-link-overlay.link-type-whole:hover,
.bento-link-overlay.link-type-whole:focus,
.bento-link-overlay.link-type-whole:active {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
}

/* 5. Floating Label Style */
.bento-item .activity-label {
    align-self: flex-start;
    backdrop-filter: blur(4px);
    background: rgba(255, 77, 77, 0.8);
    border-radius: 30px;
    padding: 5px 15px;
    font-size: 10px;
}

/* 6. Universal Trigger Hover Effect */
.bento-item:hover .activity-title {
    color: #ff4d4d !important;
}
