/* Reset and Styling */
body {
    margin: 0;
    padding: 0;
    font-family: Helvetica, Arial, sans-serif;
    background-color: #f8f4f0; /* Stylish off-white */
    text-align: center;
}

/* Header Styling */
.main-header {
    position:relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px; /* Increased padding for better alignment */
    font-family: Helvetica, Arial, sans-serif;
    background-color: #f8f4f0;
    color: #333;
}

.main-header h1 {
    font-size: 3rem; /* Large, modern font size */
    font-weight: 130; /* Slightly lighter font weight for a modern feel */
    letter-spacing: 0.2em; /* Stylish spacing between letters */
    margin: 0 auto;
    text-transform: uppercase;
    color: #333; /* Subtle dark color for text */
}
    

    

/* Intro Text */
.intro-text {
    margin: 20px auto;
    max-width: 700px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; /* Modern font family */
    font-size: 0.85rem;
    line-height: 1.4;
    color: #444; /* Slightly darker text for readability */
    padding: 20px;
    background-color: #f8f4f0;
    border-radius: 10px;
}

.footer {
    position: fixed; /* Make footer hover above content */
    bottom: 0; /* Stick to the bottom of the viewport */
    width: 100%; /* Full-width footer */
    padding: 15px 0;
    font-size: 0.7rem;
    color: #555;
    text-align: center;
    z-index: 1000; /* Ensure it stays above all other elements */
}

/* Gallery Link */
.gallery-link {
    margin: 40px auto;
}

.gallery-link a {
    text-decoration: none;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; /* Modern font */
    font-size: 1.5rem; /* Big and bold */
    color: #222;
    letter-spacing: 0.16em; /* Slight letter spacing for elegance */
    padding: 10px 15px;
    border: 2px solid #222; /* Bold border for high-fashion feel */
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.gallery-link a:hover {
    background-color: #000;
    color: #ddd;
    transform: scale(1.05); /* Slight zoom for hover effect */
}




/* Masonry Container */
.masonry-container {
    column-count: 4; /* Number of columns */
    column-gap: 15px; /* Gap between columns */
    padding: 10px;
}

.gallery-item {
    display: inline-block;
    margin: 0 0 15px; /* Space between rows */
    width: 100%; /* Ensure images fill their parent column */
}

.gallery-item img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block;
    border-radius: 5px; /* Optional: Rounded corners */
    cursor: pointer; /* Show clickable pointer */
}

/* Lightbox Viewer */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dark transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox.hidden {
    display: none;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 2px; /* Optional: Rounded corners */
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.lightbox .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    user-select: none;
    z-index: 1001;
}

.lightbox .nav.left {
    left: 20px;
}

.lightbox .nav.right {
    right: 20px;
}

/* Hide gallery container initially */
.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Fade-in effect for gallery container */
.fade-in {
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease-in-out;
}

/* Masonry Container Styling */
.masonry-container {
    column-count: 4;
    column-gap: 15px;
    padding: 10px;
}

.gallery-item {
    display: inline-block;
    margin: 0 0 15px;
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

/* Back Arrow Styling */
.back-arrow {
    position: absolute;
    top: 50%; /* Center vertically relative to the header */
    left: 20px; /* Fixed padding from the left */
    transform: translateY(-60%); /* Perfect vertical alignment */
    font-size: 2rem;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    z-index: 1001; /* Ensure it stays above other elements */
}

/* Responsive Adjustments for Smaller Screens */
@media screen and (max-width: 768px) {
    .back-arrow {
        left: 10px; /* Reduce left padding on smaller screens */
    }
}

/* Lightbox Image Transition */
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.lightbox img.left {
    transform: translateX(-100%);
    opacity: 0;
}

.lightbox img.right {
    transform: translateX(100%);
    opacity: 0;
}

/* Lightbox Image Dragging */
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    touch-action: pan-y; /* Prevent vertical scrolling conflicts */
    will-change: transform; /* Optimize for smoother animations */
}