/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== CUSTOM SCROLLBAR ========== */
/* For Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #F79F1F !important; /* Orange hover color */
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: #f9fafb;
}

body.menu-open {
    overflow: hidden !important; /* Prevent scrolling of body */
    touch-action: none !important; /* Disable touch gestures on body */
     overflow-x: hidden; /* Ensure */
}

/* ========== HERO SECTION ENHANCEMENTS ========== */
.hero-bg {
    background: linear-gradient(-45deg, #1e3a8a, #2563eb, #3b82f6, #60a5fa);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

.counter-animated {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.counter-animated:nth-child(1) { animation-delay: 0.1s; }
.counter-animated:nth-child(2) { animation-delay: 0.2s; }
.counter-animated:nth-child(3) { animation-delay: 0.3s; }
.counter-animated:nth-child(4) { animation-delay: 0.4s; }

/* ========== CUSTOM GLIGHTBOX THEME (RTW TRAVEL) ========== */
.glightbox-container {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(8px);
}

.gclose,
.gnext,
.gprev {
    background: rgba(37, 99, 235, 0.9) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.gclose:hover,
.gnext:hover,
.gprev:hover {
    background: rgba(29, 78, 216, 1) !important;
    transform: scale(1.1) !important;
}

.gclose svg,
.gnext svg,
.gprev svg {
    width: 20px !important;
    height: 20px !important;
    fill: white !important;
}

.glightbox-clean .gdesc-inner {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(29, 78, 216, 0.95) 100%) !important;
    padding: 20px !important;
    border-radius: 8px !important;
    margin: 20px !important;
}

.glightbox-clean .gslide-title {
    color: white !important;
    font-weight: 600 !important;
    font-size: 1.25rem !important;
    margin-bottom: 8px !important;
}

.glightbox-clean .gslide-desc {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

.glightbox-clean .gslide-description {
    background: transparent !important;
}

/* Counter styling */
.glightbox-clean .gslide-number {
    background: rgba(37, 99, 235, 0.9) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
}

/* Loading animation */
.gloader {
    border: 3px solid rgba(37, 99, 235, 0.2) !important;
    border-top-color: #2563eb !important;
}

/* Image shadow */
.glightbox-clean .gslide-image img {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    border-radius: 8px !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .gclose,
    .gnext,
    .gprev {
        width: 40px !important;
        height: 40px !important;
    }
    
    .glightbox-clean .gdesc-inner {
        padding: 15px !important;
        margin: 10px !important;
    }
    
    .glightbox-clean .gslide-title {
        font-size: 1.1rem !important;
    }
    
    .glightbox-clean .gslide-desc {
        font-size: 0.875rem !important;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', sans-serif;
}

/* ========== TOP BAR ========== */
.top-bar {
    background: #2563eb;
    color: white;
    padding: 0.5rem 0;
}

/* ========== GLASSMORPHISM NAVBAR ON SCROLL ========== */
.header {
    background: white;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000; /* Ensure header is above menu overlay */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     padding: 0 1rem!important;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9500 !important; /* Higher than navbar (1000) */
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 0.75rem;
    max-width: 48rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.modal-body {
    padding: 1.5rem;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}

.btn-close:hover {
    color: #374151;
}

/* ========== FLOATING CART BUTTON ========== */
.floating-cart-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #2563eb;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    z-index: 45;
    transition: all 0.3s;
    border: none;
}

.floating-cart-btn:hover {
    background: #1d4ed8;
    transform: scale(1.1);
}

.floating-cart-btn .cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc2626;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* ========== CART POPUP ========== */
.cart-popup {
    position: fixed;
    bottom: 6rem;
    right: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 28rem;
    width: calc(100% - 3rem);
    z-index: 40;
    border: 2px solid #bfdbfe;
    animation: slideInUp 0.3s ease-out;
}

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

/* ========== BACK TO TOP BUTTON ========== */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    background: #1f2937;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 50;
    transition: all 0.3s;
    border: none;
}

.back-to-top:hover {
    background: #111827;
    transform: translateY(-3px);
}

.back-to-top.show {
    display: flex;
}

/* ========== TABLE - MOBILE RESPONSIVE ========== */
.packages-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
   
}

.packages-table thead {
   background: #1E88E5;
background: linear-gradient(90deg, rgba(30, 136, 229, 1) 0%, rgba(21, 101, 192, 1) 100%);
}

.packages-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.packages-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.packages-table tbody tr:hover {
    background: #E3F2FD;
}

/* Mobile Table Styles */
@media (max-width: 1024px) {
    .packages-table thead {
        display: none;
    }

    .packages-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        overflow: hidden;
    }

    .packages-table tbody tr:hover {
        background: white;
    }

    .packages-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f3f4f6;
    }

    .packages-table td:last-child {
        border-bottom: none;
    }

    .packages-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
        font-size: 0.875rem;
    }

    .packages-table td:first-child {
        background: #f9fafb;
        justify-content: center;
    }

    .packages-table td:first-child:before {
        content: '';
    }
}

