/* Gallery Polishing */
.gt-gallery-section {
    padding: 60px 0;
    background-color: #fcfcfc;
}

.gt-gallery-grid .col-lg-3 {
    padding: 10px;
}

.gt-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background: #fff;
    transition: all 0.4s ease;
    height: 250px;
    /* Fixed height for tiles alignment */
}

.gt-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gt-gallery-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.gt-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures images fill the tile properly */
    transition: transform 0.6s ease;
}

.gt-gallery-item:hover .gt-gallery-img {
    transform: scale(1.1);
}

.gt-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(73, 146, 2, 0.7);
    /* Using the primary green with transparency */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.gt-gallery-item:hover .gt-gallery-overlay {
    opacity: 1;
}

.gt-gallery-overlay i {
    color: #fff;
    font-size: 32px;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.gt-gallery-item:hover .gt-gallery-overlay i {
    transform: scale(1);
}

.gt-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    padding: 15px 10px 10px;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    z-index: 3;
    pointer-events: none;
    opacity: 0.9;
}

/* Ensure images in the grid are aligned properly despite different aspect ratios */
.gt-gallery-grid {
    display: flex;
    flex-wrap: wrap;
}

/* Lightbox customization to match theme */
#lightbox .lb-image {
    border-radius: 8px;
    border: 4px solid #fff;
}

#lightbox .lb-data .lb-caption {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}