/* Base Styles */
.project-gallery-wrap {
    margin: 50px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    position: relative;
}

.project-gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform, box-shadow;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-gallery-item:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.project-gallery-media-wrap {
    width: 100%;
    padding-top: 75%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(45deg, #000000, #1a1a1a);
}

.project-gallery-media-wrap img,
.project-gallery-media-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    filter: brightness(1);
    will-change: transform;
}

.project-gallery-item:hover .project-gallery-media-wrap img,
.project-gallery-item:hover .project-gallery-media-wrap video {
    transform: scale(1.12);
    filter: brightness(1.1) saturate(1.1);
}

/* Auto-scroll for Tall Images */
.project-gallery-item.project-gallery-tall .project-gallery-media-wrap {
    padding-top: 150%;
    cursor: ns-resize;
    overflow: hidden !important;
}

.project-gallery-item.project-gallery-tall .project-gallery-media-wrap img {
    object-fit: cover;
    object-position: top center !important;
    height: auto !important;
    min-height: 200% !important;
    max-height: none !important;
    will-change: transform;
}

.project-gallery-item.project-gallery-tall.project-gallery-scroll-slow .project-gallery-media-wrap img {
    animation: projectGalleryAutoScroll 15s linear infinite;
    animation-play-state: paused;
}

.project-gallery-item.project-gallery-tall.project-gallery-scroll-medium .project-gallery-media-wrap img {
    animation: projectGalleryAutoScroll 10s linear infinite;
    animation-play-state: paused;
}

.project-gallery-item.project-gallery-tall.project-gallery-scroll-fast .project-gallery-media-wrap img {
    animation: projectGalleryAutoScroll 5s linear infinite;
    animation-play-state: paused;
}

.project-gallery-item.project-gallery-tall:hover .project-gallery-media-wrap img,
.project-gallery-item.project-gallery-tall.project-gallery-auto-scroll .project-gallery-media-wrap img {
    animation-play-state: running !important;
}

@keyframes projectGalleryAutoScroll {
    0% {
        transform: translateY(0);
        object-position: top center;
    }
    100% {
        transform: translateY(calc(-100% + 100%));
        object-position: bottom center;
    }
}

.project-gallery-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 25px;
    font-weight: 700;
    letter-spacing: 0.8px;
    z-index: 2;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

.project-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(0, 0, 0, 0.8) 30%, 
        rgba(0, 0, 0, 0.4) 60%, 
        transparent 100%);
    color: #fff;
    padding: 35px 30px 25px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 20px 20px;
    backdrop-filter: blur(10px);
}

.project-gallery-item:hover .project-gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-gallery-title {
    margin: 0 0 12px 0;
    font-size: 1.5em;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.5px;
}

.project-gallery-tech {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.95em;
    font-weight: 600;
    backdrop-filter: blur(15px);
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-gallery-preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 14px 28px;
    border-radius: 35px;
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-transform: uppercase;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.project-gallery-preview-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.project-gallery-preview-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* Modern Grid */
.project-gallery-style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
}

/* Masonry Grid */
.project-gallery-style-masonry {
    column-count: 3;
    column-gap: 35px;
}

.project-gallery-style-masonry .project-gallery-item {
    break-inside: avoid;
    margin-bottom: 35px;
}

/* BEAUTIFUL 3D Carousel */
.project-gallery-3d-carousel {
    position: relative;
    width: 100%;
    height: 650px;
    perspective: 2500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    border-radius: 30px;
    overflow: hidden;
    padding: 60px 0;
    transform-style: preserve-3d;
}

.carousel-stage {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: carouselFloat 6s ease-in-out infinite;
}

@keyframes carouselFloat {
    0%, 100% { transform: translateY(0) rotateX(5deg); }
    50% { transform: translateY(-15px) rotateX(8deg); }
}

.carousel-container {
    position: relative;
    width: 320px;
    height: 450px;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-gallery-3d-carousel .project-gallery-item {
    position: absolute;
    width: 320px;
    height: 450px;
    left: 0;
    top: 0;
    transform-origin: center center -600px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    opacity: 0.9;
    filter: brightness(0.9) saturate(0.9);
    backdrop-filter: blur(5px);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(102, 126, 234, 0.8);
}

.carousel-prev {
    left: 40px;
}

.carousel-next {
    right: 40px;
}

.carousel-nav svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
}

