main {
    padding: 30px;
}

main h1 {
    margin-bottom: 25px;
    font-size: 2.2rem;
}

.gallery-cont {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-cont a {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: #111;
    box-shadow: 1px 1px 6px 0px #353535;
    transition: 
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.gallery-cont a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.gallery-cont img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    border: 1px solid var(--blue);
    border-radius: 10px;
    transition: transform 0.4s ease;
}

.gallery-cont a:hover img {
    transform: scale(1.05);
}


/* Tablet */
@media (max-width: 900px) {
    .gallery-cont {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Phone */
@media (max-width: 600px) {
    main {
        padding: 20px 15px;
    }

    .gallery-cont {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-cont img {
        height: 220px;
    }
}