/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Verdana', Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Image Gallery */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; /* Adds spacing between items */
    justify-content: center;
    padding: 10px;
    background-color: #f4f4f4;
}

.gallery-item {
    width: 150px; /* Thumbnail size */
    overflow: hidden;
    border-radius: 5px;
}

.gallery-item img {
    width: 100%; /* Ensures image fits within its container */
    height: auto; /* Maintains aspect ratio */
    border-radius: 5px;
    border: 1px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Photo Container for Individual View */
.photo-container {
    text-align: center;
    padding: 20px;
    max-width: 90%; /* Restrict container width */
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 1.2em;
    color: #000040;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.image-wrapper {
    max-width: 90%; /* Restricts image width */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper img {
    max-width: 100%; /* Ensures responsiveness */
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.alt-text {
    margin-top: 15px;
    font-size: 1em;
    color: #666;
}

/* Media Query for Small Screens */
@media (max-width: 768px) {
    .gallery-item {
        width: 100px; /* Reduce thumbnail size for smaller screens */
    }

    .photo-container {
        padding: 10px;
    }

    .back-link {
        font-size: 1em;
    }
}
