.hero-28-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-28-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-28-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-28-texture {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-size: auto;
    pointer-events: none; /* Ensures clicks pass through to container */
}

.hero-28-container {
    position: relative;
    z-index: 3; /* Container is above texture overlay */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 150px 20px 100px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero-28-content-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 700px;
}

.hero-28-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background-color: rgba(255,255,255,0.15);
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    width: fit-content;
}

.hero-28-title {
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
}

.hero-28-desc {
    color: #e0e0e0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    margin: 0;
}

.hero-28-cta {
    display: inline-block;
    padding: 14px 32px;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; /* Extra Bold */
    font-size: 1rem;
    width: fit-content;
    transition: opacity 0.2s ease;
    position: relative;
    z-index: 4; /* Ensure CTA is clickable */
}

.hero-28-cta:hover {
    opacity: 0.85;
}

.hero-28-thumbs-row {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    position: relative;
    z-index: 4; /* Ensure thumbnails are clickable */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.hero-28-thumbs-row::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.hero-28-thumb-item {
    position: relative;
    flex: 1 1 0;
    min-width: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.hero-28-thumb-item:hover {
    transform: scale(1.03);
}

.hero-28-thumb-item img.hero-28-thumb-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-28-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    transition: background 0.2s ease;
}

.hero-28-thumb-item:hover .hero-28-play-overlay {
    background: rgba(0,0,0,0.55);
}

.hero-28-default-play-icon {
    color: #ffffff;
    font-size: 1.5rem;
}

.hero-28-custom-play-icon {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain !important;
}

/* Lightbox */
.hero-28-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999; /* Increased z-index to guarantee it's on top */
    background: rgba(0,0,0,0.92);
    display: none; /* Changed from flex to none by default */
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.hero-28-lightbox-overlay.active {
    display: flex; /* Show when active */
}

.hero-28-lightbox-inner {
    position: relative;
    width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-28-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.hero-28-lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero-28-media-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Add position relative */
}

#hero-28-media-container video,
#hero-28-media-container iframe {
    border: none;
    border-radius: 8px;
    width: 100%; /* Force 100% width */
    height: 100%; /* Force 100% height */
    object-fit: cover; /* Change to cover or fill depending on preference, cover is usually better */
    position: absolute; /* Position absolute to fill container */
    top: 0;
    left: 0;
}

/* Format specific sizing */
.hero-28-lightbox-inner.format-landscape {
    max-width: 1200px;
    aspect-ratio: 16/9;
}
.hero-28-lightbox-inner.format-landscape #hero-28-media-container {
    aspect-ratio: 16/9; /* Apply aspect ratio to container too */
}

.hero-28-lightbox-inner.format-portrait {
    max-height: 85vh;
    aspect-ratio: 3/4;
}
.hero-28-lightbox-inner.format-portrait #hero-28-media-container {
    aspect-ratio: 3/4;
}

.hero-28-lightbox-inner.format-square {
    max-height: 85vh;
    aspect-ratio: 1/1;
}
.hero-28-lightbox-inner.format-square #hero-28-media-container {
    aspect-ratio: 1/1;
}

@media (max-width: 768px) {
    .hero-28-thumbs-row {
        gap: 8px;
    }
    .hero-28-thumb-item {
        min-width: 60px;
    }
    .hero-28-custom-play-icon {
        width: 30px !important;
        height: 30px !important;
    }
    .hero-28-lightbox-overlay {
        padding: 20px 10px;
    }
    .hero-28-lightbox-close {
        top: -30px;
        font-size: 2rem;
    }
    .hero-28-lightbox-inner.format-portrait,
    .hero-28-lightbox-inner.format-square {
        max-height: 80vh;
    }
}

/* Featured Works Carousel Arrows Fix */
.elementor-widget-testimonial-carousel .elementor-swiper-button {
    color: #ffffff !important;
}

.elementor-widget-testimonial-carousel .elementor-swiper-button-prev {
    left: -40px !important;
}

.elementor-widget-testimonial-carousel .elementor-swiper-button-next {
    right: -40px !important;
}