/* General Styling */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure footer stays at bottom */
}

header {
    background: linear-gradient(to right, #222, #333); /* Gradient background */
    color: #f5f5f5; /* Light text color */
    padding: 1.5rem 0;
    text-align: center;
}

h1 {
    font-family: 'Playfair Display', serif; /* Elegant font */
    font-weight: 600;
    margin: 0;
}


main {
    flex: 1;  /* Allow main content to grow */
    padding: 20px;
}

/* Gallery Styling */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive columns */
    gap: 15px;
}

.photo {
    overflow: hidden; /* Hide overflow for zoom effect */
}

.close-button { /* Style for the close button */
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

/* Thumbnail Styling - Fixed size */
.thumbnail {
    width: 100%; /* Fill the container */
    height: 250px; /* Fixed height */
    object-fit: cover; /* Crop/resize to fit while maintaining aspect ratio */
    transition: transform 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.1); /* Zoom on hover */
    cursor: pointer;
}

#lightbox-caption {
    position: absolute; /* Position it relative to the lightbox */
    bottom: 10px; /* Place it at the bottom */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    background-color: rgba(0, 0, 0, 0.7); /* Make it readable */
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px; /* Adjust font size as needed */
    transition: opacity 0.3s ease; /* Add transition for smooth fading */
}

#lightbox-image:hover + #lightbox-caption, /* Hide when hovering over image OR */
#lightbox-image[style*="transform: scale(2)"] + #lightbox-caption { /* Hide when zoomed in */
    opacity: 0;
}
/* Lightbox Styling */
#lightbox-image:hover ~ .prev-button, /* Hide when hovering over image OR */
#lightbox-image:hover ~ .next-button, 
#lightbox-image:hover ~ .close-button,
#lightbox-image[style*="transform: scale(2)"] ~ .prev-button, /* Hide when zoomed in */
#lightbox-image[style*="transform: scale(2)"] ~ .next-button,
#lightbox-image[style*="transform: scale(2)"] ~ .close-button { 
    opacity: 0;
    pointer-events: none; /* Disable clicks when hidden */
}
/* Lightbox Styling */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 100;
    text-align: center;
    overflow: auto; 
}

#lightbox-image {
    max-width: 90%;
    max-height: 90%;
    margin: 20px auto;
}
/* Add styles for close-button, prev-button and next-button as needed */

footer {
    background: linear-gradient(to right, #222, #333);; /* Textured background */
    color: #ddd; 
    padding: 1rem 0;
    text-align: center;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
    color: #ddd;
    transition: color 0.2s ease;
}

.social-icons a:hover {
    color: #f5f5f5;
}
.lightbox-content {
    position: relative; /* Make it a positioning context for the buttons */
}

.prev-button, .next-button {
    position: absolute;
    top: 50%; /* Vertically center */
    /*right: 20px;*/ /* Adjust distance from right as needed */
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
}
.lightbox-content {
    position: relative;
}

.prev-button {
    left: 20px; /* Place on the left */
}

.next-button {
    right: 20px; /* Place on the right */
}