/* ========== FORM ELEMENTS ========== */
input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    accent-color: #2563eb;
}

/* ========== BUTTONS ========== */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #F79F1F;
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.btn-outline {
    background: white;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.btn-outline:hover {
    background: #eff6ff;
}

.btn-green {
    background: #16a34a;
    color: white;
}

.btn-green:hover {
    background: #15803d;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* ========== BADGES ========== */
.badge {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-orange {
    background: #fb923c;
    color: white;
}

.badge-green {
    background: #d1fae5;
    color: #065f46;
}

.badge-amber {
    background: #fef3c7;
    color: #92400e;
}

.badge-blue {
    background: #dbeafe;
    color: #1e40af;
}

/* ========== HERO ========== */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-bg {
    background: linear-gradient(-45deg, #1e3a8a, #2563eb, #3b82f6, #60a5fa);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}


@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.floating-circle {
    animation: float 6s ease-in-out infinite;
}

.floating-circle:nth-child(2) {
    animation-delay: 2s;
}

.floating-circle:nth-child(3) {
    animation-delay: 4s;
}

/* ========== MOBILE MENU TRANSITIONS ========== */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease-in-out,
                margin-top 0.3s ease-in-out;
}

#mobile-menu:not(.hidden) {
    max-height: 800px;
    
    opacity: 1;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    opacity: 0;
    animation: fadeInSlide 0.3s ease-out forwards;
}

.mobile-menu-link:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu-link:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu-link:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu-link:nth-child(5) { animation-delay: 0.25s; }
.mobile-menu-link:nth-child(6) { animation-delay: 0.3s; }
.mobile-menu-link:nth-child(7) { animation-delay: 0.35s; }

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-menu-link:hover {
    background: #eff6ff;
    color: #2563eb;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}


/* ========== TOAST ========== */
.toastify {
    opacity: 1 !important;
}

/* ========== INPUT VALIDATION ========== */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown),
select:invalid:not(:placeholder-shown) {
    border-color: #dc2626;
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown),
select:valid:not(:placeholder-shown) {
    border-color: #16a34a;
}

/* ========== TESTIMONIAL CAROUSEL ========== */
.testimonial-card {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    background: #ffefc9;
background: linear-gradient(0deg, rgba(255, 239, 201, 1) 0%, rgba(253, 225, 160, 1) 100%);
}

.testimonial-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    transition: all 0.3s;
    background: #d1d5db;
    cursor: pointer;
}

.testimonial-dot:hover {
    background: #9ca3af;
}

.testimonial-dot.active {
    width: 2rem;
    background: #2563eb;
}

/* ========== ANIMATIONS ========== */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.package-image-preview {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.loading-spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.counter-animated {
    animation: countUp 1s ease-out;
}

/* ========== DEVELOPER CREDIT ========== */
.developer-credit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.developer-credit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.developer-credit a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.developer-credit a:hover {
    text-decoration: underline;
}

/* ========== ACCESSIBILITY ========== */
*:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2563eb;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== PHOTO GALLERY ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    aspect-ratio: 4/3;
    z-index: 1; 
}

.gallery-item:hover {
    transform: scale(1.1, 1.1);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

 #gallery .gallery-item.blurred {
            filter: blur(2px) brightness(0.7);
            transform: scale(0.98);
            pointer-events: none; /* Disable interaction with blurred cards */
        }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1.5rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-info {
    display: flex;
    flex-direction: column;
}

.gallery-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.gallery-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 1.5rem;
    color: white;
}

.gallery-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.gallery-item-meta {
    font-size: 0.875rem;
    opacity: 0.9;
}

.gallery-item-count {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    backdrop-filter: blur(4px);
    width: fit-content;
}

.gallery-filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
}

