/**
 * You Might Also Like Widget Styles
 *
 */

.map-you-might-also-like-widget {
    width: 100%;
}

.map-you-might-also-like-widget .section-title {
    margin: 0;
    padding: 0;
}

/* Projects Container */
.map-you-might-also-like-widget .projects-container {
    width: 100%;
}

/* Individual Project Card */
.map-you-might-also-like-widget .project-card {
    flex: 0 0 auto;
    width: 421px;
    min-width: 0;
}

/* Project Image Wrapper */
.map-you-might-also-like-widget .project-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
    box-sizing: border-box;
}

.map-you-might-also-like-widget .project-image-wrapper:hover .arrow-icon {
    transform: rotate(45deg);
}

/* Project Image */
.map-you-might-also-like-widget .project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    z-index: 1;
}

/* Arrow Icon */
.map-you-might-also-like-widget .arrow-icon {
    position: relative;
    width: 80px;
    height: 80px;
    opacity: 1;
    transition: transform 0.3s ease;
    pointer-events: none;
    z-index: 2;
    flex-shrink: 0;
}

/* Project Title */
.map-you-might-also-like-widget .project-title {
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
    display: block;
}

.map-you-might-also-like-widget .project-title:hover {
    opacity: 0.8;
}

/* Responsive Design */

/* Large Desktop (lg breakpoint: 992px and up) */
@media (min-width: 992px) {
    .map-you-might-also-like-widget .project-card {
        width: 421px;
    }
}

/* Tablet (md breakpoint: 768px - 991px) */
@media (max-width: 991px) {

    .map-you-might-also-like-widget .project-image-wrapper {
        padding: 16px;
    }

    .map-you-might-also-like-widget .arrow-icon {
        width: 60px;
        height: 60px;
    }
}

/* Small Tablet (sm breakpoint: 576px - 767px) */
@media (max-width: 767px) {
    .map-you-might-also-like-widget .project-card {
        width: 100%;
    }

    .map-you-might-also-like-widget .project-image-wrapper {
        padding: 16px;
    }

    .map-you-might-also-like-widget .arrow-icon {
        width: 60px;
        height: 60px;
    }
}


@media (max-width: 767px) {
  .map-you-might-also-like-widget .projects-container {
    overflow-x: auto;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory; 
  }

  .map-you-might-also-like-widget .project-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }
}

/* Mobile (max-width: 575px) */
@media (max-width: 575px) {
    .map-you-might-also-like-widget .project-card {
        width: 100%;
    }

    .map-you-might-also-like-widget .project-image-wrapper {
        padding: 12px;
    }

    .map-you-might-also-like-widget .arrow-icon {
        width: 50px;
        height: 50px;
    }

    .map-you-might-also-like-widget .section-title {
        font-size: 12px;
    }
}

