.phs-1676-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.phs-1676-slider {
    width: 100%;
    height: 600px; /* Default, overridden by controls */
}

.phs-1676-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.phs-1676-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.phs-1676-bg-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 10s linear;
}

.phs-1676-bg-video {
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Ken Burns Effect */
.swiper-slide-active .phs-1676-kenburns .phs-1676-bg-image {
    transform: scale(1.15);
}

.phs-1676-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.phs-1676-content-wrap {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phs-1676-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    opacity: 0;
}

/* Base state for animations to prevent flashing before JS initializes */
.swiper-slide:not(.swiper-slide-active) .phs-1676-content {
    opacity: 0 !important;
    animation: none !important;
}

/* Animations */
.swiper-slide-active .phs-1676-anim-fade-in-up {
    animation: phsFadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.swiper-slide-active .phs-1676-anim-fade-in-left {
    animation: phsFadeInLeft 0.8s ease forwards;
    animation-delay: 0.4s;
}

.swiper-slide-active .phs-1676-anim-fade-in-right {
    animation: phsFadeInRight 0.8s ease forwards;
    animation-delay: 0.4s;
}

.swiper-slide-active .phs-1676-anim-zoom-in {
    animation: phsZoomIn 0.8s ease forwards;
    animation-delay: 0.4s;
}

.swiper-slide-active .phs-1676-anim-flip-in-x {
    animation: phsFlipInX 0.8s ease forwards;
    animation-delay: 0.4s;
}

@keyframes phsFadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes phsFadeInLeft {
    0% { opacity: 0; transform: translateX(-50px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes phsFadeInRight {
    0% { opacity: 0; transform: translateX(50px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes phsZoomIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes phsFlipInX {
    0% { opacity: 0; transform: perspective(400px) rotateX(90deg); }
    100% { opacity: 1; transform: perspective(400px) rotateX(0deg); }
}

.phs-1676-heading {
    margin: 0 0 15px;
    font-size: 3rem;
    font-weight: 700;
}

.phs-1676-desc {
    margin: 0 0 25px;
    font-size: 1.2rem;
    line-height: 1.6;
}

.phs-1676-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.phs-1676-btn:hover {
    opacity: 0.85;
}

/* Stylish Navigation Arrows */
.phs-1676-nav {
    color: #fff; /* Overridden by controls */
    opacity: 0;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    background-color: rgba(0,0,0,0.4); /* Overridden by controls */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

/* Hide default swiper nav icons */
.phs-1676-nav::after {
    display: none;
}

.phs-1676-nav i {
    font-size: inherit;
}

.phs-1676-nav svg {
    width: 20px; /* Default */
    height: 20px;
    fill: currentColor;
}

.swiper-button-prev.phs-1676-nav {
    left: 20px;
}

.swiper-button-next.phs-1676-nav {
    right: 20px;
}

.phs-1676-wrapper:hover .phs-1676-nav {
    opacity: 0.8;
}

.phs-1676-nav:hover {
    opacity: 1;
}

/* Pagination customization */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ffffff; /* Controlled dynamically */
    opacity: 0.7;
    margin: 0 6px !important;
}

.swiper-pagination-bullet-active {
    background: #B28F52; /* Controlled dynamically */
    opacity: 1;
}