/* ==========================================================================
   Typography & Global Utilities
   ========================================================================== */
.under_text {
    font-size: 1.05rem;
    max-width: 620px;
    margin: 14px auto 0;
    text-align: center;
    line-height: 1.8;
    letter-spacing: 0.2px;
    color: #6b7280;
    font-weight: 400;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: textFadeUp 0.6s ease-out both;
}

/* ==========================================================================
   Slideshow Section
   ========================================================================== */
.new_slideshow-section {
    width: 100%;
    background: white;
    padding: 40px 20px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInDown 0.8s ease-out;
}

.new_slideshow-container {
    position: relative;
    max-width: 1000px;
    width: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.new_slide {
    display: none;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.new_slide.new_fade {
    animation: fade 0.5s ease-in-out;
}

.new_slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new_slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 40px 30px 30px;
    animation: slideUp 0.5s ease-out;
}

.new_slide-caption h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.new_slide-caption p {
    font-size: 1rem;
    opacity: 0.9;
}

.new_prev, .new_next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    padding: 0;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    font-weight: bold;
    font-size: 20px;
    transition: all 0.3s ease;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.new_prev:hover, .new_next:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.new_prev { left: 20px; }
.new_next { right: 20px; }

.new_dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.new_dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.new_dot.active {
    background-color: white;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.new_section {
    padding: 80px 20px;
    background: white;
}

.new_section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.new_section-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.new_section-header h2 {
    font-size: 2.5rem;
    color: grey;
    margin-bottom: 10px;
    font-weight: 700;
}

/* Gallery Grid */
.new_gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ==========================================================================
   Gallery Cards & Media
   ========================================================================== */
.new_gallery-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    transform: translateZ(0);
    will-change: transform;
}

.new_gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.new_card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: white;
}

.new_card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.new_gallery-card:hover .new_card-image img {
    transform: scale(1.1);
}

/* ==========================================================================
   Video Cards & Play Buttons (FIXED CONFLICTS)
   ========================================================================== */
.new_video-image {
    background: white;
}

/* Primary Video Card Play Button */
.new_play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #ff7a18, #ffb347);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 122, 24, 0.35);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
    backdrop-filter: blur(6px);
}

.new_play-btn svg {
    width: 35px;
    height: 35px;
}

/* Fixed Center Scaling on Hover */
.new_gallery-card:hover .new_play-btn {
    transform: translate(-50%, -50%) scale(1.15);
    background: linear-gradient(135deg, #ffb347, #ff7a18);
    box-shadow: 0 15px 35px rgba(255, 122, 24, 0.5);
}

/* Card Overlay (Standard Image Cards Only) */
.new_card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.new_gallery-card:hover .new_card-overlay {
    opacity: 1;
}

.new_video-card .new_card-overlay {
    opacity: 1;
    background: transparent;
}

/* Overlay Inside-Button (For Non-Video Cards) */
.new_card-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 60px;
    height: 60px;
    border: 2px solid white;
    background: transparent;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
    font-size: 1.5rem;
}

.new_card-btn:hover {
    background: linear-gradient(135deg, #ff7a18, #ffb347);
    border-color: transparent;
    color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.new_card-btn svg {
    width: 24px;
    height: 24px;
}

/* Card Info Metadata */
.new_card-info {
    padding: 20px;
    background: white;
}

.new_card-info h3 {
    font-size: 1.2rem;
    color: #1a1a2e;
    margin-bottom: 5px;
    font-weight: 600;
}

.new_card-info p {
    font-size: 0.9rem;
    color: #999;
}

.new_videos-section {
    background: white;
}

/* ==========================================================================
   Lightbox & Modal System
   ========================================================================== */
.new_lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.new_lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.new_lightbox-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 90vh;
    max-height: 600px;
    animation: zoomIn 0.3s ease;
}

.new_lightbox-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    display: none;
}

.new_lightbox-image.active {
    display: block;
}

.new_lightbox-video {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    display: none;
}

.new_lightbox-video.active {
    display: block;
}

.new_lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1001;
}

.new_lightbox-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.new_lightbox-prev,
.new_lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1001;
    display: none;
}

.new_lightbox-prev.show,
.new_lightbox-next.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.new_lightbox-prev:hover,
.new_lightbox-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.new_lightbox-prev { left: 10px; }
.new_lightbox-next { right: 10px; }

/* ==========================================================================
   Animation Keyframes
   ========================================================================== */
@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 768px) {
    .new_slideshow-section {
        padding: 30px 15px;
        min-height: 350px;
    }
    .new_slide-caption h2 { font-size: 1.5rem; }
    .new_slide-caption p { font-size: 0.9rem; }
    .new_section-header h2 { font-size: 2rem; }
    .new_gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    .new_prev, .new_next {
        width: 40px;
        height: 40px;
        margin-top: -20px;
        font-size: 16px;
    }
    .new_lightbox-prev, .new_lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .new_lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    .new_lightbox-content { max-height: 70vh; }
    .new_section { padding: 50px 15px; }
    .new_section-header { margin-bottom: 40px; }
}

@media (max-width: 480px) {
    .new_slideshow-section {
        padding: 20px 10px;
        min-height: 250px;
    }
    .new_slide-caption { padding: 25px 15px 15px; }
    .new_slide-caption h2 { font-size: 1.2rem; }
    .new_slide-caption p { font-size: 0.8rem; }
    .new_section { padding: 40px 10px; }
    .new_section-header h2 { font-size: 1.5rem; }
    .new_gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    .new_card-info { padding: 15px; }
    .new_card-info h3 { font-size: 1rem; }
    .new_card-info p { font-size: 0.8rem; }
    .new_prev, .new_next {
        width: 35px;
        height: 35px;
        margin-top: -17.5px;
    }
}

.new_video-card .new_card-overlay {
    display: none;
}