


body {
    background-image: url('../../media/default_page_media/slideshow3.webp');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.page-header {
    background-image: url('../../media/default_page_media/slideshow3.webp');
    background-size: 100%;
    background-position: center;
    background-attachment: fixed;
    padding: 200px 0;
    text-align: center;
    color: var(--white);
    position: relative;
}


.page-header.zoom-active {
    animation: slowZoomBackground 5s ease-out forwards;
}

@keyframes slowZoomBackground {
    0% {
        background-size: 100%;
    }
    100% {
        background-size: 115%;
    }
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(80px) scale(0.9);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.3s;
}

.page-header p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.8s;
}

.page-header h1.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.page-header p.revealed {
    opacity: 1;
    transform: translateY(0);
}


.gallery-grid-section {
    padding: 60px 0 20px;
    background-color: var(--off-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: 0;
    margin-bottom: 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.gallery-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}


.back-section {
    padding: 0 0 60px;
    background-color: var(--off-white);
    text-align: center;
}

.back-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

#image-counter-container {
    margin: 0;
    padding: 0;
}

.image-counter {
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 700;
    padding: 0;
    margin: 0 0 15px 0;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
}

.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
}


.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: calc(100vh - 150px); 
    position: relative;
    animation: zoomIn 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 100px; 
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 250px); 
    object-fit: contain;
    display: block;
    border-radius: 5px;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10003;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1); 
}

.lightbox-info {
    position: fixed; 
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10002;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-counter {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.lightbox-download {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lightbox-download:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    font-weight: 300;
    line-height: 1;
    user-select: none;
    z-index: 10001; 
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}


@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery-item img {
        height: 160px;
    }
}

@media (max-width: 768px) {
    
    body {
        background-size: auto 100%;
        background-position: center center;
    }
    
    .page-header {
        background-size: auto 100%;
        background-position: center center;
        padding: 150px 0;
        animation: none; 
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .gallery-item img {
        height: 120px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: calc(100vh - 140px);
        padding-bottom: 90px;
    }
    
    .lightbox-image {
        max-height: calc(100vh - 230px);
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
        width: 50px;
        height: 50px;
    }
    
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 24px;
        border-width: 1.5px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .lightbox-prev {
        left: 5px;
    }
    
    .lightbox-next {
        right: 5px;
    }
    
    .lightbox-download {
        font-size: 0.85rem;
        padding: 8px 16px;
        margin-left: 0;
    }
    
    .lightbox-info {
        padding: 15px;
        gap: 10px;
    }
    
    .lightbox-counter {
        font-size: 0.9rem;
    }
    
    .lightbox-download {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .lightbox-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .lightbox-download,
    .lightbox-download-hq {
        width: 100%;
    }
    
    .image-counter {
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 12px;
    }
    
    .button-group {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    #load-more-btn,
    .back-btn {
        width: 100%;
    }
}