/* Card Slider with Loop */
.project-gallery-card-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 30px;
    padding: 50px 0;
}

.slider-track {
    display: flex;
    gap: 30px;
    animation: slideLoop 40s linear infinite;
    padding: 0 30px;
    width: max-content;
}

.project-gallery-style-cards .project-gallery-item {
    flex: 0 0 380px;
    height: 420px;
    border-radius: 25px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

@keyframes slideLoop {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-380px * 4 - 120px));
    }
}

.project-gallery-card-slider:hover .slider-track {
    animation-play-state: paused;
}

/* BEAUTIFUL Polaroid Style */
.project-gallery-polaroid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    padding: 70px 50px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 35px;
    position: relative;
    overflow: hidden;
}

.project-gallery-polaroid-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

.project-gallery-style-polaroid .project-gallery-item {
    width: 350px;
    background: #fff;
    padding: 30px 30px 120px;
    border-radius: 15px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.9),
        inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    transform: rotate(var(--rotate, 0deg)) translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
}

.project-gallery-style-polaroid .project-gallery-item::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s;
}

.project-gallery-style-polaroid .project-gallery-item:hover::before {
    opacity: 0.3;
}

.project-gallery-style-polaroid .project-gallery-item:nth-child(odd) {
    --rotate: -3deg;
}

.project-gallery-style-polaroid .project-gallery-item:nth-child(even) {
    --rotate: 4deg;
}

.project-gallery-style-polaroid .project-gallery-item:hover {
    transform: rotate(0deg) translateY(-25px) scale(1.08);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.2),
        0 0 0 2px rgba(255, 255, 255, 1);
}

.project-gallery-style-polaroid .project-gallery-media-wrap {
    padding-top: 100%;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    border: 12px solid #fff;
}

/* Fanned Layout - CENTERED */
.project-gallery-style-fanned {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 700px;
    padding: 90px 50px;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    border-radius: 35px;
    position: relative;
    overflow: hidden;
}

.project-gallery-fanned-container {
    position: relative;
    width: 100%;
    max-width: 1600px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1800px;
    animation: fanFloat 8s ease-in-out infinite;
}

@keyframes fanFloat {
    0%, 100% { transform: translateY(0) rotateX(8deg); }
    50% { transform: translateY(-20px) rotateX(10deg); }
}

.project-gallery-style-fanned .project-gallery-item {
    position: absolute;
    width: 330px;
    height: 420px;
    left: 50%;
    top: 50%;
    transform-origin: center bottom;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.15);
    z-index: 1;
    filter: brightness(var(--brightness, 0.9));
    --brightness: 0.8;
}

/* Centered fan positions */
.project-gallery-style-fanned .project-gallery-item:nth-child(1) { 
    transform: translate(-50%, -50%) rotate(-45deg) translateY(-180px); 
    z-index: 1; 
    --brightness: 0.7;
}

.project-gallery-style-fanned .project-gallery-item:nth-child(2) { 
    transform: translate(-50%, -50%) rotate(-35deg) translateY(-120px); 
    z-index: 2; 
    --brightness: 0.75;
}

.project-gallery-style-fanned .project-gallery-item:nth-child(3) { 
    transform: translate(-50%, -50%) rotate(-25deg) translateY(-70px); 
    z-index: 3; 
    --brightness: 0.8;
}

.project-gallery-style-fanned .project-gallery-item:nth-child(4) { 
    transform: translate(-50%, -50%) rotate(-15deg) translateY(-35px); 
    z-index: 4; 
    --brightness: 0.85;
}

.project-gallery-style-fanned .project-gallery-item:nth-child(5) { 
    transform: translate(-50%, -50%) rotate(0deg) translateY(0); 
    z-index: 5; 
    --brightness: 0.9;
}

.project-gallery-style-fanned .project-gallery-item:nth-child(6) { 
    transform: translate(-50%, -50%) rotate(15deg) translateY(-35px); 
    z-index: 4; 
    --brightness: 0.85;
}

