.containerGallery {
    min-height: 100vh;
    width: 100%;
}

.containerGallery h1 {
    font-size: 2.5rem;
    font-weight: 1000;
    text-align: center;
    margin-bottom: 20px;
}

.section {
    padding: 100px 0;
    text-align: center;
    min-height: 100vh;
}

.polaroids {
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.polaroid {
    margin: 10px;
    position: relative;
    width: 250px; /* Adjust width for larger container */
    height: 300px; /* Adjust height for larger container */
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
    padding: 25px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
    box-sizing: border-box;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.polaroid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease; /* Transition for opacity */
    border-radius: 10px;
}

.polaroid h3 {
    margin-top: 10px; /* Adjust spacing between image and text */
    text-align: center;
    font-size: 1.2rem; /* Adjust font size as needed */
    color: black;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: black;
    font-weight: bolder;
    font-size: 20px;
    padding: 10px 20px;
    display: none;
    opacity: 1;
    text-align: center;
}

.polaroid:hover {
    transform: scale(1.1);
    color: black;
    text-decoration: none;
}

.polaroid h3:hover{
	font-weight: bolder;
}

.polaroid:hover img {
    opacity: 0.4;
}

.polaroid:hover .overlay-text {
    display: block;
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }

    .polaroid {
        width: 100%;
        margin-bottom: 20px;
        height: auto;
    }

    .polaroid img {
        height: auto;
    }

    .containerGallery{
    	padding: 60px 0;
    }
    .containerGallery h1{
    	font-size: 1.5rem;
    }
}
