/* ==========================================
   1. RESET, CZCIONKI I ZMIENNE BAZOWE
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=Pinyon+Script&family=Viaoda+Libre&display=swap');

:root {
    --font-serif: 'Viaoda Libre', serif;
    --font-sans: 'DM Sans', sans-serif;
    --font-script: 'Pinyon Script', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

body.gallery-active {
    overflow: hidden !important;
}

/* ==========================================
   2. NAVBAR
   ========================================== */
.main-nav {
    background-color: #000000;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 30px 0;
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 65px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 48px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-family: var(--font-sans);
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: opacity 0.3s ease;
}

.nav-links a.active {
    font-weight: 500;
}

.nav-links a:hover {
    opacity: 0.8;
}

.btn-nav-contact {
    font-family: var(--font-sans);
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    padding: 12px 36px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.btn-nav-contact:hover {
    background-color: #e5e5e5;
}

/* ==========================================
   3. STRUKTURA PODSTRONY I NAGŁÓWEK
   ========================================== */
.portfolio-page-section {
    padding-top: 220px;
}

.portfolio-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
    position: relative;
}

.portfolio-header-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    position: relative;
}

.portfolio-main-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 64px;
    text-transform: uppercase;
    line-height: 1.15;
    color: #ffffff;
    letter-spacing: -1px;
}

.portfolio-main-title .script-title {
    font-family: var(--font-script) !important;
    font-weight: 400;
    text-transform: none;
    font-size: 96px;
    font-style: normal;
    margin-left: 10px;
}

/* ==========================================
   4. DYNAMICZNY DROPDOWN (FILTR)
   ========================================== */
.portfolio-filter-box {
    width: 220px;
    position: relative;
    z-index: 999;
}

.filter-dropdown {
    width: 100%;
    font-family: var(--font-sans);
}

.dropdown-trigger {
    width: 100%;
    background-color: #ffffff;
    color: #000000;
    border: none;
    padding: 16px 20px;
    font-size: 14px;
    font-family: var(--font-sans);
    font-weight: 500; 
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-radius 0.2s ease;
}

.arrow-icon {
    transition: transform 0.2s ease;
    transform: rotate(0deg);
}

.arrow-icon path {
    stroke: #000000;
}

.filter-dropdown.open .dropdown-trigger {
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #e5e5e5;
}

.filter-dropdown.open .arrow-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.filter-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 14px 20px;
    color: #000000;
    font-size: 14px;
    font-family: var(--font-sans);
    font-weight: 300; 
    cursor: pointer;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
    transition: background-color 0.2s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f9f9f9;
}

.dropdown-item.active {
    background-color: #fafafa;
}

/* ==========================================
   5. SIATKA ZDJĘĆ I KARTY
   ========================================== */
.portfolio-grid {
    max-width: 1600px;
    margin: 0;
    padding: 0 0 100px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}



