body {
    font-family: Arial, sans-serif;
    margin: 20px;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.gallery-item {
    text-align: center;
    max-width: 256px;
}

.gallery-item img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    cursor: pointer;
}

.gallery-item p {
    margin: 5px 0;
}

/* Image Overlay Styles */
.image-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.image-overlay.show {
    display: flex;
}

.image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    max-width: 1200px;
    height: 80vh;
}

.image-current {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    z-index: 3;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.image-prev, .image-next {
    position: absolute;
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
    opacity: 0.4;
    z-index: 2;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.image-prev {
    transform: translateX(-100%);
    left: -30%;
}

.image-next {
    transform: translateX(100%);
    right: -30%;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    z-index: 4;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 4;
}

/* Admin Styles */
.admin-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 10px;
}

.admin-btn:hover {
    background: #0056b3;
}

.admin-container {
    max-width: 1000px;
    margin: 0 auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

th {
    background: #f4f4f4;
}

.small-thumb {
    width: 32px;
    height: auto;
    vertical-align: middle;
    margin-right: 5px;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    margin-bottom: 5px;
}
