/* Gallery CSS with dt- prefix */

.dt-gallery-container {
    margin-top: 40px;
    margin-bottom: 40px;
}

.dt-gallery-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.dt-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.dt-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.dt-gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.dt-gallery-item:hover .dt-gallery-image {
    transform: scale(1.05);
}

.dt-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dt-gallery-item:hover .dt-gallery-overlay {
    opacity: 1;
}

.dt-gallery-icon {
    font-size: 40px;
    color: #fff;
}

/* Lightbox Custom Styles */
.lsb-container {
    z-index: 9999 !important;
}

.lsb-container .lsb-bar {
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

.lsb-container .lsb-prev,
.lsb-container .lsb-next {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    cursor: pointer;
}

.lsb-container .lsb-prev:hover,
.lsb-container .lsb-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.lsb-container .lsb-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 28px;
}

.lsb-container .lsb-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .dt-gallery-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .dt-gallery-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .dt-gallery-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .dt-gallery-image {
        height: 150px;
    }

    .dt-gallery-icon {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .dt-gallery-container {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .dt-gallery-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
        padding: 10px 0;
    }

    .dt-gallery-image {
        height: 120px;
    }

    .dt-gallery-icon {
        font-size: 24px;
    }
}
