/* Projects Slider Plugin Styles */
.projects-slider-section {
    background: #2c2c2c;
    padding: 0;
    color: white;
    position: relative;
}
.mobile-arrows {
    display: none !important;
}
.projects-slider-wrapper {
    position: relative;
    height: 75vh;
    display: flex;
    align-items: center;
}
.projects-title {
    font-size: 5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: absolute;
    top: 40px;
    left: 40px;
    margin: 0;
    z-index: 10;
}
.projects-slider {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 100%;
}
.project-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}
.project-slide.active {
    opacity: 1;
    pointer-events: auto;
}
.project-main-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Domyślnie 50/50 dla 2 zdjęć */
    gap: 20px;
    padding: 40px;
    box-sizing: border-box;
}
.project-main-image.three-images {
    grid-template-columns: 70% 30%;
}
.project-main-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}
.project-image-left {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    position: relative;
}
.project-images-right {
    height: 100%;
    position: relative;
}
/* Dla trzech zdjęć - dwie kolumny pionowe */
.project-images-right.project-images-three {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* Dla dwóch zdjęć - jedna kolumna jako tło */
.project-images-right.project-images-two {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
}
.project-image-top,
.project-image-bottom {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex: 1;
    width: 100%;
    position: relative;
}
/* Dla projektów z dwoma zdjęciami - contain dla obu kolumn */
.project-main-image:not(.three-images) .project-image-left {
    background-size: cover;
}
.project-main-image:not(.three-images) .project-images-right.project-images-two {
    background-size: cover;
}

/* Mobile images container - domyślnie ukryty */
.mobile-images-container {
    display: none;
}

/* Gallery Zoom Icon Styles */
.gallery-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.gallery-zoom-icon:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.15);
    border-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}
