.gallery-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)), url('../images/bg3.jpeg') no-repeat center center;
    background-size: cover;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

.gallery-hero h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-hero p {
    font-size: 1.2em;
    opacity: 0.9;
}

.gallery-filter {
    padding: 30px 0;
    background: #fff;
}

.filter-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.filter-btn {
    padding: 10px 20px;
    border: none;
    background: #f0f0f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: #333;
    color: #fff;
}

.gallery-grid {
    width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #f8f8f8;
}

.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    columns: 3;
    column-gap: 20px;
}


.grid-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.grid-item img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    text-align: center;
}

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

.grid-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay h3 {
    margin: 0 0 10px;
    font-size: 1.5em;
}

.item-overlay p {
    margin: 0 0 20px;
    font-size: 1em;
    opacity: 0.9;
}

.view-btn {
    padding: 8px 20px;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: #fff;
    color: #000;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: 2% auto;
}

.close-lightbox {
    position: absolute;
    right: -40px;
    top: -40px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

#lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    padding: 20px;
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 15px;
    cursor: pointer;
    border: none;
    font-size: 24px;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.load-more {
    text-align: center;
    padding: 40px 0;
    margin: 0 auto;
    width: 200px;
}

#load-more-btn {
    padding: 12px 30px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#load-more-btn:hover {
    background: #555;
}
