.yachts_section{
    padding: 100px 0 90px 0;
}


.yachts_section h6{
    margin: 16px 0 7px 0;
    color: #bfa888;
    z-index: 2;
    position: relative;
    font-size: 13px;
    line-height: 1.54em;
    letter-spacing: 0.25em;
    word-wrap: break-word;
    font-family: 'Inconsolata', monospace;
}

.yachts_section h1{
    z-index: 2;
    position: relative;
    color: #000;
    font-size: 63px;
    line-height: .95em;
    letter-spacing: .05em;
    word-wrap: break-word;
    font-family: 'Cormorant Upright', serif;
}

.yachts_text{
    padding: 0% 20% 0% 20%;
}

.pt-60{
    padding-top: 60px;
}

.yachts_section p{
    font-size: 17px;
    line-height: 28px;
    font-family: Roboto, sans-serif;
    color: #404040;
    font-variant-numeric: lining-nums;
}

.yachts_section .small_img{
    margin-bottom: 37px;
}

.yacht_card{
    min-width: calc(50% - 20px);
	max-width: calc(50% - 20px);
	flex: 1 1 0;
}

.yachts_section .gap-30{
    row-gap: 30px;
    column-gap: 35px;
}


.yachts_section .tour_img_container{
    border: 1px solid #dddddd;
    padding: 7px;
    position: relative;
    transition: all 0.3s ease-in-out;
    margin-bottom: 30px;
}

.yachts_section .tour_img_container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: 
        linear-gradient(90deg, #bfa888 0%, #bfa888 100%) top left,
        linear-gradient(180deg, #bfa888 0%, #bfa888 100%) top right,
        linear-gradient(270deg, #bfa888 0%, #bfa888 100%) bottom right,
        linear-gradient(0deg, #bfa888 0%, #bfa888 100%) bottom left;
    background-size: 
        0 1px,
        1px 0,
        0 1px,
        1px 0;
    background-repeat: no-repeat;
    pointer-events: none;
}

.yachts_section .tour_img_container::before {
    animation: border-animation-reverse 2s ease-in-out forwards;
}

.yachts_section .tour_img_container:hover::before {
    animation: border-animation 2s ease-in-out forwards;
}

@keyframes border-animation {
    0% {
        background-size: 0 1px, 1px 0, 0 1px, 1px 0;
    }
    25% {
        background-size: 100% 1px, 1px 0, 0 1px, 1px 0;
    }
    50% {
        background-size: 100% 1px, 1px 100%, 0 1px, 1px 0;
    }
    75% {
        background-size: 100% 1px, 1px 100%, 100% 1px, 1px 0;
    }
    100% {
        background-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%;
    }
}

@keyframes border-animation-reverse {
    0% {
        background-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%;
    }
    25% {
        background-size: 100% 1px, 1px 100%, 100% 1px, 1px 0;
    }
    50% {
        background-size: 100% 1px, 1px 100%, 0 1px, 1px 0;
    }
    75% {
        background-size: 100% 1px, 1px 0, 0 1px, 1px 0;
    }
    100% {
        background-size: 0 1px, 1px 0, 0 1px, 1px 0;
    }
}

.yachts_section .tour_img_container img{
    object-fit: cover;
    width: 100%;
    height: 250px;
}

.yachts_section .tour_img_container a{
    width: 100%;
}

.yachts_section .price_div{
    color: #bfa888;
}


.yachts_content{
    padding: 0 7px;
}
.yachts_content h4{
    font-family: "Cormorant Upright",serif;
    text-transform: uppercase;
    color: #000;
    font-size: 24px;
    line-height: 1.25em;
    letter-spacing: .05em;
    font-weight: 500;
    margin: 0;
    word-wrap: break-word;
}

.yachts_content p{
    margin: 8px 0 0 0;
    font-family: 'Roboto',sans-serif;
    font-size: 15px;
    line-height: 1.73em;
    font-weight: 300;
    color: #404040;
    font-variant-numeric: lining-nums;
}

.yacht_info{
    padding: 7px 0 0;
    margin: 17px 0 0;
    border-top: 1px solid #ebebeb;
}

.yacht_info span{
    color: #bfa888;
    flex: 1;
}

.yacht_info div{
    padding: 0 7px;
}

@media (max-width: 992px){
    .yacht_card{
        width: 100%;
		flex: auto;
		min-width: none;
		max-width: none;
    }
}