.gallery-page {
    padding-top: 10px;
    background-color: #f9f9f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-intro h1 {
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 30px;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid #c5a059;
    background: none;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: #c5a059;
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    width: 85%;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item.hidden { display: none; }

.item-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: 0.3s;
}

.gallery-item:hover .item-overlay { opacity: 1; }
.item-overlay span { color: white; border: 1px solid white; padding: 5px 15px; font-size: 0.7rem; }

.lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: none; justify-content: center; align-items: center;
    z-index: 9999;
}

#lightbox-img { max-width: 90%; max-height: 85%; object-fit: contain; }
.close-lightbox { position: absolute; top: 30px; right: 40px; color: white; font-size: 50px; cursor: pointer; }

/* --- FLOATING BACK BUTTON --- */
.back-floating-btn {
    position: fixed;
    top: 130px; /* Sits below your 100px navbar */
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    line-height: 1;
    padding-bottom: 3px; /* Adjust this 1-3px until it "looks" right to the eye */
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 9999; /* Ensure it stays on top */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}
.back-floating-btn:hover, 
.back-floating-btn:focus {
    background-color: #c5a059;
    outline: none; /* If you provide a clear custom focus style */
    color: #fff;
    border-color: #c5a059;
    transform: translateX(-5px); /* Nudge left on hover */
}

.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 50px; height: 50px; border-radius: 50%;
    background: #c5a059; color: white; border: none;
    font-size: 20px; cursor: pointer; display: none; z-index: 2000;
}

@media (max-width: 420px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

