.yachts-title-wrapper {
    background: var(--color-black);
    padding-top: var(--spacing-large);
}

.yachts-title {
    color: var(--color-white);
    margin: 0;
}

.yachts-list-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
    position: relative;
    padding-top: var(--spacing-med);
    padding-bottom: var(--spacing-large);
}

.yachts-list-wrapper .withbg-svg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
}

.yacht-item {
    flex: 1 0 calc(33% - 32px);
    max-width: calc(33% - 16px);
}

.yacht-featured-image {
    object-fit: cover;
    aspect-ratio: 576 / 367;
}

.yacht-content {
    color: var(--color-black);
    background: var(--color-white);
    padding: clamp(10px, 2vw, 24px);
}

.yacht-title {
    font-size: var(--body-text-large) !important;
    font-weight: 400;
}

.yacht-title a {
    color: inherit
}

.yacht-excerpt {
    color: var(--Dark-Grey);
    font-size: 14px;
    font-weight: 400;
    line-height: 140%;
    margin-top: 16px;
}

.yacht-details {
    display: flex;
    gap: 24px;
}

.yacht-details span {
    color: var(--Dark-Grey);
    font-size: 16px;
    font-weight: 300;
    line-height: 140%;
    display: flex;
    align-items: center;
    gap: 5px;
}

.yacht-details span strong {
    color: var(--color-black);
    font-weight: bold;
}

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1200px) {
    
    .yacht-item {
        max-width: none;
    }
    
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 992px) {

    .yacht-details {
        gap: 10px;
        flex-direction: column;
    }

    .yacht-featured-image {
        min-height: 200px;
    }

}

/* X-Small devices (portrait phones, less than 576px) */
@media (max-width: 576px) { 

    .yachts-list-wrapper {
        flex-direction: column;
    }

}