.gallery-filter-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.gallery-filter-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #2563eb;
    color: #2563eb;
}

.pagination-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== CUSTOM 2-COLUMN GALLERY MODAL (ARTERRAZO-STYLE) ========== */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   z-index: 10000 !important; /* Higher than other modals */
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.gallery-modal-container {
    position: relative;
     display: flex !important; /* Ensure flexbox for layout */
    width: 95% !important; /* Responsive width */
    max-width: 1400px !important;
    height: 90vh !important; /* Responsive height */
    overflow: hidden !important; /* Prevent content overflow */
    border-radius: 16px !important;
    background: white !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    z-index: 10000 !important; /* Ensure it's on top */
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s;
}

.gallery-modal-close:hover {
    background: rgba(220, 38, 38, 0.9);
    transform: scale(1.1);
}

.gallery-modal-content {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Left Column: Carousel */
.gallery-modal-left {
  flex: 0 0 65% !important; /* Default desktop sizing */
    position: relative !important;
    background: #000 !important; /* Black background for images */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important; /* Clip content */
}

.gallery-carousel {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
/* Main image in carousel */
.gallery-carousel-main {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.gallery-modal-main-image {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important; /* Keeps image aspect ratio */
    user-select: none !important;
    display: block !important; /* Remove extra space below image */
}
.gallery-carousel-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
}

.gallery-carousel-prev,
.gallery-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: #1f2937;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    transition: all 0.3s;
}

.gallery-carousel-prev:hover,
.gallery-carousel-next:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-carousel-prev {
    left: 24px;
}

.gallery-carousel-next {
    right: 24px;
}

.gallery-carousel-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10002;
}

