:root {
    --background-color: #E1F3EF;
    --accent-color: #006D58;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: #333;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    transition: width 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar.collapsed {
    width: 60px;
}

.menu-toggle {
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid #34495e;
    text-align: center;
}

.menu-toggle:hover {
    background-color: #34495e;
}

.nav-menu {
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: flex;
    align-items: center;
    padding: 15px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    background-color: #34495e;
}

.nav-menu i {
    width: 20px;
    margin-right: 15px;
    text-align: center;
}

.initials {
    width: 20px;
    margin-right: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
}

.menu-text {
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.3s;
}

.sidebar.collapsed .menu-text {
    opacity: 0;
    width: 0;
}

.sidebar.collapsed .nav-menu a {
    justify-content: center;
}

.sidebar.collapsed .nav-menu i,
.sidebar.collapsed .initials {
    margin-right: 0;
}

/* Dropdown Styles */
.dropdown-content {
    display: none;
    background-color: #34495e;
    list-style: none;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    padding-left: 30px;
}

.sidebar.collapsed .dropdown-content {
    position: absolute;
    left: 60px;
    top: 0;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px;
    margin-left: 250px;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed + .main-content {
    margin-left: 60px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
}

.header h1 {
    color: #2c3e50;
    font-size: 2.5em;
    font-weight: 300;
}

.contact-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.contact-btn:hover {
    background-color: #004d42;
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.slideshow {
    position: relative;
    height: 500px;
}

.slide {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--background-color);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px;
    font-size: 18px;
    text-align: center;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

.slide-btn:hover {
    background-color: rgba(0,0,0,0.8);
}

.slide-btn.prev {
    left: 10px;
}

.slide-btn.next {
    right: 10px;
}

.slide-dots {
    text-align: center;
    padding: 20px;
    background-color: var(--background-color);
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bdc3c7;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active,
.dot:hover {
    background-color: var(--accent-color);
}

/* Mobile Menu Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
}

.mobile-overlay.active {
    display: block;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 10px; /* Moved further left for PC screens */
    z-index: 2001;
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.mobile-menu-toggle:hover {
    background-color: #34495e;
}

/* Hide mobile menu toggle when menu is open - Enhanced specificity */
button.mobile-menu-toggle.hidden,
.mobile-menu-toggle.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    /* Show mobile menu toggle button */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Ensure hidden class works in mobile view - Enhanced specificity */
    button.mobile-menu-toggle.hidden,
    .mobile-menu-toggle.hidden {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Hide desktop menu toggle */
    .menu-toggle {
        display: none;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background-color: #2c3e50;
        transition: left 0.3s ease;
        z-index: 2000;
        overflow-y: auto;
    }
    
    .sidebar.mobile-open {
        left: 0;
    }
    
    .sidebar.collapsed {
        width: 280px;
        left: -100%;
    }
    
    .sidebar.collapsed.mobile-open {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
        padding-top: 70px; /* Account for mobile menu button */
    }
    
    .sidebar.collapsed + .main-content {
        margin-left: 0;
    }
    
    /* Adjust dropdown for mobile */
    .sidebar .dropdown-content {
        position: static;
        display: none;
        background-color: #34495e;
        box-shadow: none;
        min-width: auto;
    }
    
    .sidebar .dropdown:hover .dropdown-content {
        display: block;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .slideshow {
        height: 300px;
    }
    
    .slide-btn {
        padding: 10px 15px;
        font-size: 16px;
    }
}

/* Landscape orientation overrides for mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
    /* Hide mobile menu toggle button in landscape */
    .mobile-menu-toggle {
        display: none;
    }
    
    /* Show desktop menu toggle in landscape */
    .menu-toggle {
        display: block;
    }
    
    /* Show sidebar permanently in landscape */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 200px; /* Slightly narrower for landscape mobile */
        height: 100vh;
        background-color: #2c3e50;
        transition: width 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .sidebar.collapsed {
        width: 50px; /* Narrower collapsed state for mobile landscape */
    }
    
    /* Adjust main content for landscape sidebar */
    .main-content {
        margin-left: 200px;
        padding-top: 20px; /* Remove extra top padding */
        transition: margin-left 0.3s ease;
    }
    
    .sidebar.collapsed + .main-content {
        margin-left: 50px;
    }
    
    /* Adjust dropdown for landscape mobile */
    .sidebar .dropdown-content {
        position: absolute;
        left: 200px;
        top: 0;
        min-width: 180px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        background-color: #34495e;
    }
    
    .sidebar.collapsed .dropdown-content {
        left: 50px;
    }
    
    /* Adjust header for landscape */
    .header {
        flex-direction: row;
        gap: 0;
        text-align: left;
    }
    
    .header h1 {
        font-size: 2.2em;
    }
    
    /* Adjust slideshow height for landscape */
    .slideshow {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 250px;
    }
    
    .mobile-menu-toggle {
        top: 15px;
        left: 15px;
        padding: 10px;
        font-size: 16px;
    }
    
    .main-content {
        padding: 15px;
        padding-top: 65px;
    }
}

/* Form Styles for Contact Page */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-group label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.checkbox-item {
    margin-bottom: 10px;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.checkbox-item label {
    font-weight: normal;
    display: inline;
}

.submit-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #004d42;
}

/* Artist Page Styles */
.artist-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.artist-content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2em;
}

.artist-content p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Image Gallery Styles */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    object-position: center;
    background-color: var(--background-color);
    display: block;
    padding: 10px;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

.image-info {
    padding: 15px;
}

.image-info h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.2em;
}

.image-info p {
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
    margin: 0;
}

/* Category Section Styles */
.category-section {
    margin-bottom: 40px;
}

.category-section h3 {
    color: #2c3e50;
    font-size: 1.5em;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
}

.category-description {
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.category-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.no-images {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

/* About Section Styles */
.about-section {
    margin-bottom: 25px;
}

.about-section h3 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.about-section p {
    color: #555;
    line-height: 1.6;
}

/* About Header with Right-Justified BIO Button */
.about-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.about-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 2em;
}

.bio-btn-right {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.bio-btn-right:hover {
    background-color: #004d42;
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.modal-close:hover {
    color: #ccc;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

.modal-info {
    background-color: rgba(255,255,255,0.95);
    color: #333;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    max-width: 600px;
    text-align: center;
}

.modal-info h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-images {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .modal-content {
        padding: 10px;
    }
    
    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    
    .modal-info {
        margin-top: 15px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .gallery-item img {
        height: 180px;
    }
    
    .image-info {
        padding: 12px;
    }
    
    .image-info h4 {
        font-size: 1.1em;
    }
    
    .image-info p {
        font-size: 0.85em;
    }
}

/* Directory Browser Styles */
.directory-browser {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

.breadcrumb-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-link:hover {
    color: #004d42;
    text-decoration: underline;
}

.breadcrumb-current {
    color: #666;
    font-weight: bold;
}

.breadcrumb-separator {
    color: #999;
    margin: 0 5px;
}

/* Navigation Controls */
.navigation-controls {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.back-button {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-button:hover {
    background-color: #5a6268;
}

.back-button i {
    font-size: 12px;
}

/* Directory Grid */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.directory-button {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 100px;
}

.directory-button:hover {
    background-color: #e9ecef;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.directory-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.directory-info {
    flex: 1;
}

.directory-title {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 8px;
    font-weight: bold;
}

.directory-description {
    color: #666;
    font-size: 0.95em;
    line-height: 1.4;
    margin-bottom: 8px;
}

.directory-count {
    color: #999;
    font-size: 0.85em;
    font-style: italic;
}

/* Images Grid */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.directory-image {
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.directory-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.directory-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    background-color: var(--background-color);
    display: block;
    padding: 8px;
    box-sizing: border-box;
}

.directory-image .image-info {
    padding: 12px;
}

.directory-image .image-info h4 {
    color: #2c3e50;
    font-size: 1em;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* No Content Message */
.no-content {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 60px 20px;
    background-color: #f8f9fa;
    margin: 20px;
    border-radius: 10px;
}

/* Responsive Directory Browser */
@media (max-width: 768px) {
    .directory-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .directory-button {
        padding: 15px;
        min-height: 80px;
        gap: 12px;
    }
    
    .directory-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .directory-title {
        font-size: 1.1em;
    }
    
    .directory-description {
        font-size: 0.9em;
    }
    
    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .directory-image img {
        height: 150px;
    }
    
    .breadcrumb-nav {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .navigation-controls {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .directory-grid {
        grid-template-columns: 1fr;
    }
    
    .directory-button {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 20px 15px;
    }
    
    .directory-info {
        text-align: center;
    }
    
    .images-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }
    
    .directory-image img {
        height: 180px;
    }
}

/* Directory Carousel Styles */
.directory-carousel {
    margin-bottom: 30px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.carousel-container {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--background-color);
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 20px 20px;
    text-align: center;
}

.carousel-caption h3 {
    font-size: 1.5em;
    margin-bottom: 8px;
    font-weight: bold;
}

.carousel-caption p {
    font-size: 1em;
    opacity: 0.9;
    line-height: 1.4;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.3s, opacity 0.3s;
    z-index: 10;
    border-radius: 5px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(0,0,0,0.8);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #bdc3c7;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.carousel-dot:hover {
    background-color: #95a5a6;
    transform: scale(1.1);
}

.carousel-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

/* Responsive Carousel */
@media (max-width: 768px) {
    .carousel-container {
        height: 300px;
    }
    
    .carousel-caption {
        padding: 20px 15px 15px;
    }
    
    .carousel-caption h3 {
        font-size: 1.3em;
        margin-bottom: 6px;
    }
    
    .carousel-caption p {
        font-size: 0.9em;
    }
    
    .carousel-prev,
    .carousel-next {
        padding: 12px 16px;
        font-size: 18px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-dots {
        padding: 15px;
        gap: 8px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 250px;
    }
    
    .carousel-caption {
        padding: 15px 10px 10px;
    }
    
    .carousel-caption h3 {
        font-size: 1.1em;
        margin-bottom: 4px;
    }
    
    .carousel-caption p {
        font-size: 0.85em;
    }
    
    .carousel-prev,
    .carousel-next {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .carousel-prev {
        left: 8px;
    }
    
    .carousel-next {
        right: 8px;
    }
}

/* Lazy Loading Styles */
.lazy-loading {
    opacity: 0.6;
    filter: blur(2px);
    transition: opacity 0.3s ease-in-out, filter 0.3s ease-in-out;
    background-color: #f8f9fa;
    background-image: linear-gradient(45deg, #f8f9fa 25%, transparent 25%), 
                      linear-gradient(-45deg, #f8f9fa 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, #f8f9fa 75%), 
                      linear-gradient(-45deg, transparent 75%, #f8f9fa 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    animation: loading-shimmer 1.5s infinite linear;
}

.lazy-loaded {
    opacity: 1;
    filter: blur(0);
    transition: opacity 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.lazy-error {
    opacity: 0.5;
    background-color: #f8d7da;
    background-image: none;
    position: relative;
}

.lazy-error::after {
    content: "⚠ Failed to load";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #721c24;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
}

@keyframes loading-shimmer {
    0% {
        background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    }
    100% {
        background-position: 20px 20px, 20px 30px, 30px 10px, 10px 20px;
    }
}

/* Lazy loading placeholder for different image sizes */
.gallery-item img.lazy-loading,
.directory-image img.lazy-loading,
.slide img.lazy-loading,
.carousel-slide img.lazy-loading {
    background-color: #f8f9fa;
    background-image: linear-gradient(45deg, #e9ecef 25%, transparent 25%), 
                      linear-gradient(-45deg, #e9ecef 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, #e9ecef 75%), 
                      linear-gradient(-45deg, transparent 75%, #e9ecef 75%);
    background-size: 30px 30px;
    background-position: 0 0, 0 15px, 15px -15px, -15px 0px;
}

/* Responsive lazy loading adjustments */
@media (max-width: 768px) {
    .lazy-loading {
        background-size: 15px 15px;
        background-position: 0 0, 0 7.5px, 7.5px -7.5px, -7.5px 0px;
    }
    
    .gallery-item img.lazy-loading,
    .directory-image img.lazy-loading {
        background-size: 20px 20px;
        background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    }
}
