html,
body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
    overflow: hidden;
}

/* Thumbnail container styling */
.thumbnail-container {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.thumbnail-container img {
    transition: transform 0.3s ease;
}

.thumbnail-container:hover img {
    transform: scale(1.10);
}

.thumbnail-container .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumbnail-container:hover .overlay {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .thumbnail-container img {
        height: 160px;
    }

    .thumbnail-container h3 {
        font-size: 1.125rem;
    }

    .thumbnail-container p {
        font-size: 0.875rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .thumbnail-container img {
        height: 180px;
    }
}

h1,
h2,
h3,
p {
    word-wrap: break-word;
}

.navbar-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    overflow-x: hidden;
}