/* Photo Grid Section */
.photo-grid {
    padding: 40px 0;
}

/* Responsive Grid Layout */
.photo-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px; /* Adjust gap for spacing */
}

/* Photo Item */
.photo-item {
    text-align: left;
    position: relative;
}

/* Image Wrapper */
.photo-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 380px; /* Fixed height */
    border-radius: 2px;
}

/* Image Styles */
.photo-img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease-in-out;
}

/* Hover Effect - Image Slight Zoom */
.photo-item:hover .photo-img {
    transform: scale(1.05);
}

/* Hover Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 39, 95, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
}

/* Show Overlay on Hover */
.photo-item:hover .overlay {
    opacity: 1;
    background: rgba(0, 39, 95, 0.6);
}

/* Hover Title Animation */
.hover-title {
    transform: translateY(10px);
    transition: transform 0.3s ease-in-out;
}

.photo-item:hover .hover-title {
    transform: translateY(0);
}

/* Title Below Image */
.photo-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 400;
    margin-top: 10px;
}

/* SVG Icon Styling */
.photo-title svg {
    width: 18px;
    height: 18px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .photo-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .photo-grid-wrapper {
        grid-template-columns: repeat(1, 1fr);
    }
}
