/* ========== GALLERY IMAGE STYLING ========== */
.gallery-item .gallery-img {
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Subtle zoom on hover */
.gallery-item:hover .gallery-img {
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* ========== OVERLAY STYLING (No blur, just glow) ========== */
.gallery-item .overlay-text {
    position: absolute;
    inset: 0;
    background: rgba(45, 70, 94, 0.35);
    /* transparent bluish overlay */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

/* Hover reveal */
.gallery-item:hover .overlay-text {
    opacity: 1;
    transform: translateY(0);
    background: rgba(45, 70, 94, 0.65);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* ========== ICON & TEXT EFFECTS ========== */
.floating-icon {
    color: #a8c4e0;
    text-shadow: 0 0 6px rgba(168, 196, 224, 0.5), 0 0 12px rgba(168, 196, 224, 0.3);
    animation: float 3s ease-in-out infinite;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.floating-text {
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
    animation: float 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

/* Enhance hover visuals */
.gallery-item:hover .overlay-text i,
.gallery-item:hover .overlay-text span {
    color: #ffffff;
    transform: scale(1.05);
}

/* ========== CAPTION STYLING ========== */
.photo-caption {
    background: #f8fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0 0 6px 6px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Caption hover lift */
.gallery-item:hover .photo-caption {
    background: #e9f0f7;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Caption title & subtext */
.caption-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d465e;
    margin: 0;
    text-transform: capitalize;
}

.caption-subtext {
    font-size: 0.85rem;
    color: #6b7b8c;
    margin: 2px 0 0 0;
}

/* ========== ANIMATIONS ========== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}