﻿/* --- Header Styling --- */
.gallery-title {
    color: #543c29;
    font-weight: 600;
    margin-bottom: 5px;
}

.gallery-subtitle {
    color: #777;
    font-size: 14px;
}

/* Back Button */
.back-btn {
    background-color: transparent;
    border: 1px solid #b2713d;
    color: #b2713d;
    border-radius: 50px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

    .back-btn:hover {
        background-color: #b2713d;
        color: #fff;
    }

/* --- Gallery Item Styling --- */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    height: 250px; /* Fixed height for uniformity */
}

    /* The Image */
    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    /* Hover Effect: Zoom Image */
    .gallery-item:hover img {
        transform: scale(1.1);
    }

/* --- The Overlay (Hidden by default) --- */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(84, 60, 41, 0.85); /* Brown overlay with opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show overlay on hover */
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Content inside overlay */
.overlay-content {
    text-align: center;
    transform: translateY(20px); /* Slide up animation */
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

/* Title inside overlay */
.img-title {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    transform: translateY(-10px);
}

/* The Zoom Icon Button */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #fff;
    color: #b2713d;
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
}

    .icon-btn:hover {
        background-color: #b2713d;
        color: #fff;
    }
