/* Photo Gallery Container Styles */
.photo-gallery-part {
    padding: 60px 0;
    background-color: #f9fbfd;
}

#galleryModalTitle {
    color: #ffffff;
}

/* Gallery Card Styles */
.gallery-card {
    cursor: pointer;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-media {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

.gallery-card:hover .gallery-media img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(223, 161, 12, 0.7); /* Using the warm orange/gold color */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: #fff;
    font-size: 32px;
    transform: scale(0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-card:hover .gallery-overlay i {
    transform: scale(1);
}

.gallery-div {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.gallery-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-description {
    margin: 0 0 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.gallery-date {
    margin: 0;
    font-size: 13px;
    color: #999;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gallery-date i {
    color: #111;
}

/* Modal Lightbox Enhancement */
.modal-xl {
    max-width: 1200px;
}

#galleryModal .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

#galleryModal .modal-header {
    border-bottom: none;
    padding: 20px 25px;
}

#galleryModalTitle {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

#galleryModal .btn-close {
    background-color: #ffffff;
    opacity: 0.9;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    padding: 10px;
    margin: -5px 0 -5px auto;
}

#galleryModal .btn-close:hover {
    opacity: 1;
    transform: scale(1.1) rotate(90deg);
    background-color: #dfa10c;
}

.gallery-lightbox {
    width: 100%;
}

.lightbox-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.image-counter {
    font-size: 15px;
    font-weight: 600;
    color: #dfa10c;
}

.lightbox-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.lightbox-image-container {
    flex: 1;
    text-align: center;
    padding: 20px;
}

.lightbox-image {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.lightbox-nav {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    transition: background 0.3s ease;
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 15px 0;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.lightbox-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.thumbnail-item {
    flex: 0 0 80px;
    height: 60px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.thumbnail-item.active {
    border-color: #007bff;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .gallery-media {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .lightbox-container {
        min-height: 300px;
    }

    .lightbox-image {
        max-height: 350px;
    }

    .lightbox-nav {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .thumbnail-item {
        flex: 0 0 60px;
        height: 45px;
    }

    .gallery-media {
        height: 220px;
    }

    .gallery-title {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .gallery-media {
        height: 200px;
    }
}

.inner-section {
    margin-bottom: 0px;
}