.gallery-carousel-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Thumbnail strip at bottom of image area */
.gallery-thumbnails {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.gallery-thumb {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    display: inline-block;
}

.gallery-thumb:hover {
    border-color: #3b82f6;
    transform: scale(1.05);
}

.gallery-thumb.active {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Right Column: Details */
.gallery-modal-right {
   flex: 0 0 35% !important; /* Default desktop sizing */
    background: #f9fafb !important;
    overflow-y: auto !important; /* Scrollable details */
    padding: 32px !important;
    display: flex !important;
    flex-direction: column !important; /* Stack content vertically */
}

.gallery-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.gallery-modal-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-modal-header {
    margin-bottom: 20px;
    flex-shrink: 0;
}

.gallery-modal-body {
    flex: 1;
    overflow-y: auto;
}

.gallery-modal-section {
    margin-bottom: 20px;
}

.gallery-description {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.gallery-client-name {
    font-size: 15px;
    color: #111827;
    font-weight: 500;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
}

.gallery-modal-description {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 24px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.gallery-thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 24px;
}

.gallery-thumbnail {
   flex: 0 0 auto !important; /* Don't grow/shrink */
    width: 70px !important; /* Fixed width for thumbnails */
    height: 70px !important; /* Fixed height for thumbnails */
    overflow: hidden !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    border: 3px solid transparent !important;
    transition: all 0.3s !important;
    display: inline-block !important; /* For horizontal layout with nowrap */
}

.gallery-thumbnail:hover {
    border-color: #3b82f6;
    transform: scale(1.05);
}

.gallery-thumbnail.active {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.gallery-thumbnail img {
     width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.gallery-modal-actions {
     margin-top: auto !important; /* Push buttons to the bottom */
    padding-top: 20px !important; /* Space above buttons */
    border-top: 1px solid #e5e7eb !important; /* Separator */
    display: flex !important;
    flex-direction: column !important; /* Stack buttons vertically by default */
    gap: 12px !important;
    flex-shrink: 0 !important; /* Don't let buttons shrink */
}

.gallery-download-btn {
    flex: 1;
    padding: 12px 24px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.gallery-download-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Mobile Responsive - Professional Stacking */
@media (max-width: 768px) {
    /* Make modal truly fullscreen */
    .gallery-modal {
        padding: 0 !important;
        align-items: stretch !important;
        justify-content: stretch !important;
    }
    
    .gallery-modal-container {
        flex-direction: column !important; /* Stack vertically: images on top, details below */
        height: 100vh !important;
        width: 100vw !important;
        max-height: 100vh !important;
        max-width: 100vw !important;
        border-radius: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }
    
    /* Modal content should fill container */
    .gallery-modal-content {
        width: 100% !important;
        height: 100% !important;
        flex-direction: column !important;
    }
    
    .gallery-modal-left {
        flex: 0 0 55% !important; /* Images take 55% of vertical space */
        max-height: 55vh !important;
        min-height: 55vh !important;
        height: 55vh !important;
        width: 100% !important;
        position: relative !important;
        background: #000 !important;
        border-bottom: 2px solid #1f2937 !important; /* Separator line */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }
    
    /* Carousel container - no thumbnails on mobile */
    .gallery-carousel {
        width: 100% !important;
        height: 100% !important; /* Use full height since thumbnails are hidden */
        flex: 1 !important;
        position: relative !important;
    }
    
    /* Main image container - RESPONSIVE PADDING */
    .gallery-carousel-main {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 20px 16px !important; /* Generous padding for breathing room */
    }
    
    /* Main image sizing on mobile - RESPONSIVE */
    .gallery-modal-main-image {
        max-width: calc(100% - 20px) !important; /* Ensure padding on sides */
        max-height: calc(100% - 40px) !important; /* Ensure padding top/bottom */
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important; /* Center the image */
        border-radius: 10px;
    }
    
    .gallery-modal-right {
        flex: 0 0 45% !important; /* Details take 45% of vertical space */
        max-height: 45vh !important;
        min-height: 45vh !important;
        height: 45vh !important;
        width: 100% !important;
        overflow-y: auto !important; /* Enable vertical scrolling for details */
        -webkit-overflow-scrolling: touch !important; /* Smooth scrolling on iOS */
        padding: 24px 20px !important;
        background: #ffffff !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1) !important; /* Shadow on top for depth */
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* HIDE THUMBNAILS ON MOBILE - cleaner look, more space */
    .gallery-thumbnails {
        display: none !important; /* Hidden on mobile - use prev/next buttons instead */
    }
    
    .gallery-thumb {
        display: none !important; /* Hidden on mobile */
    }

    /* Navigation buttons - professional mobile design */
    .gallery-carousel-prev,
    .gallery-carousel-next {
        width: 48px !important;
        height: 48px !important;
        background: rgba(0, 0, 0, 0.75) !important;
        backdrop-filter: blur(10px) !important;
        color: white !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
    
    .gallery-carousel-prev:hover,
    .gallery-carousel-next:hover {
        background: rgba(0, 0, 0, 0.9) !important;
        transform: translateY(-50%) scale(1.08) !important;
        border-color: rgba(255, 255, 255, 0.4) !important;
    }
    
    .gallery-carousel-prev {
        left: 10px !important;
    }
    
    .gallery-carousel-next {
        right: 10px !important;
    }
    
    /* Counter position - at bottom since thumbnails are hidden */
    .gallery-carousel-counter {
        bottom: 20px !important; /* At bottom since no thumbnails */
        font-size: 15px !important;
        padding: 10px 18px !important;
        background: rgba(0, 0, 0, 0.85) !important;
        backdrop-filter: blur(10px) !important;
        font-weight: 600 !important;
        letter-spacing: 0.5px !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
    
    /* Close button adjustment - professional */
    .gallery-modal-close {
        top: 14px !important;
        right: 14px !important;
        width: 44px !important;
        height: 44px !important;
        background: rgba(0, 0, 0, 0.85) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        z-index: 10005 !important;
    }
    
    .gallery-modal-close:hover {
        background: rgba(220, 38, 38, 0.95) !important;
        border-color: rgba(255, 255, 255, 0.3) !important;
    }
    
    /* Typography adjustments - Professional & Readable */
    .gallery-modal-title {
        font-size: 20px !important;
        margin-bottom: 10px !important;
        line-height: 1.3 !important;
        font-weight: 700 !important;
        color: #111827 !important;
    }
    
    .gallery-modal-meta {
        gap: 14px !important;
        margin-bottom: 20px !important;
        flex-wrap: wrap !important;
    }
    
    .gallery-meta-item {
        font-size: 13px !important;
        color: #6b7280 !important;
        font-weight: 500 !important;
    }
    
    .gallery-section-title {
        font-size: 16px !important;
        margin-bottom: 10px !important;
        font-weight: 600 !important;
        color: #1f2937 !important;
    }
    
    .gallery-description {
        font-size: 14px !important;
        line-height: 1.6 !important;
        color: #4b5563 !important;
        padding: 14px 16px !important;
        background: #f9fafb !important;
        border-radius: 10px !important;
        border-left: 3px solid #3b82f6 !important;
    }
    
    .gallery-client-name {
        font-size: 14px !important;
        line-height: 1.5 !important;
        color: #111827 !important;
        font-weight: 500 !important;
        padding: 12px 16px !important;
        background: #f9fafb !important;
        border-radius: 8px !important;
    }
    
    .gallery-modal-section {
        margin-bottom: 18px !important;
    }
    
    /* Action buttons - Touch-Friendly */
    .btn-gallery-action {
        padding: 14px 18px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
        min-height: 48px !important; /* Touch-friendly height */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .gallery-modal-actions {
        gap: 12px !important;
        padding-top: 18px !important;
        margin-top: 18px !important;
        border-top: 1px solid #e5e7eb !important;
    }
    
    /* Ensure scrollability on details panel */
    .gallery-modal-body {
        flex: 1 1 auto !important;
        overflow: visible !important;
        padding-bottom: 8px !important;
    }
    
    .gallery-modal-header {
        flex-shrink: 0 !important;
        margin-bottom: 16px !important;
        padding-bottom: 12px !important;
        border-bottom: 1px solid #f3f4f6 !important;
    }
}

/* Extra small devices (phones in portrait, less than 400px) */
@media (max-width: 400px) {
    .gallery-modal-left {
        flex: 0 0 55% !important;
        max-height: 55vh !important;
    }
    
    .gallery-modal-right {
        flex: 0 0 45% !important;
        max-height: 45vh !important;
        padding: 16px 12px !important;
    }
    
    .gallery-thumb {
        width: 50px !important;
        height: 50px !important;
    }
    
    .gallery-modal-title {
        font-size: 16px !important;
    }
    
    .btn-gallery-action {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
}
.glightbox-container {
    display: none !important; /* Hide GLightbox if it somehow appears */
}
@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== GALLERY MODAL - FIX ICONS BESIDE TEXT ========== */
.gallery-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}

.gallery-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
}

.gallery-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.btn-gallery-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
  
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px !important; /* Softer corners */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Subtle shadow */
    transition: all 0.3s ease !important; /* Smooth hover */
    font-weight: 600 !important;
    text-transform: none; /* Natural text */
}

.btn-gallery-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important; /* Gradient */
    border: none !important;
    color: white;
}

.btn-gallery-primary:hover {
    background: #2563eb;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3) !important;
}

.btn-gallery-secondary {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: none !important;
    color: white;
}

.btn-gallery-secondary:hover {
    background: #059669;
     transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3) !important;
}

.btn-gallery-outline {
    background: transparent !important;
    color: #3b82f6 !important;
    border: 2px solid #3b82f6 !important;
}

.btn-gallery-outline:hover {
   background: #3b82f6 !important;
    color: white !important;
    transform: translateY(-2px) !important;
}
/* Remove ugly focus outlines, add custom */
.btn-gallery-action:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important; /* Subtle ring */
}
/* ========== MOBILE MENU - MODERN UI/UX ========== */
/* --- Mobile Menu & Overlay Fixes (styles/main.css) --- */

/* Base state for mobile menu (hidden off-screen) */
#mobile-menu {
    position: fixed; /* Or absolute if you want it to float */
    top: 0;
    right: 0; /* Menu slides from the right */
    width: 80%; /* Menu width, adjust as needed */
    max-width: 300px; /* Maximum width */
    height: 100vh;
    background: white;
    z-index: 1000; /* Ensure it's above the overlay and other elements */
    transform: translateX(100%); /* Initially hidden to the right */
    transition: transform 0.3s ease-in-out;
    overflow-y: auto; /* Allows scrolling if content is long */
    padding-top: 3rem; /* Space for the close button */
}
#mobile-menu.hidden {
    display: none !important; /* Force hide if hidden class is present */
}
#mobile-menu:not(.hidden) {
    transform: translateX(0); /* Slide in to show */
}

.mobile-menu-overlay {
    z-index: 999; /* Below the menu */
}

#mobile-menu-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1001; /* Above the menu content */
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important; /* For Safari */
    z-index: 998 !important; /* Behind the menu */
    opacity: 0 !important; /* Hidden by default */
    visibility: hidden !important; /* Hidden by default */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out !important;
}

.lg\:hidden {
    display: block !important; /* Force visibility for mobile-menu-btn */
}
@media (min-width: 1024px) { /* Tailwind's 'lg' breakpoint */
    .lg\:hidden {
        display: none !important; /* Hide button on desktop */
    }
    #mobile-menu {
        display: none !important; /* Hide mobile menu on desktop */
    }
    .mobile-menu-overlay.active {
        display: none !important; /* Hide overlay on desktop */
    }
}

/* In your /styles/main.css, or directly in your <style> block */

/* Ensure desktop ALWAYS hides it if lg:hidden is on the HTML element */
#mobile-menu.hidden {
    display: none !important; /* Force hide if hidden class is present */
}

