/* ========================= */
/*  GALLERY SECTION          */
/* ========================= */

.gallery {
    width: 75%;
    margin: auto;
    padding: 40px;
    height: 100vh;
    position: relative;
}

/* ========================= */
/*  TITLE                    */
/* ========================= */

.title-gallery {
    text-align: center;
    font-size: 5em;
    color: #28a4fa;
    opacity: 0.7;
    margin-bottom: 24px;
    pointer-events: none;
    line-height: 1;
}

/* ========================= */
/*  GRID                     */
/* ========================= */

.gallery-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    height: 65vh;
    overflow: hidden;

    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
}

/* ========================= */
/*  COLUMN                   */
/* ========================= */

.column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateY(0);
    will-change: transform;
}

/* ========================= */
/*  ITEM                     */
/* ========================= */

.item {
    width: 180px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    flex-shrink: 0;
    background: #f5f5f5;
}

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

/* ========================= */
/*  RESPONSIVE – SIZE CONTROL*/
/* ========================= */

/* Laptop ↓ */
@media (max-width: 1200px) {
    .title-gallery {
        font-size: 4em;
    }

    .gallery-grid .column:nth-child(4),
    .gallery-grid .column:nth-child(5) {
        display: none;
    }
}

/* Tablet ↓ */
@media (max-width: 900px) {
    .title-gallery {
        font-size: 3.2em;
    }

    .gallery {
        width: 85%;
        padding: 32px;
    }


    .gallery-grid .column:nth-child(3),
    .gallery-grid .column:nth-child(4),
    .gallery-grid .column:nth-child(5) {
        display: none;
    }
}

/* Mobile ↓ */
@media (max-width: 600px) {
    .title-gallery {
        font-size: 2.4em;
    }

    .gallery {
        width: 90%;
        padding: 24px;
    }

    .gallery-grid .column:not(:first-child) {
        display: none;
    }
}
