/*
Theme Name: Twenty Twenty Five Child
Description: Child theme of Twenty Twenty Five
Template: twentytwentyfive
Version: 1.0
*/

@import url("../twentytwentyfive/style.css");

/* Gallery Lightbox CSS - Paste your gallery CSS below this line */
/* Twenty Twenty Five - 3 Column Gallery with Lightbox */

/* Gallery Layout - 3 Columns */
.wp-block-gallery.has-nested-images {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.wp-block-gallery.has-nested-images figure.wp-block-image {
    margin: 0 !important;
    width: 100% !important;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.wp-block-gallery.has-nested-images figure.wp-block-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.wp-block-gallery.has-nested-images figure.wp-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wp-block-gallery.has-nested-images figure.wp-block-image:hover img {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .wp-block-gallery.has-nested-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .wp-block-gallery.has-nested-images figure.wp-block-image {
        height: 100%;
    }
}

@media (max-width: 480px) {
    .wp-block-gallery.has-nested-images {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .wp-block-gallery.has-nested-images figure.wp-block-image {
        height: 250px;
    }
}

/* Lightbox Styles */
.gallery-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.gallery-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lightboxFadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: lightboxZoomIn 0.3s ease;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Animations */
@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lightboxZoomIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Lightbox Adjustments */
@media (max-width: 768px) {
    .lightbox-close {
        top: -30px;
        font-size: 24px;
    }
    
    .lightbox-nav {
        font-size: 18px;
        padding: 12px 15px;
    }
    
    .lightbox-prev {
        left: -50px;
    }
    
    .lightbox-next {
        right: -50px;
    }
    
    .lightbox-counter {
        bottom: -30px;
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 85%;
    }
    
    .lightbox-nav {
        position: fixed;
        top: auto;
        bottom: 20px;
        transform: none;
    }
    
    .lightbox-prev {
        left: 20px;
    }
    
    .lightbox-next {
        right: 20px;
    }
    
    .lightbox-close {
        position: fixed;
        top: 20px;
        right: 20px;
    }
}