/* Style for the mobile menu when it's ACTIVE (not hidden), only on screens smaller than large (1024px by Tailwind default) */
@media (max-width: 1023px) { /* Tailwind's 'lg' breakpoint is 1024px */
    #mobile-menu:not(.hidden) {
        position: fixed;
        top: 0;
        left: 0; /* Or right: 0; if you want it to slide from the right */
        width: 100%; /* Or 80% / max-width: 300px for a side panel */
        height: 100vh;
        background: white;
        z-index: 999;
        transform: translateX(0); /* Make it visible */
        transition: transform 0.3s ease-in-out;
        overflow-y: auto; /* Enable scrolling for menu content */
        padding: 1rem; /* Adjust padding as needed */
    }

    #mobile-menu.hidden { /* When the menu is actually hidden, visually slide it out */
        transform: translateX(-100%); /* Or translateX(100%) if it slides from right */
    }
}

/* ========== PACKAGES TABLE STYLES ========== */
/* Table alternating row colors - Professional zebra striping */
#packages-table tbody tr {
    transition: all 0.2s ease;
}

#packages-table tbody tr:nth-child(odd) {
    background-color: #f9fafb; /* Light gray for odd rows */
}

#packages-table tbody tr:nth-child(even) {
    background-color: #ffffff; /* White for even rows */
}

