/* Grid */
.styling-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 160px 20px 60px;
    text-align: center;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    gap: 40px;
}

/* Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 10px 22px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #fff;
    color: #000;
}

/* Card */
.styling-card {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.styling-card:hover {
    transform: translateY(-6px);
}

.styling-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.card-images {
    position: relative;
    height: 380px;
    overflow: hidden;
}

.card-images img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;
    transition: opacity 0.4s ease;
    cursor: zoom-in;
}

.card-images img.active {
    opacity: 1;
}

/* Nav buttons */
.card-images .nav {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-images .nav {
    opacity: 1;
}

.card-images .prev {
    left: 0;
}

.card-images .next {
    right: 0;
}

.card-text {
    padding: 25px;
}

/* Mobile */
@media (max-width: 768px) {
    .styling-grid {
        grid-template-columns: 1fr;
        padding: 160px 20px 60px;
    }

    .styling-card img {
        height: 300px;
    }
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;

    background: rgba(0, 0, 0, 0.9);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;

    z-index: 9999;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}