.portfolio-card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-img-wrapper {
    width: 100%;
    height: 245px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-meta {
    padding: 24px;
    background-color: #ffffff;
    color: #000000;
}

.card-meta h3 {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500; 
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.card-date {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 300; 
    color: #888888;
}

.portfolio-card.hidden {
    display: none !important;
}

/* ==========================================
   6. RESPONSIVE DESIGN (RWD)
   ========================================== */
@media (max-width: 1200px) {
    .portfolio-wrapper { padding: 0 40px; }
    .portfolio-main-title { font-size: 52px; }
    .portfolio-main-title .script-title { font-size: 78px; }
}

@media (max-width: 992px) {
    .portfolio-header-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    .portfolio-filter-box {
        width: 100%;
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   7. STOPKA (FOOTER) 
   ========================================== */
.main-footer {
    background-color: #000000;
    padding: 100px 0 40px 0;
    font-family: var(--font-sans);
    color: #ffffff;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 2fr; 
    gap: 40px;
}

.footer-column h4 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
    color: #ffffff;
}

.footer-company-info {
    font-size: 14px;
    line-height: 1.7;
    font-weight: 300;
    color: #ffffff;
}

.footer-company-info strong {
    display: block;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.2px;
}

.footer-company-info p {
    margin-bottom: 4px;
    color: #cccccc;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 16px;
}

.footer-column ul a {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    transition: color 0.2s ease;
}

.footer-column ul a:hover {
    color: #ffffff;
}

.newsletter-column {
    max-width: 460px;
}

.newsletter-text {
    font-size: 14px;
    line-height: 1.6;
    color: #cccccc;
    font-weight: 300;
    margin-bottom: 24px;
}

.newsletter-form {
    position: relative;
    width: 100%;
}

.newsletter-form input {
    width: 100%;
    background-color: #ffffff;
    border: none;
    padding: 18px 65px 18px 24px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 300;
    color: #000000;
    border-radius: 16px; 
    outline: none;
}

.newsletter-form input::placeholder {
    color: #888888;
}

.newsletter-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: #000000;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease;
}

.newsletter-btn:hover {
    background-color: #222222;
}

.footer-bottom {
    width: 100%;
    background-color: #000000;
    border-top: none !important; 
}

.footer-bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 60px 0 60px;
    border-top: 1px solid #222222; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-logo img {
    max-height: 45px;
    width: auto;
    display: block;
}

.footer-meta-text {
    text-align: right;
    font-size: 13px;
    font-weight: 300;
    color: #888888;
    line-height: 1.6;
}

.footer-meta-text .author-credits {
    margin-top: 4px;
}

.footer-meta-text strong {
    color: #cccccc;
    font-weight: 500;
}


.footer-author-link {
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-author-link strong {
    color: #cccccc;
    font-weight: 500;
}

.footer-author-link:hover strong {
    color: #ffffff; 
}

/* ==========================================
   RWD (RESPONSYWNOŚĆ DLA STOPKI)
   ========================================== */
@media (max-width: 1100px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
        padding: 0 40px;
    }
    .footer-bottom-container {
        padding: 0 40px;
    }
}
















@media (max-width: 768px) {










    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom-container {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    .footer-meta-text {
        text-align: center;
    }
}

/* ==========================================
   8. WIDOK SZCZEGÓŁÓW GALERII WYDARZENIA
   ========================================== */
.gallery-view-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 140px 80px 80px 80px;
    height: auto; 
    overflow: visible; 
}

.gallery-view-section.gallery-hidden,
.gallery-view-section.hidden {
    display: none !important;
}

.gallery-view-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 30px;
    width: 100%;
    flex-shrink: 0; 
}

.gallery-title-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gallery-subtitle {
    font-family: var(--font-serif); 
    font-weight: 400;
    font-size: 52px; 
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 5px; 
}

.gallery-main-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 52px;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0;
}

.gallery-date {
    font-family: var(--font-script);
    font-weight: 400;
    font-size: 52px;
    color: #ffffff;
    text-transform: none;
    margin-left: 20px;
    display: inline-block;
}

.back-btn {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 14px;
    color: #000000;
    background-color: #ffffff;
    border: none;
    border-radius: 15px;
    padding: 12px 28px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    height: fit-content;
}

.back-btn .arrow {
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    display: inline-block;
    transform: translateY(-1px);
}

.back-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}

.gallery-photos-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    width: 100%;
    margin-top: 20px;
    flex-grow: 0;
    overflow-y: visible; 
    padding-bottom: 0; 
}

.gallery-photos-grid::-webkit-scrollbar {
    width: 6px;
}

.gallery-photos-grid::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-photos-grid::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 10px;
}

.gallery-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex: 1;
    height: auto; 
}
.gallery-photo-item {
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    border-radius: 16px;
    flex-shrink: 0; 
}

.gallery-photo-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-photo-item:hover img {
    transform: scale(1.03);
}