.project-gallery-style-fanned .project-gallery-item:nth-child(7) { 
    transform: translate(-50%, -50%) rotate(25deg) translateY(-70px); 
    z-index: 3; 
    --brightness: 0.8;
}

.project-gallery-style-fanned .project-gallery-item:nth-child(8) { 
    transform: translate(-50%, -50%) rotate(35deg) translateY(-120px); 
    z-index: 2; 
    --brightness: 0.75;
}

.project-gallery-style-fanned .project-gallery-item:nth-child(9) { 
    transform: translate(-50%, -50%) rotate(45deg) translateY(-180px); 
    z-index: 1; 
    --brightness: 0.7;
}

.project-gallery-style-fanned .project-gallery-item:hover {
    transform: translate(-50%, -50%) rotate(0deg) translateY(-150px) scale(1.2) !important;
    z-index: 100 !important;
    filter: brightness(1.1) !important;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 0 4px rgba(102, 126, 234, 0.6);
    border-color: rgba(102, 126, 234, 0.9);
}

/* Stacked Layout */
.project-gallery-style-stacked {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    padding: 80px 50px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 35px;
    animation: stackFloat 7s ease-in-out infinite;
}

@keyframes stackFloat {
    0%, 100% { transform: translateY(0) rotateX(5deg); }
    50% { transform: translateY(-15px) rotateX(8deg); }
}

.project-gallery-stacked-container {
    position: relative;
    width: 400px;
    height: 520px;
}

.project-gallery-style-stacked .project-gallery-item {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.15);
    filter: brightness(var(--brightness, 0.9));
    --brightness: 0.7;
}

.project-gallery-style-stacked .project-gallery-item:nth-child(1) { 
    transform: translate(-30px, -30px) rotate(-6deg); 
    z-index: 1; 
    --brightness: 0.7;
}

.project-gallery-style-stacked .project-gallery-item:nth-child(2) { 
    transform: translate(-20px, -20px) rotate(-4deg); 
    z-index: 2; 
    --brightness: 0.75;
}

.project-gallery-style-stacked .project-gallery-item:nth-child(3) { 
    transform: translate(-10px, -10px) rotate(-2deg); 
    z-index: 3; 
    --brightness: 0.8;
}

.project-gallery-style-stacked .project-gallery-item:nth-child(4) { 
    transform: translate(0, 0) rotate(0deg); 
    z-index: 4; 
    --brightness: 0.85;
}

.project-gallery-style-stacked .project-gallery-item:nth-child(5) { 
    transform: translate(10px, 10px) rotate(2deg); 
    z-index: 3; 
    --brightness: 0.8;
}

.project-gallery-style-stacked .project-gallery-item:nth-child(6) { 
    transform: translate(20px, 20px) rotate(4deg); 
    z-index: 2; 
    --brightness: 0.75;
}

.project-gallery-style-stacked .project-gallery-item:nth-child(7) { 
    transform: translate(30px, 30px) rotate(6deg); 
    z-index: 1; 
    --brightness: 0.7;
}

.project-gallery-style-stacked .project-gallery-item:hover {
    transform: translate(0, -50px) rotate(0deg) scale(1.1) !important;
    z-index: 100 !important;
    filter: brightness(1.1) !important;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.6);
    border-color: rgba(102, 126, 234, 0.9);
}

/* Scrolly Gallery */
.project-gallery-style-scrolly {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 35px;
    max-height: 800px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.project-gallery-style-scrolly::-webkit-scrollbar {
    width: 8px;
}

.project-gallery-style-scrolly::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.project-gallery-style-scrolly::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
}

.project-gallery-style-scrolly .project-gallery-item {
    width: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-gallery-style-scrolly .project-gallery-media-wrap {
    flex: 0 0 300px;
    height: 200px;
    padding-top: 0;
    margin: 25px;
    border-radius: 15px;
}

.project-gallery-style-scrolly .project-gallery-overlay {
    position: relative;
    flex: 1;
    opacity: 1;
    transform: none;
    background: transparent;
    padding: 25px;
    backdrop-filter: none;
}

/* Metro Grid */
.project-gallery-style-metro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 300px;
    grid-auto-flow: dense;
    gap: 30px;
}

