.section-6 {
    margin: 0;
    padding: 20px;
    padding-top: 6rem;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    background: #111;
    height: fit-content;
    flex-direction: column;
}

.section-6>h1 {
    font-size: 36pt;
    font-weight: bold;
    color: white;
    text-shadow: 3px 2px 8px #0008;
}

/* GRID */

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* TABLET */

@media (max-width:1000px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* PHONE */

@media (max-width:600px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* ITEM */

.item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

/* IMAGE */

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* HOVER ZOOM */

.item:hover img {
    transform: scale(1.15);
}

/* OVERLAY */

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.item:hover .overlay {
    opacity: 1;
}

.overlay h2 {
    margin-bottom: 10px;
}

.overlay p {
    font-size: 0.9rem;
    line-height: 1.4;
}
#section-6 {
    max-width: 800px;
}