body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

h1 {
    text-align: center;
    margin: 20px 0;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-item {
    display: inline-block;
    width: 200px;  /* Thumbnail width */
    height: 200px; /* Thumbnail height */
    margin: 10px;  /* Space between thumbnails */
    margin-bottom: 20px; /* Increased space between rows for tags visibility */
    position: relative;
    overflow: hidden;
    border: 3px solid #ccc;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.gallery-item video {
    max-width: 100%;  /* Allow the video to scale naturally */
    height: auto;
    display: block;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    padding: 5px;
    font-size: 14px;
    z-index: 1;
}

.tags-container {
    margin-top: 100px;
}

.tags {
    background-color: #333;  /* Dark grey background */
    color: white;            /* White text */
    font-family: Arial, sans-serif; /* Arial font */
    font-size: 12px;         /* Small font size */
    padding: 5px;
    text-align: center;
    border-radius: 3px;      /* Rounded corners (optional) */
}

.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    padding: 8px;
    text-decoration: none;
    background-color: #ddd;
    margin: 0 2px;
    color: black;
}

.pagination span {
    padding: 8px;
    background-color: #f0f0f0;
    margin: 0 2px;
    color: black;
    font-weight: bold;
}