.project-gallery-style-metro .project-gallery-item:nth-child(3n) {
    grid-column: span 2;
    grid-row: span 2;
}

.project-gallery-style-metro .project-gallery-item:nth-child(5n) {
    grid-column: span 1;
    grid-row: span 2;
}

/* BEAUTIFUL Lightbox */
.project-gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    backdrop-filter: blur(15px);
}

.project-gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    width: 96%;
    max-width: 1700px;
    height: 92vh;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    transform: translateY(40px) scale(0.95);
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-gallery-lightbox.active .lightbox-content {
    transform: translateY(0) scale(1);
}

.lightbox-image-column {
    flex: 0 0 75%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.lightbox-main-image,
.lightbox-main-video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9);
    background: #000;
}

.lightbox-main-video {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.lightbox-details-column {
    flex: 0 0 25%;
    padding: 70px 50px;
    background: #fff;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.lightbox-title {
    font-size: 2.8em;
    font-weight: 900;
    margin: 0 0 30px 0;
    color: #1a1a1a;
    line-height: 1.1;
    letter-spacing: -1px;
}

.lightbox-meta {
    margin-bottom: 40px;
}

.lightbox-tech {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 26px;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: 700;
    border: none;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.lightbox-desc {
    font-size: 1.3em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 50px;
    flex-grow: 1;
    font-weight: 400;
}

.lightbox-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    padding: 20px 40px;
    border-radius: 40px;
    font-size: 1.2em;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.lightbox-link-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 45px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.lightbox-link-btn svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
}

.lightbox-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

.lightbox-prev,
.lightbox-next {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    border: none;
    padding: 18px 30px;
    border-radius: 35px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #333;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.lightbox-prev svg,
.lightbox-next svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
}

.lightbox-counter {
    font-size: 1.2em;
    font-weight: 800;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: none;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.lightbox-close svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
}

.project-gallery-credit {
    text-align: center;
    font-size: 16px;
    color: #777;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
    font-style: italic;
    letter-spacing: 0.5px;
}

.project-gallery-credit a {
    color: #667eea;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s;
    position: relative;
    padding: 2px 0;
}

.project-gallery-credit a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.project-gallery-credit a:hover {
    color: #764ba2;
}

.project-gallery-credit a:hover::after {
    transform: scaleX(1);
}

/* Responsive */
@media (max-width: 1600px) {
    .project-gallery-3d-carousel {
        height: 600px;
    }
    
    .carousel-container {
        width: 300px;
        height: 420px;
    }
    
    .project-gallery-3d-carousel .project-gallery-item {
        width: 300px;
        height: 420px;
    }
}

@media (max-width: 1400px) {
    .project-gallery-style-masonry {
        column-count: 2;
    }
    
    .project-gallery-3d-carousel {
        height: 550px;
    }
    
    .carousel-container {
        width: 280px;
        height: 380px;
    }
    
    .project-gallery-3d-carousel .project-gallery-item {
        width: 280px;
        height: 380px;
    }
    
    .lightbox-content {
        width: 95%;
        height: 88vh;
    }
    
    .lightbox-title {
        font-size: 2.4em;
    }
}

@media (max-width: 1200px) {
    .project-gallery-style-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
    }
    
    .project-gallery-card-slider {
        height: 450px;
    }
    
    .project-gallery-style-cards .project-gallery-item {
        flex: 0 0 350px;
        height: 380px;
    }
    
    .project-gallery-3d-carousel {
        height: 500px;
        padding: 50px 0;
    }
    
    .carousel-container {
        width: 260px;
        height: 350px;
    }
    
    .project-gallery-3d-carousel .project-gallery-item {
        width: 260px;
        height: 350px;
    }
    
    .carousel-nav {
        width: 65px;
        height: 65px;
    }
    
    .lightbox-content {
        flex-direction: column;
        height: 96vh;
        width: 95%;
    }
    
    .lightbox-image-column {
        flex: 0 0 65%;
        padding: 40px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .lightbox-details-column {
        flex: 0 0 35%;
        padding: 50px 40px;
    }
    
    .lightbox-title {
        font-size: 2.2em;
    }
}

@media (max-width: 992px) {
    .project-gallery-wrap {
        margin: 40px 0;
    }
    
    .project-gallery-style-masonry {
        column-count: 1;
    }
    
    .project-gallery-card-slider {
        height: 400px;
    }
    
    .project-gallery-style-cards .project-gallery-item {
        flex: 0 0 320px;
        height: 350px;
    }
    
    .project-gallery-polaroid-container {
        gap: 40px;
        padding: 50px 40px;
    }
    
    .project-gallery-style-polaroid .project-gallery-item {
        width: 320px;
    }
    
    .project-gallery-3d-carousel {
        height: 450px;
        padding: 40px 0;
    }
    
    .carousel-container {
        width: 240px;
        height: 320px;
    }
    
    .project-gallery-3d-carousel .project-gallery-item {
        width: 240px;
        height: 320px;
    }
    
    .carousel-nav {
        width: 60px;
        height: 60px;
    }
    
    .carousel-prev {
        left: 25px;
    }
    
    .carousel-next {
        right: 25px;
    }
    
    .project-gallery-style-fanned {
        min-height: 600px;
        padding: 60px 40px;
    }
    
    .project-gallery-fanned-container {
        height: 450px;
    }
    
    .project-gallery-style-fanned .project-gallery-item {
        width: 300px;
        height: 380px;
    }
    
    .lightbox-content {
        height: 98vh;
        width: 100%;
        border-radius: 20px;
    }
    
    .lightbox-image-column {
        padding: 30px;
    }
    
    .lightbox-details-column {
        padding: 40px 30px;
    }
    
    .lightbox-title {
        font-size: 2em;
    }
    
    .lightbox-desc {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .project-gallery-style-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .project-gallery-card-slider {
        height: 350px;
    }
    
    .project-gallery-style-cards .project-gallery-item {
        flex: 0 0 280px;
        height: 320px;
    }
    
    .project-gallery-3d-carousel {
        height: 400px;
        padding: 30px 0;
    }
    
    .carousel-container {
        width: 220px;
        height: 300px;
    }
    
    .project-gallery-3d-carousel .project-gallery-item {
        width: 220px;
        height: 300px;
    }
    
    .project-gallery-style-fanned {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        min-height: auto;
        padding: 50px 30px;
    }
    
    .project-gallery-fanned-container {
        display: contents;
    }
    
    .project-gallery-style-fanned .project-gallery-item {
        position: relative;
        width: 100%;
        height: 300px;
        left: 0;
        top: 0;
        transform: none !important;
        margin-bottom: 25px;
    }
    
    .lightbox-image-column {
        flex: 0 0 60%;
        padding: 25px;
    }
    
    .lightbox-details-column {
        flex: 0 0 40%;
        padding: 35px 25px;
    }
    
    .lightbox-title {
        font-size: 1.8em;
    }
    
    .lightbox-desc {
        font-size: 1.1em;
    }
    
    .lightbox-link-btn {
        padding: 18px 32px;
        font-size: 1.1em;
    }
}

@media (max-width: 576px) {
    .project-gallery-style-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-gallery-card-slider {
        height: 300px;
    }
    
    .project-gallery-style-cards .project-gallery-item {
        flex: 0 0 250px;
        height: 280px;
    }
    
    .project-gallery-3d-carousel {
        height: 350px;
        padding: 20px 0;
    }
    
    .carousel-container {
        width: 200px;
        height: 270px;
    }
    
    .project-gallery-3d-carousel .project-gallery-item {
        width: 200px;
        height: 270px;
    }
    
    .carousel-nav {
        width: 55px;
        height: 55px;
    }
    
    .carousel-prev {
        left: 15px;
    }
    
    .carousel-next {
        right: 15px;
    }
    
    .lightbox-content {
        height: 100vh;
        border-radius: 0;
        width: 100%;
    }
    
    .lightbox-image-column {
        flex: 0 0 55%;
        padding: 20px;
    }
    
    .lightbox-details-column {
        flex: 0 0 45%;
        padding: 30px 20px;
    }
    
    .lightbox-title {
        font-size: 1.6em;
    }
    
    .lightbox-desc {
        font-size: 1em;
    }
    
    .lightbox-link-btn {
        padding: 16px 28px;
        font-size: 1em;
    }
}