#packages-table tbody tr:hover {
    background-color: #eff6ff !important; /* Light blue on hover */
   
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Table list view - Fixed image sizes (all same) */
#packages-table tbody tr td img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 8px;
}

/* Remove cursor pointer from table row to prevent confusion */
#packages-table tbody tr {
    cursor: default !important; /* Only buttons should be clickable, not the whole row */
}

/* Make action buttons more prominent */
#packages-table tbody tr td .btn {
    cursor: pointer;
}

/* ========== PACKAGES GRID VIEW - SQUARE IMAGES ========== */
/* Grid view - Maintain square images on all screens */
.package-card img {
    width: 100% !important;
    height: 280px !important; /* Fixed height for square-ish aspect */
    object-fit: cover !important;
    aspect-ratio: 1 / 1; /* Perfect square */
}

/* Ensure cards maintain consistent image sizing across all breakpoints */
@media (max-width: 1024px) {
    .package-card img {
        height: 250px !important;
    }
}

@media (max-width: 768px) {
    .package-card img {
        height: 220px !important;
    }
}

@media (max-width: 640px) {
    .package-card img {
        height: 200px !important;
    }
}

/* ========== BOOKING MODALS - TOP LAYER ========== */
/* Ensure ALL modals are above navbar (navbar z-index: 1000) */
#booking-modal,
#package-details-modal,
#cart-modal,
.modal {
    z-index: 9500 !important; /* Much higher than navbar */
}

/* Modal backdrop overlay */
.modal::before {
    z-index: 9499 !important;
}

/* The overlay should also only be active below desktop */
@media (max-width: 1023px) {
    .mobile-menu-overlay.active {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 998; /* Below the menu */
    }
    .mobile-menu-overlay {
        display: none; /* Hide by default on desktop, and when not active on mobile */
    }
}
/* Mobile-specific: Ensure blur doesn't interfere */
@media (max-width: 768px) {
    .mobile-menu-overlay.active {
        display: block !important;
    }
    #mobile-menu {
        padding-top: 80px; /* Account for header height */
    }
}
.mobile-menu-overlay.active {
     opacity: 1 !important;
    visibility: visible !important;
}

.btn-gallery-action {
        padding: 12px !important; /* Smaller buttons */
        font-size: 14px !important;
    }
