/* Photo-only full-screen carousel */
html,
body {
    min-height: 100%;
    background: #000;
    margin: 0;
}

body {
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    color: #fff;
}

.photo-carousel {
    min-height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.photo-carousel .swiper-wrapper {
    min-height: 100vh;
}

.photo-carousel .swiper-slide {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 3rem 2rem 4rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.88) 100%);
}

.slide-text {
    max-width: 720px;
    width: 100%;
    text-align: center;
    color: #fff;
}

.slide-text span {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 1rem;
}

.slide-text h1 {
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 1.02;
    margin-bottom: 1rem;
    font-weight: 900;
}

.slide-text p {
    font-size: clamp(1rem, 1.35vw, 1.3rem);
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.86);
}

.swiper-pagination {
    bottom: 1.5rem !important;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.65;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .slide-overlay {
        padding: 2rem 1rem 3rem;
    }

    .slide-text h1 {
        font-size: clamp(2.4rem, 8vw, 3.6rem);
    }

    .slide-text p {
        font-size: 1rem;
    }
}

/* Gallery: show only first items, selection UI */
.gitem.hidden-item {
    display: none !important;
}

.gitem {
    position: relative;
}

.gsel {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
}

.gsel .gchk {
    width: 18px;
    height: 18px;
}

.gitem.selected {
    outline: 3px solid #007bff;
}

.gcontrols {
    padding-bottom: 1rem;
    /* Ensure gallery controls are visible above background carousel */
    position: relative;
    z-index: 60;
}

.gcontrols .btn {
    pointer-events: auto;
}

/* Hero background image to replace hbgtxt */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.96;
}

/* Ensure hero content sits above the hero-bg */
#hero .container {
    position: relative;
    z-index: 2;
}

/* Make hero title visible and readable over image */
#hero .htitle {
    pointer-events: auto;
    position: relative;
    z-index: 3;
    font-weight: 900;
    line-height: 1.02;
    /* vivid gradient text */
    background: linear-gradient(90deg, #ffd480 0%, #ff885a 40%, #ff5e7a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
}

/* Desaturate and darken hero image, add overlay for readability */
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.96;
    filter: grayscale(75%) brightness(0.6);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
    pointer-events: none;
}

/* Ensure highlighted span stays visible */
#hero .hl {
    color: #ffd480;
}

/* Enhance hero typography: clearer description and badges */
#hero .hdesc {
    color: rgba(255, 255, 255, 0.93);
    font-weight: 500;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    z-index: 3;
}

#hero .hbadge {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(4px);
    z-index: 3;
}

#hero .hstat .snum {
    display: inline-block;
    background: linear-gradient(90deg, #ff885a, #ffd480);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    text-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

@media (max-width: 480px) {
    .hero-bg::after {
        background: rgba(0, 0, 0, 0.18);
    }
}

/* Mobile fixes: reduce hero height, make images responsive, show controls */
@media (max-width: 768px) {

    /* hide the background fullscreen carousel on small screens to avoid layout issues */
    .photo-carousel {
        display: none;
    }

    /* make hero smaller and image slightly darker for readability */
    #hero {
        min-height: 60vh;
        padding-top: 20px;
    }

    .hero-bg img {
        filter: grayscale(60%) brightness(0.5);
    }

    /* ensure hero text is readable at small sizes */
    #hero .htitle {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
        text-shadow: 0 10px 22px rgba(0, 0, 0, 0.6);
    }

    /* ensure gallery controls are visible and not overlapped */
    .gcontrols {
        position: static !important;
        z-index: auto !important;
        margin-top: 12px;
    }

    /* responsive gallery images */
    .ggrid .gitem img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* reduce logo size in navbar */
    .blogo .bico img {
        height: 42px !important;
    }
}

@media (max-width: 480px) {
    #hero {
        min-height: 55vh;
    }

    #hero .htitle {
        font-size: 1.6rem;
    }
}