.faux-toe-gallery {
    display: grid;
    gap: 2px;
    max-width: 100%;
    margin: 20px 0;
}

.faux-toe-gallery[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.faux-toe-gallery[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.faux-toe-gallery[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
.faux-toe-gallery[data-columns="5"] { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 768px) {
    .faux-toe-gallery[data-columns="4"], 
    .faux-toe-gallery[data-columns="5"] { 
        grid-template-columns: repeat(3, 1fr); 
    }
}

@media (max-width: 480px) {
    .faux-toe-gallery { 
        grid-template-columns: repeat(2, 1fr) !important; 
    }
}

.faux-toe-gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
}

.faux-toe-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.faux-toe-gallery-item:hover img {
    transform: scale(1.05);
}

.faux-toe-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
	max-width:100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.faux-toe-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
	max-width:100%;
    height: 100%;
    cursor: pointer;
}

.faux-toe-lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
}

.faux-toe-lightbox-image {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    cursor: default;
}

.faux-toe-lightbox-caption {
    color: white;
    font-size: 18px;
    text-align: center;
    margin-top: 20px;
    padding: 0 20px;
    cursor: default;
}

.faux-toe-lightbox-close,
.faux-toe-lightbox-prev,
.faux-toe-lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.faux-toe-lightbox-close:hover,
.faux-toe-lightbox-prev:hover,
.faux-toe-lightbox-next:hover {
    opacity: 0.7;
}

.faux-toe-lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 40px;
}

.faux-toe-lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
}

.faux-toe-lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
}

@media (max-width: 768px) {
    .faux-toe-lightbox-prev {
        font-size: 40px;
        left: 10px;
    }
    
    .faux-toe-lightbox-next {
        font-size: 40px;
        right: 10px;
    }
    
    .faux-toe-lightbox-close {
        font-size: 30px;
        top: 10px;
        right: 10px;
    }
}