* {
    margin: 0;
    padding: 0;
}

h3.d-inline {
    font-size: 3rem;
    font-weight: bold;
    color: #f0f0f0;
    margin-bottom: 20px;
    text-align: center;
}

body {
   
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    background-color: #12121236;
    color: #ffffff;
}

.main-content {
    background-color: #174163;
    padding: 40px 20px;
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 1200px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.gallery-item {
    position: relative;
    width: 100%;
    max-width: 320px; 
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
}

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


.description {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    text-align: center;
    box-sizing: border-box;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.image-container:hover .description {
    opacity: 1;
    transform: translateY(0);
}

.description h3 {
    margin: 0;
    font-size: 18px;
    color: #ffffff;
}

.description p {
    margin-top: 10px;
    font-size: 14px;
}

@media (max-width: 768px) {
 
    .gallery-item {
        max-width: 100%;
    }

    h3.d-inline {
        font-size: 2.5rem;
    }

    .main-content {
        padding: 20px;
    }
}

@media (max-width: 576px) {
   
    h3.d-inline {
        font-size: 2rem;
    }

    .gallery-item {
        max-width: 100%;  
    }
}
