/* Gallery Styles */
.gallery-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.gallery-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    font-weight: 700;
    color: #333;
    position: relative;
}

.gallery-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #e53e29;
    margin: 15px auto 0;
}

.gallery-item {
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #fff;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-img-container {
    overflow: hidden;
    position: relative;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: pointer;
}

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

.gallery-caption {
    padding: 20px;
    text-align: center;
}

.gallery-caption h4 {
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Modal Styles */
#galleryModal{
    background-color: papayawhip;
}

.gallery-modal .modal-dialog {
    max-width: 90%;
    max-height: 90vh;
    margin: 5vh auto;
}

.gallery-modal .modal-content {
    background: transparent;
    border: none;
}

.gallery-modal .modal-header {
    border: none;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.gallery-modal .modal-title {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-size: 24px;
    font-weight: 600;
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0 20px;
}

.gallery-modal .modal-body {
    padding: 0;
    text-align: center;
}

.gallery-modal .modal-img {
    max-height: 80vh;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    display: block;
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.btn-close {
    /* filter: invert(1); */
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 11;
    color: black;
}

.btn-close:hover {
    opacity: 1;
}
