﻿
.title {
    text-align: center;
    font-size: 28px;
    margin: 20px 0;
    color: #a94442;
    position: relative;
}

.title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background-color: #a94442;
}

/* Button Navigation */
.gallery-nav-section {
    margin-top: 20px;
}

.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.gallery-btn {
    background-color: rgb(194, 7, 7);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-width: 150px;
}

    .gallery-btn:hover {
        background-color: #33b040;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .gallery-btn.active {
        background-color: #ffb303;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    }

/* Content Sections */
.gallery-sections {
    display: none;
    animation: fadeIn 0.5s ease;
}

    .gallery-sections.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Gallery Grid */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 70px;
}

.gallery-item1 {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    height: 250px;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .gallery-item1:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item1:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); */
    color: white;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item1:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    font-size: 14px;
    margin: 0;
}

/* Modal for image viewing */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    display: block;
    max-width: 90%;
    max-height: 80%;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-caption {
    text-align: center;
    color: white;
    padding: 10px 0;
    font-size: 16px;
    position: absolute;
    bottom: 20px;
    width: 100%;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
}

    .close:hover {
        color: #bbb;
    }

/* Navigation arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 16px;
    transition: 0.3s;
    user-select: none;
    z-index: 1001;
}

    .nav-arrow:hover {
        background-color: rgba(0,0,0,0.8);
        border-radius: 3px;
    }

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .gallery-nav {
        gap: 12px;
    }

    .gallery-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 130px;
    }
}

@media (max-width: 768px) {
    .gallery-nav {
        flex-direction: row;
        gap: 8px;
    }

    .gallery-btn {
        padding: 8px 10px;
        font-size: 12px;
        min-width: 110px;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .nav-arrow {
        font-size: 30px;
        padding: 12px;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .gallery-nav {
        flex-direction: row;
        gap: 6px;
    }

    .gallery-btn {
        width: auto;
        padding: 6px 8px;
        font-size: 11px;
        min-width: 90px;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .gallery-item1 {
        height: 180px;
    }

    .nav-arrow {
        font-size: 24px;
        padding: 8px;
    }
}

