/* Package Detail Page Styles */

/* Prevent horizontal scrolling */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Prevent any element from causing horizontal overflow */
* {
    box-sizing: border-box;
}

.package-hero-content,
.package-content,
.package-details,
.package-booking,
.related-packages {
    max-width: 100%;
    overflow-x: hidden;
}

/* Container constraints */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 16px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: ">";
    margin-left: 8px;
    color: #6c757d;
}

.breadcrumb-list a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

.breadcrumb-list .active {
    color: #6c757d;
}

/* Package Hero Section */
.package-hero {
    padding: 40px 0;
    background: white;
}

.package-hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Package Header */
.package-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.package-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.package-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 0;
}

.package-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #ffc107;
    font-size: 0.85rem;
}

.package-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 0.9rem;
}

.package-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
    margin: 0;
    flex: 1;
}

.package-share {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.share-btn,
.package-hero .wishlist-btn {
    width: 44px;
    height: 44px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #495057;
}

.share-btn:hover,
.package-hero .wishlist-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

/* Package Hero Gallery */
.package-hero-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
}

.main-image {
    position: relative;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.main-image img:hover {
    transform: scale(1.02);
}

.gallery-grid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: relative;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery-grid img:first-child {
    border-radius: 0 12px 0 0;
}

.gallery-grid img:nth-child(2) {
    border-radius: 0 0 0 0;
}

.gallery-grid img:nth-child(3) {
    border-radius: 0 0 0 0;
}

.gallery-item-with-btn {
    position: relative;
    border-radius: 0 0 12px 0;
    overflow: hidden;
}

.gallery-item-with-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 12px 0;
}

.gallery-grid img:hover {
    transform: scale(1.02);
}

/* All Photos Button */
.all-photos-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.all-photos-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.all-photos-btn i {
    font-size: 0.8rem;
}

/* Package Content Layout */
.package-content {
    padding: 60px 0;
    background: #f8f9fa;
}

.package-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

/* Main Content Sections */
.content-section {
    background: white;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f8f9fa;
}

/* Map Section */
.map-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    max-height: 400px;
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.overview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.overview-item i {
    font-size: 1.2rem;
    color: #667eea;
    width: 20px;
    text-align: center;
}

.overview-item .label {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 2px;
}

.overview-item .value {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: #2c3e50;
}

/* Description */
.description p {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 16px;
}

.read-more-btn {
    background: none;
    border: none;
    color: #667eea;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
}

.read-more-btn:hover {
    text-decoration: underline;
}

/* Highlights */
.highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlights-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #495057;
}

.highlights-list i {
    color: #28a745;
    margin-top: 2px;
    font-size: 0.9rem;
}

/* Includes/Excludes */
.includes-excludes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.includes h3,
.excludes h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-success {
    color: #28a745;
}

.text-danger {
    color: #dc3545;
}

.includes ul,
.excludes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.includes li,
.excludes li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
    font-size: 0.9rem;
    color: #495057;
}

.includes li:last-child,
.excludes li:last-child {
    border-bottom: none;
}

