.gallery-area {
    padding: 90px 0;
    background: #f8f9fa;
}
.gallery-item {
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
    opacity: 1;
    transform: translateY(0);
}
.gallery-item.loaded {
    opacity: 1;
    transform: translateY(0);
}
.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.gallery-item a {
    display: block;
    text-decoration: none;
    background: linear-gradient(45deg, #2196F3, #00BCD4);
    border-radius: 10px;
    overflow: hidden;
}
.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    transform: scale(1.1);
}
.gallery-item:hover img {
    transform: scale(1.2);
    opacity: 0.9;
}
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 20px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(100%);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    backdrop-filter: blur(5px);
}
.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}
.gallery-caption h5 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 600;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-caption p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    font-size: 14px;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.1s;
}
.gallery-item:hover .gallery-caption h5,
.gallery-item:hover .gallery-caption p {
    color: #ffeb3b;
    font-weight: bold;
    transform: translateY(-5px);
}
/* Magnific Popup custom styles */
.mfp-bg {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}
.mfp-figure {
    animation: fadeIn 0.5s;
}
.mfp-title {
    font-size: 18px;
    line-height: 1.5;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 5px;
}
.mfp-title small {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}
/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.mfp-zoom-in .mfp-with-anim {
    opacity: 0;
    transition: all 0.3s ease-in-out;
    transform: scale(0.8);
}
.mfp-zoom-in.mfp-ready .mfp-with-anim {
    opacity: 1;
    transform: scale(1);
}
.mfp-zoom-in.mfp-removing .mfp-with-anim {
    transform: scale(0.8);
    opacity: 0;
}
.mfp-zoom-in.mfp-bg {
    opacity: 0;
    transition: all 0.3s ease-out;
}
.mfp-zoom-in.mfp-ready.mfp-bg {
    opacity: 0.8;
}
.mfp-zoom-in.mfp-removing.mfp-bg {
    opacity: 0;
}

.masonry-gallery {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 300px;
    grid-auto-flow: dense;
}

