.social-threads a::before {
    background-image: url(src/images/icon-social-threads.png);
}

a.lhl_button.lhl_button_color_default, button.lhl_button.lhl_button_color_default {
    color: var(--btn-default-text) !important;
}

/* Gallery Carousel - Center navigation below gallery */
.single-post {
    .gc-gallery-slideshow-outer {
        position: relative;
        overflow: visible !important;
    }

    .gc-gallery-slideshow {
        position: relative;
    }

    .swiper-navigation-container {
        position: absolute;
        bottom: 30px;
        left: 50%;
        transform: translateX(-75%);
        display: flex;
        gap: 20px;
        z-index: 10;
        padding-top: 10px;
    }

    /* Mobile adjustments */
    @media screen and (max-width: 768px) {
        .swiper-navigation-container {
            bottom: -50px;
        }

        .gc-gallery-slideshow-outer {
            margin-bottom: 70px;
        }
    }

    /* Swiper pagination visibility fix */
    .gc-gallery-slideshow .swiper-pagination,
    .swiper-pagination {
        position: absolute !important;
        bottom: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        height: auto !important;
        display: inline-flex !important;
        gap: 5px;
        padding: 10px;
        z-index: 10 !important;
    }

    /* Ensure gallery slideshow has proper positioning context */
    .gc-gallery-slideshow {
        position: relative !important;
    }

    /* Prevent clipping of navigation buttons - only for outer container */
    .gc-gallery-slideshow-outer {
        overflow: visible !important;
    }

    /* Gallery slideshow should clip horizontally but allow buttons below */
    .gc-gallery-slideshow {
        overflow: hidden !important;
        height: auto !important;
        min-height: 340px !important;
        position: relative !important;
    }

    /* Swiper should hide horizontal overflow for partial slides */
    .gc-gallery-slideshow .swiper {
        overflow: hidden !important;
        height: 100% !important;
    }

    /* Ensure slides have proper height */
    .gc-gallery-slideshow .swiper-slide {
        height: auto !important;
    }

    .swiper-pagination-bullet {
        width: 8px !important;
        height: 8px !important;
        display: block !important;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .swiper-pagination-bullet-active {
        background-color: #B2592C !important;
        width: 10px !important;
        height: 10px !important;
    }

    /* Gallery navigation buttons styling */
    .gc-gallery-slideshow-nav {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        background-color: rgba(255, 255, 255, 0.9) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        position: static !important;
        margin: 0 !important;
        flex-shrink: 0;
    }

    /* Add spacing between navigation buttons */
    .gc-gallery-slideshow-prev {
        margin-right: 20px !important;
    }

    .gc-gallery-slideshow-next {
        margin-left: 20px !important;
    }

    .gc-gallery-slideshow-nav:hover {
        background-color: #fff !important;
        transform: scale(1.1);
    }

    /* Replace text with arrow icons */
    .gc-gallery-slideshow-nav::after {
        content: '' !important;
        width: 10px;
        height: 10px;
        border-top: 2px solid #333;
        border-right: 2px solid #333;
        display: block;
    }

    .gc-gallery-slideshow-prev::after {
        transform: rotate(-135deg);
        margin-left: 4px;
    }

    .gc-gallery-slideshow-next::after {
        transform: rotate(45deg);
        margin-right: 4px;
    }
}

/* Newsletter Modal Styles */
.newsletter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.newsletter-modal {
    position: relative;
    background: url('/wp-content/themes/urbi-tailwind/src/images/newsletter-bg.jpg') center/cover no-repeat;
    max-width: 700px;
    width: 90%;
    padding: 0;
    border-radius: 8px;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.newsletter-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    border-radius: 0;
}

.newsletter-modal-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.newsletter-modal-close svg {
    width: 20px;
    height: 20px;
}

.newsletter-modal-content {
    position: relative;
    z-index: 1;
    padding: 0;
    background: linear-gradient(rgba(28, 37, 73, 0.85), rgba(28, 37, 73, 0.85));
}

/* Inner container to match contact page */
.newsletter-modal .newsletter--container__body {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    padding: 91px 20px 59px;
}

/* Style the Gravity Form in the modal to match contact page */
.newsletter-modal .gform_wrapper {
    margin: 0;
}

.newsletter-modal .gform_wrapper .gform_fields {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 15px !important;
    grid-row-gap: 22px !important;
    margin-bottom: 20px;
}

.newsletter-modal .gform_wrapper .gfield {
    margin: 0;
}

.newsletter-modal .gform_wrapper .gfield--width-full {
    grid-column: 1 / -1;
}

.newsletter-modal .gform_wrapper input[type="text"],
.newsletter-modal .gform_wrapper input[type="email"] {
    width: 100%;
    height: 48px !important;
    border: 0 !important;
    padding: 11px 20px !important;
    color: #333E48;
    background: white;
    font-size: 14px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.newsletter-modal .gform_wrapper input[type="text"]::placeholder,
.newsletter-modal .gform_wrapper input[type="email"]::placeholder {
    color: #999;
}

.newsletter-modal .gform_wrapper input[type="text"]:focus,
.newsletter-modal .gform_wrapper input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(178, 89, 44, 0.3);
}

.newsletter-modal .gform_wrapper .gform_footer {
    text-align: center;
    margin-top: 30px;
}

.newsletter-modal .gform_wrapper input[type="submit"] {
    background-color: #B2592C;
    color: white;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-modal .gform_wrapper input[type="submit"]:hover {
    background-color: #9a4b24;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .newsletter-modal {
        width: 95%;
    }
    
    .newsletter-modal-content {
        padding: 0;
    }
    
    .newsletter-modal .newsletter--container__body {
        padding: 41px 20px 19px;
    }
    
    .newsletter-modal-close {
        top: 15px;
        right: 15px;
    }
    
    .newsletter-modal .gform_wrapper .gform_fields {
        grid-template-columns: 1fr;
    }
    
    .newsletter-modal h2 {
        font-size: 20px;
    }
}