
/* Gallery Specific Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.gallery-masonry {
    column-count: 1;
    column-gap: 24px;
    margin-top: 40px;
}
@media (min-width: 768px) {
    .gallery-masonry { column-count: 2; }
}
@media (min-width: 1024px) {
    .gallery-masonry { column-count: 3; }
}
.gallery-masonry .gallery-item {
    break-inside: avoid;
    margin-bottom: 24px;
}
.gallery-masonry .gallery-img-wrapper {
    aspect-ratio: auto;
}
.gallery-masonry .gallery-img-wrapper img {
    height: auto;
    object-fit: contain;
}
.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    background: #fff;
    border: 1px solid #eef2f7;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.gallery-img-wrapper {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}
.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover .gallery-img-wrapper img {
    transform: scale(1.05);
}
.gallery-content {
    padding: 16px;
}
.gallery-content h3 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 8px;
}
.gallery-content p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
}
.gallery-lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    z-index: 999999 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}
.gallery-lightbox.active {
    opacity: 1;
    pointer-events: all;
}
.lightbox-content {
    max-width: 900px;
    width: 100%;
    max-height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 1;
    min-height: 0;
}
.lightbox-caption {
    display: none !important;
    color: #fff;
    text-align: center;
    margin-top: 16px;
    font-size: 1.1rem;
    width: 100%;
    padding: 0 10px;
    flex-shrink: 0;
}
.lightbox-caption small {
    display: block;
    margin-top: 8px;
    color: #cbd5e1;
    font-size: 0.9rem;
}
.lightbox-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    background: rgba(0,0,0,0.3);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s ease;
}
.lightbox-close:hover {
    background: rgba(0,0,0,0.7);
}
@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
    .lightbox-caption {
        font-size: 0.95rem;
    }
    .lightbox-caption small {
        font-size: 0.8rem;
    }
}
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    justify-content: center;
}
.filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #eef2f7;
    background: #fff;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