/* ==========================================
   9. INTERFEJS LIGHTBOX (PODGLĄD PEŁNOEKRANOWY)
   ========================================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-overlay.hidden {
    display: none !important;
}

.lightbox-toolbar {
    position: absolute;
    top: 30px;
    right: 40px;
    display: flex;
    gap: 20px;
    z-index: 10001;
}

.lightbox-tool-btn {
    background: none;
    border: none;
    color: #888888;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.lightbox-tool-btn:hover {
    color: #ffffff;
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffffff;
    font-size: 64px;
    padding: 20px;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s ease;
    z-index: 10001;
    user-select: none;
}

.lightbox-nav-btn:hover {
    opacity: 1;
}

.lightbox-nav-btn.prev { left: 40px; }
.lightbox-nav-btn.next { right: 40px; }

.lightbox-content {
    max-width: 85vw;
    max-height: 80vh;
    position: relative;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.lightbox-caption {
    margin-top: 15px;
    color: #888888;
    font-size: 14px;
    font-style: italic;
    text-align: left;
}


.gallery-hidden {
    display: none !important;
}

/* RWD */
@media (max-width: 992px) {
    .gallery-photos-grid {
        gap: 16px;
    }
    .gallery-column {
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .gallery-photos-grid {
        flex-direction: column; 
    }
}

/* ==========================================
   9. PODSTRONA REGULAMINU
   ========================================== */
.rules-section {
    width: 100%;
    max-width: 900px; 
    margin: 0 auto;
    padding: 160px 40px 100px 40px;
    color: #ffffff;
}

.rules-header {
    margin-bottom: 60px;
}

.rules-title {
    font-family: var(--font-serif);
    font-size: 52px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.rules-subtitle {
    font-family: var(--font-serif);
    font-size: 52px;
    font-weight: 400;
}

.rules-subtitle em {
    font-family: var(--font-script);
    font-size: 64px;
    font-style: normal;
}

.rules-content {
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.rules-block h2 {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.rules-block ul {
    list-style: none; 
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rules-block li {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    color: #cccccc; 
}

.rules-block li strong {
    color: #ffffff;
    font-weight: 500;
}

.sub-list {
    margin-top: 8px !important;
    padding-left: 20px !important;
    gap: 6px !important;
}

.sub-list li {
    color: #bbbbbb;
}










.portfolio-header {
    padding: 180px 60px 60px 60px; 
    max-width: 1600px;
    margin: 0 auto;
    text-align: left;
}

.portfolio-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.portfolio-header p {
    font-size: 18px;
    opacity: 0.7;
}


.portfolio-item {
    background-color: #161616;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.portfolio-info {
    padding: 25px;
}

.portfolio-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.portfolio-info p {
    font-size: 14px;
    opacity: 0.7;
}


@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 0 20px 60px 20px;
    }
    
    .nav-container, .portfolio-header {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.gallery-main-title {
        font-size: 36px !important;
    }
    .gallery-subtitle {
        font-size: 36px !important;
    }
    .gallery-date {
        font-size: 36px !important;
        margin-left: 0 !important;
        display: block !important;







}


/* ==========================================
   MENU MOBILNE
   ========================================== */

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
    width: 40px;
    height: 40px;
}

.menu-toggle .bar {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}

.menu-toggle .bar:nth-child(1) {
    top: 10px;
}

.menu-toggle .bar:nth-child(2) {
    top: 18px;
}

.menu-toggle .bar:nth-child(3) {
    top: 26px;
}

.menu-toggle.active .bar:nth-child(1) {
    top: 18px;
    transform: rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    top: 18px;
    transform: rotate(-45deg);
}

@media (max-width: 968px) {
    .nav-container {
        padding: 0 20px;
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: block !important;
    }

    .nav-right {
        display: none !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(11, 11, 11, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .nav-links.active {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        right: 0 !important;
    }

    .nav-links li {
        display: block !important;
        margin: 15px 0;
    }

    .nav-links a {
        display: block !important;
        font-size: 24px !important;
        color: #ffffff !important;
        text-decoration: none !important;
        text-align: center;
    }
}


.nav-links .mobile-only {
    display: none !important;
}

@media (max-width: 968px) {
    .nav-links .mobile-only {
        display: block !important;
    }
}






@media (max-width: 768px) {
    .gallery-view-section {
        padding: 120px 20px 40px 20px !important;
    }

    .gallery-view-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        gap: 20px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .gallery-title-group {
        text-align: left !important;
        width: 100% !important;
    }

    .gallery-subtitle {
        font-size: 20px !important;
        line-height: 1.1 !important;
        text-align: left !important;
        display: block !important;
        margin-bottom: 10px !important;
    }

    .gallery-main-title {
        font-size: 52px !important;
        line-height: 1.1 !important;
        text-align: left !important;
        display: block !important;
        width: 100% !important;
    }

    .gallery-date {
        font-size: 52px !important;
        line-height: 1.1 !important;
        text-align: left !important;
        margin-left: 0 !important;
        display: block !important;
        margin-top: 10px !important;
    }

    .gallery-photos-grid {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
    }
}



@media (max-width: 768px) {
    .portfolio-wrapper,
    .gallery-view-section {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}