main {
    background-color: #272d31;
    padding: 50px 10px;
    box-shadow: 0 15px 30px hsla(0,0%,0%,.5);
}

.main-wrap {
    z-index: 10;
    position: relative;
}

/* Parallax Hero */
.parallax-hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    z-index: -1;
}


@media only screen and (max-width: 768px)  {

    .parallax {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-image: url('https://anthonyabuhanna.com/test/uploads/galleries/concert/aa-concert-hero-2024-mobile.webp');
        background-attachment: fixed;
        background-position: center;
        z-index: -1;
    }

}

.hero-title {
    z-index: 1;
    font-size: 3em;
    text-wrap: wrap;
    width: 80vw;
}

/** Hero Images **/

.concert-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1) 100%), url('../uploads/galleries/concert/anthonyabuhanna-concerts-hero.jpg');
}

.travel-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1) 100%), url('../uploads/galleries/landscape/landscape-hero.jpg');
}

.beverage-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1) 100%), url('../uploads/galleries/beverage/anthonyabuhanna-bev-hero.webp');
}


/* Gallery Styles */
.gallery {
    max-width: 1400px;
    margin: 0px auto;
}

.gallery-grid {
    padding: 2rem 0;
    position: relative;
}

.gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    vertical-align: top; /* Prevent baseline alignment issues */
    /* Initial state for fade-in animation */
    opacity: 0;
    transform: translateY(20px);
}

.gallery-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    display: block;
    max-width: 100%;
    object-fit: cover; /* Ensure consistent aspect ratios */
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 1000px;
    max-height: 90vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: -60px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0;
    line-height: 0;
    font-family: Arial, sans-serif;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.lightbox-image.loading {
    opacity: 0;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 0;
    font-family: Arial, sans-serif;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: -100px;
}

.lightbox-next {
    right: -100px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .main {
        margin-top: 120px;
        padding: 1rem;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .gallery-grid {
        padding: 1rem 0;
    }

    .gallery-item {
        margin-bottom: 1.5rem;
    }

    .lightbox-content {
        width: 95vw;
        max-height: 85vh;
    }

    .lightbox-image {
        max-height: 75vh;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        padding: 0;
        line-height: 0;
        font-family: Arial, sans-serif;
    }
    
    .lightbox-prev {
        left: -70px;
    }
    
    .lightbox-next {
        right: -70px;
    }
    
    .lightbox-close {
        top: -50px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        padding: 0;
        line-height: 0;
        font-family: Arial, sans-serif;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Macy.js will handle responsive columns via breakAt option */
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .gallery-grid {
        padding: 1rem 0;
    }

    .gallery-item {
        margin-bottom: 1rem;
    }
}

/* Animation for filtered items */
.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

/* Loading and error states */
.loading-message,
.error-message,
.no-images-message {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    font-size: 1.1rem;
}

.no-images-message code {
    background: #f5f5f5;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #333;
}

.no-images-message ul {
    margin-top: 1rem;
    text-align: left;
    display: inline-block;
}

/* Gallery Links Styles */
.gallery-links {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.gallery-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-link {
    display: block;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.gallery-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.gallery-link h3 {
    font-size: 1.5rem;
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.gallery-link p {
    color: #666;
    font-weight: 300;
    line-height: 1.6;
}