.gallery-zoom-icon svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}
/* Gallery Lightbox Styles */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}
.gallery-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gallery-close-btn {
    position: absolute;
    top: -60px;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.gallery-close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
}
.gallery-close-btn svg {
    width: 20px;
    height: 20px;
}
.gallery-close-btn svg line {
    stroke: white !important;
}
.gallery-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
}
.gallery-image-container img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}
.gallery-nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}
.gallery-nav-btn svg {
    width: 24px;
    height: 24px;
}
.gallery-nav-btn svg path,
.gallery-nav-btn svg line {
    stroke: white !important;
}
/* Desktop positioning - outside image */
.gallery-prev-btn {
    left: -80px;
}
.gallery-next-btn {
    right: -80px;
}
.gallery-counter {
    margin-top: 20px;
    color: white;
    font-size: 16px;
    text-align: center;
}
/* Hide touch navigation areas by default */
.gallery-touch-nav {
    display: none;
}
.project-info-overlay {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.project-info-left h3 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    font-size: 3.5rem;
}
.project-info-left h3 a {
    color: #FFD700;
    text-decoration: underline;
    text-decoration-color: #FFD700;
    text-underline-offset: 8px;
    text-decoration-thickness: 3px;
    transition: all 0.3s ease;
}
.project-info-left h3 a:hover {
    color: #6EB533;
    text-decoration-color: #6EB533;
    text-shadow: 0 0 10px rgba(110, 181, 51, 0.5);
}
.project-info-left p {
    font-size: 1.5rem;
    color: #FFD700;
    margin: 0;
    text-transform: uppercase;
    opacity: 0.9;
}
.project-info-right {
    text-align: right;
}
.project-size {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.project-price {
    font-size: 3.5rem;
    font-weight: 700;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.projects-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px;
    transition: all 0.3s ease;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
}
.projects-arrow-left {
    left: 40px;
}
.projects-arrow-right {
    right: 40px;
}
.projects-arrow:hover {
    transform: translateY(-50%) scale(1.1);
}
.projects-arrow svg {
    width: 40px;
    height: auto;
}
.projects-error {
    padding: 2rem;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 2rem;
    text-align: center;
}
/* Mobile navigation arrows - ukryte na desktop */
.mobile-nav-arrows {
    display: none;
}
/* Mobile Styles for Projects */
@media (max-width: 768px) {
    .projects-title {
        font-size: 1.5rem;
        top: 20px;
        right: 20px;
    }
    
    .projects-slider-wrapper {
        flex-direction: column;
        gap: 20px;
        height: 400px;
    }
    
    /* Stała wysokość slajdów na mobile */
    .project-slide {
        height: 500px;
    }
    
    /* Mobile - dwa zdjęcia w układzie pionowym */
    .project-main-image {
        height: 500px;
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: 1fr 1fr !important;
        gap: 0 !important;
        padding: 0 !important;
    }
    
    /* Usuń ciemny overlay na mobile */
    .project-main-image::before {
        display: none;
    }
    
    /* Ukryj desktopowe elementy na mobile */
    .project-image-left,
    .project-images-right,
    .project-images-right.project-images-three,
    .project-images-right.project-images-two,
    .project-image-top,
    .project-image-bottom {
        display: none !important;
    }
    
    /* Pokaż kontener mobilny */
    .mobile-images-container {
        display: grid !important;
        grid-column: 1 / -1;
        grid-row: 1 / -1;
        width: 100%;
        height: 100%;
        grid-template-rows: 1fr 1fr;
        gap: 0;
    }
    
    /* Style dla górnego i dolnego zdjęcia na mobile */
    .mobile-image-top,
    .mobile-image-bottom {
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
    }
    
    .mobile-image-top {
        grid-row: 1;
    }
    
    .mobile-image-bottom {
        grid-row: 2;
    }
    
    /* Mobilne ikony zoom */
    .mobile-image-top .gallery-zoom-icon,
    .mobile-image-bottom .gallery-zoom-icon {
        width: 50px;
        height: 50px;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(5px);
    }
    
    .mobile-image-top .gallery-zoom-icon svg,
    .mobile-image-bottom .gallery-zoom-icon svg {
        width: 24px;
        height: 24px;
    }
    
    /* Ukryj główne strzałki na mobile */
    .projects-slider-wrapper > .projects-arrow {
        display: none;
    }
    
    /* Mobile arrows - ZAWSZE na stałych pozycjach */
    .mobile-arrows {
        display: none !important; /* Ukryj te w overlay */
    }
    
    /* Mobile navigation arrows - prawdziwe elementy */
    .mobile-nav-arrows {
        display: block !important;
    }
    
    .mobile-nav-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
        z-index: 20;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        padding: 0;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-arrow:active {
        transform: translateY(-50%) scale(0.9);
    }
    
    .mobile-nav-arrow-left {
        left: 15px;
    }
    
    .mobile-nav-arrow-right {
        right: 15px;
    }
    
    .mobile-nav-arrow svg {
        width: 20px;
        height: 20px;
        pointer-events: none;
    }
    
    .project-info-overlay {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        position: absolute;
        z-index: 5;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(transparent, rgba(0,0,0,0.8));
    }
    
    .project-info-left h3 {
        font-size: 2rem;
    }
    
    .project-info-left p {
        font-size: 0.9rem;
    }
    
    .project-info-right {
        text-align: left;
    }
    
    .project-size {
        font-size: 1.2rem;
    }
    
    .project-price {
        font-size: 2rem;
    }
    
    /* Mobile lightbox adjustments */
    .gallery-lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .gallery-close-btn {
        top: -70px;
        right: 0;
        width: 50px;
        height: 50px;
        font-size: 28px;
        background: rgba(255, 255, 255, 0.9) !important;
        color: #000 !important;
        border-radius: 50%;
        border: 2px solid rgba(0, 0, 0, 0.3) !important;
        z-index: 9999 !important;
    }
    
    .gallery-close-btn:hover {
        background: rgba(255, 255, 255, 1) !important;
        border-color: rgba(0, 0, 0, 0.5) !important;
    }
    
    .gallery-close-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .gallery-close-btn svg line {
        stroke: #000 !important;
    }
    
    .gallery-nav-btn {
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.9) !important;
        border: 2px solid rgba(0, 0, 0, 0.3) !important;
        font-size: 20px;
        z-index: 9998 !important;
    }
    
    .gallery-nav-btn:hover {
        background: rgba(255, 255, 255, 1) !important;
        border-color: rgba(0, 0, 0, 0.5) !important;
    }
    
    .gallery-nav-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .gallery-nav-btn svg path,
    .gallery-nav-btn svg line {
        stroke: #000 !important;
    }
    
    .gallery-prev-btn {
        left: -70px;
    }
    
    .gallery-next-btn {
        right: -70px;
    }
    
    .gallery-image-container img {
        max-height: 70vh;
    }
    
    /* Mobile touch areas for gallery navigation - WYŁĄCZONE */
    .gallery-touch-nav {
        display: none !important;
    }
}
@media (max-width: 480px) {
    .projects-slider-wrapper {
        gap: 15px;
    }
    
    .projects-arrow {
        display: none;
    }
    
    .project-slide {
        height: 400px;
    }
    
    .project-main-image {
        height: 400px;
    }
    
    .project-info-overlay {
        padding: 15px;
        padding-top: 80px;
    }
    
    .project-info-left h3 {
        font-size: 1.5rem;
    }
    
    .project-price {
        font-size: 1.5rem;
    }
    
    /* Mobile lightbox for small screens */
    .gallery-close-btn {
        top: -80px;
        right: 0;
        width: 60px;
        height: 60px;
        font-size: 32px;
        background: rgba(255, 255, 255, 0.95) !important;
        color: #000 !important;
        border: 3px solid rgba(0, 0, 0, 0.4) !important;
    }
    
    .gallery-close-btn svg {
        width: 28px;
        height: 28px;
    }
    
    .gallery-close-btn svg line {
        stroke: #000 !important;
        stroke-width: 3;
    }
    
    /* BARDZO WYRAŹNE strzałki na małych ekranach - WEWNĄTRZ zdjęcia */
    .gallery-prev-btn {
        left: 15px !important;
    }
    
    .gallery-next-btn {
        right: 15px !important;
    }
    
    .gallery-nav-btn {
        width: 60px;
        height: 60px;
        font-size: 24px;
        background: rgba(255, 255, 255, 0.95) !important;
        border: 3px solid rgba(0, 0, 0, 0.4) !important;
    }
    
    .gallery-nav-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .gallery-nav-btn svg path,
    .gallery-nav-btn svg line {
        stroke: #000 !important;
        stroke-width: 3;
    }
}