/* Cancellation Policy */
.cancellation-text {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Itinerary */
.itinerary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.collapse-all-btn {
    background: none;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.collapse-all-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.itinerary-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.itinerary-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.itinerary-header-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.itinerary-item.active .itinerary-header-item {
    background: #667eea;
    color: white;
}

.day-number {
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.itinerary-item.active .day-number {
    background: white;
    color: #667eea;
}

.itinerary-header-item h3 {
    flex: 1;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.toggle-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1rem;
}

.itinerary-content {
    padding: 24px;
    border-top: 1px solid #e9ecef;
}

.itinerary-content p {
    margin-bottom: 16px;
    color: #495057;
}

.itinerary-locations {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.location-item h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #2c3e50;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.faq-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
}

.faq-answer {
    padding: 20px;
    border-top: 1px solid #e9ecef;
}

.faq-answer p {
    margin: 0;
    color: #495057;
}

/* Extra Services */
.extra-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.service-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.service-icon {
    width: 48px;
    height: 48px;
    background: #667eea;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-info h3 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 500;
}

.service-info p {
    margin: 0 0 8px 0;
    font-size: 0.85rem;
    color: #6c757d;
}

.service-price {
    font-weight: 600;
    color: #667eea;
}

/* Booking Sidebar */
.booking-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pricing-card,
.contact-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Pricing Card */
.price-header {
    text-align: center;
    margin-bottom: 24px;
}

.discount-badge {
    background: #00843d;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}

.price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

.original-price {
    font-size: 1.2rem;
    color: #6c757d;
    text-decoration: line-through;
}

.per-person {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Booking Form */
.booking-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Nights Display */
.nights-display-container {
    margin-top: 8px;
}

.nights-display {
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 500;
    padding: 4px 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
    display: inline-block;
}

.nights-display:empty {
    display: none;
}

.travelers-selector {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.traveler-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #495057;
}

.qty-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.qty-display {
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

.booking-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.book-now-btn.primary,
.inquiry-btn.secondary {
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.book-now-btn.primary {
    background: #00843d;
    color: white;
}

.book-now-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.inquiry-btn.secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.inquiry-btn.secondary:hover {
    background: #e9ecef;
}

/* Features Included */
.features-included h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
}

.features-included ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-included li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.85rem;
    color: #495057;
}

.features-included i {
    color: #28a745;
    width: 16px;
}

/* Contact Card */
.contact-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.contact-header p {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.contact-method:hover {
    background: #e9ecef;
}

.contact-method i {
    width: 20px;
    text-align: center;
    color: #667eea;
}

.method-label {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
}

.method-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
}

/* Related Packages */
.related-packages {
    padding: 60px 0;
    background: white;
}

.related-packages h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 40px;
}

.related-packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-packages .package-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-packages .package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.related-packages .package-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.related-packages .package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-packages .package-content {
    padding: 20px;
}

.related-packages .package-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
}

.related-packages .package-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.related-packages .current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
}

.related-packages .original-price {
    font-size: 1rem;
    color: #6c757d;
    text-decoration: line-through;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .package-hero-content {
        gap: 24px;
    }
    
    .package-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .package-hero h1 {
        font-size: 2.2rem;
    }
    
    .package-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .booking-sidebar {
        position: relative;
        top: auto;
        order: -1;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .includes-excludes-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .extra-services-grid {
        grid-template-columns: 1fr;
    }
    
    .related-packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .package-hero {
        padding: 30px 0;
    }
    
    .package-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .package-hero h1 {
        font-size: 2rem;
    }
    
    .package-hero-gallery {
        grid-template-columns: 1fr;
        height: auto;
        gap: 12px;
        max-width: 100%;
        overflow: hidden;
    }
    
    .main-image {
        height: 250px;
        border-radius: 12px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 120px);
        gap: 8px;
    }
    
    .gallery-grid img:first-child,
    .gallery-grid img:nth-child(2),
    .gallery-grid img:nth-child(3),
    .gallery-item-with-btn img {
        border-radius: 8px;
    }
    
    .content-section {
        padding: 24px;
        margin-bottom: 20px;
    }
    
    .map-container {
        max-width: 100%;
    }
    
    .map-image {
        max-height: 300px;
    }
    
    .pricing-card,
    .contact-card {
        padding: 20px;
    }
    
    .related-packages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .package-content {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .package-hero h1 {
        font-size: 1.6rem;
    }
    
    .package-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .map-image {
        max-height: 250px;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .content-section h2 {
        font-size: 1.3rem;
    }
    
    .current-price {
        font-size: 1.6rem;
    }
    
    .original-price {
        font-size: 1rem;
    }
}

/* Gallery Modal Styles */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.gallery-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 1200px;
    width: 95vw;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.gallery-modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    color: #6c757d;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: #f8f9fa;
    color: #495057;
}

.gallery-modal-grid {
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-height: 65vh;
    overflow-y: auto;
}

.gallery-modal-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-modal-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 1024px) {
    .gallery-modal-content {
        max-width: 95vw;
        width: 95vw;
    }
    
    .gallery-modal-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
        padding: 28px;
    }
}

@media (max-width: 768px) {
    .gallery-modal-content {
        max-width: 95vw;
        max-height: 90vh;
        width: 95vw;
    }
    
    .gallery-modal-header {
        padding: 20px 24px;
    }
    
    .gallery-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .gallery-modal-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
        gap: 16px;
    }
    
    .gallery-modal-grid img {
        height: 120px;
        border-radius: 8px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .gallery-modal-content {
        max-width: 98vw;
        width: 98vw;
    }
    
    .gallery-modal-header {
        padding: 16px 20px;
    }
    
    .gallery-modal-grid {
        padding: 16px;
        gap: 12px;
    }
    
    .gallery-modal-grid img {
        height: 100px;
    }
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.image-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10002;
}

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

.image-modal-prev,
.image-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10002;
}

.image-modal-prev {
    left: -70px;
}

.image-modal-next {
    right: -70px;
}

.image-modal-prev:hover,
.image-modal-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.image-modal-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    z-index: 10002;
}

@media (max-width: 768px) {
    .image-modal-prev {
        left: 10px;
    }
    
    .image-modal-next {
        right: 10px;
    }
    
    .image-modal-close {
        top: 10px;
        right: 10px;
    }
    
    .image-modal-counter {
        bottom: 20px;
    }
    
    .image-modal-content img {
        max-height: 80vh;
    }
}