.gallery-box {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.gallery-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(100%);
    backdrop-filter: blur(5px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-overlay h4 {
    color: white;
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-overlay h4 {
    transform: translateY(0);
}

/* Gallery wrapper transitions */
.gallery-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Magnific Popup Customization */
.mfp-container {
    padding: 0 30px;
}

.mfp-figure {
    padding: 0;
}

.mfp-img {
    max-height: 90vh !important;
}

.mfp-title {
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .gallery-item {
        margin-bottom: 20px;
    }
    
    .gallery-item img {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .gallery-item img {
        height: 200px;
    }
    
    .gallery-overlay {
        padding: 15px;
    }
    
    .gallery-overlay h4 {
        font-size: 16px;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Remove old styles */
.folder-navigation,
.loading-indicator,
.masonry-gallery,
.folder-item {
    display: none;
}

.gallery-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    opacity: 1;
}

.main-image-container {
    aspect-ratio: 16/9;
    max-height: 600px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.main-image {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    background: #000;
}

.image-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    font-size: 20px;
    text-align: center;
}

.thumbnails-container {
    width: 100%;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.thumbnails-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

.thumbnail {
    flex: 0 0 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
}

.thumbnail.active {
    border-color: #1976d2;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Fullscreen view */
.fullscreen-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.fullscreen-view.active {
    display: flex;
}

.fullscreen-view img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 5px;
}

.close-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Navigation controls */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.nav-button {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-image-container {
        aspect-ratio: 4/3;
        max-height: 400px;
    }

    .thumbnail {
        flex: 0 0 100px;
        height: 70px;
    }

    .image-title {
        font-size: 16px;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .main-image-container {
        aspect-ratio: 1/1;
        max-height: 300px;
    }

    .thumbnail {
        flex: 0 0 80px;
        height: 60px;
    }
}

/* Add these new styles to your existing CSS */

.main-image-container {
    position: relative;
    overflow: hidden;
}

.zoomable-image {
    transition: transform 0.3s ease;
}

.main-image:hover .zoomable-image {
    transform: scale(1.1);
}

.zoom-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.zoom-button {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zoom-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.fullscreen-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.fullscreen-view.active {
    display: flex;
}

.fullscreen-view img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.close-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-fullscreen:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Enhanced hover effect for main image */
.main-image {
    overflow: hidden;
    cursor: zoom-in;
}

.main-image img {
    transition: transform 0.5s ease;
}

/* Responsive adjustments for zoom features */
@media (max-width: 768px) {
    .zoom-controls {
        top: 10px;
        right: 10px;
    }

    .zoom-button {
        width: 35px;
        height: 35px;
    }

    .fullscreen-view img {
        max-width: 95%;
    }
}

/* Gallery Glimpse Styles */
.gallery-glimpse-area {
    background: #f8f9fa;
    padding: 80px 0;
}

.glimpse-item {
    position: relative;
    margin: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    cursor: pointer;
}

.glimpse-image {
    position: relative;
    height: 350px;
    overflow: hidden;
    background: #000;
}

.glimpse-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    background: #000;
}

.glimpse-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.glimpse-item:hover .glimpse-image img {
    transform: scale(1.1);
}

/* Fullscreen view for glimpse */
.glimpse-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.glimpse-fullscreen.active {
    display: flex;
}

.glimpse-fullscreen img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.glimpse-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.glimpse-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .glimpse-image {
        height: 300px;
    }
}

@media (max-width: 767px) {
    .glimpse-image {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .glimpse-image {
        height: 200px;
    }
}

/* Banner styles */
.slider-area3 {
    position: relative;
    min-height: 300px;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.slider-height4 {
    min-height: 300px;
    display: flex;
    align-items: center;
}

.slider-area3 .container {
    position: relative;
    z-index: 2;
    padding: 40px 0;
}

.slider-area3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
}

.hero__caption {
    position: relative;
    z-index: 1;
}

.hero__caption .subtitle {
    font-size: 24px;
    color: #ff5f13;
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
    text-transform: uppercase;
}

.banner-title {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-description {
    color: #fff;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 600px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .slider-area3,
    .slider-height4 {
        min-height: 250px;
    }
}

@media (max-width: 767px) {
    .slider-area3,
    .slider-height4 {
        min-height: 200px;
    }
    
    .slider-area3 .container {
        padding: 30px 0;
    }
    
    .hero__caption .subtitle {
        font-size: 20px;
    }
    
    .banner-title {
        font-size: 36px;
    }
    
    .banner-description {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .slider-area3,
    .slider-height4 {
        min-height: 180px;
    }
    
    .hero__caption .subtitle {
        font-size: 18px;
    }
    
    .banner-title {
        font-size: 28px;
    }
    
    .banner-description {
        font-size: 14px;
    }
}

/* Magnific Popup customization */
.mfp-with-zoom .mfp-container,
.mfp-with-zoom.mfp-bg {
    opacity: 0;
    backface-visibility: hidden;
    transition: all 0.3s ease-out;
}

.mfp-with-zoom.mfp-ready .mfp-container {
    opacity: 1;
}

.mfp-with-zoom.mfp-ready.mfp-bg {
    opacity: 0.8;
}

.mfp-with-zoom.mfp-removing .mfp-container,
.mfp-with-zoom.mfp-removing.mfp-bg {
    opacity: 0;
}

.mfp-with-anim {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease-in-out;
}

.mfp-ready .mfp-with-anim {
    opacity: 1;
    transform: scale(1);
}

/* Loading animation */
.mfp-preloader {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #ff5f13;
    animation: spin 1s linear infinite;
    margin: auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Gallery glimpse item styles */
.glimpse-item {
    position: relative;
    margin: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    cursor: pointer;
}

.glimpse-popup {
    display: block;
    text-decoration: none;
}

.glimpse-image {
    position: relative;
    height: 350px;
    overflow: hidden;
    background: #000;
}

.glimpse-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.glimpse-item:hover .glimpse-image img {
    transform: scale(1.1);
}

/* Navigation buttons */
.mfp-arrow {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.mfp-arrow:hover {
    opacity: 1;
}

.mfp-title {
    font-size: 18px;
    padding: 12px;
    text-align: center;
}