/* Demo Gallery Layout Styles */
.demo-gallery-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    height: 60vh;
    max-height: 700px;
    overflow: hidden;
    margin: 20px 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.5) 100%);
    border-radius: 12px;
}

#demo-gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.demo-gallery-item {
    position: absolute;
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    background: #f5f5f5;
}

.demo-gallery-item:hover {
    transform: scale(1.08);
    z-index: 100 !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.demo-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.demo-gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px 10px 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.demo-gallery-item:hover .overlay {
    opacity: 1;
}

.demo-gallery-item .overlay a {
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.demo-gallery-item .overlay a:hover {
    color: #ff9800;
}

.demo-gallery-title {
    text-align: center;
    margin-bottom: 15px;
    color: #ff9800;
}

@media (max-width: 992px) {
    .demo-gallery-section {
        min-height: 400px;
        height: 50vh;
    }

    .demo-gallery-item {
        width: 160px;
        height: 120px;
    }
}

@media (max-width: 600px) {
    .demo-gallery-section {
        min-height: 300px;
        height: 40vh;
        margin: 10px 0;
        border-radius: 0;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }

    .demo-gallery-item {
        width: 120px;
        height: 90px;
    }
}