/* State when menu is open */
#mobile-menu:not(.hidden) {
    transform: translateX(0%) !important; /* Slide in */
}
/* Base state for mobile menu (hidden off-screen) */
#mobile-menu {
    position: fixed !important; /* Forces fixed positioning */
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important; /* Full viewport width */
    height: 100vh !important; /* Full viewport height */
    background: white !important; /* Ensure background is white */
    z-index: 999 !important; /* Higher than overlay */
    transform: translateX(100%) !important; /* Start off-screen to the right */
    transition: transform 0.3s ease-in-out !important; /* Smooth slide */
    overflow-y: auto !important; /* Allow scrolling if menu content is long */
    padding-top: 80px !important; /* Space for header if header is fixed */
    padding-bottom: 20px !important; /* Some bottom padding */
    border-radius: 0 !important; /* No rounded corners for full screen */
    margin: 0 !important; /* No external margins */
    display: block !important; /* Override Tailwind's hidden/lg:hidden */
}
#mobile-menu .mobile-menu-link {
    padding: 12px 16px;
    border-radius: 10px;
    display: flex !important;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    font-weight: 500;
    color: #1f2937;
    text-decoration: none;
}

#mobile-menu .mobile-menu-link:hover {
    background: #eff6ff;
    color: #2563eb;
    transform: translateX(4px);
}

#mobile-menu .mobile-menu-link i {
    flex-shrink: 0;
}

/* ========== GALLERY MODAL ADDITIONAL STYLES ========== */
.gallery-modal-header {
    margin-bottom: 24px;
}

.gallery-modal-body {
    margin-bottom: 24px;
}

.gallery-modal-section {
    margin-bottom: 20px;
}

.gallery-description {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

.gallery-client-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.gallery-thumbnails {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)) !important; /* Dynamic sizing for thumbs */
    gap: 8px !important;
    margin-top: 16px !important;
    padding: 0 10px !important; /* Padding for small scrollbar */
    max-height: 120px !important; /* Limit thumbnail height */
    overflow-x: auto !important; /* Horizontal scroll if many thumbs */
    overflow-y: hidden !important; /* No vertical scroll for thumbnails */
    flex-shrink: 0 !important; /* Don't shrink thumbnails */
    -webkit-overflow-scrolling: touch !important; /* Smooth scroll on iOS */
    white-space: nowrap; /* Keep items in a single line */
}

/* ========== GALLERY MODAL MOBILE FIX - IMAGES ON TOP ========== */
/* Fix gallery modal on mobile */
@media (max-width: 768px) {
    .gallery-modal-container {
        flex-direction: column !important; /* Change from column-reverse to normal (images top, details bottom) */
        height: 100vh !important;
        width: 100vw !important;
        border-radius: 0;
        overflow: hidden;
    }
    
    /* Details on bottom (rendered first in flex-direction: column-reverse) */
    .gallery-modal-right {
        flex: 1 1 40% !important;
        max-height: 50vh;
        overflow-y: auto; /* Scroll details if needed */
        order: 2; /* Details second */
        padding: 16px !important; /* Reduce padding */
    }
    
    /* Images on top (rendered second in flex-direction: column-reverse) */
    .gallery-modal-left {
        flex: 1 1 60% !important;
        min-height: 50vh; /* Ensure image area has space */
        order: 1; /* Images first */
    }
    .gallery-carousel {
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .gallery-modal-main-image {
        max-height: 50vh !important;
        max-width: 100% !important;
        object-fit: contain !important;
        border-radius: 10px;
    }
    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr) !important; /* Limit to 3 cols on mobile */
        gap: 4px !important;
        padding: 8px;
    }
    
    .gallery-carousel-prev,
    .gallery-carousel-next {
        width: 44px;
        height: 44px;
    }
    
    .gallery-carousel-prev {
        left: 12px;
    }
    
    .gallery-carousel-next {
        right: 12px;
    }
    
    .gallery-modal-title {
        font-size: 18px;
    }
    
    .gallery-modal-header {
        margin-bottom: 16px;
    }
    
    .gallery-modal-body {
        margin-bottom: 16px;
    }
    
    .gallery-modal-section {
        margin-bottom: 12px;
    }
    
    .gallery-thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .gallery-modal-actions {
        margin-top: 16px;
        display: flex;
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .gallery-modal-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
/* ========== HERO ========== */
.hero-image {
  /* Full height for the hero section */
  min-height: 100vh;
  background-image: url("../img/Hero/background.jpeg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  /* Remove fixed attachment for better mobile compatibility */
  background-attachment: fixed;
}

/* Ensure the hero content is properly positioned */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
